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)

pichlo 2015-01-03 08:26

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

Originally Posted by nokiabot (Post 1454939)
What about renaming modrana stable to LTS ;

That's of course up to Martin to decide but as I would see it,
  1. What would be the point?
  2. We already have extras (stable) and CSSU-Stable, so people are used to it.
  3. LTS means Long Term Support, implying some sort of contract. Stable implies done, with no or minimal changes.
  4. LTS implies branching for maintaing it separately from the main development. I would not expect Martin having that much manpower.

ggabriel 2015-01-03 12:29

Re: [Announce] modRana: a flexible GPS navigation system
 
Admittedly, I haven't been able to make modrana download tiles in Sailfish for a few versions now. Finally, I got to see the logs :) Here they are:
Code:

2015-01-03 12:26:01,386 ERROR mod.mapTiles: exception in tile download manager thread
Traceback (most recent call last):
  File "modules/mod_mapTiles/mod_mapTiles.py", line 349, in _tileLoadingManager
    tileData = self._storeTiles.getTileData(lzxy)
  File "modules/mod_storeTiles.py", line 344, in getTileData
    result = self.getTileFromDb(lookupConn, dbFolderPath, lzxy)
  File "modules/mod_storeTiles.py", line 391, in getTileFromDb
    lookupCursor = lookupConn.cursor()
sqlite3.ProgrammingError: SQLite objects created in a thread can only be used in that same thread.The object was created in thread id 1366291440 and this is thread id 1359639536

Of course this could be fixed by switching sqlite off, but really don't want to do that...

MartinK 2015-01-03 13:08

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

Originally Posted by nokiabot (Post 1454939)
What about renaming modrana stable to LTS ;

What's modRana stable ? ;) Do you mean the older modRana version that is in Extras ?

Quote:

Originally Posted by ggabriel (Post 1454966)
Admittedly, I haven't been able to make modrana download tiles in Sailfish for a few versions now. Finally, I got to see the logs :) Here they are:
Code:

2015-01-03 12:26:01,386 ERROR mod.mapTiles: exception in tile download manager thread
Traceback (most recent call last):
  File "modules/mod_mapTiles/mod_mapTiles.py", line 349, in _tileLoadingManager
    tileData = self._storeTiles.getTileData(lzxy)
  File "modules/mod_storeTiles.py", line 344, in getTileData
    result = self.getTileFromDb(lookupConn, dbFolderPath, lzxy)
  File "modules/mod_storeTiles.py", line 391, in getTileFromDb
    lookupCursor = lookupConn.cursor()
sqlite3.ProgrammingError: SQLite objects created in a thread can only be used in that same thread.The object was created in thread id 1366291440 and this is thread id 1359639536

Of course this could be fixed by switching sqlite off, but really don't want to do that...

Thanks, I'll take a look! Hopefully it is just some minor locking/threading related mess triggered by the way how Sailfish OS fetches tiles. :)

BTW, sqlite should not be that needed on Sailfish OS as btrfs even with all its issues and general lack of stability is a modern filesystem and unlike FAT32 should generally handle many small files in an efficient manner.

On the other hand sqlite tile storage is indeed much nicer for estimating storage space consumed by tiles (no need to go over thousands of file to check it) and avoids stuff like tiles possibly ending in the gallery (thankfully tracker seems to avoid hidden/starting with "." folders - so just don't move your tiles into a folder without "." in the path :D ).

ggabriel 2015-01-03 13:12

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

Originally Posted by MartinK (Post 1454974)
On the other hand sqlite tile storage is indeed much nicer for estimating storage space consumed by tiles (no need to go over thousands of file to check it) and avoids stuff like tiles possibly ending in the gallery (thankfully tracker seems to avoid hidden/starting with "." folders - so just don't move your tiles into a folder without "." in the path :D ).

Yeah, but isn't btrfs still inode based, hence each file will use an inode? Also, it's much easier to copy across the sqlite db(s) between laptop and phone than running an rsync of multiple files.
I'll wait for you to have a look, it isn't like I'm in a hurry or anything :-)

MartinK 2015-01-03 13:24

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

Originally Posted by ggabriel (Post 1454976)
Yeah, but isn't btrfs still inode based, hence each file will use an inode?

They note "Space-efficient packing of small files" as one of their main current features, so hopefully not. :)

Quote:

Originally Posted by ggabriel (Post 1454976)
Also, it's much easier to copy across the sqlite db(s) between laptop and phone than running an rsync of multiple files.

Yep, that's for sure! :)

Quote:

Originally Posted by ggabriel (Post 1454976)
I'll wait for you to have a look, it isn't like I'm in a hurry or anything :-)

:D

ggabriel 2015-01-03 13:42

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

Originally Posted by MartinK (Post 1454980)
They note "Space-efficient packing of small files" as one of their main current features, so hopefully not. :)

