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)

petur 2012-05-19 17:32

Re: [Announce] modRana: a flexible GPS navigation system
 
great great great!

MartinK 2012-05-19 17:43

Re: [Announce] modRana: a flexible GPS navigation system
 
Another fix - V0.31.11 fixes screen not redrawing properly in case N900 has no GPS lock. The periodic liblocation callback is also used to periodically refresh the screen. Looks like: no lock = no callback, so I've added a 1000 ms timer that checks for list redraw time-stamp and acts accordingly. :)

droll 2012-05-20 08:44

Re: [Announce] modRana: a flexible GPS navigation system
 
i cannot startup modrana. i deleted the config folder .modrana and now it refuses to startup. help??

lokimotive 2012-05-20 09:29

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

Originally Posted by droll (Post 1209483)
i cannot startup modrana. i deleted the config folder .modrana and now it refuses to startup. help??

I guess a reinstall would fix that.

int_ua 2012-05-20 10:20

Re: [Announce] modRana: a flexible GPS navigation system
 
QML variant 0.31.11 segfaults after a while with hundreds of
Quote:

file:///usr/lib/qt4/imports/com/nokia/meego/Style.qml:46: Unable to assign [undefined] to bool inverted
file:///usr/lib/qt4/imports/com/nokia/meego/Style.qml:46: Unable to assign [undefined] to bool inverted
file:///usr/lib/qt4/imports/com/nokia/meego/Style.qml:46: Unable to assign [undefined] to bool inverted
Segmentation fault (core dumped)
Style.qml:46 is
Quote:

property bool inverted: theme.inverted
and theme variable isn't defined in it.

droll 2012-05-20 16:10

Re: [Announce] modRana: a flexible GPS navigation system
 
reinstalling modrana didn't help :(
i wiped out the config folder and re-ran modrana. no help.

i then launched modrana from command line
Code:

== modRana Starting ==
modRana: loading options
modRana: exception while loading saved options:
[Errno 2] No such file or directory: '/home/user/.modrana/options.bin'
importing modules:
N900: dbus initialized
N900 device specific module initialized
* device: A N900 modRana device-specific module (420.00 ms)
modRana: module: gui_gtk/gui failed to load
Traceback (most recent call last):
File "modrana.py", line 254, in _loadModule
module = a.getModule(self.m, self.d, initInfo)
File "/opt/modrana/modules/gui_modules/gui_gtk.py", line 46, in getModule
return(GTKGUI(m,d,i))
File "/opt/modrana/modules/gui_modules/gui_gtk.py", line 87, in __init__
self._registerCenteringShiftCallbacks()
File "/opt/modrana/modules/gui_modules/gui_gtk.py", line 261, in _registerCenteringShiftCallbacks
self._updateCenteringShiftCB()
File "/opt/modrana/modules/gui_modules/gui_gtk.py", line 278, in _updateCenteringShiftCB
(sx,sy,sw,sh) = self.get('viewport')
TypeError: 'NoneType' object is not iterable
* mapData: Handle downloading of map data (100.00 ms)
* config: Handle configuration, options, and setup (0.00 ms)
* example: A sample pyroute module (0.00 ms)
* cron: A GTK timing and scheduling module for modRana (0.00 ms)
* sketch: Sketching functionality (0.00 ms)
* units: a unit handling module (30.00 ms)
* tracklogManager: Module for managing tracklogs (0.00 ms)
* updateTiles: Update stored map tiles. (0.00 ms)
* positionMarker: A sample pyroute module (10.00 ms)
storePOI: POI database path:
/home/user/MyDocs/.maps/modrana_poi.db
storePOI: connection to POI db established
* storePOI: Store POI data. (20.00 ms)
* display: A platform independent display device control module (140.00 ms)
* input: Handle input from keyboard, buttons, etc. (0.00 ms)
* search: Search for POI (10.00 ms)
* showPOI: Show POI on the map and in the menu. (0.00 ms)
* loadTracklogs: A sample pyroute module (10.00 ms)
* markers: A module handling markers on the map. (0.00 ms)
* projection: Projection code (lat/long to screen conversions) (0.00 ms)
* voice: Handle text to speach. (0.00 ms)
* keys: A keyboard input handling module (0.00 ms)
* animatedMapView: A sample pyroute module (10.00 ms)
* log: A modRana logging module (0.00 ms)
* showOSD: Draw OSD (On Screen Display). (0.00 ms)
* showGPX: draws a GPX track on the map (10.00 ms)
* storeTiles: Single-file-fs tile storage (0.00 ms)
* info: A modRana information handling module (10.00 ms)
* clickHandler: handle mouse clicks (0.00 ms)
* stats: Handles messages (0.00 ms)
* notification: This module provides notification support. (0.00 ms)
* options: Handle options (10.00 ms)
* route: Routes (50.00 ms)
* icons: Draw icons (120.00 ms)
* textEntry: A module for handling text entry. (0.00 ms)
* interfaceFeedback: A sample pyroute module (0.00 ms)
* menu: Handle menus (10.00 ms)
* askMenu: A sample pyroute module (0.00 ms)
* messages: Handles messages (0.00 ms)
* tracklog: Record tracklogs (10.00 ms)
* turnByTurn: A turn by turn navigation module. (0.00 ms)
* onlineServices: A module for talking to various online services (70.00 ms)
* routeProfile: Creates a route profile (an elevation chart) (0.00 ms)
* location: Supplies position info from a position source (0.00 ms)
modRana: module: mod_mapTiles/mapTiles failed to load
Traceback (most recent call last):
File "modrana.py", line 254, in _loadModule
module = a.getModule(self.m, self.d, initInfo)
File "/opt/modrana/modules/mod_mapTiles.py", line 48, in getModule
return(MapTiles(m,d,i))
File "/opt/modrana/modules/mod_mapTiles.py", line 87, in __init__
if gui.getIDString() == "GTK":
AttributeError: 'NoneType' object has no attribute 'getIDString'
* mapView: Controls the view being displayed on the map (10.00 ms)
Loaded all modules in 1180.00 ms, initialising
icons: switched theme to: default
Traceback (most recent call last):
File "modrana.py", line 718, in <module>
program = ModRana()
File "modrana.py", line 138, in __init__
self.loadModules()
File "modrana.py", line 232, in loadModules
m.firstTime()
File "/opt/modrana/modules/mod_options.py", line 291, in firstTime
addItems("Main map", "layer", layerNameKey, group, "mapnik")
File "/opt/modrana/modules/mod_options.py", line 145, in addItemsOption
menu = self.menuModule.getClearedMenu(backAction)
File "/opt/modrana/modules/mod_menu.py", line 579, in getClearedMenu
timedAction=(self.modrana.gui.msLongPress,"set:menu:None")
AttributeError: 'NoneType' object has no attribute 'msLongPress'

