![]() |
Re: [Announce] modRana: a flexible GPS navigation system
MartinK,
I can't get any maps to show up in the latest version of Modrana (I get a black screen with the icons overlaid). I've tried both the default maps, and OSM Scout Server. Any ideas what it could be? I'm running SFOS 2.0.5.6 on Fairphone 2. |
Re: [Announce] modRana: a flexible GPS navigation system
Quote:
|
Re: [Announce] modRana: a flexible GPS navigation system
Quote:
Quote:
Code:
git clone https://github.com/M4rtinK/modrana |
Re: [Announce] modRana: a flexible GPS navigation system
@MartinK, the output was uploaded to github.
@Feathers McGraw: to get ./sailfish working, I had to follow https://together.jolla.com/question/...n-without-sdk/ , @MartinK's answer. |
Re: [Announce] modRana: a flexible GPS navigation system
Quote:
|
Re: [Announce] modRana: a flexible GPS navigation system
Quote:
Edit: one observation, when rotating from portrait to landscape or vice versa, the map becomes visible for a fraction of a second, sort of flickers and then goes back to black. BTW, device is opx |
Re: [Announce] modRana: a flexible GPS navigation system
Something has gone a bit skewiff for me since the 2.1.0.9 update (or possibly the 0.54.3 modRana update) on the Jolla 1 - basically map layer changes (including the base layer) don't seem to stick unless I close then reopen modRana.
Is everyone seeing this? I'll try to get some repro steps and logs together and file a proper bug report later otherwise. |
Re: [Announce] modRana: a flexible GPS navigation system
Perhaps a silly question, but does modRana work in Jolla C?
|
Re: [Announce] modRana: a flexible GPS navigation system
Quote:
Quote:
Surprisingly I haven't found any direct evidence what might be wrong - the logs are pretty similar to the output I get on my Jolla, but there are more tiles on the screen (1080p vs 720p) and the actions generally seems to take less time (faster CPU - race condition potential ?). It also seems that the tiles model is working correctly - there is the correct number of tiles in the model and the web Mercator coordinates of the map corners also generally look sane. There are even some tile debugging calls in one of the log files that confirm the corresponding tile images do exist and are being loaded - they are just not shown for some reason! :) I've also checked and the issue is not just due to the 1080p resolution - I've created a 3000x3000 pixel local VNC server screen and run modRana in 1080p (both portrait and landscape) on it and the issue did not manifest. Also as mentioned earlier, it does not happen on the Jolla Tablet, which has even higher resolution. So I'll continue studying the logs and will probably add a few more commits to that debugging branch, mostly adding more logging and maybe also trying some stuff, like: - setting allowed window orientations, there are some error messages about that (I don't have those warnings on Jolla C) - logging tile screen coordinates (to check the tile coordinates are correctly translated to screen coordinates) - disabling asynchronous tile model updates (to remove the possibility they are causing this) I will certainly let you know when I'm that far & will again need your help with running that branch again on your affected devices. Thanks in advance! :) |
Re: [Announce] modRana: a flexible GPS navigation system
Quote:
It would certainly help to get a log from when it happens (layer change not taking effect) - just attach it here or feel free to open a bug on GitHub. Thanks in advance! :) Quote:
In fact Jolla C is currently even my primary (not only) development device. :) It should also work fine on the original Jolla and the Jolla Tablet and other devices running Sailfish OS. If you are afraid of the black-screen issues reported up-thread in new modRana version - these seems to so far only affect Sailfish OS ports running on a device with a 1080p screen (1080x1920 in portrait) and according to Ringius non-1080p ported devices (such as the Nexus 4) work fine. |
Re: [Announce] modRana: a flexible GPS navigation system
Any word on the 'black screen of no maps' on oneplus x? I'm seeing the issue and woukd br happy to help with testing.
Thanks! Other than not seeing maps in latest version I love this program! (I know, 'other than that how was the play mrs lincoln?') |
Re: [Announce] modRana: a flexible GPS navigation system
Quote:
https://github.com/M4rtinK/modrana/issues/186 That's at the moment probably the best place where to watch for progress in this matter, even though I'll probably also post updates to this thread. And sorry for this taking so long - the issue seems rather hard to crack so far. My current theory is that it's either some pretty particular race condition (happens at 1080p only, not above or below & only on Sailfish OS) or even possibly some platform adaptation glitch modRana manages to hit on the ex-Android 1080p devices running Sailfish OS. Actually the two devices seem almost identical in screen (1080x1920), SoC (Snapdragon 801) and GPU (Adreno 330), so I guess a similar hardware adaptation/drivers are used for both ? It would hardly be the first Sailfish OS specific weirdness I've hit during modRana development: [bug] MouseEvent x and y properties are floats [bug] Some QtQuick Canvas drawing coordinates cause application-wide deadlock BTW, so far the issue seems to happen on Fairphone 2 and OnePlusX - could someone with Sailfish OS running on a phone with 1080p screen verify if current modRana runs fine or if it has similar issues ? That could help narrow the search for a cause down. If it also happens, it would be more likely some modRana side algorithm is at fault. If modRana works fine then it would be likely specific hardware adaptation glitch is at fault. |
Re: [Announce] modRana: a flexible GPS navigation system
Quote:
|
Re: [Announce] modRana: a flexible GPS navigation system
modRana 0.54.4 has been released!
This is mostly a bugfix release fixing various bugs. :) Changelog Code:
- Fix map layer switching Next I plan to finally get back to debugging of the map-is-black-on-ported-1080p-devices issue. :) This release does not have any fixes specific for that, but it would still be helpful if someone who is affected could try to update to 0.54.4 and see if the black-map issue still persists & behaves the same (map is visible for a split second when device is rotated, etc.). It's quite possible it's a race-condition of some sort, so the various fixes, even though not directly related, could influence it. Also, is there already someone running Sailfish OS 2.1.0 one a 1080p ported device ? It would be possibly quite interesting to know if the updated Qt 5.6 in 2.1.0 changes behavior of the black-map-screen issue. Edit: 19.03.2017 18:01 Looks like the issues no longer manifests on ported devices with Sailfish OS 2.1.0/Qt 5.6! mal, the heroic Sailfish OS porter reports that the black-map issue no longer happens on Fairphone 2 & OnePlus X as long as they are running Sailfish OS 2.1.x, while the issue can still be reliably reproduced with Sailfish OS <2.1.x. Thanks yet again to mal for helping to find the cause (Sailfish OS <2.1.x & old Qt) & solution (update to Sailfish OS 2.1.x)! :) |
Re: [Announce] modRana: a flexible GPS navigation system
modRana 0.54.5 has been released!
It is now possible to set opacity for routes, tracklogs and the track logging trace, so that you can see what's underneath while still seeing the route/tracklog/trace. Also thanks to AL13N for suggesting this in the Jolla Store comments! :) Changelog Code:
- it is now possible to set opacity for routes, tracklogs |
Re: [Announce] modRana: a flexible GPS navigation system
Quote:
Or declare the n900 development over, which is understandable and your absolute right. Otherwise, the device sits in limbo.... My 2c worth :-) HA |
Re: [Announce] modRana: a flexible GPS navigation system
Quote:
On the other hand, you can just grab the latest tarball: http://modrana.org/tarballs/modrana/...-0.54.5.tar.gz Unpack it and then run modrana.py from the resulting directory - it should detect it's running on the N900 and behave accordingly. If you can help test modRana like this it would be really helpful! Don't hesitate to report any weird behavior, crashes, etc. :) And thanks in advance! :) |
Re: [Announce] modRana: a flexible GPS navigation system
Quote:
First of all, thanks for the update! Tried this version with my n900 and first major problem is that in this version offline routing is not working however at the same time it is working OK with version 0.53.1 (last official version for Maemo). jm EDIT:// running from terminal the relevant section is maybe: DEBUG mod.route: routing provider ID: Monav ERROR mod.route: unknown rounting provider ID: Monav |
Re: [Announce] modRana: a flexible GPS navigation system
Hi MartinK!
I managed to get offline routing work (tried with foot, car, bicycle) - well almost. Address to address and handmade still does not work. What I did: - changed routing provider from Monav to Monav server ("Monav" stuck from earlier version of modrana I guess as it now allows only "Monav server" and "Google online"...) - /core/bundle/signals_pb2.py - comment out line 6 (from __google.protobuf import descriptor_pb2) as it claimed that cannot import it. - /core/monav_support.py - changed line 25: import simplejson as json (a "try" - "except" method would be better, it is just a simple solution) as it claimed that cannot import json. - /core/routing_providers.py - changed line 60: result = self._monav_directions(waypoints, route_params) - as it claimed that it takes 3 argument but provided 2. - /core/way.py - changed all node/Node.lat and node/Node.lon to node/Node.latitude and node/Node.longitude as it claimed that node/Node has no attribute lat. - /core/instructions_generator.py - changed all node/Node.lat and node/Node.lon to node/Node.latitude node/Node.longitude as it claimed that node/Node has no attribute lat. For address to address routing I get the following error: waypoints = [x.getLL() for x in waypoints] AttributeError: 'str' object has no attribute 'getLL'. This is valid as for waypoints it gets the real addresses I add in modrana so it cannot convert it to latitude and longitude points. For handmade routing I get the following error: Modules/mod_route/mod_route.py, line 577, in _handle_routing_result_cb; if result.route and result.returnCode == constants.ROUTING_SUCCESS:; AttributeError: 'tuple' object has no attribute 'route'. jm |
Re: [Announce] modRana: a flexible GPS navigation system
Quote:
http://modrana.org/tarballs/modrana/...-0.54.6.tar.gz As for the other issues: Address routing - that's actually expected behavior, as Monav does only point to point routing (+ waypoints along the route, IIRC) based on geographic coordinate pairs. It does not support gecoding (turning addresses to coordinates), so it can't work for address-to-address routing when the device is offline. But of course a sensible error message should be shown in such a case, not a traceback. :) Handmade routing (basically, "draw your own route" and let modRana follow it) - it indeed seems pretty broken, not just on the N900, but also when running the GTK GUI on desktop. And it looks like it has been this way for quite some time. Will have to look into it more later. :) |
Re: [Announce] modRana: a flexible GPS navigation system
Quote:
Now it is working fine for me - even better, because now user_config.conf and map_config.conf weren't overwritten :) (I use my own tiles located elsewhere than the stock "OpenStreetMap I" folder so at every update I had to define that location in the config files) Hmm, now I understand - and yes, an error message would be great or maybe it would be even better if offline routing is set then user could not click on address to address navigation. |
Re: [Announce] modRana: a flexible GPS navigation system
Big thanks to @MartinK for continuing to release for N900.
I am trying the new version and just did an online route calculation between two addresses in my city. It routed correctly although the dialog that popped up allowing to step through the navigation steps initially had 4,200ish kms. I assumed this was the journey distance and hence a miscalculation, as the two addresses are only about 5 kms apart. However, now I think it was because my initial GPS location was somewhere out in the ocean and it was possibly calculating based on that, i.e. distance from (believed) current location to this navigation point. Could that be the case? During the course of my writing this comment it corrected itself anyway. |
Re: [Announce] modRana: a flexible GPS navigation system
modRana 0.54.7 has been released! :)
This is just a bugfix release that fixes an issue with using the OSM Scout Server for offline tile rendering. Previously modRana used its default tile download timeout (10 seconds) also for the OSM Scout Server locally rendered tile layers. In some cases (especially if many new tiles were requested at once) OSM Scout Server might not be able to render the tile in time and the tile download requests would time out. ModRana would then retry the tile download like it does with normal online tile downloads, making OSM Scout Server even more overloaded and effectively asking it to render the tile again. :P Thanks a lot to Rinigius for reporting the issue and providing the initial version of the fix! :) To fix this I've added support for having different timeout parameters for each map layer and simply disabled time download timeouts for the OSM Scout Server layers. This way online tile downloads should time out after 10 seconds as before (or you can set your own timeout now in map_config.conf) and OSM Scout Server should now have enough time to finish tile rendering without being asked for the same tile multiple times. :) Changelog Code:
- don't timeout while OSM Scout Server is still rendering a tile |
Re: [Announce] modRana: a flexible GPS navigation system
While debugging OSM Scout Server interaction with modRana, I found out that the extra border added to each tile for consistent labeling was scaled in Mapnik by the scale factor. This is in addition to the scaling that I did in the server code (great minds think alike). This slowed down tile generation significantly and was more visible in modRana's case which is asking for smaller tiles.
Next release of the server will have the fix for double scaling that leads to the faster rendering of the tiles. |
Re: [Announce] modRana: a flexible GPS navigation system
When I open modrana, it's stuck in 'starting Modrana...' screen.
I've unistalled an installed, but this issue goes on. |
Re: [Announce] modRana: a flexible GPS navigation system
Quote:
Provided that you have terminal installed, could you run: Code:
sailfish-qml harbour-modrana Thanks in advance! :) Also worst case you might try downgrading to an older version - the OpenRepos page has quite a few older packages available: https://openrepos.net/content/martink/modrana-0 UPDATE: Looks like Jolla Store QA managed to hit the bug as well and I've created a fix based on the traceback they've sent me. So try installing 0.54.8 - it should fix the crash/endless starting up screen. |
Re: [Announce] modRana: a flexible GPS navigation system
modRana 0.54.8 has been released!
The Jolla Store QA confirmed my fix has been effective, so time for a release post! :) Other than the fix for the map config file parsing crash this release mainly contains fixes and improvements for POI search. POI search results now have better looking clickable markers that provide additional information about the given POI, POI searches can now be correctly canceled and OSM Scout Server based local search has been fixed and should be now again working correctly. Changelog Code:
- fix map config parsing related crash |
Re: [Announce] modRana: a flexible GPS navigation system
I was using 0.54.7 in my Jolla1 with SailfishOS 2.1.0.11, but 0.54.8 works fine, thank you for the update!!
|
Re: [Announce] modRana: a flexible GPS navigation system
Quote:
|
Re: [Announce] modRana: a flexible GPS navigation system
I have been seeing a lot of activity on github for this project lately, this is great.
However, I noticed no new packages for Maemo in a while. I assumed maybe you where working on getting the QT5 version upto the same standard as GTK. I recall you mentioning this a while back. Reading the thread back you are no longer setup for local building of the package so haven't pushed packages to the autobuilder. Is there anyway the community can help get these releases to Maemo? I propose that if there are no major issues with 0.53.1 over 0.43.4, I don't recall any, that the current version is promoted to Extras (promotion is unlocked). That way going forward you could release to Extras-Devel with minimal testing. That repo is for development builds after all, we should be using it for it's intended purpose. I am not sure if there is much to benefit from the current build over the ones I have (0.53.1), but assume it's still the same as before that I can download the latest tarball and run it directly for both desktop and N900? |
Re: [Announce] modRana: a flexible GPS navigation system
Hello MartinK,
I am translating to French the documentation about the OSM Scout Server. While taking the screenshots for modRana, I found out that the text is in English while my device is configured in French. I can't find any translation files in the Github repo, neither mentions of translation at all on the website or google. Did I understand correctly that modRana isn't translated to any other languages ? I have personally no problems with english, but as I am translating some other apps to french as possible to help my fellow french speaking only people, I though I could propose my help here too. Please let me know if I understood right and you need some help ! |
Re: [Announce] modRana: a flexible GPS navigation system
Quote:
Quote:
Quote:
As there has been quite a lot of changes since the latest release in Jully, I'd recommend just using the lates code from the master branch: https://github.com/M4rtinK/modrana/archive/master.zip As before, just unpack it on your N900 and run modrana.py from the unpacked folder in terminal. And report anything that seem broken on the N900. :) Quote:
http://maemo.org/packages/package_in...odrana/0.53.1/ Notice the "log" on the bottom of the page: Code:
Package promoted Martin Kolman 2016-08-06 20:46 UTC Quote:
|
Re: [Announce] modRana: a flexible GPS navigation system
Quote:
This is compounded by that some of the strings come from the sizeable Python core, so it's not just about translation support in QML (which is pretty easy to do - basically just call qsTr() and you are done), but also supporting translation in the Python code, if we want to enable full coverage. That's making things a bit more complicated. On the other hand, I'm thinking just enabling translations for the QML code should be rather easy and could already improve things quite a bit. So I'll try to take a look into that first, hopefully soon. :) Quote:
https://github.com/M4rtinK/modrana/issues/213 Feel free to subscribe to it for easy tracking of my progress in this area. :) |
Re: [Announce] modRana: a flexible GPS navigation system
Quote:
While the infra can be ... difficult, nothing seems to be wrong with the promotion of your package. It would appear you have promoted it from Development to Testing and that has been successful on 2016-08-06 20:46 UTC, the QA has been completed and it is awaiting promotion from Testing to Extras. You will have to select the Testing version of the package to view the promotion button. Any queries let me know. (TMO, IRC whichever) If this is successful releasing the latest packages to Devel would be great, I can provide any bugs or feedback here or on github as I have done before. If I get time in the meanwhile I may look at pulling the latest version and installing it manually on desktop and N900. However, it would be nice from a tester prospective to tie an issue with a version number. Especially if you need a broken function working again for a task you need to do. |
Re: [Announce] modRana: a flexible GPS navigation system
Quote:
Thanks for the details ! |
Re: [Announce] modRana: a flexible GPS navigation system
Quote:
http://maemo.org/packages/view/modrana/ Quote:
|
Re: [Announce] modRana: a flexible GPS navigation system
Hi folks
Need a hand here. The one really gaping hole in my SFOS N4 device is the lack of working "turn-by-turn" navigation app (replacement for Google Maps app). I've read over and over that modRana supports "turn-by-turn" navigation (I presume that's GPS driven) but I cannot for the life of me figure out even how to find my current location using the app. Could someone please point me in the direction of a guide or something that could help me to 1) use modRana and GPS to determine my current location 2) produce a route from that current location to a different location 3) navigate in real time Any help is greatly appreciated. Thank you! Jon |
Re: [Announce] modRana: a flexible GPS navigation system
Ok so I have had a few minutes to pull the latest master on to my device. It starts up as you expect with default settings, however I have no access to any maps. Just Loading and Downloading tiles are displayed.
Every map you select throws the error that the server returned no image file and that the "server must not like you" :) The only thing I can think of my side would be it's installed and run via terminal straight from the uSD card, which may affect tile storage? |
Re: [Announce] modRana: a flexible GPS navigation system
Quote:
As far as I know tile storage is defined in ~/.modrana on n900 so it doesn't matter where you are running modrana.py. |
Re: [Announce] modRana: a flexible GPS navigation system
Quote:
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. |
All times are GMT. The time now is 22:57. |
vBulletin® Version 3.8.8