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-15 16:50

Re: [Announce] modRana: a flexible GPS navigation system
 
started from commandline, once the maps fail to show I disabled centering, then stopped again:

Code:

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 0x460e10>
mapTiles: exception while drawing the map layer: ModRana instance has no attribute 'expandViewportTiles'
Traceback (most recent call last):
  File "/opt/modrana/modules/mod_mapTiles.py", line 555, in drawMap
    add = self.modrana.expandViewportTiles
AttributeError: ModRana instance has no attribute 'expandViewportTiles'
icons:  not found
mapTiles: exception while drawing the map layer: ModRana instance has no attribute 'expandViewportTiles'
Traceback (most recent call last):
  File "/opt/modrana/modules/mod_mapTiles.py", line 555, in drawMap
    add = self.modrana.expandViewportTiles
AttributeError: ModRana instance has no attribute 'expandViewportTiles'
mapTiles: exception while drawing the map layer: ModRana instance has no attribute 'expandViewportTiles'
Traceback (most recent call last):
  File "/opt/modrana/modules/mod_mapTiles.py", line 555, in drawMap
    add = self.modrana.expandViewportTiles
AttributeError: ModRana instance has no attribute 'expandViewportTiles'
False
N900: key centred toggled
False
sqlite tiles: initializing db for layer: Google Maps
Shutting-down modules

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

all tiles committed, breaking, goodbye :)
storePOI: disconnecting from db
location: disabling location
n900 - location: stopping


MartinK 2012-05-16 09:59

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

Originally Posted by petur (Post 1207046)
started from commandline, once the maps fail to show I disabled centering, then stopped again:

Thanks for the CLI output! I've just uploaded version 0.31.5 where it should be fixed. Looks like I forgot to rewrite some calls when moving the GUI to its separate module. :) So please check if the issue is gone or if you can still somehow reproduce it. :)

petur 2012-05-16 10:22

Re: [Announce] modRana: a flexible GPS navigation system
 
Looks fixed. Thanks!

rotoflex 2012-05-17 07:58

Re: [Announce] modRana: a flexible GPS navigation system
 
Thank you, Martin.

The shortcuts for Modrana & Modrana QML now appear as blue squares. I have re-powered the N900, but they do not change to the usual icons.

anab 2012-05-17 08:13

modRana: No GPS connection after update
 
1 Attachment(s)
I enjoy with version 0.29.02. After update and in end new installation some probs. No GPS connection. no automatic rotation. German language is mixed with english. The shortcuts for Modrana & Modrana QML now appear as blue squares.

MartinK 2012-05-17 11:03

Re: modRana: No GPS connection after update
 
Quote:

Originally Posted by anab (Post 1207709)
I enjoy with version 0.29.02. After update and in end new installation some probs. No GPS connection. no automatic rotation.

This was caused by a missing dependency, I've just uploaded V0.31.6 that should fix it. :)

Quote:

Originally Posted by anab (Post 1207709)
German language is mixed with english.

Where exactly ? In the written/spoken driving directions ?

Quote:

Originally Posted by anab (Post 1207709)
The shortcuts for Modrana & Modrana QML now appear as blue squares.

Quote:

Originally Posted by rotoflex (Post 1207701)
Thank you, Martin.

The shortcuts for Modrana & Modrana QML now appear as blue squares. I have re-powered the N900, but they do not change to the usual icons.

Yep, I got that too. I'll check out the icon installation paths, probably made a typo somewhere when upgrading the packaging scripts. :)

UPDATE
I've just uploaded V0.31.8 that fixes the missing desktop icons. :)

rotoflex 2012-05-17 16:29

Re: modRana: No GPS connection after update
 
Quote:

Originally Posted by anab (Post 1207709)
I enjoy with version 0.29.02.

For some reason, my N900 didn't notice that updates for Modrana were available. After waiting a day or so after MartinK announced the update was available, I opened the N900's Application Manager, selected "Update", & the Modrana update was immediately discovered.

