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

App crashes when inactive on background, after screen locking #4151

Closed
KelvinNovais opened this issue Apr 11, 2024 · 1 comment
Closed

App crashes when inactive on background, after screen locking #4151

KelvinNovais opened this issue Apr 11, 2024 · 1 comment

Comments

@KelvinNovais
Copy link

Issue explanation (write below this line)

Context: I use this app to access some PDFs for reading. Naturally when I open the file, Amaze goes to the background. If after sometime the screen get locked or I do that myself, the following crash is reported when unlocking the screen.

I tried to figure out more precisely the causes, but I only can highlight these 3 conditions:

  1. The app is running on the background;
  2. It's inactive for some time;
  3. The screen got locked.

Exception

  • App Name: Amaze File Manager
  • Package: com.amaze.filemanager
  • Version: 3.10
  • User Action: UI Error
  • Request: Application crash
  • OS: Linux motorola/nora_row/nora_8917:8.0.0/OPP27.91-176-11/7:user/release-keys 8.0.0 - 26
  • Device: nora_8917
  • Model: moto e5
  • Product: nora_row
Crash log

java.lang.IllegalStateException: Fragment MainFragment{396a2e1} (60c17d3b-4e21-45ee-b417-d731259163b1) is not currently in the FragmentManager
	at androidx.fragment.app.FragmentManager.putFragment(FragmentManager.java:1013)
	at com.amaze.filemanager.ui.fragments.TabFragment.onSaveInstanceState(TabFragment.java:249)
	at androidx.fragment.app.Fragment.performSaveInstanceState(Fragment.java:3288)
	at androidx.fragment.app.FragmentStateManager.saveBasicState(FragmentStateManager.java:681)
	at androidx.fragment.app.FragmentStateManager.saveState(FragmentStateManager.java:647)
	at androidx.fragment.app.FragmentStore.saveActiveFragments(FragmentStore.java:214)
	at androidx.fragment.app.FragmentManager.saveAllStateInternal(FragmentManager.java:2382)
	at androidx.fragment.app.FragmentManager.lambda$attachController$4(FragmentManager.java:2660)
	at androidx.fragment.app.FragmentManager.$r8$lambda$sido8p6zuWx0PQxIkv4qM-BRiGM(Unknown Source:0)
	at androidx.fragment.app.FragmentManager$$ExternalSyntheticLambda4.saveState(Unknown Source:2)
	at androidx.savedstate.SavedStateRegistry.performSave(SavedStateRegistry.kt:247)
	at androidx.savedstate.SavedStateRegistryController.performSave(SavedStateRegistryController.kt:81)
	at androidx.activity.ComponentActivity.onSaveInstanceState(ComponentActivity.java:383)
	at com.amaze.filemanager.ui.activities.MainActivity.onSaveInstanceState(MainActivity.java:1325)
	at android.app.Activity.performSaveInstanceState(Activity.java:1500)
	at android.app.Instrumentation.callActivityOnSaveInstanceState(Instrumentation.java:1407)
	at android.app.ActivityThread.callCallActivityOnSaveInstanceState(ActivityThread.java:4897)
	at android.app.ActivityThread.handleSleeping(ActivityThread.java:4348)
	at android.app.ActivityThread.-wrap23(Unknown Source:0)
	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1847)
	at android.os.Handler.dispatchMessage(Handler.java:105)
	at android.os.Looper.loop(Looper.java:164)
	at android.app.ActivityThread.main(ActivityThread.java:6694)
	at java.lang.reflect.Method.invoke(Native Method)
	at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:240)
	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:769)


@VishnuSanal
Copy link
Member

thanks for reporting, but this issue is already been tracked via #1555. please follow that issue for updates, thanks. closing this for now

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants