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 crash on notification click: java.lang.IllegalStateException: FragmentManager has been destroyed #11476

Closed
4 tasks done
tzerber opened this issue Mar 25, 2023 · 3 comments
Closed
4 tasks done
Labels
bug performance: ISE/IAE 😕 Illegal State Exception / Illegal Argument Exception

Comments

@tzerber
Copy link

tzerber commented Mar 25, 2023

⚠️ Before posting ⚠️

  • This is a bug, not a question or an enhancement.
  • I've searched for similar issues and didn't find a duplicate.
  • I've written a clear and descriptive title for this issue, not just "Bug" or "Crash".
  • I agree to follow Nextcloud's Code of Conduct.

Steps to reproduce

I'm on phone, so i really hope this copied properly. Got notification that Nextcloud found new foler with images called Picures, clicked on the menu and got this. Never seen such issue before, and i'm using Nextcloud for quite a while. Will provide additional info if needed ;)

Cause of error

Exception in thread "main" java.lang.IllegalStateException: FragmentManager has been destroyed
    at androidx.fragment.app.FragmentManager.enqueueAction(FragmentManager.java:1644)
    at androidx.fragment.app.BackStackRecord.commitInternal(BackStackRecord.java:341)
    at androidx.fragment.app.BackStackRecord.commit(BackStackRecord.java:306)
    at androidx.fragment.app.DialogFragment.show(DialogFragment.java:279)
    at com.owncloud.android.ui.activity.SyncedFoldersActivity.onSyncFolderSettingsClick(SyncedFoldersActivity.kt:589)
    at com.owncloud.android.ui.activity.SyncedFoldersActivity$load$1$1.invokeSuspend(SyncedFoldersActivity.kt:331)
    at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
    at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106)
    at android.os.Handler.handleCallback(Handler.java:938)
    at android.os.Handler.dispatchMessage(Handler.java:99)
    at android.os.Looper.loopOnce(Looper.java:210)
    at android.os.Looper.loop(Looper.java:299)
    at android.app.ActivityThread.main(ActivityThread.java:8306)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:576)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1073)

App information

  • ID: com.nextcloud.client
  • Version: 30240190
  • Build flavor: gplay

Device information

  • Brand: POCO
  • Device: camellian
  • Model: M2103K19PG
  • Id: SP1A.210812.016
  • Product: camellian_p_eea

Firmware

  • SDK: 31
  • Release: 12
  • Incremental: V13.0.7.0.SKSEUXM

Expected behaviour

It should open the sync folder settings, but got this.

Actual behaviour

App crashed and asked if i want to report the issue

Android version

12 SP1a

Device brand and model

Poco M3 pro 5g

Stock or custom OS?

Stock

Nextcloud android app version

3.24.1

Nextcloud server version

docker 25.0.4

Using a reverse proxy?

Yes

Android logs

No response

Server error logs

No response

Additional information

No response

@tzerber tzerber added the bug label Mar 25, 2023
@abhinavs1920
Copy link

I want to work on this issue

@tzerber
Copy link
Author

tzerber commented Mar 29, 2023

Sorry for the delayed reply, but here we go.
Later that day i checked the server logs (i am hosting the NC server), but found nothing like error there. The instance is a bit busy one, but nothing thrown in the error logs for that moment for any of the NC related apps/services/containers.
Phone is like two weeks old, so i doubt it's any issue there.
The other strange thing is that i have no "Pictures" folder on the phone, i did added the other folders to synchronize when i installed the client/phone.

@joshtrichards joshtrichards changed the title App crash on notification click App crash on notification click: java.lang.IllegalStateException: FragmentManager has been destroyed Oct 7, 2023
@joshtrichards joshtrichards added the performance: misc lag, ANR, etc and rarer exceptions/errors that don't have their own labels label Oct 11, 2023
@joshtrichards joshtrichards added performance: ISE/IAE 😕 Illegal State Exception / Illegal Argument Exception and removed performance: misc lag, ANR, etc and rarer exceptions/errors that don't have their own labels labels Dec 20, 2023
@joshtrichards
Copy link
Member

Fixed in #13075

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug performance: ISE/IAE 😕 Illegal State Exception / Illegal Argument Exception
Projects
None yet
Development

No branches or pull requests

3 participants