Skip to content

Crash TransactionTooLargeException on big file #77

@LoHub

Description

@LoHub

Checklist

  • I can reproduce the bug with the latest version given here.
  • I made sure that there are no existing issues - open or closed - to which I could contribute my information.
  • I made sure that there are no existing discussions - open or closed - to which I could contribute my information.
  • I have read the FAQs inside the app (Menu -> About -> FAQs) and my problem isn't listed.
  • I have taken the time to fill in all the required details. I understand that the bug report will be dismissed otherwise.
  • This issue contains only one bug.
  • I have read and understood the contribution guidelines.

Affected app version

1.1.0

Affected Android/Custom ROM version

Android 15

Affected device model

Pixel

How did you install the app?

GitHub releases

Steps to reproduce the bug

  1. Open a huge file (in my case 240 kB)
  2. Add a new note
  3. Switch between foreground and background many times (sorry didn't identify the exact good trigger, hope log will help)

Expected behavior

No crash with log bellow.

Actual behavior

App crash

Screenshots/Screen recordings

No response

Additional information

type: crash
osVersion: google/shiba/shiba:15/AP3A.241105.007/2024110700:user/release-keys
flags: dev options enabled
package: org.fossify.notes:3, targetSdk 34
process: org.fossify.notes
processUptime: 3276 + 223 ms
installer: com.android.packageinstaller

java.lang.RuntimeException: android.os.TransactionTooLargeException: data parcel size 726948 bytes
Bundle stats:
  android:viewHierarchyState [size=1612]
    android:views [size=1564]
  androidx.lifecycle.BundlableSavedStateRegistry.key [size=724608]
    android:support:activity-result [size=1176]
    android:support:fragments [size=723056]
      fragment_5875259c-a669-4a51-a504-c306102bfae0 [size=722712]
        viewState [size=241320]
          0x7f0903aa [size=240624]
        savedInstanceState [size=480760]
          text [size=480728]
PersistableBundle stats:
  [null]
	at android.app.servertransaction.PendingTransactionActions$StopInfo.run(PendingTransactionActions.java:146)
	at android.os.Handler.handleCallback(Handler.java:959)
	at android.os.Handler.dispatchMessage(Handler.java:100)
	at android.os.Looper.loopOnce(Looper.java:232)
	at android.os.Looper.loop(Looper.java:317)
	at android.app.ActivityThread.main(ActivityThread.java:8744)
	at java.lang.reflect.Method.invoke(Native Method)
	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:580)
	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:369)
Caused by: android.os.TransactionTooLargeException: data parcel size 726948 bytes
	at android.os.BinderProxy.transactNative(Native Method)
	at android.os.BinderProxy.transact(BinderProxy.java:586)
	at android.app.IActivityClientController$Stub$Proxy.activityStopped(IActivityClientController.java:1527)
	at android.app.ActivityClient.activityStopped(ActivityClient.java:101)
	at android.app.servertransaction.PendingTransactionActions$StopInfo.run(PendingTransactionActions.java:135)
	... 10 more

Metadata

Metadata

Assignees

No one assigned

    Labels

    duplicateThis issue or pull request already exists

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions