Comments (8)
Well, I don't understand how it is possible, bearing is normalised in constructor and I am not able to reproduce.... But it should be simple to find it out... Can you please install and try to reproduce it with this version: https://osmscout.karry.cz/tests/harbour-osmscout-1.10-1.armv7hl.rpm
I just add simple debug messages around bearing computation and toString method...
from osmscout-sailfish.
Thanks for looking in to this :) Here are the logs from that version.
[D] unknown:0 - long tap QPoint(533,855)
[D] onLongTap:272 - long tap: 533x855 @ 57.486602205641915 15.0357420935211
Map DPI override: 192.00000
Map DPI override: 192.00000
[D] unknown:0 - Overlay tile cache: osmscout::TileCache(0x9c728c)
[D] unknown:0 - Initialize
[D] unknown:0 - ~PlaneMapRenderer
[D] unknown:0 - ~MapRenderer
Evaluate bearing between 0 0 -> 57.4866 15.0357: 0.163872 rad / 9.38919 deg
Bearing string for 0.163872 rad / 9.38919 deg
Evaluate bearing between -nan 0 -> 57.4866 15.0357: nan rad / nan deg
Bearing string for nan rad / nan deg
harbour-osmscout: /home/mersdk/share/SailfishOS/projects/osmscout-sailfish/dependencies/libosmscout/libosmscout/src/osmscout/util/Bearing.cpp:93: std::string osmscout::Bearing::LongDisplayString() const: Assertion `false' failed.
Aborted
from osmscout-sailfish.
Thank you! It is clear your location is NaN for some reason?! I will fix bearing for this special case... You have disabled GPS receiver?
from osmscout-sailfish.
Yes, positioning is disabled. Enabling it does not immediately solve the issue.
The "Where am I?" menu option is greyed out, so i'll give it a while and see if it it becomes enabled and the behaviour changes.
from osmscout-sailfish.
Weird, now the positioning appears to have started, and it still crashes.
Weirder still, the "Where am I?" menu option crashed the app too when it had become selectable.
However i did not get a log for that, and now it works, both long-press and "Where am I?".
from osmscout-sailfish.
It is really weird. From the log, only latitude is NaN, longitude is zero... Nevermind, application should not crash when location is not valid... It will be fixed. I will release new version in few days...
from osmscout-sailfish.
Should be fixed in version 1.10 that was just released. Please let me know if you will experience any troubles. Thank you again for your time!
from osmscout-sailfish.
Thank you for donation!
from osmscout-sailfish.
Related Issues (20)
- Offline maps download error HOT 2
- Please add the german "Bundesländer" to the online map repository HOT 1
- show/hide Collection/Overlays button on map HOT 6
- Show-All-Roads / Rural map mode HOT 2
- Minor UI niggles HOT 3
- OSMScout interferes with audio player HOT 10
- Can't share my position HOT 6
- Distinguish US and UK unit systems
- On/off switch for individual downloaded offline maps to increase responsiveness? HOT 2
- Incorrect routing destination HOT 1
- Feature request: 3D Maps view HOT 1
- Consider submitting to Chum HOT 6
- Feature request: Reroute HOT 3
- Translation HOT 2
- NZ Topomaps HOT 1
- Default dir on first start is ~/Osm not ~/Documents/Osm HOT 2
- Feature request: use a GPX file for navigation
- The app only shows a white screen and nothing else. HOT 4
- Import and display heart rate from GPX files
- Support for reading heart rate from smartwatch
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from osmscout-sailfish.