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)

marmistrz 2014-09-04 17:30

Re: [Announce] modRana: a flexible GPS navigation system
 
Installing python2.7 via apt

Code:

Unpacking python2.7-minimal (from .../python2.7-minimal_2.7.3~rc2-2.1-maemo9_armel.deb) ...
new installation of python2.7-minimal; /usr/lib/python2.7/site-packages is a directory
which is expected a symlink to /usr/local/lib/python2.7/dist-packages.
please find the package shipping files in /usr/lib/python2.7/site-packages and
file a bug report to ship these in /usr/lib/python2.7/dist-packages instead
aborting installation of python2.7-minimal
dpkg: error processing /var/cache/apt/archives/python2.7-minimal_2.7.3~rc2-2.1-maemo9_armel.deb (--unpack):
 subprocess pre-installation script returned error exit status 1

the offending file is a modrana egg.

Btw. MartinK: is everything ok with the mapnik package after pushing ttf-unifont?

nokiabot 2014-09-05 09:11

Re: [Announce] modRana: a flexible GPS navigation system
 
1 Attachment(s)
modrane started misbehaving on road like frequent crashes and crazy oreintations could only take a screenie of modrana qml

nokiabot 2014-09-05 09:17

Re: [Announce] modRana: a flexible GPS navigation system
 
only thing i miss in modrana is 3d view or the kind of view that navit or sygic provides and its very convenient :) one more question is why modrana qml feels a bit deprived ? i actually like the qml one its nice

marmistrz 2014-09-05 14:37

Re: [Announce] modRana: a flexible GPS navigation system
 
nokiabot: try disabling orientation lock and see what happens.

MartinK: a small note regarding search:
Modrana on N9: searches perfectly
Modrana gtk on N900: doesn't show the desired result
Modrana qml on N900: fails to search.
See the 20140822 logs: http://marmistrz.net63.net/public/modrana_logs/

I noticed hangs during logging a track, see the 20140817 logs (the same link)

nokiabot 2014-09-05 17:56

Re: [Announce] modRana: a flexible GPS navigation system
 
@marmistrz dosent matter if orentation lock is on or of i found everything fine when modrana qml is fullscreen and it goes haywire when not in fullscreen:)

is there any way to make the mapscreen 3d like for now and what happend to the vector maps effort on modrana:)

MartinK 2014-09-06 15:20

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

Originally Posted by biketool (Post 1436596)
I can talk to the guy doing the server side, how hard would http://www.icecondor.com/ support be to add?
would be cool to have android compatible realtime location share.

I can add it to the TODO pile, but no guaranties when I get to it. :) Taking a look at the API it seems to be using Websockets - any idea how to use Websockets from the Python 2.5 on the N900 (or from Python generally)?

Quote:

Originally Posted by misiak (Post 1436599)
Oh, right, I totally forgot about that :O Does modRana even have GUI for that? I think that Mappero (if I remember correctly) had a GUI to choose between alternative routes, but I've used it so long ago last time that I might be wrong... That would be a superb feature either way.

Quote:

Originally Posted by Estel (Post 1436621)
Currently, no. It would be nice to have, indeed, unless it's impossible via google routing API.

That's basically the issue - IIRC I actually either get multiple routes or can tell the API to return multiple routes. But there is just no UI for selecting the between multiple results. :) And indeed it should be added as I think many routing services and even offline routing tools are able to return multiple routes (fastest, shortest, cheapest, etc.).

Quote:

Originally Posted by Estel (Post 1436621)
I sincerely hope that MartinK will find some time to chase those annoying cairo-related crash bugs, too - I tried to do so, a little, but ModRana is waaaay above my level.

/Estel

Not really yet, but I have some more data about the behavior from sixwheeledbeast - looks like that i his case during track logging making the log & save intervals longer somehow avoids those crashes/freezes, which is strange.

Quote:

Originally Posted by marmistrz (Post 1438232)
Installing python2.7 via apt

Code:

Unpacking python2.7-minimal (from .../python2.7-minimal_2.7.3~rc2-2.1-maemo9_armel.deb) ...
new installation of python2.7-minimal; /usr/lib/python2.7/site-packages is a directory
which is expected a symlink to /usr/local/lib/python2.7/dist-packages.
please find the package shipping files in /usr/lib/python2.7/site-packages and
file a bug report to ship these in /usr/lib/python2.7/dist-packages instead
aborting installation of python2.7-minimal
dpkg: error processing /var/cache/apt/archives/python2.7-minimal_2.7.3~rc2-2.1-maemo9_armel.deb (--unpack):
 subprocess pre-installation script returned error exit status 1

the offending file is a modrana egg.

The egg could be some modRana packaging artifact - it is definitely not needed for anything and I'll see if I can get rid of it somehow.

Quote:

Originally Posted by marmistrz (Post 1438232)
Btw. MartinK: is everything ok with the mapnik package after pushing ttf-unifont?

I was a bit offline on holidays (BTW, modRana track logging with default settings works just fine in glider aircraft, just the height visualization is a bit wonky for some reason), but I should be able to take a look at it in the next few days.

Quote:

Originally Posted by nokiabot (Post 1438284)
only thing i miss in modrana is 3d view or the kind of view that navit or sygic provides and its very convenient :)

Well, this isn't easy to do. :) It is basically not really doable in the current GTK/Cairo GUI, it is a bit more doable it QtQuick GUI. Will see what can be done. :)

Quote:

Originally Posted by nokiabot (Post 1438284)
one more question is why modrana qml feels a bit deprived ? i actually like the qml one its nice

The current QML GUI on the N900 is based on QtQuick 1.0 (Qt 4) and has been basically kinda depreciated in favor of the QtQuick 2.0 (Qt 5) GUI that is getting quite a lot of attention at the moment. So it is working, but not getting new features. But we now have Qt 5 on the N900, so it should be possible to just run the new feature-full QtQuick 2.0 on the N900 soon. The only thing that is missing is PyOtherSide - once that is available - preferably as a package from Extras-Devel - (wink-wink nudge-nuge ;)) the QtQuick 2.0 GUI should run just fine. :)

