maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   [Announce] modRana: a flexible GPS navigation system (https://talk.maemo.org/showthread.php?t=58861)

tigre-bleu 2014-03-03 08:29

Re: [Announce] modRana: a flexible GPS navigation system
 
Quote:

Originally Posted by MartinK (Post 1415144)

So I'll need to switch modRana to another API - either the the Google Places API or some other, hopefully more durable one (recommendations for a suitable local search API are welcome! :)).

I would not recommand to use google API. Instead there are several other API using openstreetmap. For instance it is possible to use Open Mapquest:

http://developer.mapquest.com/web/products/open

Especially XAPI: http://open.mapquestapi.com/xapi/

petur 2014-03-03 11:36

Re: [Announce] modRana: a flexible GPS navigation system
 
I wouldn't mind the choice or even combination of such searches (combination would give dupes), Google is pretty good at finding places even if nobody entered them on a map - it scrapes the location from the webpages.

handaxe 2014-03-03 11:57

Re: [Announce] modRana: a flexible GPS navigation system
 
Modrana v0.45.4 latest: night theme corrupts map display. Others do not.

MartinK 2014-03-11 23:38

Re: [Announce] modRana: a flexible GPS navigation system
 
Quote:

Originally Posted by tigre-bleu (Post 1415190)
I would not recommand to use google API. Instead there are several other API using openstreetmap. For instance it is possible to use Open Mapquest:

http://developer.mapquest.com/web/products/open

Especially XAPI: http://open.mapquestapi.com/xapi/

I've been doing a little survey and I think I would use the Overpass API. It is basically a much more powerful & flexible XAPI.

It should also make implementing the current local search features easier - searches like "food" could be implemented like get nodes corresponding to any of a set of food-related amenities.

Stuff like this seems like it would be rather difficult to do with XAPI alone.

Quote:

Originally Posted by petur (Post 1415205)
I wouldn't mind the choice or even combination of such searches (combination would give dupes), Google is pretty good at finding places even if nobody entered them on a map - it scrapes the location from the webpages.

Sure, it should be possible to use different backends and to either switch between them or search in all of them at once, but I need to start with one backend and make it work at all first. :) Of course, patches adding more providers are definitely welcome. :)

Quote:

Originally Posted by handaxe (Post 1415209)
Modrana v0.45.4 latest: night theme corrupts map display. Others do not.

Strange, I'm not getting this on my N900 - could you start modRana from terminal and post the output here ?

handaxe 2014-03-12 12:06

Re: [Announce] modRana: a flexible GPS navigation system
 
2 Attachment(s)
Quote:

Originally Posted by MartinK (Post 1416340)
Strange, I'm not getting this on my N900 - could you start modRana from terminal and post the output here ?

Sure. Log and screenie attached. Gtk interface (qml is v. nice BTW). Nothing in log file AFAICS.

But, having looked at this again, I now see that it is an issue with the overlay maps alone, irrespective of source, rather than using the overlay with a base-map OR with aerial photo.

I only get the corruption with the night theme. Same overlay map and any other theme, switched within a session and all is well.

About aerial photos and the night theme: I do not think that inverting the colours makes sense in this instance. Obscures more than clarifies.

marmistrz 2014-03-13 17:15

Re: [Announce] modRana: a flexible GPS navigation system
 
About mapnik: I decided that using thumb and non-free will be the best approach - why should we use non-thumb when we can use thumb. Unfortunately no one seems to bother to fix an awful extras-devel import bug: http://talk.maemo.org/showpost.php?p...&postcount=112

So when modrana starts to use some mapnik code, let me know and I'll rethink what can be done at that point.

petur 2014-03-14 14:07

Re: [Announce] modRana: a flexible GPS navigation system
 
installing 0.45.7....

MartinK 2014-04-16 22:58

Re: [Announce] modRana: a flexible GPS navigation system
 
modRana v0.46.1 has been released !

The two biggest highlights of this release are:
  • local search works again! :)
    Thanks to Geoff Kuenning, local search works yet again and now uses the the Places API provided by Google. Thanks a lot Geoff! :)

    BTW, I still plan to eventually add support for local search based on OpenStreetMap data (most probably using the Overpass API), but like this we have something that works until then. :)
  • improved tile handling
    Map drawing and tile download (both automatic and batch) have been improved and should be now faster and more efficient.

Known issues

That theme related map corruption bug has not yet been fixed.

Changelog:
Code:

* Wed Apr 16 2014 Martin Kolman - 0.46.1
- local search works again thanks to a patch provided by Geoff Kuenning - thanks a lot ! :)
- it is now possible to set local search radius in the GTK GUI (in options and directly in the search menu with a toggle button)
- map display and dragging should now be faster
- automatic map tile downloading has been rewritten and should be now more efficient
- batch tile download has been rewritten and improved - should be now more efficient and faster
- the tile handling code is now in much better shape overall
- the batch tile menu in GTK GUI no longer lags and has a more logical structure
- fix tile downloading not working in Sailfish GUI due to Python 3.4 breaking old bundled version of Urllib 3


petur 2014-04-17 09:04

Re: [Announce] modRana: a flexible GPS navigation system
 
Working great! Thanks for the local search fix!

Kossuth 2014-04-17 11:27

Re: [Announce] modRana: a flexible GPS navigation system
 
It seems that I cant download basic Google maps anymore (normal way, not batch download). Other Google maps and for example OSM works, but not basic Google maps. Already downloaded tiles show normally. Terminal give following errors

Code:

mapTiles: tile data returned by remote tileserver was not an image
layer:gmap z:12 x:2370 y:1121
tile url: http://mt1.google.com/vt/&x=12&y=2370&z=1121
NOTE: this probably means that the tileserver returned anerror page in place of the tile, because it doesn't like you
mapTiles: tile data returned by remote tileserver was not an image
layer:gmap z:12 x:2370 y:1120
tile url: http://mt1.google.com/vt/&x=12&y=2370&z=1120
NOTE: this probably means that the tileserver returned anerror page in place of the tile, because it doesn't like you

The urls return google errorpage about malformed request.

Edit: It may be that Modrana is requesting the tile in wrong order (X,Y,Z) and it should be (Z,X,Y). At least when I change the order in url, I get a map tile with my browser.

Whispering Weasel 2014-04-17 12:59

Re: [Announce] modRana: a flexible GPS navigation system
 
New version with online search working again :-)

Just a remark, when searching online for poi it now seems limited to 50km? (maybe add option for listing all poi's).
And maybe a bug: Once a POI is found I can display it on the map etc. but when in the POI list (search results), then clicking the POI and then on Tools - add to POI; nothing happens (when it should ask in which category to save?).

MartinK 2014-04-17 18:18

Re: [Announce] modRana: a flexible GPS navigation system
 
Quote:

Originally Posted by Kossuth (Post 1421696)
It seems that I cant download basic Google maps anymore (normal way, not batch download). Other Google maps and for example OSM works, but not basic Google maps. Already downloaded tiles show normally. Terminal give following errors

Code:

mapTiles: tile data returned by remote tileserver was not an image
layer:gmap z:12 x:2370 y:1121
tile url: http://mt1.google.com/vt/&x=12&y=2370&z=1121
NOTE: this probably means that the tileserver returned anerror page in place of the tile, because it doesn't like you
mapTiles: tile data returned by remote tileserver was not an image
layer:gmap z:12 x:2370 y:1120
tile url: http://mt1.google.com/vt/&x=12&y=2370&z=1120
NOTE: this probably means that the tileserver returned anerror page in place of the tile, because it doesn't like you

The urls return google errorpage about malformed request.

Edit: It may be that Modrana is requesting the tile in wrong order (X,Y,Z) and it should be (Z,X,Y). At least when I change the order in url, I get a map tile with my browser.

Thanks! Fixed in 0.46.2, which should be hitting autobuilder any moment now. :)

Quote:

Originally Posted by Whispering Weasel (Post 1421706)
New version with online search working again :-)

Just a remark, when searching online for poi it now seems limited to 50km? (maybe add option for listing all poi's).

AFAIK it seems to be the limit of the Google Places API.
BTW, the range seems to a rather soft limit/hint - you might often get results that are outside of the current range if nothing is found inside the range.
Not sure if this happens for results outside the 50 km range though.

Quote:

Originally Posted by Whispering Weasel (Post 1421706)
And maybe a bug: Once a POI is found I can display it on the map etc. but when in the POI list (search results), then clicking the POI and then on Tools - add to POI; nothing happens (when it should ask in which category to save?).

I'll check it out - could be that the format of the POI object changed due to the new API which in turn could have broken the code that saves the point to the POI database.

Kossuth 2014-04-18 09:32

Re: [Announce] modRana: a flexible GPS navigation system
 
Using 0.46.2 normal download for Googlemaps works now. Thanks. An error caught my eye during install. Dont know if it is of any imoportance.

Code:

Compiling /opt/modrana/modules/mod_location/gps_module/__init__.py ...
  File "/opt/modrana/modules/mod_location/gps_module/__init__.py", line 9
    from .gps import *
SyntaxError: 'import *' not allowed with 'from .'

Compiling /opt/modrana/modules/mod_location/gps_module/client.py ...
Compiling /opt/modrana/modules/mod_location/gps_module/gps.py ...
  File "/opt/modrana/modules/mod_location/gps_module/gps.py", line 17
    from .client import *
SyntaxError: 'import *' not allowed with 'from .'

Also noticed that batch download for Google or OSM Mapnik does not download anything or give any errors. I just tells that all tiles were found locally, and I'm pretty sure that they are not on my system, because I tested this on several different new places. I know the google did not work previously with batch download, but at least it gave error. I found the following on terminal

Code:

tileExists2() got multiple values for keyword argument 'fromThread'
exception in batch download thread:
tileExists2() got multiple values for keyword argument 'fromThread'
exception in batch download thread:
tileExists2() got multiple values for keyword argument 'fromThread'
exception in batch download thread:
tileExists2() got multiple values for keyword argument 'fromThread'
INFO:Thread Done: batchTileDownloadWorker3 (1073862784)
exception in batch download thread:
tileExists2() got multiple values for keyword argument 'fromThread'
INFO:Thread Done: batchTileDownloadWorker1 (1073862784)
exception in batch download thread:
tileExists2() got multiple values for keyword argument 'fromThread'
exception in batch download thread:
tileExists2() got multiple values for keyword argument 'fromThread'


MartinK 2014-04-20 11:32

Re: [Announce] modRana: a flexible GPS navigation system
 
Quote:

Originally Posted by Kossuth (Post 1421784)
Using 0.46.2 normal download for Googlemaps works now. Thanks. An error caught my eye during install. Dont know if it is of any imoportance.

Code:

Compiling /opt/modrana/modules/mod_location/gps_module/__init__.py ...
  File "/opt/modrana/modules/mod_location/gps_module/__init__.py", line 9
    from .gps import *
SyntaxError: 'import *' not allowed with 'from .'

Compiling /opt/modrana/modules/mod_location/gps_module/client.py ...
Compiling /opt/modrana/modules/mod_location/gps_module/gps.py ...
  File "/opt/modrana/modules/mod_location/gps_module/gps.py", line 17
    from .client import *
SyntaxError: 'import *' not allowed with 'from .'


This is fortunately harmless - the Fremantle package is built from the full modRana source tarball, which contains some code that is not used on Fremantle and might not be fully Python 2.5 compatible.
For example, there are two versions of Urllib 3 - one Python 2.5 compatible, other for Python 2.6+ & Python 3+.

The incompatible code then shows up as error when the modRana package generates bytecode in it's postinst script.

Still, I'll try to exclude such sourcecode from the package in the future, which should get rid of those error and bring the size of the package down a bit too.


Quote:

Originally Posted by Kossuth (Post 1421784)
Also noticed that batch download for Google or OSM Mapnik does not download anything or give any errors. I just tells that all tiles were found locally, and I'm pretty sure that they are not on my system, because I tested this on several different new places. I know the google did not work previously with batch download, but at least it gave error. I found the following on terminal

Code:

tileExists2() got multiple values for keyword argument 'fromThread'
exception in batch download thread:
tileExists2() got multiple values for keyword argument 'fromThread'
exception in batch download thread:
tileExists2() got multiple values for keyword argument 'fromThread'
exception in batch download thread:
tileExists2() got multiple values for keyword argument 'fromThread'
INFO:Thread Done: batchTileDownloadWorker3 (1073862784)
exception in batch download thread:
tileExists2() got multiple values for keyword argument 'fromThread'
INFO:Thread Done: batchTileDownloadWorker1 (1073862784)
exception in batch download thread:
tileExists2() got multiple values for keyword argument 'fromThread'
exception in batch download thread:
tileExists2() got multiple values for keyword argument 'fromThread'


Looks like a function was called incorrectly in some circumstances, should be now fixed. :)

MartinK 2014-04-20 11:34

Re: [Announce] modRana: a flexible GPS navigation system
 
in other news, modRana 0.46.5 is out! :)

This is basically a bugfix release:
  • local search results can be again saved to the POI database
  • the above mentioned batch download error should be also fixed

Enjoy! :)

biketool 2014-04-20 12:52

Re: [Announce] modRana: a flexible GPS navigation system
 
As always modrana is super!
I have asked about the location sharing in the past as we had in tangoGPS on the old Openmoko.
Today I thought about a way to do that without needing a centralized server.
Can a feature be added to format the GPS coordinates into a SMS or read a SMS with coordinates in it?
I just recently had to find some lost visitors and again wished I had a way to easily have them send me their location or give them a bulletproof way to receive and use in a map app a meet-up location.
The idea being that even a dunce can just import or export to/from a SMS if the app can read it without cut/paste.

petur 2014-04-22 12:07

Re: [Announce] modRana: a flexible GPS navigation system
 
With this and previous release I sometimes have tiles that stay in 'waiting for download slot'

I can drag around and see other tiles getting downloaded, I can even change zoomlevel and see good downloads, but when I return to the problem tiles they are still waiting for download slot.

Must start from commandline to see if any erors are reported.

chill 2014-04-24 06:07

Re: [Announce] modRana: a flexible GPS navigation system
 
Tile download was apparently fixed for me with 0.46.2 but with 0.46.5 I am again seeing tile sever download errors with google maps.

Estel 2014-05-16 11:29

Re: [Announce] modRana: a flexible GPS navigation system
 
I wonder if anyone get the following weirdo:

Since one of latest updatest, I get very irritating "yellow boxes" that took place of usual "loading" or "downloading" tile-messages. What is strange, though, is that those yellow things keep re-appearing even after corresponding tiles were already loaded - for example, if I load tiles on zoom 16, change to zoom 15 and go back, I see those yellow tiles, to be replaced with normal tiles after a few seconds, AGAIN.

What is worse, some of those ywllow tiles get stuck, too. Overall, suddenly it become very hard to use ModRana for navigating (and even normal map browsing), due to this.

/Estel

// Edit
Example of what I'm talking about:
http://s2.postimg.org/afioliwex/modrana.png

petur 2014-05-26 07:19

Re: [Announce] modRana: a flexible GPS navigation system
 
Yes, except mine are blue (waiting for download slot)

Martin, have you managed to reproduce this? This is a very annoying bug :/

Edit: forgot to mention that there are no real errors logged, even when 90% of the screen remains unloaded. Just one error at startup:

Code:

TypeError: update() takes exactly 1 argument (2 given) ('GTK GUI: size allocation', <GdkRectangle at 0x60ca18>)
but that seems to be before the sqlite tiles init.

MartinK 2014-06-03 17:37

Re: [Announce] modRana: a flexible GPS navigation system
 
Quote:

Originally Posted by Estel (Post 1425609)
Since one of latest updatest, I get very irritating "yellow boxes" that took place of usual "loading" or "downloading" tile-messages. What is strange, though, is that those yellow things keep re-appearing even after corresponding tiles were already loaded - for example, if I load tiles on zoom 16, change to zoom 15 and go back, I see those yellow tiles, to be replaced with normal tiles after a few seconds, AGAIN.

Quote:

Originally Posted by petur (Post 1426648)
Yes, except mine are blue (waiting for download slot)

I think this is actually the same issue - they look yellow only because Estel is using map overlay, so the blue waiting tile gets mixed with the tile from the other layer, changing the tint of the color. :)

Anyway I think I found the underlying issue and plan to release an update with the fix in the next few days. :)

Quote:

Originally Posted by petur (Post 1426648)
Code:

TypeError: update() takes exactly 1 argument (2 given) ('GTK GUI: size allocation', <GdkRectangle at 0x60ca18>)
but that seems to be before the sqlite tiles init.

This has been there for ages and should be harmless. I need to finally track it down one day so it does not pollute the logs.

nokiabot 2014-06-04 03:05

Re: [Announce] modRana: a flexible GPS navigation system
 
When vector maps like navit coming ? 3d view Buildings :D

marmistrz 2014-06-04 15:24

Re: [Announce] modRana: a flexible GPS navigation system
 
Quote:

Originally Posted by nokiabot (Post 1428127)
When vector maps like navit coming ? 3d view Buildings :D

I ported the library for vector maps. All you can do is to pester MartinK to utilize it :)

MartinK 2014-06-04 17:57

Re: [Announce] modRana: a flexible GPS navigation system
 
Quote:

Originally Posted by marmistrz (Post 1428201)
I ported the library for vector maps. All you can do is to pester MartinK to utilize it :)

I know I know, I just have to finally get to properly trying it out. :)

nokiabot 2014-06-05 03:06

Re: [Announce] modRana: a flexible GPS navigation system
 
Quote:

Originally Posted by MartinK (Post 1428217)
I know I know, I just have to finally get to properly trying it out. :)

its the best time as microsoft unplugged the maps...

marmistrz 2014-06-05 19:18

Re: [Announce] modRana: a flexible GPS navigation system
 
Quote:

Originally Posted by MartinK (Post 1428217)
I know I know, I just have to finally get to properly trying it out. :)

Once you've set up the base maybe I'll find some spare time for a commit or two. I don't promise anything, but you might let me know someday ;)

MartinK 2014-06-08 13:42

Re: [Announce] modRana: a flexible GPS navigation system
 
modRana 0.47.1 has been released ! :)

Both Maemo & Sailfish OS packages are available from the usual places, so update while they are hot! :)

The main topic of this update are tile handling fixes and improvements, see the changelog for more details.

Changelog:
Code:

* Sun Jun 08 2014 Martin Kolman - 0.47.1
- the QtQuick GUI now downloads new tiles asynchronously
 - much faster asynchronous tile loading !
 - no more synchronous tile download stalls !
 - no more GUI freezes when starting modRana without connectivity !
 - tiles currently on the screen have a diwnload priority (LiFo download queue)
 - if the queue is full, old download requests that are probably no longer visible are dropped
 - proper tile download error hanling & retry support
 - proper tile download feedback
 - tile handling debug support
- fix tiles stuck on "Downloading"/"Loading" in GTK GUI
- fix weird tile loading artifacts in overlay mode in the GTK GUI
- remove all Cloudmade layers as they were discontinue in the first half of May
- change Sailfish OS profile folder name to harbour-modrana and migrate all data to the new folders
 - this is fully automatic and no user interaction is needed
 - this makes modRana Harbour compliant in regards to profile paths


taixzo 2014-06-08 16:27

Re: [Announce] modRana: a flexible GPS navigation system
 
Any routing on Harmattan yet? :p

petur 2014-06-08 19:01

Re: [Announce] modRana: a flexible GPS navigation system
 
