Add temporary crash handler for Flictionary OOM errors until 0.3.15
See original GitHub issueShort description
Describe what you were doing that could’ve led to the crash.
Steps to reproduce
I can’t reproduce the error, just I opened firefox, the florisboard is still working, it dosen’t return to the default keyboard
Environment information
- FlorisBoard Version: 0.3.13-beta10 (53)
- Device: Samsung SM-A505F A50
- Android: 11 (cn=R sdk=30)
Features enabled
smartbar = true
suggestions = true
suggestions_clipboard = true
suggestions_next_word = true
glide = false
clipboard_internal = true
clipboard_history = false
Attached stacktrace files
1629670378948.stacktrace
java.lang.OutOfMemoryError: Failed to allocate a 32 byte allocation with 42800 free bytes and 41KB until OOM, target footprint 268435456, growth limit 268435456; failed due to fragmentation (largest possible contiguous allocation 95420416 bytes)
at dev.patrickgold.florisboard.ime.dictionary.Flictionary$Companion.load-B7oiUAE(Flictionary.kt:135)
at dev.patrickgold.florisboard.ime.dictionary.DictionaryManager.loadDictionary-pqiQ7go(DictionaryManager.kt:94)
at dev.patrickgold.florisboard.ime.text.TextInputManager$onWordHistoryChanged$1.invokeSuspend(TextInputManager.kt:1001)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106)
at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:571)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:750)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:678)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:665)
:678)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:665)
Issue Analytics
- State:
- Created 2 years ago
- Comments:10 (4 by maintainers)
Top Results From Across the Web
Consistent OOM Crash while searching short string #133348
It seems like there are quite a few closed issues about OOM errors but they have all been closed due to inactivity or...
Read more >Recommendations for recovery upon Out Of Memory error
It is possible to configure the JVM (Java Virtual Machine) such that upon encountering an OOM (Out-Of-Memory) error it will force an exception...
Read more >Out-of-Memory (OOM) or Excessive Memory Usage
If a job exhausts both the physical memory and the swap space on a node, it causes the node to crash. With a...
Read more >Mysql crashing, oom-killer, out of memory, tuning issues?
Uncommented table_cache and changed it to 100 (which I will continuously increase until it's over 400); Changed the value of query_cache_size ...
Read more >Understanding out of memory errors in crashed apps
My java app is experiencing frequent non determinist crashes. The cf events commands reports that it crashed because of out of memory (with...
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
I’ve renamed this issue as I will address this before stable 0.3.13.
The crash logs you sent me all have the same culprit: you have word suggestions enabled. Sadly for your device it simply does not work for now, so to at least use all other features of FlorisBoard it would be best if you disable word suggestions until 0.3.15.