MartinK 2014-09-06 15:23

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

Originally Posted by marmistrz (Post 1438332)
nokiabot: try disabling orientation lock and see what happens.

MartinK: a small note regarding search:
Modrana on N9: searches perfectly
Modrana gtk on N900: doesn't show the desired result
Modrana qml on N900: fails to search.
See the 20140822 logs: http://marmistrz.net63.net/public/modrana_logs/

Thanks, will check them out! BTW, which kind of search you have issues with (address, Wikipedia, local search, routing, ...) ?

Quote:

Originally Posted by nokiabot (Post 1438366)
what happend to the vector maps effort on modrana:)

Still planed, but still a lot of work remains to get it done - it is quite complicated to get it done in a robust and easily usable way. Help & patches welcome! :)

marmistrz 2014-09-06 16:06

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

Originally Posted by MartinK (Post 1438431)
Thanks, will check them out! BTW, which kind of search you have issues with (address, Wikipedia, local search, routing, ...) ?

IIRC address online. And in qml the only option possble.

biketool 2014-09-06 17:41

Re: [Announce] modRana: a flexible GPS navigation system
 
marmistrz, I was just looking at the location sharing provided by Icecondor, the android app is maybe two dozen lines, if I had the foggiest idea how to write a patch I would and send it to you.
http://github.com/icecondor
http://icecondor.com/dashboard/developers
apparently location sharing was supposed to be part of of the N900 OVI Maps that was cut before release http://vimeo.com/14631858

MartinK 2014-09-17 20:06

Re: [Announce] modRana: a flexible GPS navigation system
 
So good news about the Mapnik packages - I have been able to install them successfully!

(If anyone else is interested in trying them out, I made a little guide how to install them. :) )

Next up - testing if the installed Mapnik actually works. :)

marmistrz 2014-09-18 14:35

Re: [Announce] modRana: a flexible GPS navigation system
 
MartinK: mapnik can be as well installed from an apt repo. Details about the repo here: http://marmistrz.net63.net/

klinglerware 2014-09-18 15:41

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

Originally Posted by biketool (Post 1438444)

apparently location sharing was supposed to be part of of the N900 OVI Maps that was cut before release

Thanks for sharing that video. Talk about an alternate reality...

Swordfish II 2014-10-02 21:04

Re: [Announce] modRana: a flexible GPS navigation system
 
Wow, just found this last night.

I went through the gambit of map apps Navit, Monav, OVI, etc and finally settled on Geeps...but wasn't entirely happy with it. Found this in a must have thread and WOW...it has everything I want and more!

MartinK 2014-10-05 23:11

Re: [Announce] modRana: a flexible GPS navigation system
 
modRana 0.49.2 has been released! :)
This is just a short release post, a post with a more detailed description of the new features will follow tomorrow. :)

The Maemo package is already built and in Extras-Devel, the Sailfish OS package is so far only in the cutting edge OBS repo and not yet in OpenRepos.

Changelog:
Code:

* Sun Oct 05 2014 Martin Kolman - 0.49.2
- remove a file breaking build
* Sun Oct 05 2014 Martin Kolman - 0.49.1
- use the Python logging module for all logging in modRana
 - so we now have nice logging levels, module indicators and messages from threads look nice :)
 - also the log file has timestamps and does not miss any early log messages
 - unlike before, log messages are both in log file _and_ in console
 - and the Qt 5 GUI even forwards all log messages to the Python log :)
 - the log file can be enabled and disabled from the Qt 5 GUI
 - there is also full path to the log displayed in the Qt 5 GUI
- it is now possible to use the volume rocker for map zoom on Sailfish OS
- the Options->Map screen in QT 5 GUI now shows path to the map data folder and free space in the folder
- it is now possible to tell modRana to always start in fullscreen
- it is now possible to tell modRana to always show a quit button in the main menu in GTK GUI
- tunables have been exported for various modRana mechanisms in the GTK GUI
 - the main aim is to enable users to debug or workaround crashes that have been reported on the N900
 - auto dl thread count, batch dl thread count, auto dl queue size, in memory tile cache size, Sqlite tile database commit period
 - use with care and report you findings! :)
- the Sqlite tile database now logs number of committed tiles
- various code cleanup and refactoring


peterleinchen 2014-10-06 06:39

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

Originally Posted by MartinK (Post 1441969)
modRana 0.49.2 has been released! :)
...
The Maemo package is already built and in Extras-Devel, the Sailfish OS package is so far only in the cutting edge OBS repo and not yet in OpenRepos.
...

And what about Harmattan? :rolleyes:

MartinK 2014-10-06 20:46

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

Originally Posted by peterleinchen (Post 1441982)
And what about Harmattan? :rolleyes:

There is a tricky issue with Harmattan - it is left in the middle. It does not have the old stuff Fremantle on the N900 has (GTK2, at least by default) and it does not have the new stuff (Qt 5, Python 3 and PyOtherSide) Sailfish OS has. Most other platform have at least one of them (BB10 has Qt5 & co) or both (Desktop Linux distros have both) so either the GTK or the Qt 5 modRana GUI will work on them.

It has been quite some time ago since I last did any meaningful work on the Qt 4\QtQuick 1.0 GUI as the modRana backend & GTK/Qt 5 GUIs already consume all my modRana development time, and even then the Qt 5 GUI is still not at feature parity with the GTK GUI. As the Qt 4 GUI has a different and incompatible architecture (QtQuick 1.0, MeeGo Qt Components & PySide vs QtQuick 2.0, QtQuick Controls/Silica & PyOtherSide) adding features effectively means a third implementation pass for the benefit for a single platform - it is a shame as it is leaving such a nice and elegant platform in the cold...

What could be done to get up-to-date modRana on Harmattan ?
But let's be constructive - I can see a few ways of improving this unfortunate situation: :)
  • porting Qt 5.1+, Python 3 and PyOtherSide to Harmattan so that the Qt 5 GUI can run
  • using my old GTK2/PyGTK port and running the GTK GUI on Harmattan (the needed packages could be hosted in the modRana repository on OpenRepos)
  • someone can take over maintainership of the Qt 4 GUI a improve it (aka the "patches welcome!" option ;) )

Wikiwide 2014-10-06 21:25

Re: [Announce] modRana: a flexible GPS navigation system
 
Quick line...
What about Mer aka Nemo Mobile? It should have Qt5, I think.
Best wishes.
~~~~~~~~~~~~~~~~~
Per aspera ad astra...

MartinK 2014-10-06 21:42

Re: [Announce] modRana: a flexible GPS navigation system
 
What's new in modRana 0.49.2
New features described in nice, friendly letters.

Proper logging infrastructure
While really interesting for normal modRana users, if you ever needed to debug a modRana issue or just are interested what is modRana actually doing behind the scenes, you might want to make note. :)

Up till now, modRana had no logging system - all messages went directly to stdout through a simple print call. There have been many issues with this system (messages from threads mixing up, no log on console is log file was enabled). This now a thing of the past and modRana now uses the marvelous Python logging module - even for logging messages in the QtQuick 2.0 based Qt 5 GUI (possible thanks to the powerful asynchronous architecture of the PyOtherSide project).
  • log levels - log messages now have levels that make it easy to see how important a given message is (INFO, DEBUG, ERROR, CRITICAL, etc.)
  • no messages are lost from the log file - the log file (if enabled) has even the earliest log messages
  • even if log file is enabled console still shows log output (this was not possible with the old "stdout" log)
    • If you have any issues with modRana and you want to help me with debugging them, just leave the log files to be always enabled, there should be no noticable performance penalty and you can send me the log files once you hit an issue.
  • the log file has timestamps for all messages, which the console omits them for easier readability
  • messages from threads no longer mix-up
  • all messages have nice prefixes that make it possible to easily see their origin

You can enable logging Options->Debug->Logging in the GTK GUI and in Options->Debug in the Qt 5 GUI.

As for how the new log output now looks like, this is a log file from just starting and shutting down modRana:

Code:

2014-10-06 23:24:30,666 INFO : == modRana Starting ==
2014-10-06 23:24:30,667 INFO :  testing version1
2014-10-06 23:24:30,667 INFO :  Python 2.7.5
2014-10-06 23:24:30,668 INFO : * device: A modRana device-specific module for PC (0.99 ms)
2014-10-06 23:24:30,668 INFO :loading options
2014-10-06 23:24:30,669 INFO :log file enabled: /home/user/.modrana/debug_logs/modrana_20141006#21-24-30.log
2014-10-06 23:24:30,760 DEBUG mod.gui.gtk:size allocation: gtk.gdk.Rectangle(0, 0, 800, 480)
2014-10-06 23:24:30,760 ERROR mod.gui.gtk:error in screen invalidating function
Traceback (most recent call last):
  File "modules/gui_modules/gui_gtk.py", line 454, in forceRedraw
    self.window.invalidate_rect((0, 0, self.rect.width, self.rect.height), False)