still doesn't work...

MartinK 2012-05-20 16:55

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

Originally Posted by int_ua (Post 1209507)
QML variant 0.31.11 segfaults after a while with hundreds of

Style.qml:46 is

and theme variable isn't defined in it.

I finally tracked down the cause af all those error messages - I have declared a new string property called theme in the main.qml file. But it looks like there already is property/object with the same name. So it tried to assign a string property in place of the object-property a generated a whole lot of errors.

After i renamed the string property, the errors don't show up anymore. :) The fix is in V0.31.12, does it help with your segfaults ?

BTW, make sure to start the QML GUI with the /usr/bin/modrana-qml startup script, otherwise it would segfault during startup because of a bug in Python bindings for Qt mobility 12 (this is how the startup script works around it).

Quote:

Originally Posted by droll (Post 1209684)
reinstalling modrana didn't help :(
i wiped out the config folder and re-ran modrana. no help.

still doesn't work...

Try this (as root):
Code:

apt-get update
apt-get remove modrana
rm -rf /home/user/.modrana/
rm -rf /opt/modrana/
apt-get install modrana

It should unistall modRana, remove the config folder (if present), remove any possible remains of modRana program files and then do a clean modRana install. :)

droll 2012-05-20 17:09

Re: [Announce] modRana: a flexible GPS navigation system
 
arrgh what is going on. still doesn't work..
Code:

== modRana Starting ==
modRana: loading options
modRana: exception while loading saved options:
[Errno 2] No such file or directory: '/home/user/.modrana/options.bin'
importing modules:
N900: dbus initialized
N900 device specific module initialized
 * device: A N900 modRana device-specific module (450.00 ms)
modRana: module: gui_gtk/gui failed to load
Traceback (most recent call last):
  File "modrana.py", line 254, in _loadModule
    module = a.getModule(self.m, self.d, initInfo)
  File "/opt/modrana/modules/gui_modules/gui_gtk.py", line 46, in getModule
    return(GTKGUI(m,d,i))
  File "/opt/modrana/modules/gui_modules/gui_gtk.py", line 87, in __init__
    self._registerCenteringShiftCallbacks()
  File "/opt/modrana/modules/gui_modules/gui_gtk.py", line 261, in _registerCenteringShiftCallbacks
    self._updateCenteringShiftCB()
  File "/opt/modrana/modules/gui_modules/gui_gtk.py", line 278, in _updateCenteringShiftCB
    (sx,sy,sw,sh) = self.get('viewport')
TypeError: 'NoneType' object is not iterable
 * mapData: Handle downloading of map data (90.00 ms)
 * config: Handle configuration, options, and setup (10.00 ms)
 * example: A sample pyroute module (0.00 ms)
 * cron: A GTK timing and scheduling module for modRana (0.00 ms)
 * sketch: Sketching functionality (10.00 ms)
 * units: a unit handling module  (20.00 ms)
 * tracklogManager: Module for managing tracklogs (0.00 ms)
 * updateTiles: Update stored map tiles. (10.00 ms)
 * positionMarker: A sample pyroute module (0.00 ms)
storePOI: POI database path:
 /home/user/MyDocs/.maps/modrana_poi.db
storePOI: connection to POI db established
 * storePOI: Store POI data. (20.00 ms)
 * display: A platform independent display device control module (140.00 ms)
 * input: Handle input from keyboard, buttons, etc. (0.00 ms)
 * search: Search for POI (10.00 ms)
 * showPOI: Show POI on the map and in the menu. (0.00 ms)
 * loadTracklogs: A sample pyroute module (10.00 ms)
 * markers: A module handling markers on the map. (0.00 ms)
 * projection: Projection code (lat/long to screen conversions) (10.00 ms)
 * voice: Handle text to speach. (0.00 ms)
 * keys: A keyboard input handling module (0.00 ms)
 * animatedMapView: A sample pyroute module (0.00 ms)
 * log: A modRana logging module (0.00 ms)
 * showOSD: Draw OSD (On Screen Display). (0.00 ms)
 * showGPX: draws a GPX track on the map (10.00 ms)
 * storeTiles: Single-file-fs tile storage (0.00 ms)
 * info: A modRana information handling module (10.00 ms)
 * clickHandler: handle mouse clicks (0.00 ms)
 * stats: Handles messages (10.00 ms)
 * notification: This module provides notification support. (0.00 ms)
 * options: Handle options (10.00 ms)
 * route: Routes (50.00 ms)
 * icons: Draw icons (120.00 ms)
 * textEntry: A module for handling text entry. (0.00 ms)
 * interfaceFeedback: A sample pyroute module (0.00 ms)
 * menu: Handle menus (20.00 ms)
 * askMenu: A sample pyroute module (0.00 ms)
 * messages: Handles messages (0.00 ms)
 * tracklog: Record tracklogs (10.00 ms)
 * turnByTurn: A turn by turn navigation module. (0.00 ms)
 * onlineServices: A module for talking to various online services (60.00 ms)
 * routeProfile: Creates a route profile (an elevation chart) (0.00 ms)
 * location: Supplies position info from a position source (0.00 ms)
 @ mapTiles: map folder path: /home/user/MyDocs/.maps/
 * mapTiles: Display map images (80.00 ms)
 * mapView: Controls the view being displayed on the map (0.00 ms)
Loaded all modules in 1280.00 ms, initialising
icons: switched theme to: default
Traceback (most recent call last):
  File "modrana.py", line 718, in <module>
    program = ModRana()
  File "modrana.py", line 138, in __init__
    self.loadModules()
  File "modrana.py", line 232, in loadModules
    m.firstTime()
  File "/opt/modrana/modules/mod_options.py", line 291, in firstTime
    addItems("Main map", "layer", layerNameKey, group, "mapnik")
  File "/opt/modrana/modules/mod_options.py", line 145, in addItemsOption
    menu = self.menuModule.getClearedMenu(backAction)
  File "/opt/modrana/modules/mod_menu.py", line 579, in getClearedMenu
    timedAction=(self.modrana.gui.msLongPress,"set:menu:None")
AttributeError: 'NoneType' object has no attribute 'msLongPress'


MartinK 2012-05-20 19:14

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

Originally Posted by droll (Post 1209722)
arrgh what is going on. still doesn't work..

Thanks for the output! I've hardened the startup a bit in V0.31.13 based on it. :)

bipinbn 2012-05-21 02:41

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

Originally Posted by MartinK (Post 1209810)
Thanks for the output! I've hardened the startup a bit in V0.31.13 based on it. :)

Thank you very much buddy, also when you get time can you please check on Route Info window after the route gets calculated , the text in the window get jumbled up due to too much data, it will help if we reduce the font size.


All times are GMT. The time now is 21:58.

vBulletin® Version 3.8.8