The stuck downloading tiles seem to be gone indeed, alas replaced by failed downloads. This was observed while sitting down, n900 with good internet connection, dragging the map around a bit.

Not sure what's going on here... and it would be great to have a way to make it try the downloads again.

chill 2014-06-10 03:39

Re: [Announce] modRana: a flexible GPS navigation system
 
Modrana has caused N900 shutdowns for me, and this recent version caused the phone to stop responding (screen blank, device not responding to any input). I'll take the battery out now, I guess. I can hear a ringing tone on the line when I call it, though...(but the device doesn't ring itself)

UPDATE: had to remove the back cover, the device restarted itself then. There appears to be no damage to the SD card (my swap is there).

petur 2014-06-10 09:58

Re: [Announce] modRana: a flexible GPS navigation system
 
Quote:

Originally Posted by petur (Post 1428743)
The stuck downloading tiles seem to be gone indeed, alas replaced by failed downloads. This was observed while sitting down, n900 with good internet connection, dragging the map around a bit.

Not sure what's going on here... and it would be great to have a way to make it try the downloads again.

On playing a bit more with this, it seems to happen a lot on 2G connections and far less on 3G.

So I'm guessing the download times out too fast and/or doesn't do a retry?

I wonder what changed in this department, as I could (in the past) drive around using a 2G connection and the downloads worked - sometimes a tile took a bit longer, maybe those are the tiles that now fail.

I also tried to move the map enough to make the failed tile drop from the drawing cache, but that trick also fails.

If there's anything to try just let me know.

sixwheeledbeast 2014-06-10 13:46

Re: [Announce] modRana: a flexible GPS navigation system
 
Quote:

Originally Posted by chill (Post 1428959)
Modrana has caused N900 shutdowns for me, and this recent version caused the phone to stop responding (screen blank, device not responding to any input). I'll take the battery out now, I guess. I can hear a ringing tone on the line when I call it, though...(but the device doesn't ring itself)

I haven't had any random reboots.
I have experienced the not responding issue on one device yesterday. Holding the power key for >3 seconds switches the device off in this situation.

Kossuth 2014-06-10 17:49

Re: [Announce] modRana: a flexible GPS navigation system
 
I can make Modrana deliberately crash, by draggin long way to undownloaded area and staying there for a while. Below is the pastee from terminal:

Code:

nan, nan, nan, nan, nan, nan)
position,bearing,speed (in descending order):
(62.905630180612206, 27.67623751424253)
None
None
#############################
storeTiles: sqlite commit OK
sqlite tiles: initializing db for layer: Google Maps
storeTiles: sqlite commit OK
modules/gui_modules/gui_gtk.py:243: Warning: g_object_unref: assertion `G_IS_OBJECT (object)' failed
  gtk.main()
python: cairo-surface.c:429: cairo_surface_destroy: Assertion `((*&(&surface->ref_count)->ref_count) > 0)' failed.
Aborted

and second time

Code:

############################
storeTiles: sqlite commit OK
storeTiles: sqlite commit OK
## N900 GPS debugging info ##
fix tuple from the Location API:
(2, 16, nan, 0.0, 62.903130361810327, 27.689069202169776, 71890.0, nan, 32767.5, nan, nan, nan, nan, nan, nan)
position,bearing,speed (in descending order):
(62.903130361810327, 27.689069202169776)
None
None
#############################
python: cairo-surface.c:429: cairo_surface_destroy: Assertion `((*&(&surface->ref_count)->ref_count) > 0)' failed.
Aborted

These came from scrolling like insane, doubt that they would appear when in normal use like driving.

chill 2014-06-10 21:00

Re: [Announce] modRana: a flexible GPS navigation system
 
Quote:

Originally Posted by sixwheeledbeast (Post 1429025)
I haven't had any random reboots.
I have experienced the not responding issue on one device yesterday. Holding the power key for >3 seconds switches the device off in this situation.

(mine didn't reboot before, i.e. with the previous versions, it just shut down)

I tried holding the power button down, it didn't work.

I removed the back cover and it rebooted. I guess it has to do with the swap being on the SD card? (being a Maemo swapmaster, you will surely know).

Xagoln 2014-06-17 03:37

Re: [Announce] modRana: a flexible GPS navigation system
 
I've had a few crashes with Modrana also, particularly if I use it for a bit then lock my phone without closing it. I assumed it was an out of memory/swap thrashing type situation.

sixwheeledbeast 2014-06-19 16:50

Re: [Announce] modRana: a flexible GPS navigation system
 
I have had a few issues with modRana recently. However, this maybe because I have started trying it out a bit more.
@MartinK I have been waiting for you to appear on IRC to ask about them, but I will provide I list here so I don't forget in the meantime.

* Firstly I have experienced the above black screen issue while downloading tiles with the screen locked overnight, if you ssh to device it's the [sgx_misr] at 98% CPU bug; only a reboot will fix this AFAIK.

*Secondly logging tracks seems to fail after 3-4 minutes.

*Lastly tile downloads is still a PITA, I have downloaded 160km "around here", however, when I am offline sections of tiles are missing within the area I downloaded. Re-downloading says that all are found locally.

If I can be any more help debugging this let me know.

MartinK 2014-07-01 20:32

Re: [Announce] modRana: a flexible GPS navigation system
 
Quote:

Originally Posted by petur (Post 1428998)
On playing a bit more with this, it seems to happen a lot on 2G connections and far less on 3G.

So I'm guessing the download times out too fast and/or doesn't do a retry?

I've had some reports about modRana not retrying failed downloads. There are basically two download error types - fatal and temporary. The fatal types usually happen if the tile server can be reached bud outright refuses to cooperate (returns 404, 503 a something that is not a tile - usually an error page). The temporary errors usually happen if the server or network connectivity becomes temporarily unavailable. These errors should be recoverable and modRana should retry those tiles after a while. But I haven't looked at the code responsible in quite while, will have to check if it still works. :)

Quote:

Originally Posted by petur (Post 1428998)
I wonder what changed in this department, as I could (in the past) drive around using a 2G connection and the downloads worked - sometimes a tile took a bit longer, maybe those are the tiles that now fail.

I also tried to move the map enough to make the failed tile drop from the drawing cache, but that trick also fails.

If there's anything to try just let me know.

That's weird - once the tile is flushed from the cache its state is pretty much reset and the whole down-/load procedure should run with a "clean" slate. What if you quit modRana and then start it again ? Does it download those tiles or still has issues with them ?

You can also enable Print tile cache status to terminal and Tile loading status to terminal in Options->Debug and see if the output sheds some light on the issue. Also for some download errors it reports the tile URL it tried to reach so you can try if you can download those URLs by wget, browser, etc.

MartinK 2014-07-01 20:55

Re: [Announce] modRana: a flexible GPS navigation system
 
Quote:

Originally Posted by Kossuth (Post 1429047)
I can make Modrana deliberately crash, by draggin long way to undownloaded area and staying there for a while. Below is the pastee from terminal:

Code:

nan, nan, nan, nan, nan, nan)
position,bearing,speed (in descending order):
(62.905630180612206, 27.67623751424253)
None
None
#############################
storeTiles: sqlite commit OK
sqlite tiles: initializing db for layer: Google Maps
storeTiles: sqlite commit OK
modules/gui_modules/gui_gtk.py:243: Warning: g_object_unref: assertion `G_IS_OBJECT (object)' failed
  gtk.main()
python: cairo-surface.c:429: cairo_surface_destroy: Assertion `((*&(&surface->ref_count)->ref_count) > 0)' failed.
Aborted

and second time

Code:

############################
storeTiles: sqlite commit OK
storeTiles: sqlite commit OK
## N900 GPS debugging info ##
fix tuple from the Location API:
(2, 16, nan, 0.0, 62.903130361810327, 27.689069202169776, 71890.0, nan, 32767.5, nan, nan, nan, nan, nan, nan)
position,bearing,speed (in descending order):
(62.903130361810327, 27.689069202169776)
None
None
#############################
python: cairo-surface.c:429: cairo_surface_destroy: Assertion `((*&(&surface->ref_count)->ref_count) > 0)' failed.
Aborted