AttributeError: 'NoneType' object has no attribute 'invalidate_rect'
2014-10-06 23:24:30,763 INFO : * gui: A GTK GUI module (68.30 ms)
2014-10-06 23:24:30,764 INFO :importing modules:
2014-10-06 23:24:30,805 INFO : * turnByTurn: A turn by turn navigation module. (40.41 ms)
2014-10-06 23:24:30,805 INFO : * textEntry: A module for handling text entry. (0.15 ms)
2014-10-06 23:24:30,805 INFO : * interfaceFeedback: A sample pyroute module (0.09 ms)
2014-10-06 23:24:30,806 INFO : * updateTiles: Update stored map tiles. (0.09 ms)
2014-10-06 23:24:30,807 INFO : * theme: ModRana theming module (1.06 ms)
2014-10-06 23:24:30,807 INFO : * clickHandler: handle mouse clicks (0.26 ms)
2014-10-06 23:24:30,814 INFO : * mapLayers: Map layer handling (6.74 ms)
2014-10-06 23:24:30,815 INFO mod.location:using GPSD
2014-10-06 23:24:30,815 INFO mod.location.gpsd:location: gpsd not used, so there is no debug output to enable
2014-10-06 23:24:30,815 INFO : * location: Supplies position info from a position source (0.89 ms)
2014-10-06 23:24:30,815 INFO : * showPOI: Show POI on the map and in the menu. (0.19 ms)
2014-10-06 23:24:30,816 INFO : * askMenu: A module providing yes/no question dialogs (0.12 ms)
2014-10-06 23:24:30,816 INFO : * info: A modRana information handling module (0.16 ms)
2014-10-06 23:24:30,816 INFO : * example: A sample modRana module (0.13 ms)
2014-10-06 23:24:30,817 INFO : * sketch: Sketching functionality (0.21 ms)
2014-10-06 23:24:30,817 INFO : * notification: This module provides notification support. (0.24 ms)
2014-10-06 23:24:30,817 INFO : * display: A platform independent display device control module (0.16 ms)
2014-10-06 23:24:30,817 INFO : * input: Handle input from keyboard, buttons, etc. (0.10 ms)
2014-10-06 23:24:30,829 INFO : * onlineServices: A module for talking to various online services (11.13 ms)
2014-10-06 23:24:30,831 INFO : * menu: Handle menus (1.84 ms)
2014-10-06 23:24:30,831 INFO : * animatedMapView: A sample pyroute module (0.36 ms)
2014-10-06 23:24:30,846 INFO : * tileserver: A modRana built-in tileserver (14.66 ms)
2014-10-06 23:24:30,847 INFO : * units: a unit handling module  (0.38 ms)
2014-10-06 23:24:30,848 INFO : * tracklog: Record tracklogs (0.43 ms)
2014-10-06 23:24:30,852 INFO mod.storeTiles:sqlite tile database commit interval: 150 s
2014-10-06 23:24:30,852 INFO : * storeTiles: Single-file-fs tile storage (3.86 ms)
2014-10-06 23:24:30,852 INFO : * search: Search for POI (0.42 ms)
2014-10-06 23:24:30,853 INFO : * showTracklogs: draws a GPX track on the map (0.31 ms)
2014-10-06 23:24:30,855 INFO : * mapData: Handle downloading of map data (2.29 ms)
2014-10-06 23:24:30,858 INFO : * routeProfile: Creates a route profile (an elevation chart) (2.79 ms)
2014-10-06 23:24:30,859 INFO mod.storePOI:POI database path:
2014-10-06 23:24:30,860 INFO mod.storePOI:/home/user/.modrana/poi/modrana_poi.db
2014-10-06 23:24:30,860 INFO mod.storePOI:connection to POI db established
2014-10-06 23:24:30,860 INFO : * storePOI: Store POI data. (1.40 ms)
2014-10-06 23:24:30,861 INFO : * stats: Handles statistics (0.28 ms)
2014-10-06 23:24:30,861 INFO : * markers: A module handling markers on the map. (0.58 ms)
2014-10-06 23:24:30,862 INFO : * voice: Handle text to speech. (0.24 ms)
2014-10-06 23:24:30,864 INFO : * route: Routes (1.60 ms)
2014-10-06 23:24:30,864 INFO : * projection: Projection code (lat/long to screen conversions) (0.62 ms)
2014-10-06 23:24:30,865 INFO : * keys: A keyboard input handling module (0.21 ms)
2014-10-06 23:24:30,865 INFO : * positionMarker: A sample pyroute module (0.20 ms)
2014-10-06 23:24:30,868 INFO : * icons: Draw icons (2.37 ms)
2014-10-06 23:24:30,868 INFO : * mapView: Controls the view being displayed on the map (0.33 ms)
2014-10-06 23:24:30,869 INFO : * showOSD: Draw OSD (On Screen Display). (0.32 ms)
2014-10-06 23:24:30,869 INFO : * tracklogManager: Module for managing tracklogs (0.28 ms)
2014-10-06 23:24:30,921 WARNING mod.mapTiles:import of image manipulation tools unsuccessful - tile image manipulation disabled
2014-10-06 23:24:30,921 INFO mod.mapTiles:in memory tile cache size: 150
2014-10-06 23:24:30,934 INFO mod.mapTiles:map folder path: /home/user/.modrana/maps
2014-10-06 23:24:30,934 INFO : * mapTiles: Display map images (48.41 ms)
2014-10-06 23:24:30,935 INFO : * messages: Handles messages (0.26 ms)
2014-10-06 23:24:30,940 INFO : * options: Handle options (4.89 ms)
2014-10-06 23:24:30,941 INFO : * loadTracklogs: A sample pyroute module (0.72 ms)
2014-10-06 23:24:30,942 INFO : * cron: A GTK timing and scheduling module for modRana (0.39 ms)
2014-10-06 23:24:30,942 INFO :Loaded all modules in 160.80 ms, initialising
2014-10-06 23:24:30,945 DEBUG mod.mapTiles:automatic tile download queue size: 100
2014-10-06 23:24:30,946 INFO core.threads:Running Thread: automaticTileDownloadWorker1 (139698080937728)
2014-10-06 23:24:30,946 INFO core.threads:Running Thread: automaticTileDownloadWorker2 (139698072545024)
2014-10-06 23:24:30,947 INFO core.threads:Running Thread: automaticTileDownloadWorker3 (139698064152320)
2014-10-06 23:24:30,952 INFO mod.icons:switched theme to: default
2014-10-06 23:24:30,955 INFO mod.options:reloading Monav data pack list
2014-10-06 23:24:30,955 INFO mod.location:starting GPSD 1 second timer
2014-10-06 23:24:30,956 INFO mod.location:enabling location
2014-10-06 23:24:30,957 WARNING mod.location.gpsd:GPS daemon refused initial connection
2014-10-06 23:24:30,957 INFO mod.location.gpsd:gpsd debugging output turned OFF
2014-10-06 23:24:30,957 INFO core.threads:Running Thread: modRanaGPSDConsumer (139697158350592)
2014-10-06 23:24:30,958 INFO mod.loadTracklogs:** making a list of available tracklogs
2014-10-06 23:24:30,958 INFO core.threads:Thread Done: modRanaGPSDConsumer (139697158350592)
2014-10-06 23:24:30,960 INFO mod.loadTracklogs:*  using this tracklog folder:
2014-10-06 23:24:30,960 INFO mod.loadTracklogs:* /home/user/.modrana/tracklogs
2014-10-06 23:24:30,960 INFO mod.loadTracklogs:*  there are 26 tracklogs available
2014-10-06 23:24:30,960 INFO mod.loadTracklogs:**
2014-10-06 23:24:30,961 INFO mod.mapView:switching map drag mode to default
2014-10-06 23:24:30,961 INFO mod.mapView:switching centering disable threshold to 2048
2014-10-06 23:24:30,961 INFO :Initialization complete in 19.82 ms
2014-10-06 23:24:30,961 INFO :** modRana startup timing **
2014-10-06 23:24:30,961 INFO :# device: A generic Personal Computer (pc)
2014-10-06 23:24:30,961 INFO :* modRana start (0 ms), 0/354 ms
2014-10-06 23:24:30,962 INFO :* imports done (56 ms), 56/354 ms
2014-10-06 23:24:30,962 INFO :* GUI creation (0 ms), 57/354 ms
2014-10-06 23:24:30,962 INFO :* window created (75 ms), 131/354 ms
2014-10-06 23:24:30,962 INFO :* map widget created (0 ms), 131/354 ms
2014-10-06 23:24:30,962 INFO :* window finalized (25 ms), 156/354 ms
2014-10-06 23:24:30,962 INFO :* all modules loaded (179 ms), 335/354 ms
2014-10-06 23:24:30,962 INFO :* all modules initialized (19 ms), 354/354 ms
2014-10-06 23:24:30,962 INFO :** whole startup: 354 ms **
2014-10-06 23:24:30,962 INFO mod.display:redraw ON (window not hidden or minimised)
2014-10-06 23:24:30,963 INFO mod.display:redraw ON (window is un-obscured or partially obscured)
2014-10-06 23:24:33,696 INFO mod.clickHandler:Clicked, sending menu:screenClicked
2014-10-06 23:24:33,696 INFO mod.clickHandler:Clicked, sending set:menu:main
2014-10-06 23:24:34,576 INFO mod.clickHandler:Clicked, sending set:menu:None
2014-10-06 23:24:35,617 INFO :Shutting-down modules
2014-10-06 23:24:35,618 INFO core.threads:Running Thread: automaticTileDownloadShutdown (139697158350592)
2014-10-06 23:24:35,618 INFO mod.mapTiles:automatic tile download management thread shutting down
2014-10-06 23:24:35,619 INFO mod.mapData:stopping batch tile download
2014-10-06 23:24:35,619 INFO mod.storeTiles:shutdown imminent, committing all uncommitted tiles
2014-10-06 23:24:35,620 INFO core.threads:Thread Done: modRanaTileDownloadManager (139697720366848)
2014-10-06 23:24:35,620 INFO core.threads:Thread Done: automaticTileDownloadWorker1 (139698080937728)
2014-10-06 23:24:35,620 INFO core.threads:Thread Done: automaticTileDownloadWorker3 (139698064152320)
2014-10-06 23:24:35,621 INFO core.threads:Thread Done: automaticTileDownloadWorker2 (139698072545024)
2014-10-06 23:24:35,622 INFO mod.mapData:stopping batch size estimation
2014-10-06 23:24:35,622 DEBUG mod.storeTiles:sqlite commit OK (0 tiles)
2014-10-06 23:24:35,623 INFO core.threads:Thread Done: automaticTileDownloadWorker5 (139697770723072)
2014-10-06 23:24:35,627 INFO mod.storePOI:disconnecting from POI db
2014-10-06 23:24:35,627 INFO mod.storeTiles:all tiles committed, breaking, goodbye :)
2014-10-06 23:24:35,630 INFO mod.location:location: disabling location
2014-10-06 23:24:35,630 INFO core.threads:Thread Done: modRanaTileStorageLoader (139697166743296)
2014-10-06 23:24:35,630 INFO mod.location.gpsd:GPSDConsumer: stopping
2014-10-06 23:24:35,631 INFO mod.turnByTurn:stopped
2014-10-06 23:24:35,631 INFO :saving options
2014-10-06 23:24:35,632 INFO :options successfully saved
2014-10-06 23:24:37,632 INFO :Shutdown complete

