Butterfly icon indicating copy to clipboard operation
Butterfly copied to clipboard

[Bug]: Crash when trying to import image

Open ZingyAwesome opened this issue 2 months ago • 7 comments

What happened?

When clicking add image, add document or any kind of adding a file to the note, the file picker opens but then the app crashes in the background (leaving the file picker open). The file picker doesn't work once the app has crashed. The note I am trying to add the image to only has about 3 lines of handwriting. I tried adding an image to a completely blank note which also caused a crash.

Version

2.4.0 (also present in 2.4.1-rc0)

Platform

Android

Relevant log output

type: crash
package: dev.linwood.butterfly:2151, targetSdk 36
process: dev.linwood.butterfly

java.lang.RuntimeException: android.os.TransactionTooLargeException: data parcel size 692228 bytes
Bundle stats:
  framework [size=691188]
PersistableBundle stats:
  [null]
	at android.app.servertransaction.PendingTransactionActions$StopInfo.run(PendingTransactionActions.java:146)
	at android.os.Handler.handleCallback(Handler.java:995)
	at android.os.Handler.dispatchMessage(Handler.java:103)
	at android.os.Looper.loopOnce(Looper.java:248)
	at android.os.Looper.loop(Looper.java:338)
	at android.app.ActivityThread.main(ActivityThread.java:9106)
	at java.lang.reflect.Method.invoke(Native Method)
	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:593)
	at com.android.internal.os.ExecInit.main(ExecInit.java:50)
	at com.android.internal.os.RuntimeInit.nativeFinishInit(Native Method)
	at com.android.internal.os.RuntimeInit.main(RuntimeInit.java:371)
Caused by: android.os.TransactionTooLargeException: data parcel size 692228 bytes
	at android.os.BinderProxy.transactNative(Native Method)
	at android.os.BinderProxy.transact(BinderProxy.java:604)
	at android.app.IActivityClientController$Stub$Proxy.activityStopped(IActivityClientController.java:1504)
	at android.app.ActivityClient.activityStopped(ActivityClient.java:100)
	at android.app.servertransaction.PendingTransactionActions$StopInfo.run(PendingTransactionActions.java:135)
	... 10 more

Code of Conduct

  • [x] I agree to follow this project's Code of Conduct

ZingyAwesome avatar Oct 23 '25 14:10 ZingyAwesome

Tested on my device but couldn't reproduce it. Can you give a few more information? Which android version exactly, which manifacturer, which exact image (i could test)

CodeDoctorDE avatar Oct 23 '25 14:10 CodeDoctorDE

Android 16 (GrapheneOS) on a Pixel tablet. The crash occurs before selecting an image, the app crashes just as the image picker opens. Maybe try adding an image to a note created by this template. Note.bfly.tar.gz

ZingyAwesome avatar Oct 23 '25 19:10 ZingyAwesome

I will try it out tomorrow. I hope it's not a problem on the grapheneos side.

CodeDoctorDE avatar Oct 23 '25 19:10 CodeDoctorDE

Were you able to reproduce it?

ZingyAwesome avatar Oct 28 '25 12:10 ZingyAwesome

No, sorry I thought i answered you back. I tried importing it with the create button + opening it with the app and could not reproduce it. I also tried using the template on the latest nightly 2.4.1-rc.1 I'm having a samsung galaxy s24+ with android 16 and use a normal image with 1.22MB from the download page.

CodeDoctorDE avatar Oct 28 '25 12:10 CodeDoctorDE

So if I make a new note and don't immediately save it I can add images just fine. Maybe try creating a note using that template, do a bit of handwriting and then save the note, exit the app then re-enter it then add the image.

ZingyAwesome avatar Oct 29 '25 23:10 ZingyAwesome

The nightly 2.4.2-rc.1 should have many fixes to images, can you test it out

CodeDoctorDE avatar Dec 03 '25 09:12 CodeDoctorDE