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)

justmemory 2017-10-04 14:01

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

Originally Posted by sixwheeledbeast (Post 1535818)
N900. Well there is only 0.53.1 available in the repos so I assume you have that installed from github or the like manually?

I am now having exactly the same issue with the installed version so the newer version has obviously affected the settings somehow.

I think I will try removing everything and starting fresh with the master version.

There was time when 3 version were on my n900 :) One from the repo, and the last two version from github for testing. The latest won so it stays :)

I just did
Code:

git clone
and then overwrite everything in /opt/modrana folder so I did not loose the icon and config files for example.

If something is wrong with downloading/displaying tiles then maybe something is wrong in your ~/.modrana folder - i.e. map_config and user_config.

sixwheeledbeast 2017-10-04 14:18

Re: [Announce] modRana: a flexible GPS navigation system
 
I have removed the old version of modRana and now solved the issue above by removing my .maps file.
Tiles are now redownloading and populating the screen.
I will give it a test over the next few days to see how it compares.

I don't seem to be able to find my custom orange theme any more so i will have to remember how I did that. Or can I request an orange theme? Like the red but with all red components the same orange as N900 digital nature theme.

sixwheeledbeast 2017-10-05 21:04

Re: [Announce] modRana: a flexible GPS navigation system
 
Some quick feedback can't seem to get offiline routing working again. Installed the monav_data folders as required but no luck.
Anyway to debug whats wrong? Google routing seems fine.

Also is there a way to disable the double tap zoom feature?

justmemory 2017-10-06 03:44

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

Originally Posted by sixwheeledbeast (Post 1535949)
Some quick feedback can't seem to get offiline routing working again. Installed the monav_data folders as required but no luck.
Anyway to debug whats wrong? Google routing seems fine.

Also is there a way to disable the double tap zoom feature?

Can you post the output of running modrana.py from terminal please?

sixwheeledbeast 2017-10-08 08:10

Re: [Announce] modRana: a flexible GPS navigation system
 
There is no error output it acts as if the route button isn't there and tapping route again just zooms the map.

sixwheeledbeast 2017-10-09 12:44

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

Originally Posted by sixwheeledbeast (Post 1536067)
There is no error output it acts as if the route button isn't there and tapping route again just zooms the map.

Sorry. I do apologise, it would appear the terminal fills up so fast the error was well off the screen. Only testing again and outputting to file did I spot this.

ImportError: No module named google.protobuf,internal.

https://pastebin.com/68LrRJx0

Not sure if double tapping the route button causing zoom is intended behaviour or not.

justmemory 2017-10-09 13:08

Re: [Announce] modRana: a flexible GPS navigation system
 
Hmm... How exactly are you trying to run it? I think there is something wrong with the pathes - i.e. it is trying to run .py files from on-device and from SD card... Could you just git clone it to eMMC and then run it...?

MartinK 2017-11-28 00:22

Re: [Announce] modRana: a flexible GPS navigation system
 
modRana 0.51.1 has been released!

So, we have finally a new modRana release - this time with quite some highlights! :)

The OpenRepos package has already been updated and the Jolla Store/Harbour one has been submitted for QA review.

Update: ModRana 0.51.1 has passed the Jolla Store QA. :)

Turn by turn navigation support
The long asked for turn-by-turn navigation support in the Qt 5 GUI on Sailfish OS is finally here. To use it just get a route and then press the navigate button.

http://modrana.org/images/qt5_gui/mo...navigation.jpg

A turn by turn navigation overlay will be displayed (includes distance to next turn, turn icon & turn instructions) and modRana will start following the route. This includes indicating the next turn with a red circle and checking if the route is being followed. If it looks like the route is no longer being followed, modRana will automatically request a new route from current position to the destination.

Also in soma case (currently just when using the Vallhalla based routing provided by OSM Scout Server) current heading will be taken into account when rerouting and routing from current position to a point on the map. This should help avoiding needless U-turns as a route following the current heading will be preffered.

On a related note - the turn icons come originally from Poor Maps, which did a really good job gathering a set of CC0 licensed SVG icons mapping all relevant Valhalla turn types. The eixstence of these icons made the turn icon display support very easy for modRana, so thanks yet again to otsaloma - you rock! :)

Very preliminary turn by turn voice output support
This version of modRana contains some very preliminary turn by turn instructions support. Just contemplate the following instructions to see how preliminary this is:

To enable the preliminary voice output, you have to install:
- portaudio from OpenRepos
- espeak from OpenRepos
- gstreamer1.0-tools from the cmdline as root:

Code:

pkcon install gstreamer1.0-tools
This should be eventually replaced by a more robust and configurable solution, which should also support the more advanced text-to-speech egines recently ported by Rinigius (thanks! :) ). Also in the future Qt/QML will be used to play the voice messages and gstreamer tools should no longer be needed.

Local POI database
In this release the POI database also makes it's debut - it was pretty useful to my when traveling through Japan in the summer, so should hopefully be useful for other modRana users as well. :)

The general principle is simple - long press a point on the map, press the "Point info" button and select to save the point to a local POI database. POI name, description and category can be set before the point is saved to the database. Online/offline POI search results can be saved to the local database as well.

Saved POIs can be browsed by category and centered on the map. Saved POIs can be also used as the centrail point for local search.

In is not currently possible to delete stored POIs, but this slight omission should be fixed soon in one of the upcomming releases. It should be also possible to use POIs as a target for routing in the future as well.

Fixes and imporvements
This modRana release also contains a bunch of various smaller imrpovements and fixes. ModRana should now look much better on very high DPI devices, such as the Sony Xperia X.

Also modRana now supports the Valhalla based OSM Scout Server rotuing, so adjustments are no longer needed when OSM Scout Server is installed and used with the default configuration profile.

Two new layers have been added - OSM Scout Server provided & offline rendered car day & night optimized layers.

Changelog
Code:

- turn-by-turn navigation support in Qt 5 GUI
- local POI database is now available
- it's possible to save arbitrary points from map as POI
- POIs can be used as a routing destination
- very high DPI fixes (Sailfish X/Xperia X)
- use Valhalla routing by default with OSM Scout Server
- add car optimized OSM Scout tile layers (day & night)
- take current heading into account for Valhalla routing
- it is now possible to do local search around arbitrary point on the map
- use QtQuick Controls 2 as backend on Desktop & Android
- very preliminary espeak based turn-by-turn voice output


karlos devel 2017-11-28 02:07

Re: [Announce] modRana: a flexible GPS navigation system
 
Thanks for...

rinigus 2017-11-28 20:45

Re: [Announce] modRana: a flexible GPS navigation system
 
@MartinK, thank you for the update, looking forward to test it. ESpeak already amused everyone this morning :)

Its great that you integrated POI support. Other map clients do have the same in TODOs, as far as I remember. Regarding POIs, I do wonder if we can keep it in some backend that would be used by all if the same notation is followed. For example, as a part of our address books with all phone numbers and such. All devices do have address books and they could be easily shared between devices. Just an idea that maybe worth of thinking about when we get to the stage where all other issues are resolved ...

MartinK 2017-11-29 02:52

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

Originally Posted by rinigus (Post 1538879)
@MartinK, thank you for the update, looking forward to test it. ESpeak already amused everyone this morning :)

Nice! :)

Quote:

Originally Posted by rinigus (Post 1538879)
Its great that you integrated POI support. Other map clients do have the same in TODOs, as far as I remember.

I think it's pretty important to be able to save any points of interest you encounter on your travels and to look them up later.

Quote:

