Skip to content
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
This repository was 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

Description

@13kz

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);
    }

Activity

  1. added
    Android
    on May 2, 2017
  2. tobrun commented on May 2, 2017

    @tobrun
    Member

    @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.

  3. galacticappster04 commented on May 5, 2017

    @galacticappster04

    @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.

  4. 13kz commented on May 5, 2017

    @13kz
    Author

    @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.

  5. tobrun commented on May 9, 2017

    @tobrun
    Member

    @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 join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Androidcrashneeds information

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions