Possible memory leak in keyboard view
See original GitHub issueVersion: 0.3.5 Source: Playstore Android 10 Samsung Galaxy s9
~~~ 1611851663324.stacktrace ~~~
java.lang.OutOfMemoryError: Failed to allocate a 24 byte allocation with 2226872 free bytes and 2174KB until OOM, target footprint 268435456, growth limit 268435456; failed due to fragmentation (largest possible contiguous allocation 46399488 bytes)
at java.lang.StringFactory.newStringFromChars(StringFactory.java:260)
at java.lang.StringBuilder.toString(StringBuilder.java:413)
at dev.patrickgold.florisboard.ime.media.emoji.EmojiKeyData.getCodePointsAsString(EmojiKeyData.kt:40)
at dev.patrickgold.florisboard.ime.media.emoji.EmojiLayoutDataKt.parseRawEmojiSpecsFile(EmojiLayoutData.kt:139)
at dev.patrickgold.florisboard.ime.media.emoji.EmojiKeyboardView$1.invokeSuspend(EmojiKeyboardView.kt:68)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:56)
at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:571)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:738)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:678)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:665)
Issue Analytics
- State:
- Created 3 years ago
- Comments:36 (18 by maintainers)
Top Results From Across the Web
Memory Leaks on keyboard show | Apple Developer Forums
I am seeing memory leaks in the following UIKit API in the application when the keyboard shows on the screen. It is 100%...
Read more >Keyboard Extension Memory Leak? - Stack Overflow
I am building a custom keyboard extension (iOS 9+) and have found a more than annoying memory leak. When leaving an application (in...
Read more >I believe I've figured out Google keyboards memory leak!
More specifically, a memory leak occurs when an application destroys all pointers to memory before deallocating it. That memory is still held by ......
Read more >System Analyzer "an active process has a possible memory ...
I run scans daily on my laptop when I start up in the morning. I typically then run System Optimizer then an System...
Read more >Simple Check Can Reveal Computer 'Memory Leak'
Click on the Performance tab and check System Resources for the percentage of free or available RAM. (Note: if your keyboard doesn't have ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
The question is not if you find a new way to break the logic, but more when 😃
Because the shared preference batch together changes to avoid writing to the disk too often, this issue occurs if the keyboard crashes seconds after setting a preference (deleting the subtype is settings a preference value).