Droidcon-Boston / conference-app-android

Official conference app for Droidcon Boston
http://www.droidcon-boston.com/
Apache License 2.0
98 stars 25 forks source link

App crash when sharing to Twitter #214

Closed fetching closed 5 years ago

fetching commented 5 years ago

I'm seeing a crash of the Android app when sharing talks to Twitter on my actual phone where the Twitter app is installed. I closed the other ticket from yesterday as the test case where I was seeing the crash (on an emulator with no Twitter app installed) stopped crashing.

The error I'm seeing now is:

Fatal Exception: java.lang.IllegalStateException Failure saving state: active AgendaDetailFragment{6df49ec} has cleared index: -1

I have a couple of crash reports from Crashlytics showing it relates to saving instance state:

android.app.ActivityThread.callActivityOnSaveInstanceState (ActivityThread.java:4848)

fetching commented 5 years ago

Unfortunately I'm still seeing the crash on the latest internal test channel. My app says it is Version 3.0.1 and I see Nate's changed text for sharing to Twitter ("Share this session") so I'm sure its the most recent build containing our potential fix for this crash. The crash trace registered in Firebase console and is again:

Fatal Exception: java.lang.IllegalStateException
Failure saving state: active AgendaDetailFragment{117eb73} has cleared index: -1

I see a way to reliably reproduce the issue:

  1. Go to Agenda
  2. Open Check-in Details
  3. Tap the hamburger menu and go back to Agenda
  4. Work your way down in this fashion, open the next talk's AgendaDetails, tap the hamburger menu and go back to Agenda.
  5. After doing this 6+ times click on "Share this session" to Twitter for a talk and you'll see the app crash