Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

Got "Unfortunately, App has stopped" dialog without App crashes with Mapbox version 5.0.2 #8848

Closed
13kz opened this issue Apr 28, 2017 · 4 comments
Labels
Android Mapbox Maps SDK for Android crash needs information

Comments

@13kz
Copy link

13kz commented Apr 28, 2017

Platform:Android
Mapbox SDK version:5.0.2

I'm working with Mapbox version 5.0.2 but I got a weird dialog with the message "Unfortunately, App has stopped" without the application crashes.
And I don't have no specific message in Android Monitor that explain this one.

I already add mapboxMap.setMyLocationEnabled(true) in onMapReady to show user location drawable on the map.

@Override
    public void onMapReady(MapboxMap mapboxMap) {
        /** set Max Zoom Preference**/
        /** set Min Zoom Preference**/
        mapboxMap.setMyLocationEnabled(true);
    }

@tobrun tobrun added Android Mapbox Maps SDK for Android crash labels May 2, 2017
@tobrun
Copy link
Member

tobrun commented May 2, 2017

@13kz did you request any runtime location permissions? How do you mean no specififc messages in your android monitor? If the app crashed there should always be stacktrace. Sometimes it's hidden under your logcat filters. Without having any stacktrace this issue isn't actionable for us. The test activity we the same code works as expected on master.

@galacticappster04
Copy link

@13kz, I can confirm your app will crash if you don't have the permission set properly. You can look at the demo sample for further reference.

@13kz
Copy link
Author

13kz commented May 5, 2017

@tobrun, u're right. The stack trace is visible when I change Debuggable process in Android Monitor. This issue is already created here (lost issue).
I'll use Release Android v5.1.0-beta1 version to check.

@tobrun
Copy link
Member

tobrun commented May 9, 2017

@13kz, beta1 will not resolve your issue yet. The PR in #8872 will fix this. Feel free to retest when that lands with a SNAPSHOT or when beta.2 is released (eta somewhere this week). Closing this as a duplicate of #8639

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Android Mapbox Maps SDK for Android crash needs information
Projects
None yet
Development

No branches or pull requests

3 participants