Notices


Reply
Thread Tools
Posts: 650 | Thanked: 497 times | Joined on Oct 2008 @ Ghent, Belgium
#751
Originally Posted by MartinK View Post
I had some packaging issues -> thats why 0.26-2 is out already. BTW modRana does not know its version until it is packaged and a file called version.txt is written to its main folder.
I already had 0.26-2 when I wrote that, it says unknown version.

There is no version.txt in /opt/modrana/
__________________
Affordable mobile internet in Belgium: Try Mobile Vikings
2 GB, 1000 SMS and 15 euro of talk time for.... 15 euro
 
Posts: 67 | Thanked: 36 times | Joined on May 2010 @ Claremont (LA), California
#752
Just a heads-up to people: since I made my turn-announcement changes, I've noticed that I don't get proper (for some definition of "proper" :-D) announcements when turns come in quick succession. (It happens that the last three turns to my house are under 100m apart, so I get a lot of chances to test it.)

I'll look at the code when I get a chance and see if I figure out why I broke it or how to improve it. Meanwhile, if your map shows a bunch of turns close together, be alert!
 

The Following 2 Users Say Thank You to gkuenning For This Useful Post:
Posts: 1,548 | Thanked: 7,510 times | Joined on Apr 2010 @ Czech Republic
#753
Originally Posted by superpj101 View Post
when I try to use the batch download. im getting alot of failed download.

heres the log:
Batch tile dl working... (threads: 29) pending: 8495, done: 51
exception in get tiles thread:
the downloaded tile is not an image as per its magic number (it is probably an error response webpage returned by the server)
Batch size working... (threads: 29), pending: 8245, done: 286
Batch tile dl working... (threads: 29) pending: 8494, done: 52
exception in get tiles thread:


btw, im using google map and storage as sqlite. Thanks!
Some tile providers don't like batch downloading and return an error pages in place of a tile - which results in this kind of errors you are getting.

Originally Posted by MarkyboyUK View Post
Im not sure how you run it from CLI but if you mean run terminal sudo gainroot and then type modrana then here is the output.

home/user # modrana
== modRana Starting ==
device string (first parameter): n900
process 2669: arguments to dbus_connection_get_data() were incorrect, assertion "connection != NULL" failed in file dbus-connection.c line 5757.
This is normally a bug in some application using the D-Bus library.
process 2669: arguments to dbus_connection_set_data() were incorrect, assertion "connection != NULL" failed in file dbus-connection.c line 5721.
This is normally a bug in some application using the D-Bus library.
Aborted

Turning the GPS option off and on again in Modrana did not resolve it nor did renaming the options.bin file
I think I remember somebody reporting some other DBUS related errors though I don't remember how or if it was solved in the end...

Some more things to try:
  • just running modrana without the sudo gainroot and posting the result (but it works in my case even as root)
  • reinstalling
    Code:
    sudo gainroot
    apt-get update
    apt-get remove modrana
    apt-get install modrana
  • checking if python-dbus is installed (it is listed as a dependency so it should be...)
    Code:
    sudo gainroot
    apt-get update
    apt-get install python-dbus
  • rebooting and then running modRana (I have seen some mentions of DBUS related out of memory errors like this one in Google search results...)
  • upgrading to 0.26-3 - no idea how it might fix your issue, but why not

Originally Posted by petur View Post
I already had 0.26-2 when I wrote that, it says unknown version.

There is no version.txt in /opt/modrana/
I have released V0.26-3 that has the version file and is also build in a more "standard" way.

Originally Posted by jose6a View Post
the update process hangs saying that libmagic1 is missing...

i just trie to install last version with command line
and apt-get fails too :
"modrana depends : libmagic1 but it is not installable" ....

can somebody help me ?
Well, thats weird - i have checked the repost and libmagic1 is normally available from repos and on device installable.
You can try to run this in the terminal to manually update your repository listing, install libmagic and then modrana:
Code:
sudo gainroot
apt-get update
apt-get install libmagic1
apt-get install modrana
Originally Posted by gkuenning View Post
Just a heads-up to people: since I made my turn-announcement changes, I've noticed that I don't get proper (for some definition of "proper" :-D) announcements when turns come in quick succession. (It happens that the last three turns to my house are under 100m apart, so I get a lot of chances to test it.)
Note that when modRana gets a new voice message while there is already one playing, the new one is skipped.
IMHO your patch only increases the distance - so maybe it just increases the distance for short segments to be larger than their length, so that their announcement is triggered at once when switching to the segment and then being skipped because the last announcement is still playing ?

Originally Posted by gkuenning View Post
I'll look at the code when I get a chance and see if I figure out why I broke it or how to improve it.
Thanks a lot in advance !

I have done some road testing the new code:
  • the new code works good (aside from the above mentioned short segment issue)
  • some long on-highway segments have announcements too far ahead
    This is caused by Google setting the default turn distance too high (I have seen 2,5+ km, which is IMO too much even on a highway).
    In extreme cases the announcement might be even skipped due to overlapping with the last one.
  • generally when on highway (long segments + high speed), more announcements at a varied distance would definitely be handy
  • I have hacked in some rounding to the voice output (325 meters -> 320 meters) which made it definitely quicker to "get to the point"
    Some more advanced rounding might make it even quicker (300..330 = 300, 333..367 = 350, 351..400 = 400, etc.).
__________________
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; 2011-07-02 at 23:01.
 

The Following User Says Thank You to MartinK For This Useful Post:
Posts: 67 | Thanked: 36 times | Joined on May 2010 @ Claremont (LA), California
#754
Originally Posted by MartinK View Post
Note that when modRana gets a new voice message while there is already one playing, the new one is skipped.
IMHO your patch only increases the distance - so maybe it just increases the distance for short segments to be larger than their length, so that their announcement is triggered at once when switching to the segment and then being skipped because the last announcement is still playing ?
Yes, all my patch does is to increase the distance, so I bet that's exactly the problem. The fix would be something like "if an announcement is playing and we're still ahead of the waypoint, reduce the distance so we can try again in a little while."

Originally Posted by MartinK View Post
  • some long on-highway segments have announcements too far ahead
    This is caused by Google setting the default turn distance too high (I have seen 2,5+ km, which is IMO too much even on a highway).
    In extreme cases the announcement might be even skipped due to overlapping with the last one.
  • generally when on highway (long segments + high speed), more announcements at a varied distance would definitely be handy
  • I have hacked in some rounding to the voice output (325 meters -> 320 meters) which made it definitely quicker to "get to the point"
    Some more advanced rounding might make it even quicker (300..330 = 300, 333..367 = 350, 351..400 = 400, etc.).
In my area, Google sometimes does the opposite. My favorite is that the waypoint for "take the exit" from a high-speed road is sometimes at the END of the exit so that if the ramp is a long one, you have to be on the exit before you get the announcement.

I agree with the "more announcements" thing. When we moved to New Zealand we rented a car with a GPS, and it would often announce the next turn many km ahead and then give a sort of count down. It was very helpful.