Also on paste, as TMO seems to have some issues with properly formatting the log. :)

A number of internal tunables now have a configuration option in the GTK GUI
As requested for debugging or finding a workaround for the crashing & freezing issues on the N900 I have exposed a number of tunables in the GTK GUI:
  • periodic screen redraw time - not needed
    Manual map movement generates much more redraw events than periodic updates, so the current once-per-second update is unlikely to influence the N900 crashes,
    also the most demanding automatic updates happen during fast movement and you want to have updates as often as possible in such cases (highway, airplane, speedboat, etc.).
  • don't redraw when tile is loaded
    Options->Debug->Tiles->"Redraw screen once a new tile is loaded" (ON/OFF)
  • number of automatic download threads
    Options->Network->Network usage->"Auto tile download thread count"
  • number of batch download threads - done
    Options->Network->Network usage->"Batch tile download thread count"
  • tile cache size - done
    Options->Debug->Tiles->"In memory tile cache size"
  • tile download queue size - done
    Options->Debug->Tiles->"Auto tile download queue size"
  • sqlite commit interval
    Options->Map->Tile storage->"Sqlite tile db commit interval"
Please not that the tunables are primarily intended for debugging purposes and are not non-default values are not well tested and some values and combinations might might not even work at all.

Looking forward to your feedback and lets hope that this gets use closer to debugging the N900 freezes/crashes or at least makes it possible to find a workaround that could be enabled by default.

Sailfish OS improvements
The main user-visible Sailfish OS improvement in this modRana update is volume rocker support - while you are at the map screen, you can use the volume rocker to zoom the map in and out. On other screen the volume rocker currently work just like normal volume control. Field testing shows that this feature is quite handy when using modRana while walking. :)

It is also now possible to turn the log file on and off in Options->Debug (as already mentioned above), but the page also display the full path ti the currently active log file (if any).

And on the Options->Map page you can now see the path to the currently used map data folder and the amount of free space in the folder (but keep in mind that BTRFS has a rather special interpretation of the term "free space").

Also the combo boxes now should look a bit more Sailfishy. :)

GTK GUI (Maemo 5/Fremantle) improvements
You can now tell modRana to always start in fullscreen and to always show a quite button - both can be configured in Options->View->UI.

MartinK 2014-10-06 21:54

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

Originally Posted by Wikiwide (Post 1442144)
Quick line...
What about Mer aka Nemo Mobile? It should have Qt5, I think.
Best wishes.
~~~~~~~~~~~~~~~~~
Per aspera ad astra...

Should work - once I can get Nemo working. I have tried it a few weeks ago and it was horribly broken. I couldn't get WiFi to connect with the latest Nemo image and after I managed to cobble together USB networking and run an update, it became even worse - starting any application made it crash at once. Once it stabilizes, I can give it a try - Qwazix even mentioned on IRC that he would like modRana to be the default navigation app of Nemo Mobile. :)

MartinK 2014-10-06 22:22

Re: [Announce] modRana: a flexible GPS navigation system
 
And last note before giving you all a good night - the Sailfish OS package appears to be working fine and is now available from OpenRepos - get it while it's hot ! :)

peterleinchen 2014-10-07 10:15

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

Originally Posted by MartinK (Post 1442138)
There is a tricky issue with Harmattan - it is left in the middle. ... so either the GTK or the Qt 5 modRana GUI will work on them.

...

What could be done to get up-to-date modRana on Harmattan ?
But let's be constructive - I can see a few ways of improving this unfortunate situation: :)
  • porting Qt 5.1+, Python 3 and PyOtherSide to Harmattan so that the Qt 5 GUI can run
  • using my old GTK2/PyGTK port and running the GTK GUI on Harmattan (the needed packages could be hosted in the modRana repository on OpenRepos)
  • someone can take over maintainership of the Qt 4 GUI a improve it (aka the "patches welcome!" option ;) )

I would vote for scond option (using GTK), even I really like(d) that Harmattan Modrana look.
As I do not see it in near future to have QT5 on Harmattan (neither Py3), nor do I see a Harmattan Modrana maintainer, do you? ;)

Anybody else interested in Modrana on Harmattan, please shout out now ...

ivgalvez 2014-10-07 11:09

Re: [Announce] modRana: a flexible GPS navigation system
 
Wouldn't it be better to drop the GTK2 UI for a Qt4/QML implementation that could be used in both Fremantle and Harmattan?

You have Hildon QML Components in Fremantle, and there are even packages for Meego Qt Components that can be used with Harmattan applications.

Obviously, it might be a lot of work and it's totally up to you. Thanks in any case.

taixzo 2014-10-07 13:58

Quote:

Originally Posted by MartinK (Post 1442138)
There is a tricky issue with Harmattan - it is left in the middle. It does not have the old stuff Fremantle on the N900 has (GTK2, at least by default) and it does not have the new stuff (Qt 5, Python 3 and PyOtherSide) Sailfish OS has. Most other platform have at least one of them (BB10 has Qt5 & co) or both (Desktop Linux distros have both) so either the GTK or the Qt 5 modRana GUI will work on them.

It has been quite some time ago since I last did any meaningful work on the Qt 4\QtQuick 1.0 GUI as the modRana backend & GTK/Qt 5 GUIs already consume all my modRana development time, and even then the Qt 5 GUI is still not at feature parity with the GTK GUI. As the Qt 4 GUI has a different and incompatible architecture (QtQuick 1.0, MeeGo Qt Components & PySide vs QtQuick 2.0, QtQuick Controls/Silica & PyOtherSide) adding features effectively means a third implementation pass for the benefit for a single platform - it is a shame as it is leaving such a nice and elegant platform in the cold...

What could be done to get up-to-date modRana on Harmattan ?
But let's be constructive - I can see a few ways of improving this unfortunate situation:
  • porting Qt 5.1+, Python 3 and PyOtherSide to Harmattan so that the Qt 5 GUI can run
  • using my old GTK2/PyGTK port and running the GTK GUI on Harmattan (the needed packages could be hosted in the modRana repository on OpenRepos)
  • someone can take over maintainership of the Qt 4 GUI a improve it (aka the "patches welcome!" option )

There is a port of PyOtherSide to harmattan, because at least one of thp's apps uses it iirc.

meemorph 2014-10-07 17:04

Quote:

Originally Posted by peterleinchen (Post 1442201)
I would vote for scond option (using GTK), even I really like(d) that Harmattan Modrana look.
As I do not see it in near future to have QT5 on Harmattan (neither Py3), nor do I see a Harmattan Modrana maintainer, do you?

Anybody else interested in Modrana on Harmattan, please shout out now ...

me too, same option. Please dristribute the GTK stuff in openrepos. Very good idea and great help for N9 users.

MartinK 2014-10-08 22:38

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

Originally Posted by ivgalvez (Post 1442208)
Wouldn't it be better to drop the GTK2 UI for a Qt4/QML implementation that could be used in both Fremantle and Harmattan?

You have Hildon QML Components in Fremantle, and there are even packages for Meego Qt Components that can be used with Harmattan applications.

Obviously, it might be a lot of work and it's totally up to you. Thanks in any case.

Well, the GTK2 interface also runs out of the box on many Linux distros thanks to how ubiquitous GTK2/PyGTK, the Qt 4 GUI on the other hand needs Qt Components that not readily available or even maintained/packaged outside of the Maemo/MeeGo proper.

And frankly, I don't really want to do that. :D

But as always (wait for it!) - patches welcome ! :) It is very easy to add a new GUI module (let's say based on Hildon QML components) or to improve the Qt 4/QtQuick 1.0 based one - as long as someone is willing to do that. :)

Quote:

Originally Posted by taixzo (Post 1442234)
There is a port of PyOtherSide to harmattan, because at least one of thp's apps uses it iirc.

Interesting! Do you have any more information about this ?

Quote:

Originally Posted by meemorph (Post 1442243)
me too, same option. Please dristribute the GTK stuff in openrepos. Very good idea and great help for N9 users.

Yeah, it indeed looks like it might be doable - I still have the packages from my GTK2/PyGTK port somewhere & they should also be in the COBS dump on OpenRepos. I'll see what can be done. :)

BTW, I've released modRana 0.49.3 - it adds a configurable map screen compass rose on Sailfish OS (Qt 5 GUI). :)

marmistrz 2014-10-09 05:22

Quote:

Originally Posted by MartinK (Post 1442375)
Yeah, it indeed looks like it might be doable - I still have the packages from my GTK2/PyGTK port somewhere & they should also be in the COBS dump on OpenRepos. I'll see what can be done.

BTW, I've released modRana 0.49.3 - it adds a configurable map screen compass rose on Sailfish OS (Qt 5 GUI).

I probably still have my gtk2 build (not pygtk) somewhere. Ping me if you need them.

Btw. I'm for the gtk on harmattan option :)

int_ua 2014-10-09 14:52

Re: [Announce] modRana: a flexible GPS navigation system
 
Why not compress the log on the fly? I've just found a way to do it:
http://stackoverflow.com/q/26279056/854477

MartinK 2014-10-12 11:01

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

Originally Posted by marmistrz (Post 1442391)
I probably still have my gtk2 build (not pygtk) somewhere. Ping me if you need them.

Thanks, will do if my build turns out not to be usable. :)

Quote:

Originally Posted by int_ua (Post 1442439)
Why not compress the log on the fly? I've just found a way to do it:
http://stackoverflow.com/q/26279056/854477

Interesting, thanks! :) Logs are usually very compressible, so this could help quite a bit.

I think I'll add it, but most probably not enabled by default - while most common Linux editors can directly work with compressed text files, there might still be some other tools or users of other desktop platforms (Windows ?) where the tools could have issues with opening the gzipped logfiles.

Also, I wonder if there is a slightly bigger chance of file corruption - any idea how often does the gzip file flush or if the output might become unreadable if modRana or the device crashes without cleanly closing the file ?

Still, the log file is already a debugging option, so the people using it should already be knowledgeable enough about it to decide if they want the log files to be compressed or not. :)

malfunctioning 2014-10-13 18:42

Re: [Announce] modRana: a flexible GPS navigation system
 
I've been using Modrana more frequently, and it is excellent. I have it running with offline maps, offline routing, and voice navigation (using the en1 embrola voice with espeak.

Thank you, MartinK for this great program. :)

I have a couple of questions which I didn't see addressed (or which I possibly missed).

Is there a satisfactory offline POI database? Or an address database? Having the POI database at least would be great.

Also, does anybody successfully use the voice navigation via the FM transmitter? It doesn't work for me because if I'm playing something the voice is not loud enough, and if I don't play something then the FM transmitter goes to sleep and doesn't wake up fast enough when directions are spoken.

NOTE: An easy, but inelegant, hack for my second question is to play a silence file via Media Player on a loop. Any other alternatives?

MartinK 2014-10-20 21:08

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

Originally Posted by malfunctioning (Post 1442831)
I've been using Modrana more frequently, and it is excellent. I have it running with offline maps, offline routing, and voice navigation (using the en1 embrola voice with espeak.

What about adding a note on Wiki how to use Mbrola ? :)

Quote:

Originally Posted by malfunctioning (Post 1442831)
Thank you, MartinK for this great program. :)

Thanks! I'm glad you like modRana! :)

Quote:

Originally Posted by malfunctioning (Post 1442831)
I have a couple of questions which I didn't see addressed (or which I possibly missed).

Is there a satisfactory offline POI database? Or an address database? Having the POI database at least would be great.

There various OpenStreetMap POI extracts available from various sources and I wanted to add support for using them for some time already but just did not get to that yet. :)

It is actually not that different from the current online providers - just find a suitable easily accessible offline POI database source and add a local provider implementation that can run searches over the file.

Also there is of course the built-in POI database you can populate manually. :)

Quote:

Originally Posted by malfunctioning (Post 1442831)
Also, does anybody successfully use the voice navigation via the FM transmitter? It doesn't work for me because if I'm playing something the voice is not loud enough, and if I don't play something then the FM transmitter goes to sleep and doesn't wake up fast enough when directions are spoken.

NOTE: An easy, but inelegant, hack for my second question is to play a silence file via Media Player on a loop. Any other alternatives?

Is there an API available for the FM transmitter (DBUS, CLI utility, Python accessible library) ? Depending on how long it takes to wake-up I could either force wakeup just before a voice message or make it stay on when turn-by-turn navigation is running.

jcharpak 2014-10-20 22:33

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

Originally Posted by MartinK (Post 1443589)


Is there an API available for the FM transmitter (DBUS, CLI utility, Python accessible library) ? .

dbus, see http://maemo.org/api_refs/5.0/5.0-fi.../fmtx_api.html actually not sure if that is used to send output. http://wiki.maemo.org/N900_FM_radio_transmitter might be more relevant.

malfunctioning 2014-10-20 23:06

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

Originally Posted by MartinK (Post 1443589)
What about adding a note on Wiki how to use Mbrola ? :)


Thanks! I'm glad you like modRana! :)

Thank you, MartinK!

I am setting up my N900 after a full reflash and I am in the process of installing applications. When I set up modRana, I will add this in the Wiki, probably tonight or tomorrow. :)

Quote:

Originally Posted by MartinK (Post 1443589)
There various OpenStreetMap POI extracts available from various sources and I wanted to add support for using them for some time already but just did not get to that yet. :)

It is actually not that different from the current online providers - just find a suitable easily accessible offline POI database source and add a local provider implementation that can run searches over the file.

Also there is of course the built-in POI database you can populate manually. :)