These came from scrolling like insane, doubt that they would appear when in normal use like driving.

Thanks for the logs - that one Cairo error looks particularly ugly - might be some sort of race condition when working with Cairo image surfaces (will have to check if I can reproduce it) or some general Cairo/GTK bug. Good thing it does not happen often.

Quote:

Originally Posted by Xagoln (Post 1429858)
I've had a few crashes with Modrana also, particularly if I use it for a bit then lock my phone without closing it. I assumed it was an out of memory/swap thrashing type situation.

That's quite probably - or resource starvation might be uncovering some bugs in the underlying frameworks - I doubt there are many other Maemo applications as taxing as modRana these days. :)

Anyway unless some concrete root cause in modRana is found that causes these freezes/crashes (which is IMHO quite unlikely) I'm thinking about a possible workaround - exporting settings for tweaking the resource intensive things that modRana does, such as the amount of tile download threads, tile cache size, tile download request queue size, etc. People will then be able to tweak these values to possibly alleviate these issue or maybe even pinpointing what might be causing them.

MartinK 2014-07-01 21:12

Re: [Announce] modRana: a flexible GPS navigation system
 
Quote:

Originally Posted by sixwheeledbeast (Post 1430206)
I have had a few issues with modRana recently. However, this maybe because I have started trying it out a bit more.
@MartinK I have been waiting for you to appear on IRC to ask about them, but I will provide I list here so I don't forget in the meantime.

* Firstly I have experienced the above black screen issue while downloading tiles with the screen locked overnight, if you ssh to device it's the [sgx_misr] at 98% CPU bug; only a reboot will fix this AFAIK.

Yeah, unfortunately nothing much modRana can do about this other than to see if the "tweaking the knobs" proposal from the post above can influence it.

Quote:

Originally Posted by sixwheeledbeast (Post 1430206)
*Secondly logging tracks seems to fail after 3-4 minutes.

I will try to reproduce it & I have opened a tracking bug for it.

Quote:

Originally Posted by sixwheeledbeast (Post 1430206)
*Lastly tile downloads is still a PITA, I have downloaded 160km "around here", however, when I am offline sections of tiles are missing within the area I downloaded. Re-downloading says that all are found locally.

If I can be any more help debugging this let me know.

One possible cause could be old "fake" tiles. ModRana didn't check if the thing it downloaded actually is an image and it was possible to download quite a lot of "tiles" that were actually HTML error pages from the tileserver. Such "tiles" were of course downloaded successfully but would not be loadable once needed.
ModRana now check what id downloads and discards non-image tile data, but there could be still some "tiles" from before the checking was present.

So possible things to try:
  • in the batch download "edit" menu set "Redownload" to "ON" or "update" - this should make batch download download the tiles even if it appears to be locally available
  • re-/move the corresponding tile folder and see if it helps for the given region
  • recursively run find & file on the problematic tiles (provided you are storing tiles as files) and check their mime type, if all really are images
  • enable the tile debugging options mentioned two posts above and check the output for any clues

petur 2014-07-02 11:02

Re: [Announce] modRana: a flexible GPS navigation system
 
For some reason the issue is much harder to reproduce right now :eek:

My first try did reproduce it but scroll-back buffer wasn't long enough - MEH!

Second try, redirected to logfile, couldn't reproduce but modRana just crashed. This is the output:

Code:

~ $ modrana > modrana.log
TypeError: update() takes exactly 1 argument (2 given)
modules/gui_modules/gui_gtk.py:243: Warning: g_object_unref: assertion `G_IS_OBJECT (object)' failed
  gtk.main()
python: cairo-surface.c:429: cairo_surface_destroy: Assertion `((*&(&surface->ref_count)->ref_count) > 0)' failed.
Aborted
~ $



All times are GMT. The time now is 02:55.

vBulletin® Version 3.8.8