Coder Social home page Coder Social logo

Comments (9)

Kelvino9 avatar Kelvino9 commented on June 16, 2024 2

I went through the Organic Maps issue you mentioned and tested again with no location permission granted and Transportr 2.2.0 won't crash this time. I do have microG 0.3.0.233515 with location services enabled if that matters.

from transportr.

Kelvino9 avatar Kelvino9 commented on June 16, 2024 1

I'm currently running DivestOS-20-20240107-dos-kebab. Reinstalling Transport 2.1.5 and using it gives no issue. Organic Maps 2023.12.20-4-Fdroid runs fine on my phone.

from transportr.

licaon-kter avatar licaon-kter commented on June 16, 2024 1

Confirmed here locally too :( Divest 20 + microG 0.3.0 (without microg enablement even, just have microg installed)

from transportr.

Altonss avatar Altonss commented on June 16, 2024

Thanks for the bug report! Unfortunately I cannot reproduce this issue. Which android version are your using exactly? Because it looks similar to organicmaps/organicmaps#5999 (but which doesn't crash) 🤔

from transportr.

Altonss avatar Altonss commented on June 16, 2024

I thing that I found the culprit @ialokim :

for (provider in LOCATION_PROVIDERS) {
locationManager.requestLocationUpdates(provider, MIN_UPDATE_INTERVAL, MIN_UPDATE_DISTANCE, this, Looper.getMainLooper())

And LOCATION_PROVIDERS is defined as
val LOCATION_PROVIDERS = arrayOf(GPS_PROVIDER, NETWORK_PROVIDER)

Probably your DivestOS rom doesn't provide a network location provider.
We just need to handle this better and only request location updates for existing providers :)

from transportr.

licaon-kter avatar licaon-kter commented on June 16, 2024

Probably your DivestOS rom doesn't provide a network location provider.

@Kelvino9 note that microG has no permissions for location functionality in Divest OS https://divestos.org/pages/faq#location

What happens if you toggle off all the microg location toggles?

from transportr.

Kelvino9 avatar Kelvino9 commented on June 16, 2024

If I switch off every given location provider in microG, Transportr 2.2.0 will crash when I grant location permission.

Transportr 2.1.5, Organic Maps or OsmAnd will still continue to launch without any enabled location provider, but location permission granted.

from transportr.

Kelvino9 avatar Kelvino9 commented on June 16, 2024

Another test with changing from precise location to approximate location will not crash the app. So enabling or disabling location provider in microG has no effect on the app crashing. It seems to be isolated to the precise location setting.

from transportr.

Altonss avatar Altonss commented on June 16, 2024

Could you try the change in #912 to see if it solves your issue?

from transportr.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.