CleverKeys icon indicating copy to clipboard operation
CleverKeys copied to clipboard

[Bug]: Opening clipboard causes the whole device to crash\stop for 2 to 3 sec.

Open Spy-God opened this issue 10 months ago • 2 comments

CleverKeys Version

v 1.2.5

Device Information

Android Phone

Android Version

Android 15

Bug Category

Performance (lag, memory, battery)

Bug Description

I was trying to open the clipboard from the shortcut key/tried with in app open keyboard as well

This causes the whole android system to go unresponsive for a moment(3 sec to 5 sec) and then clipboard never opens.

Now some info on what i did when this happened.

i ran this command in termux first

cat "/data/data/com.termux/files/home/storage/shared/Download/Two Factor Authentication - Oldtoons (16_01_2026 22:08:59).html" | termux-clipboard-set

which failed with this error.

Error in ResultReturner: java.lang.RuntimeException: android.os.TransactionTooLargeException: data parcel size 2211040 bytes at android.content.ClipboardManager.setPrimaryClip(ClipboardManager.java:217) at com.termux.api.apis.ClipboardAPI$1.writeResult(ClipboardAPI.java:38) at com.termux.api.util.ResultReturner.lambda$returnData$0(ResultReturner.java:268) at com.termux.api.util.ResultReturner$$ExternalSyntheticLambda0.run(D8$$SyntheticClass:0) at java.lang.Thread.run(Thread.java:1119) Suppressed: java.lang.Exception: Called by: at com.termux.api.util.ResultReturner.returnData(ResultReturner.java:239) at com.termux.api.apis.ClipboardAPI.onReceive(ClipboardAPI.java:30) at com.termux.api.TermuxApiReceiver.doWork(TermuxApiReceiver.java:119) at com.termux.api.TermuxApiReceiver.onReceive(TermuxApiReceiver.java:65) at android.app.ActivityThread.handleReceiver(ActivityThread.java:5117) at android.app.ActivityThread.-$$Nest$mhandleReceiver(Unknown Source:0) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2666) at android.os.Handler.dispatchMessage(Handler.java:107) at android.os.Looper.loopOnce(Looper.java:282) at android.os.Looper.loop(Looper.java:387) at android.app.ActivityThread.main(ActivityThread.java:9500) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:600) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1005) Caused by: android.os.TransactionTooLargeException: data parcel size 2211040 bytes at android.os.BinderProxy.transactNative(Native Method) at android.os.BinderProxy.transact(BinderProxy.java:679) at android.content.IClipboard$Stub$Proxy.setPrimaryClip(IClipboard.java:397) at android.content.ClipboardManager.setPrimaryClip(ClipboardManager.java:210) ... 4 more

since the keyboard doesnt handle this limit carefully.

The error shows your HTML file (~2.2MB) exceeds Android's clipboard transaction limit (~1MB per binder transaction), causing TransactionTooLargeException.

then i ran this command to test how good clipboard works

split -b 500k "/data/data/com.termux/files/home/storage/shared/Download/Two Factor Authentication - Oldtoons (16_01_2026 22:08:59).html" clip_ for part in clip_*; do cat "$part" | termux-clipboard-set; done

This did work without any error. But after this saved to clipboard i can not open my clipboard at all.

Image

my clipboard setting.

I have run similar clipboard commands before as well when i was using heliboard but this issue never happened.i will test it again with the same command and file.

Steps to Reproduce

Just take any text file that exceeds 1 mb and send it to clipboard.i have provided logs and and how that occurred.

Neural Configuration (if applicable)


Logs


Troubleshooting Steps

  • [x] I have restarted the CleverKeys app
  • [x] I have tried disabling and re-enabling the keyboard
  • [ ] I have checked if this happens with neural predictions disabled
  • [ ] I have tried clearing the app cache/data (if safe to do so)

Additional Context

I am confident to say my device rarely crashes so its first for me.

My device info

OS_VERSION: 6.6.82-android15-8-o-g125f9846e4d8-4k
SDK_INT: 35
RELEASE: 15
ID: AP3A.240617.008
DISPLAY: RMX3870_15.0.0.1300(EX01)
INCREMENTAL: U.R4T2.214dea8-1
SECURITY_PATCH: 2025-11-01
IS_TREBLE_ENABLED: true
TYPE: user
TAGS: release-keys
MAX_PHANTOM_PROCESSES: 2147483647
MONITOR_PHANTOM_PROCS: false
DEVICE_CONFIG_SYNC_DISABLED: -

Hardware

MANUFACTURER: realme
BRAND: realme
MODEL: RMX3870
PRODUCT: RMX3870IN
BOARD: RM6877
HARDWARE: mt6877
DEVICE: RE5C86L1
SUPPORTED_ABIS: `arm64-v8a, armeabi-v7a

Spy-God avatar Jan 16 '26 17:01 Spy-God

Did the same thing in heliboard keyboard,it didnt cause a crash and clipboard was shown perfectly.(default kyboard settings too)

I can still copy stuff to clipboard and paste it using its key shortcut but it keeps crashing when i try to open clipboard to view the list of what i have saved.

and this crashing didnt stop untill i cleared the full app data from app info,so you might have to add clipboard cleaner for such issues later down the line

and i havent explored the app enough to know about neural prediction thingy. In process of exploring the app.

Spy-God avatar Jan 16 '26 17:01 Spy-God

The app still crashes (even after copying just a 798kb file) it can put it in clipboard just fine but clipboard just cant be opened after you copy it.

Spy-God avatar Jan 24 '26 18:01 Spy-God