I suspected you'd respond as much, but there are a few bugs with the fs in general, plus the fact that btrfs's implementation in Sailfish is quite old, so I'll play it safe for now.

nokiabot 2015-01-03 13:45

Re: [Announce] modRana: a flexible GPS navigation system
 
@martink pichlo pretty much nailed it theres no point renaming i called lts as its really long term support ;
Btw any progress on qt5 and 3d on n900 )

skanky 2015-01-05 10:28

Re: [Announce] modRana: a flexible GPS navigation system
 
Finally got a Jolla and am moving to that. I've installed modrana on it and am having the sqlite tile issues as mentioned above. I'm also having an issue downloading the OS tiles from VE. A quick look around and I see that (a) not all the features are implemented in Jolla? and (b) I should be able to get a log of the download failure. I'll get that sorted, but thought I'd quickly check whether it's expected to fail on Jolla at the moment?

Thank you again for this great app, and for porting it to the Jolla. It's much appreciated.

skanky 2015-01-05 13:49

Re: [Announce] modRana: a flexible GPS navigation system
 
Okay, re the VE OS request, looking at the log there's a lot of entries like this:

Code:


2015-01-05 13:37:22,174 WARNING mod.mapTiles: tile data returned by remote tileserver was not an ima
ge
layer:vaer_ukos z:11 x:1016 y:662
tile url: http://tiles.virtualearth.net/tiles/r00000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002
222223011?g=41&productSet=mmOS
NOTE: this probably means that the tileserver returned an
error page in place of the tile, because it doesn't like you

The number of zeroes looks like it varies a little, but it's generally of that order for each request.

Does this help?

nodevel 2015-01-07 14:22

Re: [Announce] modRana: a flexible GPS navigation system
 
Having picked the top SailfishOS apps, I tried to think why the most useful app on my N900 is launched only once a while after an update on my Jolla.

It's not just the lack of routing (even though that's major). I think the reasons are:
  • unreliability - on the N900, it was very reliable. I even used it as an online map source during my travels through the US as it hardly ever (yes, sometimes, but not very often) missed a download. Now I launched Modrana on Jolla, showed a POI on the map and 15 minutes later, the whole map is still covered with grey tiles with "mapnik: downloading" and "gtraffic_overlay: downloading". Sure, there might be problem in one layer, but both?
  • The most used feature other than routing was searching for POIs (mostly businesses). Is the provider on SailfishOS the same as in the Fremantle version? Because in 90% of cases, I chose an item from the menu [Food/Groceries] or so. Is it possible to add these categories on Sailfish as well? Keyword search isn't that useful to me.
  • The UI - when I'm driving, I prefer not to see any state change animations. Even though I have animations on SailfishOS disabled, the standard system animations (page changes) still occur - could this be overriden?
    And second, the back button - while driving, I don't want to swipe and the dot in the top left corner is too tiny to press without looking. Could you add the 'Back' menu option as in the Fremantle version?

Still, thanks for working on my favorite app from Fremantle!

http://my-maemo.com/grafika/modrana2.jpg


All times are GMT. The time now is 22:10.

vBulletin® Version 3.8.8