nicolasbrailo / PianOli

Android baby game
GNU General Public License v3.0
59 stars 18 forks source link

Crash when viewing github page from settings #66

Open pserwylo opened 1 year ago

pserwylo commented 1 year ago

Via Google Play Console. Has occurred 400 times in the last month (2nd most of any crashes). The title of this issue is my interpretation of the stack trace - I have not witnessed it myself:

Perhaps related to Android M requiring you to specify which package you want to handle the intent (even if just hoping for browsing a URL): https://stackoverflow.com/a/67485825.

Exception android.content.ActivityNotFoundException: No Activity found to handle Intent { act=android.intent.action.VIEW dat=https://github.com/... }
  at android.app.Instrumentation.checkStartActivityResult (Instrumentation.java:2067)
  at android.app.Instrumentation.execStartActivity (Instrumentation.java:1727)
  at android.app.Activity.startActivityForResult (Activity.java:5320)
  at androidx.activity.ComponentActivity.startActivityForResult (ComponentActivity.java:728)
  at android.app.Activity.startActivityForResult (Activity.java:5278)
  at androidx.activity.ComponentActivity.startActivityForResult (ComponentActivity.java:709)
  at android.app.Activity.startActivity (Activity.java:5664)
  at android.app.Activity.startActivity (Activity.java:5617)
  at com.nicobrailo.pianoli.AboutPreference.launchWebsite (AboutPreference.java:54)
  at com.nicobrailo.pianoli.AboutPreference.access$000 (AboutPreference.java:12)
  at com.nicobrailo.pianoli.AboutPreference$1.onClick (AboutPreference.java:44)
  at android.view.View.performClick (View.java:7462)
  at android.view.View.performClickInternal (View.java:7435)
  at android.view.View.access$3600 (View.java:813)
  at android.view.View$PerformClick.run (View.java:28502)
  at android.os.Handler.handleCallback (Handler.java:938)
  at android.os.Handler.dispatchMessage (Handler.java:99)
  at android.os.Looper.loop (Looper.java:223)
  at android.app.ActivityThread.main (ActivityThread.java:7720)
  at java.lang.reflect.Method.invoke
  at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:612)
  at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:997)
pserwylo commented 1 year ago

It seems like the worst offender (#65) is fixed now judging by reports in Google Play. So that means this is now the most commonly logged bug. It is annoying, because it stops people coming here! I'll take a look at it and see if I can reproduce and then fix it.