anab 2012-05-17 17:27

Re: modRana: No GPS connection after update
 
UPDATE
I've just uploaded V0.31.8 that fixes the missing desktop icons. :)[/QUOTE]

Seems to be fixed for me.
Great job and fast reply!
Thanks a lot, Martin!:)

gkuenning 2012-05-17 23:54

Re: [Announce] modRana: a flexible GPS navigation system
 
Hmmm...the new Qt version seems to launch to a completely black screen. Is it just slow the first time, or do I have something actually broken?

mick3_de 2012-05-18 12:18

Re: [Announce] modRana: a flexible GPS navigation system
 
1 Attachment(s)
Quote:

Originally Posted by gkuenning (Post 1208265)
Hmmm...the new Qt version seems to launch to a completely black screen. Is it just slow the first time, or do I have something actually broken?

The same for me. There is a segmentation fault at the end:

Preloading theme "base" from cache
file:///opt/modrana/modules/gui_modules/gui_qml/qml/main.qml:12: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 {
^
"" ""
"" ""
"" ""
"" ""
"" ""
"" ""
"" ""
"" ""
Segmentation fault

MartinK 2012-05-18 22:20

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

Originally Posted by gkuenning (Post 1208265)
Hmmm...the new Qt version seems to launch to a completely black screen. Is it just slow the first time, or do I have something actually broken?

[QUOTE=mick3_de;1208615]The same for me. There is a segmentation fault at the end:


Do you have CSSU installed ? It is (unfortunately ?) a prerequisite for running the QML GUI as Qt Components & PySide are badly broken on vanilla PR 1.3 Fremantle.

Quote:

Originally Posted by mick3_de (Post 1208615)
file:///opt/modrana/modules/gui_modules/gui_qml/qml/PinchMap.qml:422:5: PinchArea is not a type
PinchArea {
^

This looks like running under QML 1.0, which doesn't have PinchArea and some other types/properties. Still, it should have crashed sooner on import QtQuick 1.1, which should not be available without CSSU. :)

petur 2012-05-18 23:49

Re: [Announce] modRana: a flexible GPS navigation system
 
Don't know what I did wrong, but it looks like it's ignoring my settings, like switching off the screen even if I set it to always on, etc... I see the config bin file gets updated in ~/.modrana so I'm puzzled what this is...

mick3_de 2012-05-19 08:34

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

Originally Posted by MartinK (Post 1208946)
Do you have CSSU installed ? It is (unfortunately ?) a prerequisite for running the QML GUI as Qt Components & PySide are badly broken on vanilla PR 1.3 Fremantle.

Ok, I installed CSSU. Seems to work now.

Quote:

Originally Posted by MartinK (Post 1208946)
This looks like running under QML 1.0, which doesn't have PinchArea and some other types/properties. Still, it should have crashed sooner on import QtQuick 1.1, which should not be available without CSSU. :)

Can you add some dependency test to prevent installation for PR 1.3 without CSSU? I had no problems to get it with all of python-qtmobility12 installed.

Best, M.

mick3_de 2012-05-19 09:00

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

Originally Posted by mick3_de (Post 1209100)
Ok, I installed CSSU. Seems to work now.

Now I have random segfaults later after loading some tiles:
.
.
.
RESPONSE
STORED
download
http://c.tile.openstreetmap.org/mm/nnnn/oooo.png
"" ""
"" ""
Segmentation fault


Still, loading or rendering tiles seems to be much slower compared to the older GTK version.

Thanks, M.

petur 2012-05-19 09:48

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

Originally Posted by petur (Post 1208987)
Don't know what I did wrong, but it looks like it's ignoring my settings, like switching off the screen even if I set it to always on, etc... I see the config bin file gets updated in ~/.modrana so I'm puzzled what this is...

from looking at the terminal output, the config is read fine (says display on -> always) but still switches off the screen after some time.

aaaargh.

MartinK 2012-05-19 12:10

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

Originally Posted by petur (Post 1209126)
from looking at the terminal output, the config is read fine (says display on -> always) but still switches off the screen after some time.

aaaargh.

Looks like I managed to reproduce it - I'll see what's causing it. :)

petur 2012-05-19 16:02

Re: [Announce] modRana: a flexible GPS navigation system
 
If you find it in the next 2 hours I can use it to navigate to the restaurant easier :)
(currently at the rockbox devcon)

MartinK 2012-05-19 16:35

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

Originally Posted by petur (Post 1209258)
If you find it in the next 2 hours I can use it to navigate to the restaurant easier :)
(currently at the rockbox devcon)

OK, I'm on it. :D

petur 2012-05-19 16:44

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

[message too short fix]

MartinK 2012-05-19 17:21

Re: [Announce] modRana: a flexible GPS navigation system
 
Just uploaded V0.31.10 where it (screen blanking prevention not working) should be fixed. :)

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.

droll 2012-05-22 01:14

Re: [Announce] modRana: a flexible GPS navigation system
 
works like magic now. Thanks MartinK!

int_ua 2012-05-23 10:24

Re: [Announce] modRana: a flexible GPS navigation system
 
0.31.13:
Left top corner in Options behaves as standard "task switcher". It may be a useful feature but the "back" button in About is blocked this way.
Also it jumps to South Atlantic Ocean for a second after startup :)
modrana still terminates if I leave it inactive for a while:
Quote:

* all modules loaded (12289 ms), 12713/13505 ms
* all modules initialized (792 ms), 13505/13505 ms
** whole startup: 13505 ms **
Preloading theme "base" from cache
GET
(u'currentTheme', u'default', 'default')
Segmentation fault (core dumped)
Do you need a dump?

Wikiwide 2012-05-23 12:06

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

Originally Posted by MartinK (Post 1208946)
Quote:

Originally Posted by mick3_de (Post 1208615)
The same for me. There is a segmentation fault at the end:

Do you have CSSU installed ? It is (unfortunately ?) a prerequisite for running the QML GUI as Qt Components & PySide are badly broken on vanilla PR 1.3 Fremantle.



This looks like running under QML 1.0, which doesn't have PinchArea and some other types/properties. Still, it should have crashed sooner on import QtQuick 1.1, which should not be available without CSSU. :)

QtQuick is available by installing qtquickcompat, or it pretends to be.
Is it necessary to install CSSU to get modrana-qml working? Could the Qt dependencies of Modrana be specified more clearly?

Which version of interface should be better for battery life - in case I need to travel for day or more, while electricity is scarce?

Thank you. The program is as enjoyable as ever.

doublezero 2012-05-24 14:21

Re: [Announce] modRana: a flexible GPS navigation system
 
Hi Martin. First of all, congratulations for the software, and thank you.

Some questions: the qml gui is not fully functional yet, right?
And what about this error: "//usr/lib/qt4/imports/com/nokia/meego/PageStack.js:123: TypeError: Result of expression 'page' [undefined] is not an object."?

Thanks again.

MartinK 2012-05-24 22:11

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

Originally Posted by bipinbn (Post 1209971)
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.

Yep, checking the number of lines & changing the font size accordingly should do the trick. :)

Quote:

Originally Posted by int_ua (Post 1211258)
0.31.13:
Left top corner in Options behaves as standard "task switcher". It may be a useful feature but the "back" button in About is blocked this way.

I think this is the default behavior for the Maemo 5 Qt Components port - it tries to fix the lack of Swipe by basically adding invisible Hildon style window controls. So clicking the upper left corner will probably close modRana. :)

As modRana has no need for these invisible buttons due to the fullscreen toggle button on the map screen, I'll have to check out how to disable them (or change the behaviour so that it won't clash with the back button).

Quote:

Originally Posted by int_ua (Post 1211258)
Also it jumps to South Atlantic Ocean for a second after startup :)

Thats the geographic point, where both latitude & longitude are equal to zero. :)
I'll change it to the last known position in a future update.

Quote:

Originally Posted by int_ua (Post 1211258)
modrana still terminates if I leave it inactive for a while:
Do you need a dump?

Well, why not. But I've never worked with crash-dumps before, so also a pointer what to use to analyze it would be welcome. :)

I'll also try to do some stress testing to check if I can also manage to make it segfault. BTW, I've also had quite a few segfaults initially on Fremantle:
  • after importing python-mobility - solved by this contraption as found in a bug-report somewhere
  • random segfeaults & segfaults when minimized - solved by making sure no GTK/Gobject/Hildon stuff is accidentally loaded when running with the QML interface
GTK & company making Qt application segfault is quite a weird combination, considering that for example the latest AGTL has a QML interface, which is used together with a Gobject based (signals, callbacks) "core". :)

Quote:

Originally Posted by Wikiwide (Post 1211298)
QtQuick is available by installing qtquickcompat, or it pretends to be.

Yes, it is, but it only supports QtQuick 1.0. CSSU & Harmattan have 1.1. Also, on non-CSSU Qt Components have a different namespace (org.maemo.fremantle vs the usual com.nokia.meego).
As a result, I would need to maintain two versions for all QML files - one for vanilla Fremantle which has the Fremantle QtC namespace & uses only QtQuick 1.0 features (no pinch area, no image caching, some other missing properties, etc.) and then a "normal" version for CSSU & Harmattan.

Due to the missing features in QtQuick 1.0, just replacing the namespace won't do, I would have to to synchronize the changes between the two by hand. And the QML files change a lot - it's just too much work.

Actually, I tried to make a separate non-CSSU QML files for Mieru - but even after changing the namespace & commenting out all the QtQuick 1.1 features, the application started, but with a very broken layout & there were other issues (no support for multiple decorators) caused by the old PySide version. Never got it to work usably on non-CSSU in the end. I have since then upgraded my N900 to CSSU, so I don't have a real device to test the non-CSSU version on anyway.

Quote:

Originally Posted by Wikiwide (Post 1211298)
Is it necessary to install CSSU to get modrana-qml working?

Yep.

Quote:

Originally Posted by Wikiwide (Post 1211298)
Could the Qt dependencies of Modrana be specified more clearly?

Well, the "classic" GTK interface is still usable without issues on both CSSU and non-CSSU, so old Qt version should not be preventing users from running modRana with the GTK GUI.

But I can (and probably will) add a runtime Qt version detection. If it detects Qt version < 4.7.4 (Harmattan also has 4.7.4, non-CSSU has 4.7.0) it would show a "You need to upgrade to CSSU to run the new QML based modRana interface." instead of just crashing.

Quote:

Originally Posted by Wikiwide (Post 1211298)
Which version of interface should be better for battery life - in case I need to travel for day or more, while electricity is scarce?

Probably the QML interface.
The GTK interface:
  • does full screen redraws only
  • redraws at least once per second even if nothing changes
  • when drawing the map, tiles are laid-out, rotated, scaled, etc. again on every redraw
  • runs everything on CPU

Don't really know about how QML handles screen redrawing but I'd guess it should be much more efficient. Also, it either uses some form of GPU acceleration or is just much more optimized, consider how much more smooth it is.

Still, might be interesting to compare the two in some simple battery usage benchmark. :)

Quote:

Originally Posted by doublezero (Post 1211937)
Some questions: the qml gui is not fully functional yet, right?
And what about this error: "//usr/lib/qt4/imports/com/nokia/meego/PageStack.js:123: TypeError: Result of expression 'page' [undefined] is not an object."?

This happens when you press a menu on a button that points to a page menu/screen that is not yet present. Nothing serious. :)

gkuenning 2012-05-25 05:48

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

Originally Posted by MartinK (Post 1212158)
Well, why not. But I've never worked with crash-dumps before, so also a pointer what to use to analyze it would be welcome. :)

gdb is the most common tool. But I'm not sure what you'd learn. With an interpreted language like Python, what you get is a traceback that tells you where the interpreter died. Connecting that to a problem in the Python source is almost impossible without intimate knowledge of how the interpreter works.

My experience is that the Python interpreter never crashes due to segfaults; Python programs die with exceptions. Given that fact, I think that a traceback from the console wold be vastly more useful than a crash dump.

MartinK 2012-05-25 10:03

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

Originally Posted by gkuenning (Post 1212230)
My experience is that the Python interpreter never crashes due to segfaults; Python programs die with exceptions. Given that fact, I think that a traceback from the console wold be vastly more useful than a crash dump.

I don't think it is Python crashing, most probably either Qt or Qt Mobility (or both) segfault and take the rest of the program down with it.

Ken-Young 2012-05-25 13:31

Re: [Announce] modRana: a flexible GPS navigation system
 
Modrana has stopped downloading new tiles on my N900. It still displays the cached tiles I have downloaded in the past, and properly positions me on the map, but whenever a new tile is needed, I just get the "Loading..." message which never clears. I have tried uninstalling and reinstalling Modrana, but that did not help. I have tried both Wifi and 3G network connects, and I have verified that the network was functional. No luck. I have also verified that the Openstreetmap site was online and functional when I did these tests. Has anyone else seen this problem, and/or has some idea how I can fix it?

cirodv 2012-05-25 20:47

Re: [Announce] modRana: a flexible GPS navigation system
 
Hi Martin.

First of all, congratulations for your excellent job. I appreciate very much.

I'm facing serious problems when trying to batch download an area for my Google Map layer. Downloading "on the fly" is (almost) always efficient and fast, even via cellular network, but the batch downloading always fails - with few exceptions.

My /home/user/.modrana/map_config.conf sets "http://mt1.google.com/vt/"
as the url where the Google Maps are supposed to live, but opening such an url with my browser gives the error message "Your client has issued a malformed or illegal request. That's all we know.". Is this the issue?

A good solution could the Sqlite batch import scrip discussed at
http://modrana.org/trac/wiki/SQLiteT...rtPerlScriptEN. The
problem here is that the perlscript mapconvert I've downloaded
from http://www.beermad.org.uk/mapconvert doesn't work in my linux box running Fedora: the error message is "install_driver(SQLite)
failed: Can't locate DBD/SQLite.pm in @INC (@INC contains:
/usr/local/lib/perl5 /usr/local/share/perl5 /usr/lib/perl5/vendor_perl
/usr/share/perl5/vendor_perl /usr/lib/perl5 /usr/share/perl5 .) at (eval 5)
line 3. Perhaps the DBD::SQLite perl module hasn't been fully installed,
or perhaps the capitalisation of 'SQLite' isn't right. Available drivers:
DBM, ExampleP, File, Gofer, Proxy, Sponge, mysql. at ./mapconvert line 24".

Which are the packages required? According to the listed dependencies, it seems that the rpm packages perl-DBI and perl-DBD-MySQL should meet the requirements, but, although I've installed them, I get the previous mentioned perl error message.

Thank you very much for any help.

Ken-Young 2012-05-25 23:34

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

Originally Posted by Ken-Young (Post 1212366)
Modrana has stopped downloading new tiles on my N900. It still displays the cached tiles I have downloaded in the past, and properly positions me on the map, but whenever a new tile is needed, I just get the "Loading..." message which never clears. I have tried uninstalling and reinstalling Modrana, but that did not help. I have tried both Wifi and 3G network connects, and I have verified that the network was functional. No luck. I have also verified that the Openstreetmap site was online and functional when I did these tests. Has anyone else seen this problem, and/or has some idea how I can fix it?

Nevermind - I found the problem. The Network Usage option Only For Important Data had been set. Apparently downloading tiles is not considered important. Selecting Unlimited Use of Network fixed the problem.


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

vBulletin® Version 3.8.8