Active Topics

 



Notices


Reply
Thread Tools
Posts: 1,548 | Thanked: 7,510 times | Joined on Apr 2010 @ Czech Republic
#1071
Originally Posted by Wikiwide View Post
Quick message... Two unrelated bugs.
1. Ampersand in POI name. It needs to be stored as & (I don't remember why, but single & generates an error), and then converted to & when displayed on screen.
2. Loading POIDetail module should be done not only when user goes through menu to points-of-interest, but also when remembered POIs are displayed on screen at startup, otherwise clicking a POI (without opening POIs menu first) causes black-screen-of-restarting-the-map.
Thank you.
Thanks ! Noted:
#191
#192
I also finally got to integrating your improvements, they will be part of the next release.

Originally Posted by droll View Post
now that google allows offline mode for google maps, it allows the device to download maps for an entire city. is that a new API that modrana can use because the existing offline / download mode in modrana is really slow (partly because google will detect if you're sucking up the maps and will block you).

any ideas?
Originally Posted by zimon View Post
Just tried 1st time downloading offline maps to Android Google Maps (SGS3) and it really was quick. I wonder, if Google Maps marks those downloaded offline maps with device-ID or something, so if someone shares further those offline aps, (s)he will get caught? Or if I just want to use the same offline maps in N900 with some application.
Really depends on the storage format, if its just a bunch of tile images with the standard scheme used by Google Maps and OpenStreetMap, they can be used right away. If it is stored in some kind of (encrypted ?) database, that would be a bit trickier. Can you check out the file format on your device ?


Originally Posted by 7thd View Post
issue (multiboot stock kernel and 2.6.28.10-p50; CSSU1T; normal tiles)
What does CSSU1T mean ? Is that CSSU Testing or Thumb ? For the record, I'm running on CSSU stable with Extras-Devel enabled.

Originally Posted by 7thd View Post
-tracklogs do not follow actual path but a vector is drawn from start of tracklog to (whatever) current position

-tracklogs are (sometimes?) not shown until a color is chosen and at certain zoomlevels

I have this on both N900's I own. Reinstall or deletion of options.bin doesn't fix it. Would be happy to provide further data.
There should be some errors in standard output. So just start modRana from the terminal:
Code:
modrana
And post the output.


Originally Posted by Evok View Post
A big 'Thank You' to Martin for modRana. It is just an awesome and fun to use APP.
I have a question which may have been addressed previously but I cannot find it....
In my installed apps, I have modRana QML which only opens a completely blank white screen with absolutely nothing on it. I have to end task to shut it down. Can anyone guide me with a solution to have it open correctly?
modRana itself is working perfectly......
ModRana QML is the new alternative GUI for modRana, based on Qt & QML. It is quite basic at the moment, but not really that basic (it does show a lot more than just a white screen ).

Do you have CSSU installed ? The QML GUI basically requires it to work correctly, as the Qt & PySide versions on stock PR 1.3 Fremantle are too old & buggy for it to work correctly.

Also, please try to start modRana QML from the terminal:
Code:
modrana-qml
And post the output. Thanks !
__________________
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-07-04 at 10:02.
 

The Following 2 Users Say Thank You to MartinK For This Useful Post:
Posts: 98 | Thanked: 44 times | Joined on Mar 2010 @ Netherlands
#1072
Originally Posted by MartinK View Post
What does CSSU1T mean ? Is that CSSU Testing or Thumb ? For the record, I'm running on CSSU stable with Extras-Devel enabled...
CSSU 21.2011.38-1Tmaemo4 and CSSU 21.2011.38-1Tmaemo2.1
@MartinK - I've got extrasdevel enabled too, no other problems except for a missing "reject" button of the calling app (what I think isn't of influence). If you'd like me to flash and make an exclusive install of any of the cssu testing versions or any other reproduction pls let me know, it may take a while but I'd do my best. Issue: minimal number of trackpoints while tracklogging (2, 3 or 4 points).

@all - Could ya folks post experiences of tracklogging if in CSSU Testing setup?

Originally Posted by MartinK View Post
(...) There should be some errors in standard output....
I' m unaware where so I post a full run&exit while in between reproducing this issue: 2 Mins of tracklogging (3 points created).

Code:
~ $ modrana
 == modRana Starting ==
modRana: loading options
N900: dbus initialized
N900 device specific module initialized
 * device: A N900 modRana device-specific module (910.00 ms)
GTK GUI: size allocation <GdkRectangle at 0x333378>
error in screen invalidating functionexception: 'NoneType' object has no attribute 'invalidate_rect'
 * gui: A GTK GUI module (210.00 ms)
importing modules:
 * stats: Handles messages (10.00 ms)
 * units: a unit handling module  (0.00 ms)
 * tracklogManager: Module for managing tracklogs (20.00 ms)
 * notification: This module provides notification support. (10.00 ms)
 * showGPX: draws a GPX track on the map (10.00 ms)
 * config: Handle configuration, options, and setup (10.00 ms)
 @ mapTiles: map folder path: /home/user/MyDocs/.maps/
 * mapTiles: Display map images (410.00 ms)
 * icons: Draw icons (50.00 ms)
 * keys: A keyboard input handling module (0.00 ms)
 * menu: Handle menus (30.00 ms)
 * clickHandler: handle mouse clicks (0.00 ms)
 * mapData: Handle downloading of map data (50.00 ms)
 * example: A sample pyroute module (10.00 ms)
 * routeProfile: Creates a route profile (an elevation chart) (260.00 ms)
 * storeTiles: Single-file-fs tile storage (30.00 ms)
 * messages: Handles messages (0.00 ms)
 * loadTracklogs: A sample pyroute module (20.00 ms)
 * onlineServices: A module for talking to various online services (70.00 ms)
 * info: A modRana information handling module (0.00 ms)
 * showOSD: Draw OSD (On Screen Display). (10.00 ms)
 * textEntry: A module for handling text entry. (0.00 ms)
 * log: A modRana logging module (10.00 ms)
 * askMenu: A sample pyroute module (0.00 ms)
 * tracklog: Record tracklogs (20.00 ms)
 * search: Search for POI (10.00 ms)
 * animatedMapView: A sample pyroute module (10.00 ms)
 * markers: A module handling markers on the map. (10.00 ms)
 * updateTiles: Update stored map tiles. (0.00 ms)
 @ storePOI: POI database path:
 @ /home/user/MyDocs/.maps/modrana_poi.db
 @ storePOI: connection to POI db established
 * storePOI: Store POI data. (10.00 ms)
 * showPOI: Show POI on the map and in the menu. (0.00 ms)
 * display: A platform independent display device control module (0.00 ms)
 * sketch: Sketching functionality (10.00 ms)
 * options: Handle options (10.00 ms)
 * route: Routes (110.00 ms)
 * location: Supplies position info from a position source (10.00 ms)
 * positionMarker: A sample pyroute module (10.00 ms)
 * mapView: Controls the view being displayed on the map (10.00 ms)
 * input: Handle input from keyboard, buttons, etc. (10.00 ms)
 * voice: Handle text to speach. (30.00 ms)
 * turnByTurn: A turn by turn navigation module. (20.00 ms)
 * tileserver: A modRana built-in tileserver (30.00 ms)
 * projection: Projection code (lat/long to screen conversions) (10.00 ms)
 * interfaceFeedback: A sample pyroute module (10.00 ms)
 * cron: A GTK timing and scheduling module for modRana (0.00 ms)
Loaded all modules in 1380.00 ms, initialising
icons: switched theme to: ios
location: starting GPSD 1 second timer
location: enabling location
** n900 - location: - GPS successfully activated **
n900 - location: activated
display: keep display ON -> always
N900 rotation object initialized
N900: rotation object loaded
True
N900: key centred toggled
N900: key soundEnabled toggled
N900: application menu added
** making a list of available tracklogs
*  using this tracklog folder:
* /home/user/MyDocs/tracklogs
*  there are 100 tracklogs available
**
True
mapView: switching map drag mode to default
mapView: switching centering disable threshold to 2048
Initialization complete in 330.00 ms
** modRana startup timing **
# device: Nokia N900 (n900)
* modRana start (0 ms), 0/7466 ms
* imports done (667 ms), 667/7466 ms
* GUI creation (0 ms), 668/7466 ms
* window created (1576 ms), 2244/7466 ms
* map widget created (1 ms), 2245/7466 ms
* window finalized (87 ms), 2331/7466 ms
* all modules loaded (3478 ms), 5809/7466 ms
* all modules initialized (1656 ms), 7466/7466 ms
** whole startup: 7466 ms **
display: redraw ON (window not hidden or minimised)
TypeError: update() takes exactly 1 argument (2 given)
display: redraw ON (N900 window is active)
GTK GUI: size allocation <GdkRectangle at 0x47bf20>
icons:  not found
Clicked, sending menu:screenClicked
Clicked, sending set:menu:main
Clicked, sending set:menu:tracklog#tracklog
setting up tracklogTools menu
Clicked, sending tracklog:incrementStartIndex|tracklog:startLogging|set:needRedraw:True
starting to log
initializing the log file
tracklog: log_20120705#13-12-41.gpx
tracklog saved successfully
log file initialized
Clicked, sending tracklog:reset|set:menu:main
updating the log
saving log increment
tracklog: log_20120705#13-12-41.gpx
tracklog saved successfully
Clicked, sending set:menu:None
Clicked, sending menu:screenClicked
Clicked, sending set:menu:main
updating the log
saving log increment
tracklog: log_20120705#13-12-41.gpx
tracklog saved successfully
Clicked, sending set:menu:tracklog#tracklog
updating the log
Clicked, sending tracklog:stopLogging
stopping the logging
tracklog: log_20120705#13-12-41.gpx
tracklog saved successfully
** making a list of available tracklogs
*  using this tracklog folder:
* /home/user/MyDocs/tracklogs
*  there are 101 tracklogs available
**
Shutting-down modules

shutdown imminent, committing all uncommitted tiles
storeTiles: sqlite commit OK

all tiles committed, breaking, goodbye :)