Originally Posted by rinigus (Post 1538879)
Regarding POIs, I do wonder if we can keep it in some backend that would be used by all if the same notation is followed.

The funny thing is that the sqlite database schema is actually not an original modRana creation - IIRC it comes from Mappero, which is a long defunct navigation app for the N900. ModRana might still even support sharing the POI database when you run it on the N900.

Quote:

Originally Posted by rinigus (Post 1538879)
For example, as a part of our address books with all phone numbers and such. All devices do have address books and they could be easily shared between devices.

If I understand this correctly this would depend on Jolla, which unfortunatelly just means it will most likely get never implemented due to them being too busy. IIRC (can't find the specific question now) they have not even imeplemented a way to set an alternative mapping application to handle location links.

If we can get them to cooperate or the affected area is one where community can effectively contribute (eq. not being blocked by closed components & actually having a maintainer that can review and merge PRs) - that would be less hopeless. :)

Quote:

Originally Posted by rinigus (Post 1538879)
Just an idea that maybe worth of thinking about when we get to the stage where all other issues are resolved ...

Yeah, I'm personally glad I finally got to implement this and it's even still unfinished (you actually can't yet delete points once you add them :D).

As for sharing the database, there are a couple issues worth considering:
- who else would be interested in sharing the POI database ? (eq. so unnecessary work is not done if no one will use it)
- the easiest way might be using the same SQL schema and a common location for the database, it might even work with concurrent access
- but that effectively locks the schema in stone - it's really simple at the moment (basically just name, description, coordinates, category) and might use some extending (phone numbers, elevation, address, opening hours, email address, website, twitter handle, etc.)
- it's actually a question if it needs to be an sqlite database at all - it just seems like a pretty big overkill for the few points people are likely to store & enforces IMHO unnecessary rigid schemas

I've had quite a good experience with BlitzDB in my experimental Twitter client - it's basically a pure-Python JSON document database. I've been feeding it with thousands of tweets and it works just fine, so it should be also able to handle a few POI as well. Of course unlike sqlite it kinda expects the app using it is also Python or can talk to Python in some capacity.

I guess alternative solution could be if modRana could work with multiple POI database formats, including one shared with other apps. The user might need to specify where new POIs should be stored (local/shared), but it should be possible to agregate the multiple POI databases to a single view.

Or OSM Scout Server could provide a REST API for storing & retrieving POI that that arbitrary apps could easily use. Now with socket activation it would be more useful than ever. ;-)

I guess we will see, but certainly something to think about. :)

pichlo 2017-11-29 06:20

Re: [Announce] modRana: a flexible GPS navigation system
 
@MartinK, posting at 03:52? That's what I call dedication! (Or insomnia :))

juiceme 2017-11-29 06:49

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

Originally Posted by pichlo (Post 1538891)
@MartinK, posting at 03:52? That's what I call dedication! (Or insomnia :))

That's what I call an early morning post, I usually get up little past that time :)

MartinK 2017-12-07 00:50

Re: [Announce] modRana: a flexible GPS navigation system
 
Tranlations!
It is now possible to translate more or less everything visible in modRana and the strings can be translated via Transifex:

https://www.transifex.com/martink/modrana

There are already very active translation effeorts for Swedish, Spanish, French and Czech (thanks a lot to everyone involved! :D) and more translators are definitely welcome! :)

I've added some languages based on download statistics from OpenRepos (Jolla Store unfortunately doesn't provide any such information :P) and if the language is not yet listed just request it and I'll promptly add it. Same thing for adding translators. :)

For anyone wanting to experience modRana in their native language (well, as long as your native language is Czech, Swedish, French or Spanish ;-) ), there are testing packages available from OBS:

http://repo.merproject.org/obs/home:...rmv7hl/noarch/

Translations will of course also start to be a part of the "official" builds going to OpenRepos and Jolla Store in the near future. :)

Decomissioning the old Qt 4/QtQuick 1.1 GUI
The old Qt 4 based QML GUI was originally written for the Nokia N9/N950 and was the first non-GTK modRana GUI. Later on I've also got it running on the N900 with a horrible series of hacks.

Unfortunately the Qt 4 GML GUI never really reached feature parity with the original GTK2 GUI and I have basically not touched the code in ages, as I've focused on bringing the Qt 5 based QML GUI to feature parity and beyond.

So I want to ask - is someone still using the Qt 4 QML GUI on the N900 ? That's at the moment basically the only platform where the Qt 4 QML GUI might be able to run, as the desktop version of the hacked together Harmattan QML components and Qt 4 version of Pyside have long ago bit-rotted away on the desktop.

If it turns out no one is using the old Qt 4 based GUI, I'd like to scrap it, making it possible to remove a sizeable ammount of old unmaintained code from modRana. Related benefits would also be general release-related code simplification and removal of all the Qt 4 related dependencies the modRana package on the N900 drags in & smaller N900 package overall.

Looking forward to your feedback! :)

eson 2017-12-07 04:21

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

Originally Posted by MartinK (Post 1539194)
For anyone wanting to experience modRana in their native language there are testing packages available

Thanks! Tested and found that IconGridPage do not translate. At least not into Swedish.
I also think you should remove the sv_SE files as they are obsolete. If I got it right, it's the sv files from transifex that are being used?

Edit1:
When I removed all the sv_SE, .ts and .po stuff, also the IconGridPage translated nicely. :)


Edit2:
Strings missing in TracksCategoryListPage...
  • logs
  • misc
  • examples
  • online

String missing in InfoAboutPage...
  • email

justmemory 2017-12-07 07:35

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

Originally Posted by MartinK (Post 1539194)
So I want to ask - is someone still using the Qt 4 QML GUI on the N900 ? That's at the moment basically the only platform where the Qt 4 QML GUI might be able to run, as the desktop version of the hacked together Harmattan QML components and Qt 4 version of Pyside have long ago bit-rotted away on the desktop.

Hi,

I can say that I only use the GTK gui on n900 as I'm not so satisfied with the QML (sorry :) )

jurop88 2017-12-07 11:57

Re: [Announce] modRana: a flexible GPS navigation system
 
@MartinK

I suggest to setup a separate thread for this with a poll so to keep information well organized. On my side, I'm using N900 with ModRana on a daily basis with the GTK interface

Thanks for ModRana and your ongoing support for it!

MartinK 2017-12-12 21:51

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

Originally Posted by eson (Post 1539196)
Thanks! Tested and found that IconGridPage do not translate. At least not into Swedish.
I also think you should remove the sv_SE files as they are obsolete. If I got it right, it's the sv files from transifex that are being used?

Yeah, seems to be that way! I guess I'll just remove them (worst case we still can restore them from the Git history) and that should be it.

Quote:

Originally Posted by eson (Post 1539196)
Edit1:
When I removed all the sv_SE, .ts and .po stuff, also the IconGridPage translated nicely. :)

Edit2:
Strings missing in TracksCategoryListPage...
  • logs
  • misc
  • examples
  • online

Those are default folder names where tracklogs are stored, so not easily translatable.

Quote:

Originally Posted by eson (Post 1539196)
String missing in InfoAboutPage...
  • email

Hmm, I kinda expected this to be an "universal word" but thinking about it this does not exactly hold for languages like Chinese that even have they own characters, so I'll mark it for translation as well. :)

Shadowdog 2018-01-02 22:32

Re: [Announce] modRana: a flexible GPS navigation system
 
Is there a chance for an updated version for Harmattan in the future?

MartinK 2018-01-02 23:14

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

Originally Posted by Shadowdog (Post 1539901)
Is there a chance for an updated version for Harmattan in the future?

