Skip to content
This repository has been archived by the owner on Feb 4, 2024. It is now read-only.

FragmentTransition Bug #357

Open
axel8888 opened this issue Apr 8, 2022 · 0 comments
Open

FragmentTransition Bug #357

axel8888 opened this issue Apr 8, 2022 · 0 comments

Comments

@axel8888
Copy link

axel8888 commented Apr 8, 2022

Fatal Exception: java.lang.IllegalStateException
FragmentManager is already executing transactions
androidx.fragment.app.FragmentManager.ensureExecReady (FragmentManager.java:1931)

androidx.fragment.app.BackStackRecord.commitNow (BackStackRecord.java:305)
com.tbruyelle.rxpermissions3.RxPermissions.getRxPermissionsFragment (RxPermissions.java:78)
com.tbruyelle.rxpermissions3.RxPermissions.access$000 (RxPermissions.java:37)
com.tbruyelle.rxpermissions3.RxPermissions$1.get (RxPermissions.java:62)
com.tbruyelle.rxpermissions3.RxPermissions$1.get (RxPermissions.java:55)
com.tbruyelle.rxpermissions3.RxPermissions.pending (RxPermissions.java:212)
com.tbruyelle.rxpermissions3.RxPermissions.request (RxPermissions.java:201)
com.tbruyelle.rxpermissions3.RxPermissions.access$100 (RxPermissions.java:37)
com.tbruyelle.rxpermissions3.RxPermissions$4.apply (RxPermissions.java:156)
io.reactivex.rxjava3.core.Observable.compose (Observable.java:6759)
com.tbruyelle.rxpermissions3.RxPermissions.requestEachCombined (RxPermissions.java:194)

Activity contains a viewpager with 3 fragment. During initialiazion, we call RxPermissions.request, FragmentManager may conflict transactions.

Old version(e.g. 0.9.5) call commitAllowingStateLoss in getRxPermissionFragment method will not produce this crash.

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

No branches or pull requests

1 participant