mapTiles: automatic tile download management thread shutting down
storePOI: disconnecting from db
location: disabling location
n900 - location: stopping
modRana: saving options
modRana: options successfully saved
Shutdown complete
edit: I flashed my second n900 device to EMMC_By.MiDO.FaYad.8.giga.bin, + Vanilla PR1.3 kernel. Installed CSSU 21.2011.38-1Smaemo3 (as latest stable vers.).
Now modRana won't launch GPS (modR QML does OK )). I don't understand, that N900 is quite empty now...
Code:
~ $ modrana
== modRana Starting ==
modRana: loading options
modRana: module: device_n900/device failed to load
Traceback (most recent call last):
File "modrana.py", line 293, in _loadModule
a = __import__(importName)
File "/opt/modrana/modules/device_modules/device_n900.py", line 31, in <module>
import hildon
ImportError: No module named hildon
modRana: no device module name providedloading the Neo device module as fail-safe
* device: A Neo FreeRunner modRana device-specific module (0.00 ms)
GTK GUI: size allocation <GdkRectangle at 0x2ef738>
error in screen invalidating functionexception: 'NoneType' object has no attribute 'invalidate_rect'
* gui: A GTK GUI module (600.00 ms)
importing modules:
* menu: Handle menus (30.00 ms)
* tracklogManager: Module for managing tracklogs (0.00 ms)
* stats: Handles messages (10.00 ms)
* keys: A keyboard input handling module (0.00 ms)
* sketch: Sketching functionality (0.00 ms)
* askMenu: A sample pyroute module (0.00 ms)
onlineServices: using integrated non-binary simplejson, install proper simplejson package for better speed
* onlineServices: A module for talking to various online services (290.00 ms)
* tracklog: Record tracklogs (10.00 ms)
* markers: A module handling markers on the map. (0.00 ms)
* updateTiles: Update stored map tiles. (0.00 ms)
* search: Search for POI (10.00 ms)
* route: Routes (130.00 ms)
* showPOI: Show POI on the map and in the menu. (0.00 ms)
@ location: using GPSD
modules/mod_location/gps_daemon.py:171: Warning: 'with' will become a reserved keyword in Python 2.6
modRana: module: mod_location/location failed to load
Traceback (most recent call last):
File "modrana.py", line 297, in _loadModule
module = a.getModule(self.m, self.d, initInfo)
File "/opt/modrana/modules/mod_location/mod_location.py", line 25, in getModule
return(Location(m,d,i))
File "/opt/modrana/modules/mod_location/mod_location.py", line 50, in __init__
import gps_daemon
File "modules/mod_location/gps_daemon.py", line 171
with self.lock:
^
SyntaxError: invalid syntax
* loadTracklogs: A sample pyroute module (10.00 ms)
* voice: Handle text to speach. (0.00 ms)
* showOSD: Draw OSD (On Screen Display). (260.00 ms)
* notification: This module provides notification support. (10.00 ms)
* interfaceFeedback: A sample pyroute module (0.00 ms)
* routeProfile: Creates a route profile (an elevation chart) (0.00 ms)
* log: A modRana logging module (0.00 ms)
* storeTiles: Single-file-fs tile storage (20.00 ms)
* mapData: Handle downloading of map data (60.00 ms)
* animatedMapView: A sample pyroute module (10.00 ms)
* input: Handle input from keyboard, buttons, etc. (0.00 ms)
* info: A modRana information handling module (10.00 ms)
* turnByTurn: A turn by turn navigation module. (0.00 ms)
* positionMarker: A sample pyroute module (10.00 ms)
* tileserver: A modRana built-in tileserver (20.00 ms)
* clickHandler: handle mouse clicks (0.00 ms)
@ storePOI: POI database path:
@ /home/user/.modrana/poi/modrana_poi.db
@ storePOI: connection to POI db established
* storePOI: Store POI data. (0.00 ms)
* projection: Projection code (lat/long to screen conversions) (10.00 ms)
* display: A platform independent display device control module (0.00 ms)
* icons: Draw icons (220.00 ms)
* cron: A GTK timing and scheduling module for modRana (10.00 ms)
* showGPX: draws a GPX track on the map (0.00 ms)
* config: Handle configuration, options, and setup (10.00 ms)
* mapView: Controls the view being displayed on the map (10.00 ms)
@ mapTiles: map folder path: /home/user/.modrana/maps
* mapTiles: Display map images (160.00 ms)
* units: a unit handling module (10.00 ms)
* textEntry: A module for handling text entry. (0.00 ms)
* messages: Handles messages (0.00 ms)
* options: Handle options (10.00 ms)
* example: A sample pyroute module (10.00 ms)
Loaded all modules in 1400.00 ms, initialising
icons: switched theme to: default
** making a list of available tracklogs
* using this tracklog folder:
* /home/user/.modrana/tracklogs
* there are 3 tracklogs available
**
mapView: switching map drag mode to staticMapDrag
mapView: switching centering disable threshold to 2048
Initialization complete in 60.00 ms
** modRana startup timing **
# device: OpenMoko Neo FreeRunner (neo)
* modRana start (0 ms), 0/4170 ms
* imports done (322 ms), 322/4170 ms
* GUI creation (0 ms), 322/4170 ms
* window created (1093 ms), 1415/4170 ms
* map widget created (1 ms), 1416/4170 ms
* window finalized (12 ms), 1428/4170 ms
* all modules loaded (2519 ms), 3947/4170 ms
* all modules initialized (223 ms), 4170/4170 ms
** whole startup: 4170 ms **
display: redraw ON (window not hidden or minimised)
TypeError: update() takes exactly 1 argument (2 given)
icons: not found
GTK GUI: size allocation <GdkRectangle at 0x44fe48>
icons: not found
Shutting-down modules
storePOI: disconnecting from db

