maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Development (https://talk.maemo.org/forumdisplay.php?f=13)
-   -   [WIP] CloudGPS 0.4.8 - smoothest maps for N900 (https://talk.maemo.org/showthread.php?t=58402)

xes 2011-12-07 23:02

Re: [WIP] CloudGPS 0.4.8 - smoothest maps for N900
 
Quote:

Originally Posted by ejcrashed (Post 1134744)
On my N900 i'm getting the exact same output as xes for ldd... and dpkg -s libqtm-11-location commands but gps still doesn't work.

xes, just for comparisons sake, i'm using

- Latest CSSU update
- Kernel Power 49
- I have AGPS disabled

Sorry, the situation is the same....

new_n900 2011-12-08 08:06

Re: [WIP] CloudGPS 0.4.8 - smoothest maps for N900
 
Thanks,

Finally I got CloudGPS working on my N900.:)

Again, very big thanks.

xes 2011-12-13 11:40

Re: [WIP] CloudGPS 0.4.8 - smoothest maps for N900
 
a new little issue..

Sometimes cloudgps crashes without any message as soon it loads all the current map view...

A few times, it repeated the crash until the next reboot.

Sorry but until now i haven't any addictional info.
I suppose i should start it from a term to view some error message.

vi_ 2011-12-13 11:45

Re: [WIP] CloudGPS 0.4.8 - smoothest maps for N900
 
Quote:

Originally Posted by xes (Post 1136986)
a new little issue..

Sometimes cloudgps crashes without any message as soon it loads all the current map view...

A few times, it repeated the crash until the next reboot.

Sorry but until now i haven't any addictional info.
I suppose i should start it from a term to view some error message.

I suppose you should, also syslog and dmesg output here.

dwaradzyn 2011-12-13 18:52

Re: [WIP] CloudGPS 0.4.8 - smoothest maps for N900
 
Quote:

Originally Posted by Rob1n (Post 1133881)
I've got that installed (as well as libqtm-12), but ldd shows that cloudgps is actually linking against the library from libqtm-location.

Thanks for spotting that. I suspect that the libs/linking are the main cause of GPS issue and I wanted to prepare a static linked to confirm/rule that out. Unfortunately my dev env broke and I had to address it. I did not have enough time to prepare static linked version during the weekend. I hope to find time during the following weekend to do so.

Even without static version we can make some progress. Lets check if the libqtm-location version difference is related to GPS issue. Could you post the version of libqtm-location installed on your N900?

On my N900 (GPS working fine in CloudGPS) version 1.0.2-maemo4+0m5 of libqtm-location is installed. Is your version different?

dwaradzyn 2011-12-13 19:57

Re: [WIP] CloudGPS 0.4.8 - smoothest maps for N900
 
Quote:

Originally Posted by xes (Post 1134245)
New issue...
It is a little difficult to explain but i'll try
imagine one offline only map, a rectangle of a certain area from zoom 9 to 16 with no http link.
While running in offline mode...I discovered that very often cloudgps does not load any part of the map also if i'm over the right zone and the debug window (H) shows me that there is a green square under the cursor.
Moving, zooming in or out after some time it loads the map (it is not a mumble state or too cpu load)

What do you think about?

Not sure if I understand correctly what you are trying to convey to me but I will try with the closest thing I can think of. I think you are describing a situation when background tile loading threads hang. I have explained that earlier in the context of downloading from network, but reading from eMMC can also easily get stuck for a long while when some background process uses a lot of IO (for example tracker processes). This is the original explanation from post #300:

Quote:

Originally Posted by dwaradzyn (Post 1077205)
Rendering should never get locked. I use CloudGPS quite extensively and it just never does. Tile loading on the other hand can easily get locked. Tile loading uses only two threads on N900 (I benchmarked it and it is the most optimal value for N900). When there are two downloads in progress every new download request gets queued until one of those two finish because starting new thread is just too heavy for N900. Downloading currently uses blocking API and this means that it can easily get stuck waiting for data from network. I plan to rewrite downloading using non-blocking API so that:
- there will be many simultaneous downloads possible (up to twenty for example) per one thread,
- downloads that are in progress and are not necessary anymore will be canceled,
- downloads stalled will be canceled and retried,
- it will use even less resources than current implementation.

This should resolve the issue you described and should also improve responsiveness and tile loading time a lot.

In practice I find restarting the application resolving this state of 'not loading anything because of stuck threads'.

Non-blocking API use is still not here. I spent some time on it and tried to implement a proof of concept using non-blocking API. While it somehow worked it introduced a lot of new problems. The loading does not work that bad currently and right now I plan to focus on other things. Will get back to non-blocking API if I have more time.

handaxe 2011-12-13 23:50

Re: [WIP] CloudGPS 0.4.8 - smoothest maps for N900
 
Quote:

Originally Posted by dwaradzyn (Post 1137145)
On my N900 (GPS working fine in CloudGPS) version 1.0.2-maemo4+0m5 of libqtm-location is installed. Is your version different?

GPS not working :(

libqtm-location 1.0.2-maemo4+0m5+0cssu1 (so, a diff there!)

I also have libqtm-11-location installed.

Rob1n 2011-12-14 09:05

Re: [WIP] CloudGPS 0.4.8 - smoothest maps for N900
 
Quote:

Originally Posted by handaxe (Post 1137252)
GPS not working :(

libqtm-location 1.0.2-maemo4+0m5+0cssu1 (so, a diff there!)

Same for me. I'll have a look at what was changed for the CSSU version.

Rob1n 2011-12-14 09:30

Re: [WIP] CloudGPS 0.4.8 - smoothest maps for N900
 
Quote:

Originally Posted by Rob1n (Post 1137363)
Same for me. I'll have a look at what was changed for the CSSU version.

Well, there shouldn't be any real differences. The only patch added is to add a signal for updating the media library.

It definitely is down to this though - running "LD_LIBRARY_PATH=/opt/qtm11/lib /opt/cloudgps/cloudgps" gets the GPS working perfectly. I've added in a shell script to do this, and changed the .desktop file to point to that instead.

xes 2011-12-15 08:44

Re: [WIP] CloudGPS 0.4.8 - smoothest maps for N900
 
Quote:

Originally Posted by Rob1n (Post 1137364)
Well, there shouldn't be any real differences. The only patch added is to add a signal for updating the media library.

It definitely is down to this though - running "LD_LIBRARY_PATH=/opt/qtm11/lib /opt/cloudgps/cloudgps" gets the GPS working perfectly. I've added in a shell script to do this, and changed the .desktop file to point to that instead.

I can confirm this.
I suppose that the problem appears after the install of libqtm-12 (that now contains also libqtm-12-location)


All times are GMT. The time now is 01:26.

vBulletin® Version 3.8.8