Notices


Reply
Thread Tools
Posts: 650 | Thanked: 497 times | Joined on Oct 2008 @ Ghent, Belgium
#1021
great great great!
__________________
Affordable mobile internet in Belgium: Try Mobile Vikings
2 GB, 1000 SMS and 15 euro of talk time for.... 15 euro
 

The Following User Says Thank You to petur For This Useful Post:
Posts: 1,548 | Thanked: 7,510 times | Joined on Apr 2010 @ Czech Republic
#1022
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.
__________________
modRana: a flexible GPS navigation system
Mieru: a flexible manga and comic book reader
Universal Components - a solution for native looking yet component set independent QML appliactions (QtQuick Controls 2 & Silica supported as backends)

Last edited by MartinK; 2012-05-19 at 18:27. Reason: fixing typos
 

The Following 9 Users Say Thank You to MartinK For This Useful Post:
Posts: 958 | Thanked: 483 times | Joined on May 2010
#1023
i cannot startup modrana. i deleted the config folder .modrana and now it refuses to startup. help??
 
Posts: 11 | Thanked: 12 times | Joined on May 2012
#1024
Originally Posted by droll View Post
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's Avatar
Posts: 676 | Thanked: 1,067 times | Joined on Jul 2010 @ Kyiv, Ukraine
#1025
QML variant 0.31.11 segfaults after a while with hundreds of
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
property bool inverted: theme.inverted
and theme variable isn't defined in it.
 

The Following 4 Users Say Thank You to int_ua For This Useful Post:
Posts: 958 | Thanked: 483 times | Joined on May 2010
#1026
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...
 

The Following User Says Thank You to droll For This Useful Post:
Posts: 1,548 | Thanked: 7,510 times | Joined on Apr 2010 @ Czech Republic
#1027
Originally Posted by int_ua View Post
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).

Originally Posted by droll View Post
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.
__________________
modRana: a flexible GPS navigation system
Mieru: a flexible manga and comic book reader
Universal Components - a solution for native looking yet component set independent QML appliactions (QtQuick Controls 2 & Silica supported as backends)
 

The Following 3 Users Say Thank You to MartinK For This Useful Post:
Posts: 958 | Thanked: 483 times | Joined on May 2010
#1028
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'
 

The Following 2 Users Say Thank You to droll For This Useful Post:
Posts: 1,548 | Thanked: 7,510 times | Joined on Apr 2010 @ Czech Republic
#1029
Originally Posted by droll View Post
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.
__________________
modRana: a flexible GPS navigation system
Mieru: a flexible manga and comic book reader
Universal Components - a solution for native looking yet component set independent QML appliactions (QtQuick Controls 2 & Silica supported as backends)
 

The Following 5 Users Say Thank You to MartinK For This Useful Post:
Posts: 92 | Thanked: 95 times | Joined on Feb 2010 @ Smyrna, Atlanta / Bangalore, India
#1030
Originally Posted by MartinK View Post
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.
 

The Following 2 Users Say Thank You to bipinbn For This Useful Post:
Reply

Tags
bada rox, martin_rocks, modrana, navigation, openstreetmap, the best, wehasgps


 
Forum Jump


All times are GMT. The time now is 03:08.