Re: [SailfishDevel] Path to main qml in resource file - not found whatever I try
On Wed, 2014-04-23 at 22:53 +0200, tw_bolek wrote: > - manually edit Makefile and remove qml_install and qml_uninstall > - in .specs file remove /usr/share/myappand %{_datadir}/%{name}/qml > lines I usually do this by renaming the qml folder, create a new qml folder, and create en empty qml file in the folder (otherwise the deploy fails). This changes the path to files included in the resource, so they have to be added again. > Don't mean to be rude or something, but it is seriously SICK to have to do > such things to exclude a folder that is in a resource and thus it is no > longer needed. In Qt4.8 all I needed to do was to comment out one line > (DEPLOYMENTFOLDER) in .pro file, and on BB10 I just need to exclude asset > in bar-descriptor.xml. It is rather irritating ;) /Kim ___ SailfishOS.org Devel mailing list
[SailfishDevel] QtLocation/Map does nothing ?
Hi I'm trying to implement a slippery map in my QML app using the QtLocation/Map. I have based the Map usage on some tutorials I have found on the net. My app compiles, installs and runs without any errors, but only my pulldown menu appears, the map area is clear, only the background is seen! Im the QML file I have implemented the as follows: Map { id: map enabled: true anchors.fill: parent // parent is for test purposes // 400 * 400 pixels center: QtPositioning.coordinate(55,10) zoomLevel: 7 Plugin { id: plugin allowExperimental: true preferred: ["osm"] required.mapping: Plugin.AnyMappingFeatures required.geocoding: Plugin.AnyGeocodingFeatures } } Any ideas? /Kim ___ SailfishOS.org Devel mailing list To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org
Re: [SailfishDevel] QtLocation/Map does nothing ?
Hi Osmo >You need to assign the plugin to the plugin property. Yes of course, man have I spent time on this stupid error ! Many thanks, now it works! /Kim On Wed, 2014-10-15 at 23:42 +0300, Osmo Salomaa wrote: > Hi, > > 15.10.2014, 22:57, Kim Foder kirjoitti: > > Im the QML file I have implemented the as follows: > > > > Map { > > id: map > > enabled: true > > anchors.fill: parent // parent is for test purposes > > // 400 * 400 pixels > > center: QtPositioning.coordinate(55,10) > > zoomLevel: 7 > > Plugin { > >id: plugin > >allowExperimental: true > >preferred: ["osm"] > >required.mapping: Plugin.AnyMappingFeatures > >required.geocoding: Plugin.AnyGeocodingFeatures > > } > > } > > > > Any ideas? > > You need to assign the plugin to the plugin property. And it should be > enough to just give the name parameter. Try > > Map { > ... > plugin: Plugin { name: "osm" } > } > > Also, you might need to set the zoom level under onCompleted. > > https://bugreports.qt-project.org/browse/QTBUG-40779 > ___ SailfishOS.org Devel mailing list To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org
Re: [SailfishDevel] Installation trouble with the SDK
Hi again Well, it probably does not have anything to do with the entropy pool! I have just tried the solution mentioned here: http://www.chrissearle.org/2008/10/13/Increase_entropy_on_a_2_6_kernel_linux_box/, for seeding the entropy pool, and even though the pool went over 3000, the installation still hang at 76% :( Any ideas ? /Kim On Wed, 2014-12-10 at 10:41 +0100, k...@foder.dk wrote: > Hi > > I have had this problem since I upgraded Ubuntu to 14.10, and have recently > come to the conclusion that the problem probably is entropy. > > A test has shown that the entropy pool always is extremely low (about 1000 > with heavy disk access, less than 800 otherwise) > > I have tried to generate more entropy by starting programs with heavy disk or > net acces, and fidling with the mouse, but the installation still hangs at > 76%, and after a short while everything on the desktop freezes, even the > mouse. > > The only way to get out of it is a long press on the power button. > > Until now I have no solution, and are getting somewhat frustrated, so I would > be glad for some suggestions how to procede. > > /Kim > ___ > SailfishOS.org Devel mailing list > To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org ___ SailfishOS.org Devel mailing list To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org
Re: [SailfishDevel] Installation trouble with the SDK
Hi I'm still having problems installing the SDK, also with the latest release. I have proven the problem to be in merssh, by executing it from a cli with the following command: /home/kif/SailfishOS/bin/merssh generatesshkeys '/home/kif/SailfishOS/vmshare/ssh/private_keys/engine/root' '/home/kif/SailfishOS/vmshare/ssh/private_keys/engine/root.pub' This never returns, but unlike the SDK installation it doesn't freeze the desktop (it does kill the network though). The process becomes un-killable with 0% cpu. Because the desktop still was responsive, I could run dmesg, and found the following message: [ 1148.207334] [ cut here ] [ 1148.207353] WARNING: CPU: 1 PID: 4972 at /build/buildd/linux-3.16.0/kernel/watchdog.c:265 watchdog_overflow_callback+0x9c/0xd0() [ 1148.207357] Watchdog detected hard LOCKUP on cpu 1 [ 1148.207360] Modules linked in: [ 1148.207363] hidp hid dm_crypt btusb bnep rfcomm bluetooth 6lowpan_iphc binfmt_misc uvcvideo videobuf2_vmalloc videobuf2_memops intel_rapl videobuf2_core x86_pkg_temp_thermal intel_powerclamp v4l2_common coretemp videodev media kvm_intel hp_wmi wl(POE) sparse_keymap kvm snd_hda_codec_hdmi crct10dif_pclmul snd_hda_codec_idt crc32_pclmul snd_hda_codec_generic ghash_clmulni_intel snd_hda_intel aesni_intel snd_hda_controller aes_x86_64 snd_hda_codec lrw snd_hwdep gf128mul glue_helper snd_pcm ablk_helper snd_seq_midi cryptd snd_seq_midi_event snd_rawmidi joydev snd_seq cfg80211 serio_raw snd_seq_device snd_timer snd hp_accel lis3lv02d input_polldev tpm_infineon soundcore mei_me shpchp lpc_ich mei mac_hid cuse parport_pc ppdev lp parport i915 psmouse ahci firewire_ohci i2c_algo_bit e1000e libahci drm_kms_helper [ 1148.207451] firewire_core sdhci_pci drm sdhci crc_itu_t ptp pps_core wmi video [ 1148.207467] CPU: 1 PID: 4972 Comm: merssh Tainted: P OE 3.16.0-28-generic #38-Ubuntu [ 1148.207470] Hardware name: Hewlett-Packard HP ProBook 6560b/1619, BIOS 68SCE Ver. F.22 12/22/2011 [ 1148.207474] 0009 88013f445c10 81781eaa 88013f445c58 [ 1148.207479] 88013f445c48 8106fedd 880138cd8000 [ 1148.207484] 88013f445d70 88013f445ef8 88013f445ca8 [ 1148.207490] Call Trace: [ 1148.207493][] dump_stack+0x45/0x56 [ 1148.207510] [] warn_slowpath_common+0x7d/0xa0 [ 1148.207517] [] warn_slowpath_fmt+0x4c/0x50 [ 1148.207524] [] watchdog_overflow_callback +0x9c/0xd0 [ 1148.207532] [] __perf_event_overflow+0x8d/0x2a0 [ 1148.207539] [] ? x86_perf_event_set_period +0xcb/0x170 [ 1148.207546] [] perf_event_overflow+0x14/0x20 [ 1148.207553] [] intel_pmu_handle_irq+0x1ed/0x3e0 [ 1148.207560] [] perf_event_nmi_handler+0x2b/0x50 [ 1148.207565] [] nmi_handle+0x80/0x120 [ 1148.207570] [] default_do_nmi+0x4d/0x140 [ 1148.207575] [] do_nmi+0x88/0xd0 [ 1148.207581] [] end_repeat_nmi+0x1e/0x2e [ 1148.207587] [] ? _raw_spin_lock_irqsave+0x48/0x70 [ 1148.207593] [] ? _raw_spin_lock_irqsave+0x48/0x70 [ 1148.207598] [] ? _raw_spin_lock_irqsave+0x48/0x70 [ 1148.207601] <> [] down+0x16/0x50 [ 1148.207675] [] wl_proc_read+0x89/0xa0 [wl] [ 1148.207683] [] proc_reg_read+0x48/0x70 [ 1148.207691] [] vfs_read+0x94/0x180 [ 1148.207698] [] SyS_read+0x46/0xb0 [ 1148.207704] [] system_call_fastpath+0x1a/0x1f [ 1148.207707] ---[ end trace 27a6d7af2f51ec6d ]--- and a short while later a lot of the following: [ 1185.312162] INFO: rcu_sched detected stalls on CPUs/tasks: { 1} (detected by 0, t=15009 jiffies, g=66782, c=66781, q=0) [ 1185.312181] sending NMI to all CPUs: [ 1185.312193] NMI backtrace for cpu 0 [ 1185.312202] CPU: 0 PID: 1785 Comm: Xorg Tainted: PW OE 3.16.0-28-generic #38-Ubuntu [ 1185.312215] Hardware name: Hewlett-Packard HP ProBook 6560b/1619, BIOS 68SCE Ver. F.22 12/22/2011 [ 1185.312218] task: 8800b5a228c0 ti: 8801385f task.ti: 8801385f [ 1185.312220] RIP: 0010:[] [] __const_udelay+0x12/0x30 [ 1185.312228] RSP: 0018:88013f403de0 EFLAGS: 0046 [ 1185.312230] RAX: 01062560 RBX: 2710 RCX: 0004 [ 1185.312233] RDX: 008c1328 RSI: 0100 RDI: 00418958 [ 1185.312235] RBP: 88013f403df8 R08: 0004 R09: 0086 [ 1185.312237] R10: 027dc00eb52b R11: 039b R12: 81c589c0 [ 1185.312239] R13: 81d212a0 R14: 81c589c0 R15: [ 1185.312242] FS: 7fa940fbe9c0() GS:88013f40() knlGS: [ 1185.312245] CS: 0010 DS: ES: CR0: 80050033 [ 1185.312247] CR2: 7f51a60fcea4 CR3: 35579000 CR4: 000407f0 [ 1185.312249] Stack: [ 1185.312251] 88013f403df8 81049a1a 88013f40d7c0 88013f403e50 [ 1185.312255] 810dbc06 81c589c0 0001 [ 1185.312258] 0001 8800b5a228c0 [ 1185.312262] Call Trace: [ 1185.312264] [ 1185.312272] [] ? a
Re: [SailfishDevel] Installation trouble with the SDK
HI Olah > You can switch off the overlay scrollbar thing with "export > LIBOVERLAY_SCROLLBAR=0", did you try if that helps? Yes, thats some of the first things I tried (it's mentioned under known problem for the SDK) > Alternatively you could find out wether it is a Unity problem by > installing another desktop say LXDE; I doubt it is related. I'm using KDE, but have the overlay scrollbar thingy installed, thats why I decided to try and uninstall it, unfortunatly this didn't have any effect. Also, I do not believe this problem is related as the description says it freezes with 100% cup, in my case it freezes with 0% cpu. It was mostly just to have it tested, that I did the uninstall. ___ SailfishOS.org Devel mailing list To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org
Re: [SailfishDevel] Installation trouble with the SDK
Hi Ove You are an genius! That was the solution, I disabled the closed Broadcom driver, and the installation succeded AND Qt-creator can run without hanging. For some reason my wireless network still works? It seams as if the system automatically falls back to the b43 driver. Thanks Kim. ___ SailfishOS.org Devel mailing list To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org
[SailfishDevel] How to detect when an app are restored from minimized
Hi In one of my apps I'm using the QML Canvas object, but after the latest upgrade of either the OS or SDK, it was blank whenever the app had been minimized and restored, and stayed blank until the page had been reloaded. I believe this is because of the change where the context is freed when the app is minimized, so I added a call to var getContext("2d") to my onPaint event, and the app can paint on the canvas again. But now I need an event to tell me the page should repaint the canvas, I have been looking for an onActivate, onShow or onRestore event on the Page, but has been unable to find one! Does anyone on this list know how to detect when the Page should be repainted? Kim ___ SailfishOS.org Devel mailing list To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org
Re: [SailfishDevel] How to detect when an app are restored from minimized
Hi That did solve my problem, thanks. On Sat, 2015-01-24 at 03:28 +0200, Osmo Salomaa wrote: > 24.01.2015, 01:04, Kim Foder kirjoitti: > > I believe this is because of the change where the context is freed when > > the app is minimized, so I added a call to var getContext("2d") to my > > onPaint event, and the app can paint on the canvas again. > > I noticed the same, it changed with Uitukka/Qt5.2. Adding an > onContextChanged handler worked for me. > > Canvas { > id: canvas > onContextChanged: { > if (!canvas.context) return; > // Initialize context properties here... > canvas.requestPaint(); > } > } > ___ SailfishOS.org Devel mailing list To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org
[SailfishDevel] QML arrays and memory leak
Hi For some time I have been battling a memory leak in my pedometer app, after a lot of experimentation, I have found the problem to be my use of arrays (probably)! Whenever I receive an acceleration measurement, some statistical calculations are made, which results in one float pr. measurement. As I need the measurements for a certain time for further statistical analysis, the results are stored in an array, used as an traveling window like this: accarr.shift(); // the array is pre-initialized with empty elements. accarr.push(); This works great, but it leaks memory fast, and after some time (between 1 & 2 hours) the OS kills all running apps! Any ideas how I can solve this? Thanks. Kim ___ SailfishOS.org Devel mailing list To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org
Re: [SailfishDevel] QML arrays and memory leak
Hi Peter > Why use an array and not a vector or an Hash map? As far as I know those are not supported under javascript, otherwise a vector would have been my first choice, an Hash map is overkill for my needs, I only need to add to the end, and always need sequential read. I am tempted to move the business part to C++, but I'm trying to do as much as possible in QML (as an exercise). /Kim > > Am 04.05.2015 22:20 schrieb "Kim Foder" : > > Hi > > > > For some time I have been battling a memory leak in my pedometer app, > > after a > > lot of experimentation, I have found the problem to be my use of arrays > > (probably)! > > > > Whenever I receive an acceleration measurement, some statistical > > calculations > > are made, which results in one float pr. measurement. > > > > As I need the measurements for a certain time for further statistical > > analysis, the results are stored in an array, used as an traveling window > > like > > this: > > > > accarr.shift(); // the array is pre-initialized with empty elements. > > accarr.push(); > > > > This works great, but it leaks memory fast, and after some time (between 1 > > & 2 > > hours) the OS kills all running apps! > > > > Any ideas how I can solve this? > > > > Thanks. > > > > Kim > > ___ > > SailfishOS.org Devel mailing list > > To unsubscribe, please send a mail to > > devel-unsubscr...@lists.sailfishos.org ___ SailfishOS.org Devel mailing list To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org
Re: [SailfishDevel] QML arrays and memory leak
Thanks for all your comments on this problem. I have been using these last couple of months testing many different solutions, also those proposed here, but none have worked! Now I have solved the problem by using an circular buffer instead of an array, so when I add a value I just changes the value at the current end of the buffer, and moves the end pointer to the next element, if the end pointer equals the start pointer that one is moved forward one place. That's it, no more memory leak, at least none I have detected yet ;) /Kim ___ SailfishOS.org Devel mailing list To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org
Re: [SailfishDevel] About applications presenting a map interface
Hi Juice I'm using Pinchmap from Foursail, it's a qml/javascript implementation of a slippery map, and works great, at least for my use ;) /Kim On Thursday 03 September 2015 08:14:27 juice wrote: > Morning. > > This might well be a FAQ but I could not find the answer browsing thru > the mailing list archives. > > I see that currently QtLocation and QtPositioning are still not allowed > in Harbour. > This seems to me that I cannot use a Map object in QML. > > What is approved the method to present a map interface (openmaps for > example) in an application and still have it possible to submit the > application to the store? ___ SailfishOS.org Devel mailing list To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org
[SailfishDevel] rpmvalidator: file is not stripped!
Hi Normally, when I deploy a project, I end up with three .rpm's, one containing the program, one containing debug info and one containing debug source. But, for some reason, my current project only builds one huge rpm, and rpmvalidator complains that "File is not stripped!" I have compared the project configurations and the pro files with the ones from older projects, and cannot find any differences (except the ones expected). Any ideas what I can have done wrong? Ps. I'm using Sailfish SDK beta 6. Thanks. /Kim ___ SailfishOS.org Devel mailing list To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org
Re: [SailfishDevel] rpmvalidator: file is not stripped!
On Tuesday, January 05, 2016 09:20:50 PM jollail...@gmail.com wrote: > Care to share the sources? It's monav for sailfish: https://github.com/tunp/monavsailfish[1] > > Kim Foder kirjoitti ti tammikuuta 5 22:49:12 2016 GMT+0200: > > > Hi > > > > Normally, when I deploy a project, I end up with three .rpm's, one > > containing the program, one containing debug info and one containing > > debug source. > > But, for some reason, my current project only builds one huge rpm, and > > rpmvalidator complains that "File is not stripped!" > > > > I have compared the project configurations and the pro files with the ones > > from older projects, and cannot find any differences (except the ones > > expected). > > > > Any ideas what I can have done wrong? > > > > Ps. I'm using Sailfish SDK beta 6. > > > > Thanks. > > > > /Kim > > ___ > > SailfishOS.org Devel mailing list > > To unsubscribe, please send a mail to > > devel-unsubscr...@lists.sailfishos.org > > > > > > -- > Lähetetty Jollastani > ___ > SailfishOS.org Devel mailing list > To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org [1] https://github.com/tunp/monavsailfish ___ SailfishOS.org Devel mailing list To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org
[SailfishDevel] Patching bluetooth keyboard
Hi I have a Rii mini pocket keyboard with English layout, and would like to patch the keyboard layout to be able to enter the national characters for Denmark (æ ø å). I would like to make alt+o => ø, alt+a => å etc. >From what I read on the 'net I need to patch the boston.qmap file, does anyone know if this is correct? I ask because no matter what I do to this file, it does not have any effect (I do reboot after replacing the file). I have looked at the source for kmap2qmap and am fairly sure I have patched the file correctly! Any ideas? Thanks /Kim ___ SailfishOS.org Devel mailing list To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org
Re: [SailfishDevel] Patching bluetooth keyboard
> Nope, you want to modify xkeyboard-config files. > https://git.merproject.org/mer-core/xkeyboard-config or > /usr/share/X11/xkb/. Well, that explains I cannot make it work ;) Thanks I'll have a look at those. On Tuesday, January 26, 2016 11:37:13 AM Pekka Vuorela wrote: > On ti, 2016-01-26 at 00:03 +0100, Kim Foder wrote: > > Hi > > > > I have a Rii mini pocket keyboard with English layout, and would like > > to patch > > the keyboard layout to be able to enter the national characters for > > Denmark (æ > > ø å). I would like to make alt+o => ø, alt+a => å etc. > > > > From what I read on the 'net I need to patch the boston.qmap file, > > does anyone > > know if this is correct? > > Nope, you want to modify xkeyboard-config files. > https://git.merproject.org/mer-core/xkeyboard-config or > /usr/share/X11/xkb/. > > > ___ > SailfishOS.org Devel mailing list > To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org ___ SailfishOS.org Devel mailing list To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org
Re: [SailfishDevel] Patching bluetooth keyboard
Your tip has been a great help. I have one more question: Is there a Sailfish tool (or file somewhere) where I can get information on the active keyboard. Something like : setxkbmap -print On Tuesday, January 26, 2016 11:37:13 AM Pekka Vuorela wrote: > On ti, 2016-01-26 at 00:03 +0100, Kim Foder wrote: > > Hi > > > > I have a Rii mini pocket keyboard with English layout, and would like > > to patch > > the keyboard layout to be able to enter the national characters for > > Denmark (æ > > ø å). I would like to make alt+o => ø, alt+a => å etc. > > > > From what I read on the 'net I need to patch the boston.qmap file, > > does anyone > > know if this is correct? > > Nope, you want to modify xkeyboard-config files. > https://git.merproject.org/mer-core/xkeyboard-config or > /usr/share/X11/xkb/. > > > ___ > SailfishOS.org Devel mailing list > To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org ___ SailfishOS.org Devel mailing list To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org
[SailfishDevel] browser versus ajax
Hi I'm trying to make a gopro Hero4 app for Sailfish, but have hit a wall :( When I send a request to the Hero (for example a status request http:// 10.5.5.9:8080/gp/gpControl/status) in the address line of a browser (laptop or Jolla) I get the expected response, but when I try via ajax from qml I get no response (ready state 1 and after a long time ready state 4). I have captured the IP traffic (in pcap format), but do not have enough knowledge to interpret the results. If anyone here do have the knowledge to help me, I'll be gratefull. The captured sessions can be downloaded here: http://kimfoder.dk/capture.zip. /Kim ___ SailfishOS.org Devel mailing list To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org