The rounding is a really good idea; "In 321 meters" is kind of silly when you're traveling at 20+ meters per second. The trick will be to make it sensible at different speeds, short distances, and in both metric and U.S. units. I tried to fiddle with some advanced rounding code in this post and quickly discovered that it's a bit trickier than what I want to do before breakfast! :-(
 

The Following 2 Users Say Thank You to gkuenning For This Useful Post:
Posts: 49 | Thanked: 11 times | Joined on Mar 2010
#755
Reinstalling didn't fix it. Python-dbus was already installed/latest version.

Tried again in CLI mode with latest version, this time without typing sudo gainroot. Seems to be complaining about a mod_location module.
Any help?

~ $ modrana
== modRana Starting ==
device string (first parameter): n900
size allocate <GdkRectangle at 0x2ca488>
error in screen invalidating function
exception: 'NoneType' object has no attribute 'invalidate_rect'
importing modules:
* icons: Draw icons (240.00 ms)
* info: A modRana information handling module (0.00 ms)
* updateTiles: Update stored map tiles. (0.00 ms)
* example: A sample pyroute module (0.00 ms)
* projection: Projection code (lat/long to screen conversions) (40.00 ms)
* showPOI: Show POI on the map and in the menu. (0.00 ms)
* animatedMapView: A sample pyroute module (10.00 ms)
* showGPX: draws a GPX track on the map (10.00 ms)
* mapView: Controls the view being displayed on the map (0.00 ms)
* search: Search for POI (10.00 ms)
* voice: Handle text to speach. (40.00 ms)
* clickHandler: handle mouse clicks (10.00 ms)
* input: Handle input from keyboard, buttons, etc. (0.00 ms)
* units: A module handling unit conversions and dispplaying correct units acording to current settings. (10.00 ms)
* askMenu: A sample pyroute module (10.00 ms)
* tracklog: Record tracklogs (620.00 ms)
* stats: Handles messages (0.00 ms)
** using tile folder: /home/user/MyDocs/.maps/ **
** using tracklog folder: tracklogs/ **
* config: Handle configuration, options, and setup (30.00 ms)
* route: Routes (20.00 ms)
* options: Handle options (20.00 ms)
* notification: This module provides notification support. (10.00 ms)
* storeTiles: Single-file-fs tile storage (40.00 ms)
* keys: A keyboard input handling module (0.00 ms)
* log: A modRana logging module (0.00 ms)
* menu: Handle menus (30.00 ms)
* showOSD: Draw OSD (On Screen Display). (20.00 ms)
* interfaceFeedback: A sample pyroute module (10.00 ms)
* loadTracklogs: A sample pyroute module (10.00 ms)
* cron: A timing and sheduling module for modRana. (0.00 ms)
* messages: Handles messages (10.00 ms)
* positionMarker: A sample pyroute module (0.00 ms)
* storePOI: Store POI data. (10.00 ms)
* routeProfile: Creates a route profile (an elevation chart) (10.00 ms)
modRana: module: mod_location/location failed to load
Traceback (most recent call last):
File "modrana.py", line 169, in _loadModule
a = __import__(importName)
File "/opt/modrana/modules/mod_location.py", line 22, in <module>
import gps_module as gps
File "/opt/modrana/modules/gps_module/__init__.py", line 9, in <module>
from gps import *
File "/opt/modrana/modules/gps_module/gps.py", line 18, in <module>
from client import *
File "/opt/modrana/modules/gps_module/client.py", line 9, in <module>
import simplejson as json # For Python 2.4 and 2.5
ImportError: No module named simplejson
* tracklogManager: Module for managing tracklogs (10.00 ms)
* turnByTurn: A turn by turn navigation module. (0.00 ms)
* textEntry: A module for hadnling text entry. (10.00 ms)
googlemaps: using integrated non-binary simplejson, instal proper simplejson package for better speed
* onlineServices: Module for communication with various online services. (240.00 ms)
* mapTiles: Display map images (390.00 ms)
* mapData: Handle downloading of map data (50.00 ms)
* sketch: Sketching functionality (0.00 ms)
* display: A platform independent display device control module (20.00 ms)
N900: dbus initialized
True
N900: key centred toggled
N900: key rotateMap toggled
N900: key soundEnabled toggled
N900: application menu added
N900 device specific module initialized
* device: A N900 modRana device-specific module (250.00 ms)
Loaded all modules in 2250.00 ms, initialising
True
icons: switched theme to: default
connection to POI db in /home/user/MyDocs/.maps//modrana_poi.db estabilshed
display: keep display ON -> always
N900 rotation object initialized
N900: rotation object loaded
** making a list of available tracklogs
* using this tracklog folder:
tracklogs/
* does it exist ?
True
* there are 12 tracklogs available
mapView: switching map drag mode to default
mapView: switching centering disable treshold to 2048
Initialization complete in 160.00 ms
** modRana startup timing **
# device: Nokia N900 (n900)
* modRana start (0 ms), 0/6514 ms
* imports done (811 ms), 811/6514 ms
* GUI creation (21 ms), 832/6514 ms
* window created (310 ms), 1142/6514 ms
* map widget created (6 ms), 1148/6514 ms
* window finalized (23 ms), 1171/6514 ms
* all modules loaded (5344 ms), 6514/6514 ms
** whole startup: 6514 ms **
display: redraw ON (window not hidden or minimised)
display: redraw ON (N900 window is active)
size allocate <GdkRectangle at 0x555e68>
display: redraw OFF (N900 window is not active)
display: redraw ON (N900 window is active)
Shutting-down modules
storePOI: disconnecting from db

shutdown imminent, commiting all uncommited tiles
storeTiles: sqlite committ OK

Last edited by MarkyboyUK; 2011-07-04 at 11:57.
 

The Following User Says Thank You to MarkyboyUK For This Useful Post:
Posts: 67 | Thanked: 36 times | Joined on May 2010 @ Claremont (LA), California
#756
Originally Posted by MarkyboyUK View Post
Reinstalling didn't fix it. Python-dbus was already installed/latest version.

...
modRana: module: mod_location/location failed to load
Traceback (most recent call last):
File "modrana.py", line 169, in _loadModule
a = __import__(importName)
File "/opt/modrana/modules/mod_location.py", line 22, in <module>
import gps_module as gps
File "/opt/modrana/modules/gps_module/__init__.py", line 9, in <module>
from gps import *
File "/opt/modrana/modules/gps_module/gps.py", line 18, in <module>
from client import *
File "/opt/modrana/modules/gps_module/client.py", line 9, in <module>
import simplejson as json # For Python 2.4 and 2.5
ImportError: No module named simplejson
The problem is that the "simplejson" package is missing. On my N900 it lives in /usr/lib/python2.5/site-packages/simplejson. Fine, I think, so he just needs to install it. But here's what I get when I try to figure out the package name:

scroll:~# apt-get install simplejson
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package simplejson is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package simplejson has no installation candidate

A bit of Googling reveals that it's actually named python-simplejson. I suspect the problem might be a wrong dependency in Modrana? Anyway, you should be able to solve it by doing (as root):

apt-get install python-simplejson

Good luck!
 

The Following 2 Users Say Thank You to gkuenning For This Useful Post:
Posts: 73 | Thanked: 8 times | Joined on Sep 2010 @ Izmir - TURKEY
#757
hello, I didn't read whole 740 post so, sorry if it is being asked twice,

How can I download tiles to my pc? I should find a way to do that because I chose around here, 80 km, +8 down, +5 up (or sth like that), modrana says ~355000 tiles to be downloaded. I left my N900 to download them last night, at the morning I saw it downloaded 30k of them, AND was downloading too slow if I compare to beginning. So, I need to download them to my pc then should move them to n900. Tiles are in /home/user/MyDocs/.maps/OpenStreetMap I , I guess ?
 
Posts: 49 | Thanked: 11 times | Joined on Mar 2010
#758
Originally Posted by gkuenning View Post
The problem is that the "simplejson" package is missing. On my N900 it lives in /usr/lib/python2.5/site-packages/simplejson. Fine, I think, so he just needs to install it. But here's what I get when I try to figure out the package name:

scroll:~# apt-get install simplejson
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package simplejson is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package simplejson has no installation candidate

A bit of Googling reveals that it's actually named python-simplejson. I suspect the problem might be a wrong dependency in Modrana? Anyway, you should be able to solve it by doing (as root):

apt-get install python-simplejson

Good luck!
That fixed it - many thanks
 
Posts: 1,548 | Thanked: 7,510 times | Joined on Apr 2010 @ Czech Republic
#759
Originally Posted by MarkyboyUK View Post
Reinstalling didn't fix it. Python-dbus was already installed/latest version.

Tried again in CLI mode with latest version, this time without typing sudo gainroot. Seems to be complaining about a mod_location module.
Any help?

~ $ modrana
== modRana Starting ==
...
modRana: module: mod_location/location failed to load
Traceback (most recent call last):
File "modrana.py", line 169, in _loadModule
a = __import__(importName)
File "/opt/modrana/modules/mod_location.py", line 22, in <module>
import gps_module as gps
File "/opt/modrana/modules/gps_module/__init__.py", line 9, in <module>
from gps import *
File "/opt/modrana/modules/gps_module/gps.py", line 18, in <module>
from client import *
File "/opt/modrana/modules/gps_module/client.py", line 9, in <module>
import simplejson as json # For Python 2.4 and 2.5
ImportError: No module named simplejson
Originally Posted by gkuenning View Post
The problem is that the "simplejson" package is missing. On my N900 it lives in /usr/lib/python2.5/site-packages/simplejson. Fine, I think, so he just needs to install it. But here's what I get when I try to figure out the package name:

scroll:~# apt-get install simplejson
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package simplejson is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package simplejson has no installation candidate

A bit of Googling reveals that it's actually named python-simplejson. I suspect the problem might be a wrong dependency in Modrana? Anyway, you should be able to solve it by doing (as root):

apt-get install python-simplejson

Good luck!
Thanks for the info ! Looks like the new GPSD support module, which depends on json, was imported even when not needed (as modRana uses liblocation in its place on Maemo).
I have added python-json as a dependency and a pure-python version as a backup (well, it was actually already there for the googlemaps module, but I made it accessible for all modules).
All this should be in the in V0.26-4 that was released a few hours ago.

@on PC tile download
Check out this post and maybe posts around it.
I think there really needs to be a wiki page about this.
__________________
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 2 Users Say Thank You to MartinK For This Useful Post:
Posts: 23 | Thanked: 11 times | Joined on Jun 2010
#760
Originally Posted by Sin View Post
hello, I didn't read whole 740 post so, sorry if it is being asked twice,

How can I download tiles to my pc? I should find a way to do that because I chose around here, 80 km, +8 down, +5 up (or sth like that), modrana says ~355000 tiles to be downloaded. I left my N900 to download them last night, at the morning I saw it downloaded 30k of them, AND was downloading too slow if I compare to beginning. So, I need to download them to my pc then should move them to n900. Tiles are in /home/user/MyDocs/.maps/OpenStreetMap I , I guess ?
interested on this one. also any chance for a simple converter to convert it to sqlite format? for less space.

Last edited by superpj101; 2011-07-06 at 03:20.
 
Reply

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


 
Forum Jump


All times are GMT. The time now is 07:52.