Not really - Harmattan is in an unfortunate technological middle ground between Freemantle and Sailfish OS. Is no longer has GTK2 and python-location which the (still supported) GTK2 GUI uses and while it has Qt, it's only Qt 4 while the Qt 5 GUI used on Sailfish OS requires Qt 5 & Python 3 (also not available on Harmattan IIRC). I'm also no longer setup for the rather esoteric way of creating Harmattan packages (hello Aegis!) - I think I used the MeeGo OBS for that and that's long gone. And I'm going to soon remove the long unmaintained Qt 4 baed GUI as it seems that even on the N900 it's no longer being used.

So at this point Harmattan support would effectively require maitaining a modRana fork and I'am afraid I don't have the capacity for this. So unless someone else picks this up - it's certainly doable if you can code Python & QML, have the Harmattan SDK for package building and enough time - it's unlikely there will be aby updates for the modRana Harmattan package.

Shadowdog 2018-01-03 08:55

Sadly I have already expected this answer and I can totaly understand it. But since I really like my N9 as my main phone I thought it is worth to ask.
Thanks for your great work, I am also using it on the Jolla.

peterleinchen 2018-01-03 09:23

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

Originally Posted by Shadowdog (Post 1539908)
Sadly I have already expected this answer and I can totaly understand it. But since I really like my N9 as my main phone I thought it is worth to ask.
Thanks for your great work, I am also using it on the Jolla.

Quoting just to second this!
And thanks to MartinK.

sulu 2018-01-18 21:35

Re: [Announce] modRana: a flexible GPS navigation system
 
Believe it or not, after managing to ignore it for almost 8 years I finally got around to trying modrana, mainly due to this recent thread: [1]

My first impression after approximately two hour of trying is: I think I like it.

However, there are two things that bother me:

1. I can't find a way to interactively change routing tracks.
I'm using the bicycle setting and I tried routing from my home to my office, and modrana shows me exactly the route I usually take. However, that route contains a path through a forest that even in good weather conditions requires some modest mountain biking skills (S2 single trail [2]). There is an altenative route that doesn't require any skills, but I don't know how to change the suggested route.
I'm using offline routing, in case that info is important. And I'd like to keep it that way.

2. English pronounciation for Geman street names is entirely useless. I wouldn't have recognized my own street name if it hadn't been written on the screen.
Is there a way to tell espeak to use German pronounciation? I have zero knowledge about espeak. Of course, I can just turn voice off in modrana, but I'd find it rather useful iff I can understand what it's saying.


[1] http://talk.maemo.org/showthread.php?p=1540375
[2] https://wiki.openstreetmap.org/wiki/Key:mtb:scale

rinigus 2018-01-19 16:23

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

Originally Posted by sulu (Post 1540376)
1. I can't find a way to interactively change routing tracks....

2. English pronounciation for Geman street names is entirely useless. ...

Re changing route: I don't think you can do it interactively. The best bet is to start driving and hope for rerouting. As far as I remember, modRana has rerouting logic implemented, but I am not sure whether its exposed in the current code.

Re espeak-English vs German: no wonder :) . There are better TTS engines available, some with German support. But they would have to be interfaced from modRana as well as selection of language for routing instructions.

sulu 2018-01-20 00:37

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

Originally Posted by rinigus (Post 1540406)
Re changing route: I don't think you can do it interactively. The best bet is to start driving and hope for rerouting. As far as I remember, modRana has rerouting logic implemented, but I am not sure whether its exposed in the current code.

That's unfortunate.
Of couse I can just decide to ignore instructions if I know the route. But then I don't need routing at all.
If I don't know the route then unexpectedly ending up on an S2 trail is not an option. I might be riding my road bike or I may have company that can't handle S2.

I'll have to plan the route in advance anyway, but I don't see me remembering which instructions to follow and which to ignore on a 100km tour. So planning the route the way I intend to ride it is imperative.

Quote:

Originally Posted by rinigus (Post 1540406)
Re espeak-English vs German: no wonder :) . There are better TTS engines available, some with German support. But they would have to be interfaced from modRana as well as selection of language for routing instructions.

I found that espeak can use German pronounciation if one provides the option -vde with the string it should read. The result is not pleasant but it's understandable. Adding something like +m3 or +f2 to the option even lets one pick one of four male or two female voices. Although I must say that the different voices of one gender all sound the same or at least very similar.
So it would be nice if one could tell modrana to use that switch.

rinigus 2018-01-20 08:44

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

Originally Posted by sulu (Post 1540418)
That's unfortunate.
Of couse I can just decide to ignore instructions if I know the route. But then I don't need routing at all.
If I don't know the route then unexpectedly ending up on an S2 trail is not an option. I might be riding my road bike or I may have company that can't handle S2.

I'll have to plan the route in advance anyway, but I don't see me remembering which instructions to follow and which to ignore on a 100km tour. So planning the route the way I intend to ride it is imperative.

Assuming that you use OSM Scout Server for routing, the routing engine (Valhalla) has rather good support for cycling (see https://mapzen.com/blog/low-stress-bike-routing/ , ignore red banner on the bottom). These options would have to be exposed by the map clients (modRana and Poor Maps). I haven't looked into it myself. If you have time, maybe you could look into the API of Valhalla and suggest which options should be exposed for cyclist (for example, by opening issues for modRana and Poor Maps).

The routing engine also supports waypoints which would help in your case. Waypoints are not supported by modRana nor Poor Maps. Again, I would suggest to open issues for this. Waypoints would allow you to shape the route to your liking, if you know the sections to avoid.

I have not imported elevation data that can be used by Valhalla to calculate the bike routes. Brief look indicated that it would require some additional service, but I think it should be possible.


Quote:

Originally Posted by sulu (Post 1540418)
I found that espeak can use German pronounciation if one provides the option -vde with the string it should read. The result is not pleasant but it's understandable. Adding something like +m3 or +f2 to the option even lets one pick one of four male or two female voices. Although I must say that the different voices of one gender all sound the same or at least very similar.
So it would be nice if one could tell modrana to use that switch.

Its not trivial to provide the spoken language support. Namely, you cannot just set the spoken language by locale setting since many routers have very limited set of languages, TTS engines have also low number of languages. So, forget about Swedish/Finnish/Estonian and many others.

Thus, language selection has to be programmed against router and available TTS engines. This has been done for Poor Maps, not modRana yet.

As for street names that's the next problem. When you have spoken language English and get German street name, this may not sound as good. German/German should be OK. In this case, at present, the best TTS would be picoTTS (only female voice) that is supported by Poor Maps.

In general, TTS is a weakly supported by Linux (maybe except MaryTTS which is Java-based engine). There is some work done by mimic, let's hope the language coverage will improve.

PS: espeak is really bad in terms of quality, but has the largest number of supported languages. Hence its frequently used when programming as the first engine and later mainly for amusing kids.

MartinK 2018-01-20 14:49

Re: [Announce] modRana: a flexible GPS navigation system
 
Thanks for all the feedback sulu, it's much appreciated! :)

Now for the individual issues:

bad route/route with bad segments
As rinigius already mentioned, waypoints are a reasonably good solution. Valhalla and many online services support them and modRana actually does too! So what's remaining is support in the (Qt5) GUI, which is definitely planned (and quite a priority actually).

There are also other (possibly complementary) options. One of them is returning multiple routes (from different backends or with different settings) and letting the user select one. Also it could be possible to provide the router with more data and increasing the chance of a good route being found. This could be combined with the first option.

And if you are on a bad route or conditions change - modRana does have automatic rerouting and it should be enabled by default.

turn-by-turn voice issues
There are multiple issues and ongoing efforts to fix them. As for the voice quality overall, rinigius did a significant amount of work in this area (thanks! :)) by porting multiple new & likely better than espeak TTS engines and then helped them to be used by Poor Maps.