I see, that sounds great! Having a builtin POI database would mean modRana would be a fully offline GPS solution for me (and it's not far from it the way it is, frankly.

Quote:

Originally Posted by MartinK (Post 1443589)
Is there an API available for the FM transmitter (DBUS, CLI utility, Python accessible library) ? Depending on how long it takes to wake-up I could either force wakeup just before a voice message or make it stay on when turn-by-turn navigation is running.

I have no idea about this, sorry. I will investigate in a few days and tell you if I find something.

I have a few ideas for features/enhancements. Far from being criticisms, I think the fact that I've been using modRana a lot due to it being the best GPS routing program for the N900 hands down, got me thinking...

1. This is related to the last question about the FM transmitter. Perhaps there could be a toggle (under Options, under Voice, or in the main map). This would cause modRana to open a stream into PulseAudio and send silence into it (if that is possible). This is more elegant than having to do the hack manually from Media Player or some other program. You could either sense when the FM transmitter is active, or just make the whole thing manual. I think this wouldn't interfer with any other audio streams. And this solution is a fallback in case you can't implement the solution you proposed.

2. Night Mode! Or custom visual mode, customizable by the user.
Basically, allow the user to customize graphic filter settings to alter the way map tiles look. For a simple Night Mode you could invert colors, for example. When this mode is engaged, tiles are buffered and processed before being displayed, and possibly also saved for later use if the user chooses that. You could also offer a batch preprocess mode so that the alternate set of tiles can be processed ovcernight, similarly to how tiles are downloaded now for offline routing.

The simple version of this feature is just "Invert Colors" and call it "Night Mode". This feature would be super useful for all the non-satellite maps. Those maps have tiles which don't occupy too much space either.

For the Satellite maps, a set of specific filters would be amazingly useful, if applied in batch mode. I'm thinking about filters geared to lower the size of each tile considerably without too much quality loss. Dithering, pixelization, color depth reduction, etc. If you allow a user to adjust this and look at a preview, then batch processing and replacing tiles would save a lot of space on the satellite maps. Just a guess, I don't know hjow optimized the satellite tiles already are.

3. Route simulator. This would simulate a route on the map (possibnly at a speed adjustable by the user.

But most importantly: then we could fool Google Maps and other providers so that batch downloads don't fail. As you know, batch downloads don't currently work with Google Maps because they must easily detect that a batch download is taking place, based on the pattern of tile requests. If you simulate the correct pattern, I think this wouldn't be an issue.

I thought of some other features but they don't come to mind right now. ;)

skykooler 2014-10-21 03:08

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

Originally Posted by MartinK (Post 1442375)
Interesting! Do you have any more information about this ?

thp's article about it:

http://thpmaemo.blogspot.com/2013/07...n-on-qt-5.html

And a video (linked in the article) of pyOtherSide on the N9, with Python 3 and QT 4:

https://www.youtube.com/watch?v=iqphTKirkKw

Edit: just noticed you've already commented on that article, so it might not be helpful.

MartinK 2014-10-22 07:46

Re: [Announce] modRana: a flexible GPS navigation system
 
modRana 0.49.6 has been released!
Brings support for debug log compression, faster Qt 5 GUI startup and keep-screen-on support for Sailfish OS. :)

Changelog:
Code:

* Tue Oct 21 2014 Martin Kolman - 0.49.6
- generate correct (Python 3.4) bytecode for the Sailfish OS package
 - makes modRana Python part startup almost 2 times faster (~3.8s->~2s) ! :)
- make location and map page in Qt 5 GUI asynchronous
 - this should make the startup even faster and more seemless
- add a fade in & out animation for the startup indicator in Qt 5 GUI
* Sun Oct 19 2014 Martin Kolman - 0.49.5
- fix a typo breaking modRana startup on Sailfish OS
* Sat Oct 18 2014 Martin Kolman - 0.49.4
- support for keeping screen on for Sailfish OS
 - enabled by default
 - can be turned on/off in Options->UI
- fully asynchronous Qt 5 GUI startup
 - the Qt 5 GUI startup should now be faster and feedback is provided to the user during the whole startup
 - the Bitcoin button now works again in the Qt 5 GUI
- the Gratipay donation button has been added to the Qt 5 GUI
- fixed sizes & font sizes of donation buttons
- modRana now supports log file compression with gzip
 - preliminary testing shows about 60% log size reduction when enabled :)
 - GTK GUI: Options->Debug->Logging
 - Qt 5 GUI: Options->Logging
- print full path to the log file when disabling it
- average speed is now displayed correctly
- add support for passing CLI arguments when using the Qt 5 GUI
- the compass rose in Qt 5 GUI no longer wiggles when pointing close to the northern direction
- fix shutdown handler not triggering on Sailfish OS
- fix Qt GUI log and Qt 5 GUI qml log names
- fix speed statistics centering in Qt 5 GUI
- fix version string wrapping in Qt 5 GUI


handaxe 2014-10-22 19:40

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

Originally Posted by MartinK (Post 1443742)
modRana 0.49.6 has been released!

Has it? Something choking somewhere?

pichlo 2014-10-22 21:14

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

Originally Posted by handaxe (Post 1443874)
Has it? Something choking somewhere?

From the changelist, I assume it has but only for Sailfish. The last Maemo build listed here is 0.49.4.

MartinK 2014-10-22 21:37

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

Originally Posted by pichlo (Post 1443890)
From the changelist, I assume it has but only for Sailfish. The last Maemo build listed here is 0.49.4.

Yeah, 0.49.5 and 0.49.6 didn't have any user visible changes outside of the Qt 5 GUI so I did not send them to autobuilder. :)

Estel 2014-10-23 01:01

Re: [Announce] modRana: a flexible GPS navigation system
 
Erm, any progress in cairo-related bugs? ModRana still crashes on me all the time, with the latest version from -devel :(

No pressure,all understanding and thankfulness.

/Estel

petur 2014-10-23 10:45

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

Originally Posted by MartinK (Post 1443896)
Yeah, 0.49.5 and 0.49.6 didn't have any user visible changes outside of the Qt 5 GUI so I did not send them to autobuilder. :)

oh.. I thought that python speedup you mentioned was for all devices :(

MartinK 2014-10-23 14:00

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

Originally Posted by Estel (Post 1443919)
Erm, any progress in cairo-related bugs? ModRana still crashes on me all the time, with the latest version from -devel :(

No pressure,all understanding and thankfulness.

/Estel

I have recently added a set of tunables that might influence the crashes:
https://github.com/M4rtinK/modrana/issues/52

The general idea is that one can either set them to a lower value than default and the crashes might not trigger or do the opposite and try to find a reproducible crash scenario that could be used to find the root cause.

Also note that the non-default values are kinda experimental & some non-default value combinations might result in weird behavior.

So the general recomendation is to backup ~/.modrana before playing with them & to have the debug log (Options->Debug->Logging) enabled at all times to catch any interesting errors.

Quote:

Originally Posted by petur (Post 1443969)
oh.. I thought that python speedup you mentioned was for all devices :(

The slowness on Sailfish OS was caused by incorrect Python bytecode being generated (for 3.3 vs the 3.4 used on Sailfish).
The Maemo package has been using the same technique for ages to make startup faster. :)

On the other hand I've also spotted a few more opportunities to make general modRana startup faster on all platforms, usually by deferring stuff done during startup for later or mooving it to threads.
So you can look forward to more generally usable startup speed improvements in a future modRana update. :)


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

vBulletin® Version 3.8.8