shutdown imminent, committing all uncommitted tiles
storeTiles: sqlite commit OK

all tiles committed, breaking, goodbye :)
modRana: saving options
modRana: options successfully saved

mapTiles: automatic tile download management thread shutting down
Shutdown complete
What can be so wrong/ different (f.i. from standard configuration of N900) ? Any do's & don'ts in these basics I'm completely ignoring?

Last edited by 7thd; 2012-07-08 at 23:38.
 

The Following 2 Users Say Thank You to 7thd For This Useful Post:
Posts: 12 | Thanked: 8 times | Joined on Nov 2010 @ South Africa
#1073
Reply to Martin RE:
ModRana QML is the new alternative GUI for modRana, based on Qt & QML. It is quite basic at the moment, but not really that basic (it does show a lot more than just a white screen ).

Do you have CSSU installed ? The QML GUI basically requires it to work correctly, as the Qt & PySide versions on stock PR 1.3 Fremantle are too old & buggy for it to work correctly.

Also, please try to start modRana QML from the terminal:
Code:
modrana-qml
And post the output. Thanks !

Hi Martin, I did try to run from the terminal but still the completely white blank screen.(I was going to post the output from X-terminal but don't know how to save it as I only have FreOffice & it would not save the file? Which APP could I use to save the output?)
I then installed 'CSSU Features' but when started it shows "The Community SSU is not installed. Some features might not work correctly." Then a message "ERROR: Reading the configurations settings gave a FATAL ERROR while reading the gconf values. Not all settings are available. Exiting....."
Starting modRana QML still gives the completely white blank screen.
At one point the phone completely froze so I am a little concerned. Perhaps I should just live without QML and just continue to use modRana which works A-OK
Many thanks for your input
 

The Following 2 Users Say Thank You to Evok For This Useful Post:
Posts: 432 | Thanked: 917 times | Joined on Jun 2011
#1074
Try this:
Originally Posted by Evok View Post

Code:
modrana-qml > log_modrana.txt
Which APP could I use to save the output?)
The output will be a simple .txt file.
 