I should be able to reuse much of this in modRana, but this requires changes in the turn-by-turn navigation logic. At the moment voice messages are generated and "spoken" immediately when modRana detect they are needed.

To make use of the new TTS engines and the need for people to install obscure packages manually, the logic needs to be changed to pre-generate the messages to temporary files first and then just play those files (via QML) once needed. This could also make recorded voice sample based navigation possible (IIRC Marble has a good collection of multilingual navigation voice samples).

As for local name vs instruction language missmatch - this could be a hard nut to crack as rinigius mentioned. I think I should definitely expose any language selection settings for the routing engine and/or the TTS engine - that should help in many cases.

Also - it it possible to detect the language for place names in Valhalla output ? If they could be tagged by language (or even just country) it might be possible to set a different language in the TTS engine just fort he place name (at least espeak can do that).

Actually, modRana can do this in a limited capability already - there is an option (only in GTK2 GUI, not yet exposed in the Qt 5 GUI) to consider words with cyrilic to be Russian words, so that espeak will speak them in Russian. If we can detect the language by more robust means, this technique could easily be used universally.

rinigus 2018-01-20 20:39

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

Originally Posted by MartinK (Post 1540426)
To make use of the new TTS engines and the need for people to install obscure packages manually, the logic needs to be changed to pre-generate the messages to temporary files first and then just play those files (via QML) once needed. This could also make recorded voice sample based navigation possible (IIRC Marble has a good collection of multilingual navigation voice samples).

Prerecorded voices would require limited phrases. This assumption doesn't hold for routing engines adding street names into the instructions. Also supporting multiple routing engines doesn't help either ...


Quote:

Originally Posted by MartinK (Post 1540426)
Also - it it possible to detect the language for place names in Valhalla output ? If they could be tagged by language (or even just country) it might be possible to set a different language in the TTS engine just fort he place name (at least espeak can do that).

In theory, its possible. I don't know whether Valhalla imports multiple names (if available) when making the tiles. As soon as the names are available, should be possible to tag them in the instructions. Its not done yet, as far as I know.

I haven't filed the issue describing it in Valhalla's repo since I am not sure we can actually make use of this output (yet?). I think I saw somewhere mimic/flite issue regarding reading multi-language text, but it wasn't resolved at that time. Which brings the question up regarding partitioning: is it modRana/Poor Maps/... who is supposed to split the sentence and later glue it together or TTS? I would expect TTS to do that, but maybe its naïve.

sulu 2018-01-22 08:17

Re: [Announce] modRana: a flexible GPS navigation system
 
@rinigus, MartinK:
Thanks a lot for your answers, but I must admit I lack the expertise to follow much of it.

My preferred way of navigation is still a paper map and the sun, especially while biking. Think of it as a contrast program to my IT-heavy job!
As a consequence, although I have some basic knowledge about the underlying algorithms, I'm not familiar with the implementation of any concrete navigation SW.
I've used Marble occasionally, where due to the old version on the N900 no longer being able to find routes, I need to plan those on my PC with a more recent Marble version and then export these routes to Marble on the N900, which still works.
I was hoping to replace this Marble duo with modrana, thus becoming indepentent of my PC again. But for that I'd need waypoints combined with on-device routing.

As for espeak, wouldn't it be possible to add some submenu in modrana's options menu that lets one forward arbitrary options to espeak?
That's of course assuming that modrana calls the espeak binary, which might not be the case.

pichlo 2018-01-22 08:57

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

Originally Posted by sulu (Post 1540452)
As for espeak, wouldn't it be possible to add some submenu in modrana's options menu that lets one forward arbitrary options to espeak?

I thought that was the case already. Or has it been removed at some point? I admit I have not used modRana for a while and do not have it currently installed for a quick check.

sulu 2018-01-23 06:37

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

Originally Posted by pichlo (Post 1540455)
I thought that was the case already.

You're right, thanks!
It's under: Options/Navigation/Language

When I first tried modrana I had no GPS signal, so changing anything here had no effect since without a position there were no instructions to be read.
I assumed this menu was supposed to change the UI language or the language of the generic parts of instructions (e.g. "turn left" -> "links abbiegen").
As this didn't happen I assumed that this was a feature that wasn't implemented yet. At that point I hadn't even realized that changing the pronounciation of proper names would even be necessary, so I forgot about that menu.
Instead I expected pronounciation options to be in the Sound menu since I knew it was done by espeak and espeak clearly is sound-related.

MartinK 2018-01-24 22:46

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

Originally Posted by rinigus (Post 1540432)
Prerecorded voices would require limited phrases. This assumption doesn't hold for routing engines adding street names into the instructions.

Actually, I think in many cases the local names are not thatimportant or even useful, especially if you are in some unknown terrain and the names are in a foreign language (and possibly even in a different alphabet). Knowing the next manuever is a right turn/taking the 5th exit, etc. can be enough.

Quote:

Originally Posted by rinigus (Post 1540432)
Also supporting multiple routing engines doesn't help either ...

Yeah, you might not have phrases matching all the manuevers your routing engine could generate. Also the voice samples could be sizeable and distrubution would have to be solved somehow. Properly working TTS is just so much more flexible.

BTW, the Marble project created a rather comprehensive set of navigation voice samples in many languages.


Quote:

Originally Posted by rinigus (Post 1540432)
In theory, its possible. I don't know whether Valhalla imports multiple names (if available) when making the tiles. As soon as the names are available, should be possible to tag them in the instructions. Its not done yet, as far as I know.

Interesting! So provided we have a TTS that could use different languages for a single voice message (for example: instructions in English with local names in German), it could make sense to open a RFE with them. :)

Quote:

Originally Posted by rinigus (Post 1540432)
I haven't filed the issue describing it in Valhalla's repo since I am not sure we can actually make use of this output (yet?). I think I saw somewhere mimic/flite issue regarding reading multi-language text, but it wasn't resolved at that time.

Espeak can definitely do that, for example:
Code:

espeak -s 120 -m '<speak xml:lang="en">In 300 meters turn right to <voice name="de">Schloss Schönbrunn</voice> Then continue straight and watch for horse carriages.</speak>'
This says the main message in English with the local name in German and can be easily extended to test other combinations. Would still be good if other TTS engines could do that as well, ideally using the same SSML syntax speak supports. It can do much more than just changing voice, for a more comprehensive example, you can save this to file:

Code:

<speak version="1.0" xmlns="http://www.w3.org/2001/10/synthesis" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.w3.org/2001/10/synthesis http://www.w3.org/TR/speech-synthesis/synthesis.xsd" xml:lang="en-US">
This is not <break strength='none' /> a pause.
This is a <break strength='x-weak' /> phrase break.
This is a <break strength='weak' /> phrase break.
This is a <break strength='medium' /> sentence break.
This is a <break strength='strong' /> paragraph break.
This is a <break strength='x-strong' /> paragraph break.
This is a <break time='3s' /> three second pause.
This is a <break time='4500ms' /> 4.5 second pause.
This is a <break /> sentence break.
<!- Changing Voices ->
This is the default voice. <voice name="en-sc">This is David.</voice> This is the default again.
<voice name="Callie">Callie here.</voice>"
<!- Adjusting Speech Rate ->
I am now <prosody rate='x-slow'>speaking at half speed.</prosody>
I am now <prosody rate='slow'>speaking at 2/3 speed.</prosody>
I am now <prosody rate='medium'>speaking at normal speed.</prosody>
I am now <prosody rate='fast'>speaking 33% faster.</prosody>
I am now <prosody rate='x-fast'>speaking twice as fast</prosody>
I am now <prosody rate='default'>speaking at normal speed.</prosody>
I am now <prosody rate='.42'>speaking at 42% of normal speed.</prosody>
I am now <prosody rate='2.8'>speaking 2.8 times as fast</prosody>
I am now <prosody rate='-0.3'>speaking 30% more slowly.</prosody>
I am now <prosody rate='+0.3'>speaking 30% faster.</prosody>
</speak>

