ARK-Builders / ARK-Builders/Navigator

Transaction too large

Open
#366 0 comments 0 reactions 0 assignees View on GitHub
bug good first issue
Dominant language
Kotlin
Stars
16
Forks
14
PR merge metrics
No merged PRs in 30d

Description

Solving this might require smart handling of all data, because if a folder has 10,000 files then it's difficult to fit however we try. Probably, we need never store full collection, only what user can see at the moment.

```
java.lang.RuntimeException: android.os.TransactionTooLargeException: data parcel size 972480 bytes
at android.app.ActivityClient.activityStopped(ActivityClient.java:87)
at android.app.servertransaction.PendingTransactionActions$StopInfo.run(PendingTransactionActions.java:143)
at android.os.Handler.handleCallback(Handler.java:938)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loopOnce(Looper.java:201)
at android.os.Looper.loop(Looper.java:288)
at android.app.ActivityThread.main(ActivityThread.java:7870)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:548)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1003)
Caused by: android.os.TransactionTooLargeException: data parcel size 972480 bytes
at android.os.BinderProxy.transactNative(Native Method)
at android.os.BinderProxy.transact(BinderProxy.java:571)
at android.app.IActivityClientController$Stub$Proxy.activityStopped(IActivityClientController.java:1315)
at android.app.ActivityClient.activityStopped(ActivityClient.java:84)
... 9 more
```

See https://developer.android.com/guide/components/activities/parcelables-and-bundles for details.

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the Android TransactionTooLargeException with a folder containing around 10,000 files and read the linked Android parcelables-and-bundles guidance. Trace how the folder data is retained when the activity stops, then verify that only the currently visible collection is retained and the transaction no longer fails.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, kotlin
Domain
mobile-dev, performance
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.