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

Crash when trying to add note after initial sync failed due to OOM #29

Open
tianlanga opened this issue Dec 25, 2024 · 2 comments
Open
Labels
bug Something isn't working

Comments

@tianlanga
Copy link

tianlanga commented Dec 25, 2024

Describe the bug
[English translation] The first time I installed it, I opened the synchronization and it flashed back before it finished, reinstalled it and still had the same problem. The server trilium 0.63.7 has the following information.

java.lang.NullPointerException
	at eu.fliegendewurst.triliumdroid.activity.main.MainActivity.getNoteLoaded(MainActivity.kt:979)
	at eu.fliegendewurst.triliumdroid.activity.main.MainActivity$onCreate$4$createFragment$1.invoke$lambda$0(MainActivity.kt:176)
	at eu.fliegendewurst.triliumdroid.activity.main.MainActivity$onCreate$4$createFragment$1.$r8$lambda$1qU2wkq6uXTBVBSYqSm9AjPZAR8(Unknown Source:0)
	at eu.fliegendewurst.triliumdroid.activity.main.MainActivity$onCreate$4$createFragment$1$$ExternalSyntheticLambda0.onClick(D8$$SyntheticClass:0)
	at android.view.View.performClick(View.java:7548)
	at android.view.View.performClickInternal(View.java:7525)
	at android.view.View.-$$Nest$mperformClickInternal(Unknown Source:0)
	at android.view.View$PerformClick.run(View.java:29568)
	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:8244)
	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:954)

Screenshots

Smartphone:

  • Device: 小米13p
  • Android version: 13
@FliegendeWurst FliegendeWurst changed the title 首次安装打开同步尚未完成就闪退。 Crash after initial sync Dec 25, 2024
@FliegendeWurst FliegendeWurst changed the title Crash after initial sync Crash when trying to add note after initial sync failed Dec 25, 2024
@FliegendeWurst FliegendeWurst changed the title Crash when trying to add note after initial sync failed Crash when trying to add note after initial sync failed due to OOM Dec 25, 2024
@FliegendeWurst
Copy link
Owner

Thanks for the report. It seems your database is too large (at least 150 megabytes) to import at the moment.

I will try to optimize the sync process to handle this, but it will be tricky. In the meantime you can try trimming down your database size if you can.

@tianlanga
Copy link
Author

Thank you, when i delete the large sigle note, the app work well。

@FliegendeWurst FliegendeWurst added the bug Something isn't working label Dec 29, 2024
FliegendeWurst added a commit that referenced this issue Dec 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants