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

IllegalStateException: Can not perform this action after onSaveInstanceState #1507

Open
2 tasks
eX00r opened this issue Jul 21, 2023 · 15 comments
Open
2 tasks

Comments

@eX00r
Copy link

eX00r commented Jul 21, 2023

Hello,

first thank you for your great work with this app!
I was using it a long time without any issues. When I bought a new phone and installed NC Deck App on Android I was not able to sync the Decks from my instance. It is possible to sync with a new user account which is only subscribed to few decks but not with my own User Account which is subscribed to several huge decks. The device starts syncing, my profile pick is shown in NC Deck App and it seems to successfully sync until Deck 4 of 15 and then crashed with the following bug report. This happens with PlayStore as well as wit F-Droid Version.

Full Crash:

App Version: 1.23.3
App Version Code: 1023003
App Flavor: play

Files App Version Code: 30250090 (PROD)

---

OS Version: 5.10.101-android12-9-00005-ga829d48e78bd-ab9206161(V14.0.5.0.TLCEUXM)
OS API Level: 33
Device: cupid
Manufacturer: Xiaomi
Model (and Product): 2201123G (cupid_eea)

---

java.lang.IllegalStateException: Can not perform this action after onSaveInstanceState
	at androidx.fragment.app.FragmentManager.checkStateLoss(FragmentManager.java:1632)
	at androidx.fragment.app.FragmentManager.enqueueAction(FragmentManager.java:1672)
	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:507)
	at it.niedermann.nextcloud.deck.ui.ImportAccountActivity$1$1$1$1$1.lambda$onError$0$it-niedermann-nextcloud-deck-ui-ImportAccountActivity$1$1$1$1$1(ImportAccountActivity.java:162)
	at it.niedermann.nextcloud.deck.ui.ImportAccountActivity$1$1$1$1$1$$ExternalSyntheticLambda0.run(Unknown Source:6)
	at android.os.Handler.handleCallback(Handler.java:942)
	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:8116)
	at java.lang.reflect.Method.invoke(Native Method)
	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:559)
	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:950)

Versions

  • Nextcloud: 26.0.3
  • Nextcloud Deck: 1.92
  • Nextcloud Android: 3.25.0
  • Nextcloud Android Deck: 1.23.3

Smartphone (please complete the following information):

  • Device: Xiaomi 12
  • Android-Version: 13 TKQ1.220807.001
  • App-Store:
    • [x ] Google Play Store
    • Google Play Store (Beta channel)
    • [ x] F-Droid
    • Huawei AppGallery
@stefan-niedermann
Copy link
Owner

Dear @eX00r,

did you try clearing the storage as described in the FAQ and reimport your account? Ideally with a strong and reliable internet connection like Wi-Fi.

You might also want to try to unshare boards shared with you and then reshare them step by step to reduce the load for the critical first sync? Try tapping on whitespace to avoid the app getting suspended by Android. (I am aware that this is actually an app issue).

If everything goes wrong, I can offer you of course to refund the money you spent at the Play Store.

Kind regards

@eX00r
Copy link
Author

eX00r commented Sep 10, 2023

Hello @stefan-niedermann ,

thank you for your repsonse.

Cleaning the storage and reimporting did not help.

What did the trick finally was unsharing all boards with my account, then sync the Deck app after a clean installation and then re-sharing all accounts. This actually is not a solution which really could be considered a solution as it means transferrring ownership of my own decks to another account to actually becomming able to unshare them with my original account and the reverse the whole operation.

Just fyi if you did not know already, the app "deck ng" was able to sync all the decks from the beginning while NC Deck on Android was not. Maybe it's worth investigating what is done differntly there.

best regards

@FireTruck007

This comment was marked as resolved.

@desperateCoder

This comment was marked as resolved.

@FireTruck007

This comment was marked as resolved.

@desperateCoder

This comment was marked as resolved.

@FireTruck007

This comment was marked as resolved.

@desperateCoder

This comment was marked as resolved.

@FireTruck007

This comment was marked as resolved.

@stefan-niedermann

This comment was marked as resolved.

@desperateCoder

This comment was marked as resolved.

@FireTruck007

This comment was marked as resolved.

@rallisf1

This comment was marked as off-topic.

@stefan-niedermann

This comment was marked as off-topic.

@stefan-niedermann stefan-niedermann changed the title NC Deck on Android crashes during 1st Sync IllegalStateException: Can not perform this action after onSaveInstanceState Oct 9, 2023
@varac
Copy link

varac commented Mar 16, 2024

I am getting the same error, with Deck android 1.24.1 (storage and cache removed) and NC server 28.0.3 (unfortunatly, I don't own the server so I have no idea about the NC desk server app version).

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

6 participants