The Following 3 Users Say Thank You to saponga For This Useful Post:
Posts: 12 | Thanked: 8 times | Joined on Nov 2010 @ South Africa
#1075
Originally Posted by Evok View Post
Reply to Martin RE:
ModRana QML is the new alternative GUI for modRana, based on Qt & QML. It is quite basic at the moment, but not really that basic (it does show a lot more than just a white screen ).

Do you have CSSU installed ? The QML GUI basically requires it to work correctly, as the Qt & PySide versions on stock PR 1.3 Fremantle are too old & buggy for it to work correctly.

Also, please try to start modRana QML from the terminal:
Code:
modrana-qml
And post the output. Thanks !

Hi Martin, I did try to run from the terminal but still the completely white blank screen.(I was going to post the output from X-terminal but don't know how to save it as I only have FreOffice & it would not save the file? Which APP could I use to save the output?)
I then installed 'CSSU Features' but when started it shows "The Community SSU is not installed. Some features might not work correctly." Then a message "ERROR: Reading the configurations settings gave a FATAL ERROR while reading the gconf values. Not all settings are available. Exiting....."
Starting modRana QML still gives the completely white blank screen.
At one point the phone completely froze so I am a little concerned. Perhaps I should just live without QML and just continue to use modRana which works A-OK
Many thanks for your input
Here is (finally) the output..
Code:
BusyBox v1.10.2 (Debian 3:1.10.2.legal-1osso30+0m5) built-in shell (ash)
Enter 'help' for a list of built-in commands.

~ $ modrana-qml > log_modrana.txt
Preloading theme "base" from cache
file:///opt/modrana/modules/gui_modules/gui_qml/qml/main.qml:13:19: Type MapPage unavailable
initialPage : MapPage {
^
file:///opt/modrana/modules/gui_modules/gui_qml/qml/MapPage.qml:20:5: Type PinchMap unavailable
PinchMap {
^
file:///opt/modrana/modules/gui_modules/gui_qml/qml/PinchMap.qml:422:5: PinchArea is not a type
PinchArea {
^
Killed
~ $
Perhaps this will help....
 

The Following User Says Thank You to Evok For This Useful Post:
Posts: 1,548 | Thanked: 7,510 times | Joined on Apr 2010 @ Czech Republic
#1076
Originally Posted by 7thd View Post
I' m unaware where so I post a full run&exit while in between reproducing this issue: 2 Mins of tracklogging (3 points created).
Oh you meant creating tracklogs in modRana, not just displaying them. I remembered that there were some graphical glitches when I last tested track logging. I checked it out again and it seems to be actually quite broken:
#194
Code:
 * logging trace is not shown on map until a color is selected
 * if a tracklog detail has been visited, the logging menu "tools" goes to tracklog detail "tools"
 * logging intervals seem to be ignored
 * tracklogs that are created seem to be corrupted or in wrong format
I'll try to do something about it.


Originally Posted by 7thd View Post
edit: I flashed my second n900 device to EMMC_By.MiDO.FaYad.8.giga.bin, + Vanilla PR1.3 kernel. Installed CSSU 21.2011.38-1Smaemo3 (as latest stable vers.).
Now modRana won't launch GPS (modR QML does OK )). I don't understand, that N900 is quite empty now...
Code:
~ $ modrana
== modRana Starting ==
modRana: loading options
modRana: module: device_n900/device failed to load
Traceback (most recent call last):
File "modrana.py", line 293, in _loadModule
a = __import__(importName)
File "/opt/modrana/modules/device_modules/device_n900.py", line 31, in <module>
import hildon
ImportError: No module named hildon
modRana: no device module name providedloading the Neo device module as fail-safe
* device: A Neo FreeRunner modRana device-specific module (0.00 ms)
GTK GUI: size allocation <GdkRectangle at 0x2ef738>
error in screen invalidating functionexception: 'NoneType' object has no attribute 'invalidate_rect'
* gui: A GTK GUI module (600.00 ms)
importing modules:
* menu: Handle menus (30.00 ms)
* tracklogManager: Module for managing tracklogs (0.00 ms)
* stats: Handles messages (10.00 ms)
* keys: A keyboard input handling module (0.00 ms)
* sketch: Sketching functionality (0.00 ms)
* askMenu: A sample pyroute module (0.00 ms)
onlineServices: using integrated non-binary simplejson, install proper simplejson package for better speed
* onlineServices: A module for talking to various online services (290.00 ms)
* tracklog: Record tracklogs (10.00 ms)
* markers: A module handling markers on the map. (0.00 ms)
* updateTiles: Update stored map tiles. (0.00 ms)
* search: Search for POI (10.00 ms)
* route: Routes (130.00 ms)
* showPOI: Show POI on the map and in the menu. (0.00 ms)
@ location: using GPSD
modules/mod_location/gps_daemon.py:171: Warning: 'with' will become a reserved keyword in Python 2.6
modRana: module: mod_location/location failed to load
Traceback (most recent call last):
File "modrana.py", line 297, in _loadModule
module = a.getModule(self.m, self.d, initInfo)
File "/opt/modrana/modules/mod_location/mod_location.py", line 25, in getModule
return(Location(m,d,i))
File "/opt/modrana/modules/mod_location/mod_location.py", line 50, in __init__
import gps_daemon
File "modules/mod_location/gps_daemon.py", line 171
with self.lock:
^
SyntaxError: invalid syntax
* loadTracklogs: A sample pyroute module (10.00 ms)
* voice: Handle text to speach. (0.00 ms)
* showOSD: Draw OSD (On Screen Display). (260.00 ms)
* notification: This module provides notification support. (10.00 ms)
* interfaceFeedback: A sample pyroute module (0.00 ms)
* routeProfile: Creates a route profile (an elevation chart) (0.00 ms)
* log: A modRana logging module (0.00 ms)
* storeTiles: Single-file-fs tile storage (20.00 ms)
* mapData: Handle downloading of map data (60.00 ms)
* animatedMapView: A sample pyroute module (10.00 ms)
* input: Handle input from keyboard, buttons, etc. (0.00 ms)
* info: A modRana information handling module (10.00 ms)
* turnByTurn: A turn by turn navigation module. (0.00 ms)
* positionMarker: A sample pyroute module (10.00 ms)
* tileserver: A modRana built-in tileserver (20.00 ms)
* clickHandler: handle mouse clicks (0.00 ms)
@ storePOI: POI database path:
@ /home/user/.modrana/poi/modrana_poi.db
@ storePOI: connection to POI db established
* storePOI: Store POI data. (0.00 ms)
* projection: Projection code (lat/long to screen conversions) (10.00 ms)
* display: A platform independent display device control module (0.00 ms)
* icons: Draw icons (220.00 ms)
* cron: A GTK timing and scheduling module for modRana (10.00 ms)
* showGPX: draws a GPX track on the map (0.00 ms)
* config: Handle configuration, options, and setup (10.00 ms)
* mapView: Controls the view being displayed on the map (10.00 ms)
@ mapTiles: map folder path: /home/user/.modrana/maps
* mapTiles: Display map images (160.00 ms)
* units: a unit handling module (10.00 ms)
* textEntry: A module for handling text entry. (0.00 ms)
* messages: Handles messages (0.00 ms)
* options: Handle options (10.00 ms)
* example: A sample pyroute module (10.00 ms)
Loaded all modules in 1400.00 ms, initialising
icons: switched theme to: default
** making a list of available tracklogs
* using this tracklog folder:
* /home/user/.modrana/tracklogs
* there are 3 tracklogs available
**
mapView: switching map drag mode to staticMapDrag
mapView: switching centering disable threshold to 2048
Initialization complete in 60.00 ms
** modRana startup timing **
# device: OpenMoko Neo FreeRunner (neo)
* modRana start (0 ms), 0/4170 ms
* imports done (322 ms), 322/4170 ms
* GUI creation (0 ms), 322/4170 ms
* window created (1093 ms), 1415/4170 ms
* map widget created (1 ms), 1416/4170 ms
* window finalized (12 ms), 1428/4170 ms
* all modules loaded (2519 ms), 3947/4170 ms
* all modules initialized (223 ms), 4170/4170 ms
** whole startup: 4170 ms **
display: redraw ON (window not hidden or minimised)
TypeError: update() takes exactly 1 argument (2 given)
icons: not found
GTK GUI: size allocation <GdkRectangle at 0x44fe48>
icons: not found
Shutting-down modules
storePOI: disconnecting from db

shutdown imminent, committing all uncommitted tiles
storeTiles: sqlite commit OK

all tiles committed, breaking, goodbye :)
modRana: saving options
modRana: options successfully saved

mapTiles: automatic tile download management thread shutting down
Shutdown complete
What can be so wrong/ different (f.i. from standard configuration of N900) ? Any do's & don'ts in these basics I'm completely ignoring?
Thats weird - this:
Code:
from __future__ import with_statement # for python 2.5
should be on the first line in /opt/modrana/modules/mod_location/gps_daemon.py. Maybe try to add it manually to see if it helps ?

It is actually rather weird that it works for anybody considering that line is missing.
I'll try to push a hot-fix ASAP, just in case.

EDIT:
Hotfix submitted, no need to manually edit anything, just update to V0.35.5 and try if GPS works.

Originally Posted by Evok View Post
Here is (finally) the output..
Code:
BusyBox v1.10.2 (Debian 3:1.10.2.legal-1osso30+0m5) built-in shell (ash)
Enter 'help' for a list of built-in commands.

~ $ modrana-qml > log_modrana.txt
Preloading theme "base" from cache
file:///opt/modrana/modules/gui_modules/gui_qml/qml/main.qml:13:19: Type MapPage unavailable
initialPage : MapPage {
^
file:///opt/modrana/modules/gui_modules/gui_qml/qml/MapPage.qml:20:5: Type PinchMap unavailable
PinchMap {
^
file:///opt/modrana/modules/gui_modules/gui_qml/qml/PinchMap.qml:422:5: PinchArea is not a type
PinchArea {
^
Killed
~ $
Perhaps this will help....
This looks like outdated Qt version.
( the PinchArea is available in QML since Qt 4.7.4). Do you have CSSU installed ? From the log it looks like you are just running PR 1.3, which has only Qt 4.7.0.

Basically -> no, CSSU == no modRana QML (but you can still use modRana with the classic GUI just fine )
__________________
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-07-09 at 22:17.
 

The Following 5 Users Say Thank You to MartinK For This Useful Post:
Posts: 98 | Thanked: 44 times | Joined on Mar 2010 @ Netherlands
#1077
Originally Posted by MartinK View Post
Thats weird - this:
Code:
from __future__ import with_statement # for python 2.5
should be on the first line in /opt/modrana/modules/mod_location/gps_daemon.py.
Confirm V0.32.5 has it there (line 19).



Hotfix submitted, no need to manually edit anything, just update to V0.35.5 and try if GPS works.
This has seemingly no effect. Version 0.32.5 git:0164ac5 doesn't launch GPS either. See code
Code:
$ modrana 
== modRana Starting == 
modRana: loading options 
modRana: module: device_n900/device failed to load 
Traceback (most recent call last): 
File "modrana.py", line 293, in _loadModule 
a = __import__(importName) 
File "/opt/modrana/modules/device_modules/device_n900.py", line 31, in <module> 
import hildon 
ImportError: No module named hildon 
modRana: no device module name providedloading the Neo device module as fail-safe 
* device: A Neo FreeRunner modRana device-specific module (0.00 ms) 
GTK GUI: size allocation <GdkRectangle at 0x2ef738> 
error in screen invalidating functionexception: 'NoneType' object has no attribute 'invalidate_rect' 
* gui: A GTK GUI module (600.00 ms) 
importing modules: 
* menu: Handle menus (30.00 ms) 
* tracklogManager: Module for managing tracklogs (0.00 ms) 
* stats: Handles messages (10.00 ms) 
* keys: A keyboard input handling module (10.00 ms) 
* sketch: Sketching functionality (10.00 ms) 
* askMenu: A sample pyroute module (0.00 ms) 
onlineServices: using integrated non-binary simplejson, install proper simplejson package for better speed 
* onlineServices: A module for talking to various online services (310.00 ms) 
* tracklog: Record tracklogs (0.00 ms) 
* markers: A module handling markers on the map. (20.00 ms) 
* updateTiles: Update stored map tiles. (0.00 ms) 
* search: Search for POI (0.00 ms) 
* route: Routes (100.00 ms) 
* showPOI: Show POI on the map and in the menu. (10.00 ms) 
@ location: using GPSD 
* location: Supplies position info from a position source (0.00 ms) 
* loadTracklogs: A sample pyroute module (10.00 ms) 
* voice: Handle text to speach. (0.00 ms) 
* showOSD: Draw OSD (On Screen Display). (260.00 ms) 
* notification: This module provides notification support. (0.00 ms) 
* interfaceFeedback: A sample pyroute module (0.00 ms) 
* routeProfile: Creates a route profile (an elevation chart) (0.00 ms) 
* log: A modRana logging module (0.00 ms) 
* storeTiles: Single-file-fs tile storage (30.00 ms) 
* mapData: Handle downloading of map data (50.00 ms) 
* animatedMapView: A sample pyroute module (0.00 ms) 
* input: Handle input from keyboard, buttons, etc. (0.00 ms) 
* info: A modRana information handling module (0.00 ms) 
* turnByTurn: A turn by turn navigation module. (10.00 ms) 
* positionMarker: A sample pyroute module (0.00 ms) 
* tileserver: A modRana built-in tileserver (50.00 ms) 
* clickHandler: handle mouse clicks (10.00 ms) 
@ storePOI: POI database path: 
@ /home/user/.modrana/poi/modrana_poi.db 
@ storePOI: connection to POI db established 
* storePOI: Store POI data. (10.00 ms) 
* projection: Projection code (lat/long to screen conversions) (0.00 ms) 
* display: A platform independent display device control module (10.00 ms) 
* icons: Draw icons (210.00 ms) 
* cron: A GTK timing and scheduling module for modRana (0.00 ms) 
* showGPX: draws a GPX track on the map (10.00 ms) 
* config: Handle configuration, options, and setup (10.00 ms) 
* mapView: Controls the view being displayed on the map (0.00 ms) 
@ mapTiles: map folder path: /home/user/.modrana/maps 
* mapTiles: Display map images (150.00 ms) 
* units: a unit handling module (0.00 ms) 
* textEntry: A module for handling text entry. (10.00 ms) 
* messages: Handles messages (0.00 ms) 
* options: Handle options (10.00 ms) 
* example: A sample pyroute module (10.00 ms) 
Loaded all modules in 1370.00 ms, initialising 
icons: switched theme to: default 
location: starting GPSD 1 second timer 
location: enabling location 
('location GPSD: connecting to GPSD failed', error(111, 'Connection refused')) 
** making a list of available tracklogs 
* using this tracklog folder: 
* /home/user/.modrana/tracklogs 
* there are 2 tracklogs available 
** 
mapView: switching map drag mode to staticMapDrag 
mapView: switching centering disable threshold to 2048 
Initialization complete in 90.00 ms 
** modRana startup timing ** 
# device: OpenMoko Neo FreeRunner (neo) 
* modRana start (0 ms), 0/4361 ms 
* imports done (333 ms), 333/4361 ms 
* GUI creation (0 ms), 333/4361 ms 
* window created (1080 ms), 1413/4361 ms 
* map widget created (1 ms), 1414/4361 ms 
* window finalized (11 ms), 1425/4361 ms 
* all modules loaded (2590 ms), 4016/4361 ms 
* all modules initialized (345 ms), 4361/4361 ms 
** whole startup: 4361 ms ** 
display: redraw ON (window not hidden or minimised) 
TypeError: update() takes exactly 1 argument (2 given) 
icons: not found 
GTK GUI: size allocation <GdkRectangle at 0x457398> 
icons: not found 
Shutting-down modules 
storePOI: disconnecting from db 
location: disabling location 
location: stopping location failed GPSD instance has no attribute 'GPSDConsumer' 

shutdown imminent, committing all uncommitted tiles 
storeTiles: sqlite commit OK 

all tiles committed, breaking, goodbye :) 
modRana: saving options 

mapTiles: automatic tile download management thread shutting down 
modRana: options successfully saved 
Shutdown complete 
error in screen invalidating functionexception: 'NoneType' object has no attribute 'invalidate_rect' 
~ $
----------------------------------------------------------------------

Cool, I'll be happy to wait for this fix. Tracklogging in my eyes is a top row feature of modRana

Last edited by 7thd; 2012-07-11 at 05:36.
 
Posts: 1,548 | Thanked: 7,510 times | Joined on Apr 2010 @ Czech Republic
#1078
Oh, now I see it:
Code:
modRana: module: device_n900/device failed to load 
Traceback (most recent call last): 
File "modrana.py", line 293, in _loadModule 
a = __import__(importName) 
File "/opt/modrana/modules/device_modules/device_n900.py", line 31, in <module> 
import hildon 
ImportError: No module named hildon 
modRana: no device module name providedloading the Neo device module as fail-safe
I checked the modRana package dependencies and indeed - the python-hildon package is missing.

Your re-flash is probably what exposed this bug, as other users have probably already installed something, that has python-hildon as a dependency, so it works for them.

I've added the missing dependency in V0.31.6 - so please test.

Originally Posted by 7thd View Post
Cool, I'll be happy to wait for this fix. Tracklogging in my eyes is a top row feature of modRana
Yep, fixing it is a high-priority task for me.
__________________
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: 43 | Thanked: 50 times | Joined on Apr 2011 @ Ipoh, Malaysia
#1079
@beermad

Using your perl script I am getting the following error -

DBD::SQLite::st execute failed: datatype mismatch: bind 5 type 1 as png at mapconvert line 80.

Any workaround ?


Originally Posted by beermad View Post
OK, I've got a working Perl script to import map tiles into the database.

At the moment, it won't run on the N900 itself, as I'm having a few problems getting the SQLite module to build on my scratchbox installation; I'll work on that over the next few days when I have spare time and see if I can get that working.

Dependencies: You'll need to install the Perl DBI and DBD-SQLite modules. These should be available from your disto's repositories (otherwise, get them from CPAN).

It took about 75 minutes to import my 200 000 tiles into the database on my dual-core Athlon machine; obviously this will vary depending on the speed of the machine it's done on. The script is interruptible - just hit Control-C and it'll shut down cleanly. Then restart at your leisure.

Getting it to work on an OS other than Linux is left as an exercise for the reader, as I'm happily Microsoft-free.

It demonstrates well the oft-mentioned clustering problem with FAT partitions; my tile files allocated 12.5G of space, whereas the store file is only 543M.

Instructions:

Download the script from http://www.beermad.org.uk/mapconvert

Either copy your ~/MyDocs/.maps directory to your Linux box or mount your MyDocs partition on it. Try to preserve the timestamps if copying (as they're recorded in the database, I assume they're used to work out if a new copy of any tile is needed if they've changed on the tile server) - for example, if using scp:
Code:
scp -pr ~/MyDocs/.maps mycomputer:/tmp
The script only works on tiles in the current working directory, so for each map-type, cd into the relevant directory:
Code:
cd /path/to/tile_directory
Then run the script (no parameters needed).

If necessary, copy the lookup.sqlite and store.sqlite.* files back to your N900.

If there are any tiles already in the database, it leaves them there and it doesn't try to over-write any if one it finds already exists (at some time I should change this so it does over-write if the tile file is newer).

If you already have tiles in a database, I recommend making a copy first, just in case anything goes wrong. I've tested the script a fair bit, but can't guarantee something won't screw up.
 

The Following User Says Thank You to MetalGearSolid For This Useful Post:
Posts: 98 | Thanked: 44 times | Joined on Mar 2010 @ Netherlands
#1080
Originally Posted by MartinK View Post
(...) users have probably already installed something, that has python-hildon as a dependency, so it works for them.

I've added the missing dependency in V0.31.6 - so please test. (...)
I've testdriven on a highway, because GPS launch was succesful and regular.
In earlier versions I connected to hotspot (other N900), too and downloaded maps without any problems. Downloading didn't happen, fix was OK I presume (at OSM I & Virtual Earth Hybrid layers/ zooms).
Code:
all proper simplejson package for better speed 
* onlineServices: A module for talking to various online services (310.00 ms) 
* tracklog: Record tracklogs (10.00 ms) 
* markers: A module handling markers on the map. (0.00 ms) 
* updateTiles: Update stored map tiles. (0.00 ms) 
* search: Search for POI (10.00 ms) 
* route: Routes (100.00 ms) 
* showPOI: Show POI on the map and in the menu. (10.00 ms) 
* location: Supplies position info from a position source (10.00 ms) 
* loadTracklogs: A sample pyroute module (10.00 ms) 
* voice: Handle text to speach. (0.00 ms) 
* showOSD: Draw OSD (On Screen Display). (280.00 ms) 
* notification: This module provides notification support. (0.00 ms) 
* interfaceFeedback: A sample pyroute module (20.00 ms) 
* routeProfile: Creates a route profile (an elevation chart) (10.00 ms) 
* log: A modRana logging module (0.00 ms) 
* storeTiles: Single-file-fs tile storage (20.00 ms) 
* mapData: Handle downloading of map data (70.00 ms) 
* animatedMapView: A sample pyroute module (0.00 ms) 
* input: Handle input from keyboard, buttons, etc. (10.00 ms) 
* info: A modRana information handling module (10.00 ms) 
* turnByTurn: A turn by turn navigation module. (0.00 ms) 
* positionMarker: A sample pyroute module (10.00 ms) 
* tileserver: A modRana built-in tileserver (40.00 ms) 
* clickHandler: handle mouse clicks (0.00 ms) 
@ storePOI: POI database path: 
@ /home/user/MyDocs/.maps/modrana_poi.db 
@ storePOI: connection to POI db established 
* storePOI: Store POI data. (0.00 ms) 
* projection: Projection code (lat/long to screen conversions) (0.00 ms) 
* display: A platform independent display device control module (0.00 ms) 
* icons: Draw icons (250.00 ms) 
* cron: A GTK timing and scheduling module for modRana (10.00 ms) 
* showGPX: draws a GPX track on the map (0.00 ms) 
* config: Handle configuration, options, and setup (0.00 ms) 
* mapView: Controls the view being displayed on the map (0.00 ms) 
@ mapTiles: map folder path: /home/user/MyDocs/.maps/ 
* mapTiles: Display map images (120.00 ms) 
* units: a unit handling module (10.00 ms) 
* textEntry: A module for handling text entry. (10.00 ms) 
* messages: Handles messages (10.00 ms) 
* options: Handle options (10.00 ms) 
* example: A sample pyroute module (0.00 ms) 
Loaded all modules in 1430.00 ms, initialising 
icons: switched theme to: default 
location: starting GPSD 1 second timer 
location: enabling location 
** n900 - location: - GPS successfully activated ** 
n900 - location: activated 
N900 rotation object initialized 
N900: rotation object loaded 
True 
N900: key centred toggled 
N900: key soundEnabled toggled 
N900: application menu added 
** making a list of available tracklogs 
* using this tracklog folder: 
* /home/user/MyDocs/tracklogs 
* there are 2 tracklogs available 
** 
display: keep display ON -> always 
mapView: switching map drag mode to staticMapDrag 
mapView: switching centering disable threshold to 2048 
Initialization complete in 220.00 ms 
** modRana startup timing ** 
# device: Nokia N900 (n900) 
* modRana start (0 ms), 0/5263 ms 
* imports done (333 ms), 333/5263 ms 
* GUI creation (0 ms), 333/5263 ms 
* window created (1030 ms), 1364/5263 ms 
* map widget created (1 ms), 1365/5263 ms 
* window finalized (49 ms), 1414/5263 ms 
* all modules loaded (2803 ms), 4217/5263 ms 
* all modules initialized (1046 ms), 5263/5263 ms 
** whole startup: 5263 ms ** 
display: redraw ON (window not hidden or minimised) 
TypeError: update() takes exactly 1 argument (2 given) 
display: redraw ON (N900 window is active) 
GTK GUI: size allocation <GdkRectangle at 0x4756a8> 
icons: not found 
Clicked, sending menu:screenClicked 
Clicked, sending menu:screenClicked 
Clicked, sending menu:screenClicked 
GTK GUI: size allocation <GdkRectangle at 0x5d4ba0> 
icons: not found 
display: redraw OFF (N900 window is not active) 
GTK GUI: size allocation <GdkRectangle at 0x5cff90> 
display: redraw ON (N900 window is active) 
display: redraw OFF (N900 window is not active) 
display: redraw ON (N900 window is active) 
Sending message: mapView:zoomOut 
notification: message: zooming <b>out</b> to zl 9, timeout: 0.0 
notification@dmod: message: zooming <b>out</b> to zl 9, timeout: 0.0 
unassigned key pressed: F8 
mapTiles: can't create folder /home/user/MyDocs/.maps/Virtual Earth Hybrid/9/261 for /home/user/MyDocs/.maps/Virtual Earth Hybrid/9/261/169.jpg 
Shutting-down modules 
storePOI: disconnecting from db 
location: disabling location 
n900 - location: stopping 

shutdown imminent, committing all uncommitted tiles 
storeTiles: sqlite commit OK 

all tiles committed, breaking, goodbye :) 
modRana: saving options 

mapTiles: automatic tile download management thread shutting down 
modRana: options successfully saved 
Shutdown complete
Too bad i missed the first part of code I assume.

Last edited by 7thd; 2012-07-11 at 22:57.
 

The Following User Says Thank You to 7thd 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 21:56.