Comments (7)
Got it:
java.lang.IllegalStateException: Failure saving state: active PermissionFragment{6af4169} has cleared index: -1
at androidx.fragment.app.FragmentManagerImpl.saveAllState(FragmentManager.java:2960)
at androidx.fragment.app.Fragment.performSaveInstanceState(Fragment.java:2628)
at androidx.fragment.app.FragmentManagerImpl.saveFragmentBasicState(FragmentManager.java:2910)
at androidx.fragment.app.FragmentManagerImpl.saveAllState(FragmentManager.java:2971)
at androidx.fragment.app.FragmentController.saveAllState(FragmentController.java:134)
at androidx.fragment.app.FragmentActivity.onSaveInstanceState(FragmentActivity.java:591)
at androidx.appcompat.app.AppCompatActivity.onSaveInstanceState(AppCompatActivity.java:510)
Unfortunately right now, I have no idea what could cause this or how to fix it
from assent.
Hmm, I'm unable to reproduce this on stock Android.
from assent.
will try to do it on stock 7.1.2
from assent.
ok same problem on emulator api 27
my project is at https://github.com/ash2osh/fetchTest
press the fab
grant permission
press home
CRASH
from assent.
The only error I see is totally unrelated to Assent:
Permission Denial: startForeground from pid=3408, uid=10102 requires android.permission.FOREGROUND_SERVICE
Still looking - but your sample does not support all Android versions.
from assent.
please try it on api 27 not 28 i must have missed something
from assent.
Greetings.
I'm also having this exact problem. Basically I'm launching the camera app with an intent and right as I launch it I get the same exception. I'm guessing it might have something to do with the new Jetpack Navigation component. First time using it in and I didn't have this problem before. I know it's not much but hope it helped a little and you can resolve it. Your library is kickass .
java.lang.IllegalStateException: Failure saving state: active PermissionFragment{c6fc9b8} has cleared index: -1
at androidx.fragment.app.FragmentManagerImpl.saveAllState(FragmentManager.java:2960)
at androidx.fragment.app.Fragment.performSaveInstanceState(Fragment.java:2628)
at androidx.fragment.app.FragmentManagerImpl.saveFragmentBasicState(FragmentManager.java:2910)
at androidx.fragment.app.FragmentManagerImpl.saveAllState(FragmentManager.java:2971)
at androidx.fragment.app.FragmentController.saveAllState(FragmentController.java:134)
at androidx.fragment.app.FragmentActivity.onSaveInstanceState(FragmentActivity.java:591)
at androidx.appcompat.app.AppCompatActivity.onSaveInstanceState(AppCompatActivity.java:510)
at android.app.Activity.performSaveInstanceState(Activity.java:1549)
at android.app.Instrumentation.callActivityOnSaveInstanceState(Instrumentation.java:1443)
at android.app.ActivityThread.callActivityOnSaveInstanceState(ActivityThread.java:4809)
at android.app.ActivityThread.callActivityOnStop(ActivityThread.java:4157)
at android.app.ActivityThread.performStopActivityInner(ActivityThread.java:4121)
at android.app.ActivityThread.handleStopActivity(ActivityThread.java:4196)
at android.app.servertransaction.StopActivityItem.execute(StopActivityItem.java:41)
at android.app.servertransaction.TransactionExecutor.executeLifecycleState(TransactionExecutor.java:145)
at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:70)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1808)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loop(Looper.java:193)
at android.app.ActivityThread.main(ActivityThread.java:6669)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858)
from assent.
Related Issues (20)
- Activity instance will become null when switching between Activities HOT 2
- Detect "denied permanently" permissions HOT 9
- [Question] Is it possible to use your library in a pure Java Android project? HOT 1
- Crash when requesting permissions in fragment onViewCreated HOT 4
- Support Android 10 permissions
- Crash when requesting permission and rotating device HOT 1
- Issue with runWithPermissions / permanently denied in 3.0 RC3 HOT 2
- Permission Enum doesn't contain all permissions. HOT 1
- Even though it's allowed for Android 7 it keeps asking repeatedly.
- Migration from JCenter HOT 1
- Upgrading this library broke the functionality: androidx.fragment:fragment-ktx:1.3.0
- Result callback not getting triggered HOT 1
- Can't seem to ask for user location permission HOT 1
- Error build Material Dialogs and Assent
- `askForPermissions` isn't triggering the `AssentResult` callback on Android 11? HOT 1
- Fatal Exception: java.lang.IllegalStateException FragmentManager is already executing transactions
- Rationale message HOT 1
- Support for AndroidX HOT 1
- Crash when running from child fragment HOT 13
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from assent.