And then play it with:

Code:

speak -m -f <path to file>
Quote:

Originally Posted by rinigus (Post 1540432)
Which brings the question up regarding partitioning: is it modRana/Poor Maps/... who is supposed to split the sentence and later glue it together or TTS? I would expect TTS to do that, but maybe its naïve.

I'm not sure I understand - TTS just converts text to speach, so as long as the input text is correctly marked up (say with SSML) all should be fine.

Or do you mean a case where the TTS engine does not support changing settings per "session" and you would have to basically stich multiple sound files together to achieve the same end result?

MartinK 2018-01-24 22:57

Re: [Announce] modRana: a flexible GPS navigation system
 
BTW, I've opened a tracking issue for multilingual turn by turn directions, including available routing engine and TTS languages (as far as I could find - corrections welcome!).

First step should likely be to actually make it possible to set language for the router and for the TTS engine.

That can be later extended by using data from the router to set the correct language for local names (once available).

Actually, just a country code would be enough if no language code is available for the given local name. There is a project called langtable that makes it possible to map languages to country codes (and much more!) with reasonable ammount of certainty.

There would still of course be mistakes but it should IMHO generally handle names without explicit language code quite well.

rinigus 2018-01-25 11:15

Re: [Announce] modRana: a flexible GPS navigation system
 
mimic (and most probably flite) does support SSML, at least some parts of it. I was using it to provide pronunciation for some words used in English Pirate instructions by Valhalla.

While supporting SSML, it becomes a bit more difficult to switch the language in the voice engine that has multiple voices for the same language. I guess, that has to be somehow resolved on TTS side. If done, then we can, indeed, give the full phrase with different languages to TTS engine.

As for country->lang matching, there is no need. OSM data gives the names in different languages, not by country code.

In general, I think we do need a decent TTS, whether open-sourced or not. In some parts of the code, you can get around by pre-recording, but that cannot be done for all applications.

MartinK 2018-05-17 22:01

Re: [Announce] modRana: a flexible GPS navigation system
 
New modRana package ready for testing
While I'm currently mainly working on improving turn-by-turn navigation support in modRana & making use of all the nice text-to-speach code and packages rinigius & otsaloma created, it seem to be taking longer than expected.

So I've decided to start doing more regular modRana package updates with smaller enhancements, fixes and translation updates till the bigger items are ready for shipping as well.

The first such modRana package is ready for testing:

http://www.modrana.org/packages/sail...1.1.noarch.rpm

For testing of this package I would recommend focusing on localization support - you can check the list of languages on Transifex. If you are running your Sailfish OS in one of those languages it would be good if you could check everything is translated properly. :)

The general plan is to wait till early next week and then publish the new modRana package on OpenRepos & Jolla Store (if no blockers show up).

Thanks in advance for any testing and feedback! :)

atlochowski 2018-05-18 07:19

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

Originally Posted by MartinK (Post 1544431)
New modRana package ready for testing

Thanks in advance for any testing and feedback! :)

So time for feedback

It's impossible to run this version on Jolla 1. It's crushing at the loading screen.

Code:

[nemo@Sailfish ~]$ python /usr/share/harbour-modrana/modrana.py
INFO :  == modRana Starting ==
INFO :  0.55.8
INFO :  Python 2.7.9
INFO core.platform_detection: ** detecting current device **
INFO core.platform_detection: ** selected jolla as device module ID **
INFO :  * device: A Jolla device module (5.49 ms)
INFO : loading options
INFO : possible upgrade detected
INFO core.config: upgrading modRana configuration files in /home/nemo/.config/harbour-modrana
INFO core.config: no configuration files needed upgrade
INFO : importing modules:
INFO :  * turnByTurn: A turn by turn navigation module. (5.07 ms)
INFO :  * textEntry: A module for handling text entry. (0.88 ms)
INFO :  * interfaceFeedback: A sample pyroute module (0.58 ms)
INFO :  * display: A platform independent display device control module (1.01 ms)
INFO :  * theme: ModRana theming module (7.02 ms)
INFO :  * clickHandler: handle mouse clicks (1.50 ms)
INFO :  * mapLayers: Map layer handling (58.78 ms)
INFO :  * location: Supplies position info from a position source (3.05 ms)
INFO :  * showPOI: Show POI on the map and in the menu. (3.75 ms)
INFO :  * askMenu: A module providing yes/no question dialogs (0.89 ms)
INFO :  * info: A modRana information handling module (4.55 ms)
INFO :  * example: A sample modRana module (0.64 ms)
INFO :  * sketch: Sketching functionality (0.70 ms)
INFO :  * notification: This module provides notification support. (1.37 ms)
INFO :  * updateTiles: Update stored map tiles. (0.58 ms)
INFO :  * input: Handle input from keyboard, buttons, etc. (0.55 ms)
INFO :  * onlineServices: A module for talking to various online services (83.20 ms)
INFO :  * menu: Handle menus (7.33 ms)
INFO :  * animatedMapView: A sample pyroute module (1.25 ms)
ERROR : module: mod_tileserver/tileserver failed to load
Traceback (most recent call last):
  File "/usr/share/harbour-modrana/modrana.py", line 415, in _loadModule
    module = a.getModule(self, moduleName, importName)
  File "modules/mod_tileserver.py", line 42, in getModule
    return Tileserver(*args, **kwargs)
  File "modules/mod_tileserver.py", line 58, in __init__
    if self.modrana.gui.needsLocalhostTileserver():
AttributeError: 'NoneType' object has no attribute 'needsLocalhostTileserver'
INFO :  * units: a unit handling module  (1.31 ms)
INFO :  * tracklog: Record tracklogs (156.57 ms)
DEBUG mod.storeTiles: tile loading debug messages state: disabled
INFO :  * storeTiles: Single-file-fs tile storage (36.66 ms)
INFO :  * search: Search for POI (1.59 ms)
INFO :  * showTracklogs: draws a GPX track on the map (1.28 ms)
INFO :  * loadTracklogs: A sample pyroute module (1.83 ms)
INFO :  * routeProfile: Creates a route profile (an elevation chart) (0.92 ms)
INFO core.poi_db: POI database path:
INFO core.poi_db: /home/nemo/.local/share/harbour-modrana/poi/modrana_poi.db
INFO core.poi_db: connection to POI db established
INFO :  * storePOI: Store POI data. (5.43 ms)
INFO :  * stats: Handles statistics (0.95 ms)
INFO :  * markers: A module handling markers on the map. (1.98 ms)
INFO :  * voice: Handle text to speech. (0.92 ms)
INFO :  * route: Routes (6.68 ms)
INFO :  * projection: Projection code (lat/long to screen conversions) (1.89 ms)
INFO :  * keys: A keyboard input handling module (0.70 ms)
INFO :  * positionMarker: A sample pyroute module (0.76 ms)
INFO :  * icons: Draw icons (1.37 ms)
INFO :  * mapView: Controls the view being displayed on the map (1.04 ms)
INFO :  * showOSD: Draw OSD (On Screen Display). (1.22 ms)
INFO :  * tracklogManager: Module for managing tracklogs (1.71 ms)
INFO mod.mapTiles: in memory tile cache size: 150
INFO mod.mapTiles: map folder path: /home/nemo/.local/share/harbour-modrana/maps
INFO :  * mapTiles: Display map images (109.72 ms)
INFO :  * messages: Handles messages (0.82 ms)
INFO :  * options: Handle options (3.42 ms)
INFO :  * mapData: Handle downloading of map data (11.51 ms)
ERROR : module: mod_cron/cron failed to load
Traceback (most recent call last):
  File "/usr/share/harbour-modrana/modrana.py", line 413, in _loadModule
    a = imp.load_module(importName, fp, pathName, description)
  File "modules/mod_cron.py", line 30, in <module>
    import pyotherside
ImportError: No module named pyotherside
INFO : Loaded all modules in 572.47 ms, initialising
Traceback (most recent call last):
  File "/usr/share/harbour-modrana/modrana.py", line 963, in <module>
    start()
  File "/usr/share/harbour-modrana/modrana.py", line 947, in start
    modrana = ModRana()
  File "/usr/share/harbour-modrana/modrana.py", line 211, in __init__
    self._loadModules()
  File "/usr/share/harbour-modrana/modrana.py", line 346, in _loadModules
    self._modulesLoadedPreFirstTime()
  File "/usr/share/harbour-modrana/modrana.py", line 467, in _modulesLoadedPreFirstTime
    if self.gui.showQuitButton():
AttributeError: 'NoneType' object has no attribute 'showQuitButton'

http://www.heypasteit.com/clip/0IJM13

MartinK 2018-05-18 08:39

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

[nemo@Sailfish ~]$ python /usr/share/harbour-modrana/modrana.py
Running modrana.py directly won't currently work due to how the Qt 5 & PyOtherSide based GUI works on Sailfish OS. Also modRana expects Python 3 on Sailfish OS while the "python" executable on Sailfish OS is still Python 2.

To run packaged modRana frol the command line on Sailfish OS do this:

Code:

sailfish-qml harbour-modrana
That should show the same errors as clicking the modRana icon.

atlochowski 2018-05-18 09:00

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

[nemo@Sailfish ~]$ sailfish-qml harbour-modrana
[D] unknown:0 - Using Wayland-EGL
[D] unknown:0 - Got library name:  "/usr/lib/qt5/qml/io/thp/pyotherside/libpyothersideplugin.so"
[D] info:23 - INFO: Actions: Sailfish media keys initialized
[W] unknown:0 - Deprecated import of org.nemomobile.keepalive upgrade code to Nemo.KeepAlive 1.1
[D] info:23 - INFO: KeepAlive: keep alive control initialized
[D] info:23 - INFO: Screen: screen blanking control initialized
[D] info:23 - INFO: importing the modRana Python core
[D] info:23 - INFO: starting the modRana Python core
DEBUG : argv from QML:
['-u', 'qt5', '-d', 'jolla']
DEBUG : full argv:
['modrana.py', '-u', 'qt5', '-d', 'jolla']
INFO :  == modRana Starting ==
INFO :  0.55.8
INFO :  Python 3.4.3
INFO :  * device: A Jolla device module (31.50 ms)
INFO : loading options
INFO : possible upgrade detected
INFO core.config: upgrading modRana configuration files in /home/nemo/.config/harbour-modrana
INFO core.config: no configuration files needed upgrade
INFO : using PyOtherSide 1.5.1
INFO :  * gui: A Qt + QML GUI module (108.78 ms)
INFO : importing modules:
INFO :  * input: Handle input from keyboard, buttons, etc. (3.91 ms)
INFO :  * textEntry: A module for handling text entry. (7.75 ms)
INFO :  * units: a unit handling module  (15.66 ms)
INFO :  * showPOI: Show POI on the map and in the menu. (23.78 ms)
INFO :  * icons: Draw icons (29.91 ms)
DEBUG mod.storeTiles: tile loading debug messages state: disabled
INFO :  * storeTiles: Single-file-fs tile storage (121.81 ms)
INFO :  * showOSD: Draw OSD (On Screen Display). (21.46 ms)
INFO :  * location: Supplies position info from a position source (12.54 ms)
INFO :  * mapData: Handle downloading of map data (87.62 ms)
INFO :  * clickHandler: handle mouse clicks (17.70 ms)
INFO :  * display: A platform independent display device control module (14.80 ms)
INFO :  * onlineServices: A module for talking to various online services (358.49 ms)
INFO :  * loadTracklogs: A sample pyroute module (35.04 ms)
INFO :  * positionMarker: A sample pyroute module (8.82 ms)
INFO :  * animatedMapView: A sample pyroute module (7.23 ms)
INFO :  * markers: A module handling markers on the map. (19.05 ms)
INFO :  * projection: Projection code (lat/long to screen conversions) (20.17 ms)
INFO mod.mapTiles: in memory tile cache size: 150
INFO mod.mapTiles: map folder path: /home/nemo/.local/share/harbour-modrana/maps
INFO :  * mapTiles: Display map images (434.85 ms)
INFO :  * notification: This module provides notification support. (15.32 ms)
INFO :  * interfaceFeedback: A sample pyroute module (3.94 ms)
INFO :  * cron: A Qt 5 timing and scheduling module for modRana (15.23 ms)
INFO :  * keys: A keyboard input handling module (5.10 ms)
INFO :  * mapView: Controls the view being displayed on the map (15.69 ms)
INFO :  * mapLayers: Map layer handling (73.31 ms)
INFO :  * messages: Handles messages (7.69 ms)
INFO core.poi_db: POI database path:
INFO core.poi_db: /home/nemo/.local/share/harbour-modrana/poi/modrana_poi.db
INFO core.poi_db: connection to POI db established
INFO :  * storePOI: Store POI data. (31.53 ms)
INFO :  * menu: Handle menus (92.54 ms)
INFO :  * theme: ModRana theming module (15.96 ms)
INFO :  * showTracklogs: draws a GPX track on the map (20.02 ms)
INFO :  * routeProfile: Creates a route profile (an elevation chart) (10.50 ms)
INFO :  * askMenu: A module providing yes/no question dialogs (5.40 ms)
INFO :  * tracklog: Record tracklogs (423.32 ms)
INFO :  * tileserver: A modRana built-in tileserver (46.09 ms)
INFO :  * info: A modRana information handling module (13.22 ms)
INFO :  * sketch: Sketching functionality (5.49 ms)
INFO :  * voice: Handle text to speech. (10.22 ms)
INFO :  * stats: Handles statistics (8.09 ms)
INFO :  * options: Handle options (64.79 ms)
INFO :  * turnByTurn: A turn by turn navigation module. (34.49 ms)
INFO :  * route: Routes (70.69 ms)
INFO :  * search: Search for POI (38.45 ms)
INFO :  * updateTiles: Update stored map tiles. (3.97 ms)
INFO :  * tracklogManager: Module for managing tracklogs (17.21 ms)
INFO :  * example: A sample modRana module (4.00 ms)
INFO : Loaded all modules in 2324.46 ms, initialising
DEBUG mod.mapTiles: automatic tile download queue size: 100
INFO core.threads: Running Thread: automaticTileDownloadWorker1 (1215402896)
INFO core.threads: Running Thread: automaticTileDownloadWorker2 (1208886160)
INFO core.threads: Running Thread: automaticTileDownloadWorker3 (1205859216)
INFO core.threads: Running Thread: automaticTileDownloadWorker4 (1217500048)
INFO core.threads: Running Thread: automaticTileDownloadWorker5 (1220260752)
INFO core.threads: Running Thread: automaticTileDownloadWorker6 (1223685008)
INFO core.threads: Running Thread: automaticTileDownloadWorker7 (1233122192)
INFO core.threads: Running Thread: automaticTileDownloadWorker8 (1236235152)
INFO core.threads: Running Thread: automaticTileDownloadWorker9 (1238524816)
INFO core.threads: Running Thread: automaticTileDownloadWorker10 (1241416592)
INFO core.threads: Running Thread: modRanaTileDownloadManager (1244156816)
INFO mod.mapView: switching map drag mode to default
INFO mod.mapView: switching centering disable threshold to 2048
INFO mod.loadTracklogs: ** making a list of available tracklogs
INFO mod.loadTracklogs: *  using this tracklog folder:
INFO mod.loadTracklogs: * /home/nemo/.local/share/harbour-modrana/tracklogs
INFO mod.loadTracklogs: *  there are 2 tracklogs available
INFO mod.loadTracklogs: **
INFO mod.options: reloading Monav data pack list
INFO : Initialization complete in 79.14 ms
INFO : ** modRana startup timing **
INFO : # device: Jolla (jolla)
INFO : * modRana start (0 ms), 0/5783 ms
INFO : * imports done (597 ms), 597/5783 ms
INFO : * GUI creation (2276 ms), 2873/5783 ms
INFO : * all modules loaded (2827 ms), 5700/5783 ms
INFO : * all modules initialized (83 ms), 5783/5783 ms
INFO : ** whole startup: 5783 ms **
INFO mod.gui.qt5.qml: redirecting QML log to the Python log
INFO mod.gui.qt5.qml: theme changed to: Silica theme (id: silica)
INFO mod.gui.qt5.qml: __init__ running
INFO mod.gui.qt5.qml: Qt5 location initialized
INFO mod.gui.qt5.qml: Qt5 GUI location provider: undefined
[D] unknown:0 - Geoclue client path: "/org/freedesktop/Geoclue/Master/client12"
[W] unknown:0 - QMetaMethod::invoke: Unable to handle unregistered datatype 'QGeoPositionInfo'
INFO mod.gui.qt5.qml: keeping screen on
DEBUG mod.gui.qt5.qml: startup values loaded
DEBUG mod.gui.qt5.qml: handling back button display
DEBUG mod.gui.qt5.qml: handling fullscreen state
DEBUG mod.gui.qt5.qml: loading map layers
INFO mod.gui.qt5.qml: layer tree loaded
INFO mod.gui.qt5.qml: layer dict loaded
DEBUG mod.gui.qt5.qml: loading map page
[D] unknown:0 - ItemChildAddedChange
[D] unknown:0 - ItemChildAddedChange
[D] unknown:0 - ItemChildAddedChange
[D] unknown:0 - ItemChildAddedChange
DEBUG mod.gui.qt5.qml: Worker script not yet initialized.
[D] unknown:0 - "" QQuickGridLayoutBase::componentComplete() MapPage_QMLTYPE_69(0x47810f68)
[D] unknown:0 - QQuickGridLayoutBase::updateLayoutItems
[D] unknown:0 - QQuickGridLayoutBase::invalidate()
[D] unknown:0 - QQuickLayout::invalidate(), polish()
[D] unknown:0 - QQuickGridLayoutBase::updateLayoutItems LEAVING
[D] unknown:0 - "" QQuickGridLayoutBase::rearrange() QSizeF(0, 0)
DEBUG mod.gui.qt5.qml: Tile model worker script has been initialized.
DEBUG mod.gui.qt5.qml: Replaying deferred messages to tile model worker script.
DEBUG mod.gui.qt5.qml: Replaying message nr.: 1
INFO mod.gui.qt5.qml: map page: loaded, loading layers
INFO mod.gui.qt5.qml: pinchmap: loading overlay settings for main
INFO mod.gui.qt5.qml: map page: setting map center to: 49.2,16.616667
DEBUG mod.gui.qt5.qml: true
DEBUG mod.gui.qt5.qml: map page loaded
DEBUG mod.gui.qt5.qml: pinchmap: overlay settings for main loaded
Naruszenie ochrony pamięci

Memory protection violation

justmemory 2018-05-18 18:51

Re: [Announce] modRana: a flexible GPS navigation system
 
Hi MartinK,

it does not seem to work on n900 either because of six.py which tries to access methods (?) that does not available on python2.5: viewkeys = operator.methodcaller("viewkeys").

MartinK 2018-05-25 09:01

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

Originally Posted by justmemory (Post 1544483)
Hi MartinK,

it does not seem to work on n900 either because of six.py which tries to access methods (?) that does not available on python2.5: viewkeys = operator.methodcaller("viewkeys").

I've downgraded six back to the previous version as the version bump was not strictly needed in the next RC:

http://www.modrana.org/packages/sail...1.1.noarch.rpm

Can you check it works now ?

Quote:

Originally Posted by atlochowski (Post 1544452)
Code:

[nemo@Sailfish ~]$ sailfish-qml harbour-modrana
[D] unknown:0 - Using Wayland-EGL
[D] unknown:0 - Got library name:  "/usr/lib/qt5/qml/io/thp/pyotherside/libpyothersideplugin.so"
[D] info:23 - INFO: Actions: Sailfish media keys initialized
[W] unknown:0 - Deprecated import of org.nemomobile.keepalive upgrade code to Nemo.KeepAlive 1.1
[D] info:23 - INFO: KeepAlive: keep alive control initialized
[D] info:23 - INFO: Screen: screen blanking control initialized
[D] info:23 - INFO: importing the modRana Python core
[D] info:23 - INFO: starting the modRana Python core
DEBUG : argv from QML:
['-u', 'qt5', '-d', 'jolla']
DEBUG : full argv:
['modrana.py', '-u', 'qt5', '-d', 'jolla']
INFO :  == modRana Starting ==
INFO :  0.55.8
INFO :  Python 3.4.3
INFO :  * device: A Jolla device module (31.50 ms)
INFO : loading options
INFO : possible upgrade detected
INFO core.config: upgrading modRana configuration files in /home/nemo/.config/harbour-modrana
INFO core.config: no configuration files needed upgrade
INFO : using PyOtherSide 1.5.1
INFO :  * gui: A Qt + QML GUI module (108.78 ms)
INFO : importing modules:
INFO :  * input: Handle input from keyboard, buttons, etc. (3.91 ms)
INFO :  * textEntry: A module for handling text entry. (7.75 ms)
INFO :  * units: a unit handling module  (15.66 ms)
INFO :  * showPOI: Show POI on the map and in the menu. (23.78 ms)
INFO :  * icons: Draw icons (29.91 ms)
DEBUG mod.storeTiles: tile loading debug messages state: disabled
INFO :  * storeTiles: Single-file-fs tile storage (121.81 ms)
INFO :  * showOSD: Draw OSD (On Screen Display). (21.46 ms)
INFO :  * location: Supplies position info from a position source (12.54 ms)
INFO :  * mapData: Handle downloading of map data (87.62 ms)
INFO :  * clickHandler: handle mouse clicks (17.70 ms)
INFO :  * display: A platform independent display device control module (14.80 ms)
INFO :  * onlineServices: A module for talking to various online services (358.49 ms)
INFO :  * loadTracklogs: A sample pyroute module (35.04 ms)
INFO :  * positionMarker: A sample pyroute module (8.82 ms)
INFO :  * animatedMapView: A sample pyroute module (7.23 ms)
INFO :  * markers: A module handling markers on the map. (19.05 ms)
INFO :  * projection: Projection code (lat/long to screen conversions) (20.17 ms)
INFO mod.mapTiles: in memory tile cache size: 150
INFO mod.mapTiles: map folder path: /home/nemo/.local/share/harbour-modrana/maps
INFO :  * mapTiles: Display map images (434.85 ms)
INFO :  * notification: This module provides notification support. (15.32 ms)
INFO :  * interfaceFeedback: A sample pyroute module (3.94 ms)
INFO :  * cron: A Qt 5 timing and scheduling module for modRana (15.23 ms)
INFO :  * keys: A keyboard input handling module (5.10 ms)
INFO :  * mapView: Controls the view being displayed on the map (15.69 ms)
INFO :  * mapLayers: Map layer handling (73.31 ms)
INFO :  * messages: Handles messages (7.69 ms)
INFO core.poi_db: POI database path:
INFO core.poi_db: /home/nemo/.local/share/harbour-modrana/poi/modrana_poi.db
INFO core.poi_db: connection to POI db established
INFO :  * storePOI: Store POI data. (31.53 ms)
INFO :  * menu: Handle menus (92.54 ms)
INFO :  * theme: ModRana theming module (15.96 ms)
INFO :  * showTracklogs: draws a GPX track on the map (20.02 ms)
INFO :  * routeProfile: Creates a route profile (an elevation chart) (10.50 ms)
INFO :  * askMenu: A module providing yes/no question dialogs (5.40 ms)
INFO :  * tracklog: Record tracklogs (423.32 ms)
INFO :  * tileserver: A modRana built-in tileserver (46.09 ms)
INFO :  * info: A modRana information handling module (13.22 ms)
INFO :  * sketch: Sketching functionality (5.49 ms)
INFO :  * voice: Handle text to speech. (10.22 ms)
INFO :  * stats: Handles statistics (8.09 ms)
INFO :  * options: Handle options (64.79 ms)
INFO :  * turnByTurn: A turn by turn navigation module. (34.49 ms)
INFO :  * route: Routes (70.69 ms)
INFO :  * search: Search for POI (38.45 ms)
INFO :  * updateTiles: Update stored map tiles. (3.97 ms)
INFO :  * tracklogManager: Module for managing tracklogs (17.21 ms)
INFO :  * example: A sample modRana module (4.00 ms)
INFO : Loaded all modules in 2324.46 ms, initialising
DEBUG mod.mapTiles: automatic tile download queue size: 100
INFO core.threads: Running Thread: automaticTileDownloadWorker1 (1215402896)
INFO core.threads: Running Thread: automaticTileDownloadWorker2 (1208886160)
INFO core.threads: Running Thread: automaticTileDownloadWorker3 (1205859216)
INFO core.threads: Running Thread: automaticTileDownloadWorker4 (1217500048)
INFO core.threads: Running Thread: automaticTileDownloadWorker5 (1220260752)
INFO core.threads: Running Thread: automaticTileDownloadWorker6 (1223685008)
INFO core.threads: Running Thread: automaticTileDownloadWorker7 (1233122192)
INFO core.threads: Running Thread: automaticTileDownloadWorker8 (1236235152)
INFO core.threads: Running Thread: automaticTileDownloadWorker9 (1238524816)
INFO core.threads: Running Thread: automaticTileDownloadWorker10 (1241416592)
INFO core.threads: Running Thread: modRanaTileDownloadManager (1244156816)
INFO mod.mapView: switching map drag mode to default
INFO mod.mapView: switching centering disable threshold to 2048
INFO mod.loadTracklogs: ** making a list of available tracklogs
INFO mod.loadTracklogs: *  using this tracklog folder:
INFO mod.loadTracklogs: * /home/nemo/.local/share/harbour-modrana/tracklogs
INFO mod.loadTracklogs: *  there are 2 tracklogs available
INFO mod.loadTracklogs: **
INFO mod.options: reloading Monav data pack list
INFO : Initialization complete in 79.14 ms
INFO : ** modRana startup timing **
INFO : # device: Jolla (jolla)
INFO : * modRana start (0 ms), 0/5783 ms
INFO : * imports done (597 ms), 597/5783 ms
INFO : * GUI creation (2276 ms), 2873/5783 ms
INFO : * all modules loaded (2827 ms), 5700/5783 ms
INFO : * all modules initialized (83 ms), 5783/5783 ms
INFO : ** whole startup: 5783 ms **
INFO mod.gui.qt5.qml: redirecting QML log to the Python log
INFO mod.gui.qt5.qml: theme changed to: Silica theme (id: silica)
INFO mod.gui.qt5.qml: __init__ running
INFO mod.gui.qt5.qml: Qt5 location initialized
INFO mod.gui.qt5.qml: Qt5 GUI location provider: undefined
[D] unknown:0 - Geoclue client path: "/org/freedesktop/Geoclue/Master/client12"
[W] unknown:0 - QMetaMethod::invoke: Unable to handle unregistered datatype 'QGeoPositionInfo'
INFO mod.gui.qt5.qml: keeping screen on
DEBUG mod.gui.qt5.qml: startup values loaded
DEBUG mod.gui.qt5.qml: handling back button display
DEBUG mod.gui.qt5.qml: handling fullscreen state
DEBUG mod.gui.qt5.qml: loading map layers
INFO mod.gui.qt5.qml: layer tree loaded
INFO mod.gui.qt5.qml: layer dict loaded
DEBUG mod.gui.qt5.qml: loading map page
[D] unknown:0 - ItemChildAddedChange
[D] unknown:0 - ItemChildAddedChange
[D] unknown:0 - ItemChildAddedChange
[D] unknown:0 - ItemChildAddedChange
DEBUG mod.gui.qt5.qml: Worker script not yet initialized.
[D] unknown:0 - "" QQuickGridLayoutBase::componentComplete() MapPage_QMLTYPE_69(0x47810f68)
[D] unknown:0 - QQuickGridLayoutBase::updateLayoutItems
[D] unknown:0 - QQuickGridLayoutBase::invalidate()
[D] unknown:0 - QQuickLayout::invalidate(), polish()
[D] unknown:0 - QQuickGridLayoutBase::updateLayoutItems LEAVING
[D] unknown:0 - "" QQuickGridLayoutBase::rearrange() QSizeF(0, 0)
DEBUG mod.gui.qt5.qml: Tile model worker script has been initialized.
DEBUG mod.gui.qt5.qml: Replaying deferred messages to tile model worker script.
DEBUG mod.gui.qt5.qml: Replaying message nr.: 1
INFO mod.gui.qt5.qml: map page: loaded, loading layers
INFO mod.gui.qt5.qml: pinchmap: loading overlay settings for main
INFO mod.gui.qt5.qml: map page: setting map center to: 49.2,16.616667
DEBUG mod.gui.qt5.qml: true
DEBUG mod.gui.qt5.qml: map page loaded
DEBUG mod.gui.qt5.qml: pinchmap: overlay settings for main loaded
Naruszenie ochrony pamięci

Memory protection violation

Does this happen every time ? What version of Sailfish OS are you running on your Jolla 1 ? Also, did the previous version (<0.55.8) work fine ?

Also, thanks for the feedback everyone, keep it coming! :)


All times are GMT. The time now is 22:54.

vBulletin® Version 3.8.8