GithubHelp home page GithubHelp logo

Comments (16)

Niach avatar Niach commented on August 18, 2024 2

The problem seems to appear only on your xamain.forms sample and not in your android sample app.
Maybe it has something to do with the Fragment?

from mapbox-android-binding.

Niach avatar Niach commented on August 18, 2024 1

I think this is the problem:
nitaliano/react-native-mapbox-gl#878
nitaliano/react-native-mapbox-gl#906
nitaliano/react-native-mapbox-gl#1023
Should got fixed with Mapbox 6.1.0

from mapbox-android-binding.

mdenkmaier avatar mdenkmaier commented on August 18, 2024

Same on my side, cannot start the app again after closing it.
You can check it using your own sample application.

from mapbox-android-binding.

tuyen-vuduc avatar tuyen-vuduc commented on August 18, 2024

How do you guys say closing it? It works well at my end. (open <=> close)

from mapbox-android-binding.

cschwengler avatar cschwengler commented on August 18, 2024

Same, swipe the app away out of the recent apps(no explicit killing) and open it again -> infinite loop

from mapbox-android-binding.

Niach avatar Niach commented on August 18, 2024

I'm using it in a Fragment and did it like in your blog post:

public override void OnDestroyView()
        {
            mapView?.RemoveOnMapChangedListener(this);
			mapView?.OnDestroy();
			base.OnDestroyView();
        }

from mapbox-android-binding.

tuyen-vuduc avatar tuyen-vuduc commented on August 18, 2024

@cschwengler On which device did you face the issue?

@Niach Have you faced the same issue on my sample?

Plz check device log where there are a lot of details for us to investigate deeper.

I didn't face any issues when closing app/opening app on simulator.

Cheers.

from mapbox-android-binding.

cschwengler avatar cschwengler commented on August 18, 2024

On a Oneplus 3 with Oxygen OS, Android 8.0

from mapbox-android-binding.

tuyen-vuduc avatar tuyen-vuduc commented on August 18, 2024

Hey,

I couldn't replicate your issue without more details.

Plz connect device and try to debug then get the logcat details.

Thanks.

from mapbox-android-binding.

cschwengler avatar cschwengler commented on August 18, 2024

Hey, i found whats going wrong. Its happening if you enabled the Mapbox TelemetryService.
Maybe you disabled it on your testing device. If its enabled and you try to restart the app, it hangs.

from mapbox-android-binding.

Niach avatar Niach commented on August 18, 2024

I made a video of your sample app: https://www.youtube.com/watch?v=AZg2D2dGa7U
After force-killing the app it works again, and if you disagree with the telemetry service it also works.

from mapbox-android-binding.

tuyen-vuduc avatar tuyen-vuduc commented on August 18, 2024

Plz check back v6.4 now.

from mapbox-android-binding.

tmatrai avatar tmatrai commented on August 18, 2024

Hi Guys,

I have just tested v6.4, and the bug still exists. Start app (OK), close it by pressing device back button (app closes), click on the app icon again (BUG: app freezes). It happens by Xamarin Forms. Tested on Samsung Galaxy A5, Android 8.0.0.

from mapbox-android-binding.

tmatrai avatar tmatrai commented on August 18, 2024

After investigating this bug I found that calling Android.OS.Process.KillProcess(Android.OS.Process.MyPid()); in maprenderer after fragment = null; in dispose method it "solves" the problem, the app can be re-started successfully. I don't feel it a bugfix of course, it seems a brutal "solution", but hopefully can lead to the fix by pointing out it can be some lifecycle / fragment dispose related problem.

from mapbox-android-binding.

tmatrai avatar tmatrai commented on August 18, 2024

When you open app by tapping a push message on Android, app start also hangs if there is a MapBox map on the start page of the app. In this case it does not matter how you closed it before, so a simple home button pressing close also can lead to this error. Samsung Galaxy A5, Android 8.0.0.

from mapbox-android-binding.

stephenmante avatar stephenmante commented on August 18, 2024

App freezes due to fragment dispose related problem. This issue occur in Xamarin Forms. I tried not using fragment and follow the same approach like what amay077 did in Xamarin.Forms.GoogleMaps in creating the view that can be found in this link https://github.com/amay077/Xamarin.Forms.GoogleMaps/blob/master/Xamarin.Forms.GoogleMaps/Xamarin.Forms.GoogleMaps.Android/MapRenderer.cs#L119 and it solves the problem.

from mapbox-android-binding.

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.