Closed daMark-de closed 3 years ago
Hello @daMark-de 👋
sorry for the inconveniences.
If you have some more time, i'd like to investigate this problem further by providing you a specialized build with more verbose debugging information.
If you need a quick fix on the other hand: Backup unsynchronized notes if possible, clear the storage of the app and reimport your account (Android settings -> Apps -> Notes -> Storage -> Clear storage).
Let me know how you want to proceed.
I can invest some more time and maybe I can learn something ...
Great, i'll send you the promised build in the evening via E-Mail (please send me your address at info@niedermann.it).
About learnung: Unfortunately i will need to send you a signed build, so you can simply override the app. If you compile it yourself you would need to deinstall and reinstall the app. This would reset the app and the weird state and therefore not be helpful as we could no longer analyze it.
As discussed via E-Mail, i have added a more verbose logging output in case of a NextcloudFilesAppAccountNotFoundException
in v3.4.9
. It should arrive within the next few days on F-Droid. Since the logging output will contain sensitive information, i'd like to ask you to send it via E-Mail with a reference to this issue :slightly_smiling_face:
@daMark-de which version did you have installed prior to 3.4.5
?
Today i tried to implement some very basic backup for unsynchronized notes for this error case (it will just try to share not synchronized notes to another app - for example to the Nextcloud app or E-Mail or whatever you want). This is meant as a quick workaround for everyone who doesn't have time to further deep dive into this issue. I also implemented a "Repair" button which you can try. (released v3.4.10
today).
Again for everyone who has the same issue (like @rugk):
Ah thanks for pointing me to this bug. And in any case thanks a lot for debugging it and implementing things. That's very appreciated and I can feel that having such a non-reproducible bug is annoying. I'm mote than willing to help debug it, however. I also made sure to keep the installation and not delete it. :see_no_evil:
So some things I noticed:
Just to be sure:
Notes don't connect to nextcloud server for about two days now.
@daMark-de Your server was up, however? There was no server outage at the time of migration, was there? Because that seem to have caused the error for me.
Another thing which has likely the same issue:
@daMark-de The new version is out of F-Droid.
The backup seems to work. But when i tap on “Repair” I get the exact same popup message again. Pressing repair again and again also does not seem to help. :thinking:
Okay, I now did a logcat and I should ahve really done that earlier, sorry.
STRs shown in logcat are:
I think the interesting thing is the exception from com.nextcloud.android.sso.AccountImporter
…
Cool, thanks for the stacktrace logcat. However it does not really explain the cause of the issue.
I am a bit confused about this part:
06-19 09:34:59.379 21460 21496 E com.nextcloud.android.sso.AccountImporter: java.lang.ClassNotFoundException: b.b.a.a.g.b
06-19 09:34:59.379 21460 21496 E com.nextcloud.android.sso.AccountImporter: at java.lang.Class.classForName(Native Method)
06-19 09:34:59.379 21460 21496 E com.nextcloud.android.sso.AccountImporter: at java.lang.Class.forName(Class.java:454)
06-19 09:34:59.379 21460 21496 E com.nextcloud.android.sso.AccountImporter: at java.io.ObjectInputStream.resolveClass(ObjectInputStream.java:682)
06-19 09:34:59.379 21460 21496 E com.nextcloud.android.sso.AccountImporter: at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1703)
06-19 09:34:59.379 21460 21496 E com.nextcloud.android.sso.AccountImporter: at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1594)
06-19 09:34:59.379 21460 21496 E com.nextcloud.android.sso.AccountImporter: at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1872)
06-19 09:34:59.379 21460 21496 E com.nextcloud.android.sso.AccountImporter: at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1412)
06-19 09:34:59.379 21460 21496 E com.nextcloud.android.sso.AccountImporter: at java.io.ObjectInputStream.readObject(ObjectInputStream.java:427)
06-19 09:34:59.379 21460 21496 E com.nextcloud.android.sso.AccountImporter: at com.nextcloud.android.sso.model.SingleSignOnAccount.fromString(SingleSignOnAccount.java:55)
06-19 09:34:59.379 21460 21496 E com.nextcloud.android.sso.AccountImporter: at com.nextcloud.android.sso.AccountImporter.getSingleSignOnAccount(AccountImporter.java:187)
06-19 09:34:59.379 21460 21496 E com.nextcloud.android.sso.AccountImporter: at it.niedermann.owncloud.notes.persistence.CapabilitiesWorker.doWork(CapabilitiesWorker.java:48)
06-19 09:34:59.379 21460 21496 E com.nextcloud.android.sso.AccountImporter: at androidx.work.Worker$1.run(Worker.java:85)
06-19 09:34:59.379 21460 21496 E com.nextcloud.android.sso.AccountImporter: at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
06-19 09:34:59.379 21460 21496 E com.nextcloud.android.sso.AccountImporter: at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
06-19 09:34:59.379 21460 21496 E com.nextcloud.android.sso.AccountImporter: at java.lang.Thread.run(Thread.java:919)
06-19 09:34:59.379 21460 21496 E com.nextcloud.android.sso.AccountImporter: Caused by: java.lang.ClassNotFoundException: b.b.a.a.g.b
It looks like this app was shrinked, while it shouldn't. We tried that in version 3.3.0
and disabled it in 3.3.1
again, since the shrinking made problems at exact that point.
Is it possible that you also updated to this defect version in the past? And since the Nextcloud app itself is also not shrinked as far as i know, i'd like to ask you for the source of your installed versions of Notes and Nextcloud - did you compile it yourself or only used F-Droid / Play Store builds?
It looks like this app was shrinked, while it shouldn't. We tried that in version 3.3.0 and disabled it in 3.3.1 again, since the shrinking made problems at exact that point.
Maybe you miss that this is the Stacktrace from com.nextcloud.android.sso.AccountImporter
, i.e. I guess from the main Nextcloud/Nextcloud files app, is not it? (I’m not an Android developer, but it looks like that…)
i'd like to ask you for the source of your installed versions of Notes and Nextcloud
Both F-Droid. The version numbers are included in the log, already. :slightly_smiling_face:
I guess from the main Nextcloud/Nextcloud files app, is not it?
No, i'd say it's from the SingleSignOn library (which is compiled with the Notes app and therefore part of it).
Both F-Droid. The version numbers are included in the log, already
I read the versions, i just wanted to make sure you didn't use a self built version and (maybe by accident) turned on shrinking. 😉
Since this issue has been reported only by you two guys and i did not manage to reproduce it in any way, i will close this issue as "not reproducible".
The backup of not synchronized changes worked and will remain in the app for this doomsday case.
Sorry, but i have no clue how you managed to end up in this weird state, and i can't give you a better advice than backup the remaining notes and set up the account again from scratch.
If it was a general issue, i assume way more users would have complaint or at least upvoted the problem.
Thanks for the verbose debug information and sorry that i couldn't provide better help 🙁. But please feel free to report it again if you are experience it again with up to date versions or if you found any cause in the code yourself (or able to provide a reliable way to reproduce this issue).
Oh yeah, thanks for debugging and letting us know. It's really an unfortunate edge-case we've likely hit. Thanks a lot in any case, especially also for the workarounds/tries to fix you've made! :slightly_smiling_face:
Notes don't connect to nextcloud server for about two days now. It first appeared after updating to Notes version 3.4.5 but this was not the only update of this run.
Describe the bug If I start Notes an error message is displayed (see below). If I push the close button the 'hourglass' starts running and that's it. It is not possible to switch to Nextcloud another account. Other Apps are not affected (Nextcloud, Deck, Talk).
To Reproduce I just start Notes and the error messages is displayed.
Expected behavior If this is no 'worst case error' I'd like still to see some basic functions like switching the account and accessing local notes.
Screenshots
Smartphone (please complete the following information):
Server
Stacktrace