nextcloud / nextcloud/android

TransactionTooLargeException crash when backgrounding notes app

Open
#16,997 0 comments 0 reactions 0 assignees View on GitHub
0. Needs triage bug
Dominant language
Kotlin
Stars
5.6k
Forks
2k
Avg merge
2d 18h
Merged PRs (30d)
92

Description

### ⚠️ Before posting ⚠️

- [x] This is a **bug**, not a question or an enhancement.
- [x] I've [searched for similar issues](https://github.com/nextcloud/android/issues) and didn't find a duplicate.
- [x] I've written a clear and descriptive title for this issue, not just "Bug" or "Crash".
- [x] I agree to follow Nextcloud's [Code of Conduct](https://nextcloud.com/contribute/code-of-conduct/).

### Steps to reproduce

This is happening intermittently when I'm editing a note and then either switch to another app or turn off the screen. The file is 51kb.

### Expected behaviour

Nothing, or maybe an auto save.

### Actual behaviour

I get this full-screen error (text below):

Image

```
App Version: 33.1.0
App Version Code: 330010090
App Flavor: play

Files App Version Code: 330010090 (PROD)

---

OS Version: 6.1.145-android14-11-gfa1d6308d1fe-ab14691759(15001963)
OS API Level: 36
Device: caiman
Manufacturer: Google
Model (and Product): Pixel 9 Pro (caiman)

---

java.lang.RuntimeException: android.os.TransactionTooLargeException: data parcel size 788720 bytes
Bundle stats:
androidx.lifecycle.BundlableSavedStateRegistry.key [size=787084]
android:support:activity-result [size=1180]
android:support:fragments [size=785524]
fragment_d8ab1531-cd3f-4e2b-89ab-921144dd60ea [size=785100]
viewState [size=671544]
0x7f090121 [size=670160]
savedInstanceState [size=112716]
note [size=56392]
original_note [size=56216]
PersistableBundle stats:
[null]
at android.app.servertransaction.PendingTransactionActions$StopInfo.run(PendingTransactionActions.java:156)
at android.os.Handler.handleCallback(Handler.java:1095)
at android.os.Handler.dispatchMessageImpl(Handler.java:135)
at android.os.Handler.dispatchMessage(Handler.java:125)
at android.os.Looper.loopOnce(Looper.java:269)
at android.os.Looper.loop(Looper.java:367)
at android.app.ActivityThread.main(ActivityThread.java:9333)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:566)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:929)
Caused by: android.os.TransactionTooLargeException: data parcel size 788720 bytes
at android.os.BinderProxy.transactNative(Native Method)
at android.os.BinderProxy.transact(BinderProxy.java:602)
at android.app.IActivityClientController$Stub$Proxy.activityStopped(IActivityClientController.java:1567)
at android.app.ActivityClient.activityStopped(ActivityClient.java:103)
at android.app.servertransaction.PendingTransactionActions$StopInfo.run(PendingTransactionActions.java:141)
... 9 more

```

### Android version

16

### Device brand and model

Google Pixel 9 Pro

### Stock or custom OS?

Stock

### Nextcloud android app version

33.1.0

### Nextcloud server version

Nextcloud Hub 26 Winter (33.0.3)

### Using a reverse proxy?

Yes, nginx proxy manager

### Android logs

The crash is intermittent. Now that I have logcat running on my laptop, I can't seem to get it to happen again. I'll update this if I can get Android logs.

### Server error logs

I'm using the Linux server.io docker image and it doesn't appear to have logs (?) There's a Logging page in the admin settings, but it's completely empty. And I poked around in the filesystem, but didn't find anything in /var/log. Are they somewhere else for docker?

### Additional information

I'm filling this out on my phone, but I'll come back and edit it with more logs from my laptop if I can find them.

I did a search for this error and found several other issues, but they all seemed to be related large file moves, whereas I'm editing a 51kb text file. So I thought it merotrd a new issue.

Also, the "About & What's new" menu option in web seems broken. I get a spinner for a second, then the page refreshes. Fortunately "Administration settings" works and shows the server version.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.