Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash in "online map consent" dialog #434

Closed
vanek49 opened this issue Nov 13, 2024 · 1 comment
Closed

Crash in "online map consent" dialog #434

vanek49 opened this issue Nov 13, 2024 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@vanek49
Copy link

vanek49 commented Nov 13, 2024

App information

  • ID: de.storchp.opentracks.osmplugin
  • Version: 45 5.0.0
  • Build flavor: full

Device information

  • Brand: Xiaomi
  • Device: apollo
  • Model: M2007J3SG
  • Id: SKQ1.211006.001
  • Product: apollopro_global

Firmware

  • SDK: 31
  • Release: 12
  • Incremental: V14.0.1.0.SJDMIXM

Cause of error

Exception in thread "main": java.lang.RuntimeException: Unable to start activity ComponentInfo{de.storchp.opentracks.osmplugin/de.storchp.opentracks.osmplugin.map.MapsActivity}: java.lang.NullPointerException: An AlertDialog must have a TextView with id.message
	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3763)
	at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3937)
	at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:103)
	at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:135)
	at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:95)
	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2288)
	at android.os.Handler.dispatchMessage(Handler.java:106)
	at android.os.Looper.loopOnce(Looper.java:210)
	at android.os.Looper.loop(Looper.java:299)
	at android.app.ActivityThread.main(ActivityThread.java:8293)
	at java.lang.reflect.Method.invoke(Native Method)
	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:556)
	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1045)
Caused by: java.lang.NullPointerException: An AlertDialog must have a TextView with id.message
	at java.util.Objects.requireNonNull(Objects.java:232)
	at de.storchp.opentracks.osmplugin.map.MapsActivity.showOnlineMapConsent(MapActivity.kt:529)
	at de.storchp.opentracks.osmplugin.map.MapsActivity.createLayers(MapActivity.kt:487)
	at de.storchp.opentracks.osmplugin.map.MapsActivity.onCreate(MapActivity.kt:149)
	at android.app.Activity.performCreate(Activity.java:8241)
	at android.app.Activity.performCreate(Activity.java:8207)
	at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1329)
	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3736)
	... 12 more
@pstorch
Copy link
Member

pstorch commented Nov 13, 2024

Thanks for reporting. Looks like the "online map consent" dialog is broken.

Until it's fixed, you can workaround this by starting OSMDashboard standalone, go to settings and activate the online map consent setting or choose an offline map.

@pstorch pstorch added the bug Something isn't working label Nov 13, 2024
@pstorch pstorch self-assigned this Nov 13, 2024
@pstorch pstorch changed the title Not working Crash in "online map consent" dialog Nov 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants