Crash on setup when no other IME is installed
See original GitHub issueShort description
App crashes on setup when no other IME is installed. This can be tested by installing it into Shelter
Steps to reproduce
- Have no other IME installed
- Install Shelter
- Tap on install APK into Shelter
- Select FlorisBoard APK and install
- Launch FlorisBoard
- See error
Screen recording
Environment information
- FlorisBoard Version: 0.3.8
- Install Source: GitHub
- Device: OnePlus 8T
- Android version, ROM: 11, Paranoid Android Ruby Beta 4
I don’t have any IMEs other than FlorisBoard installed since I removed Gboard via Magisk Debloater module after installing FlorisBoard (before creating the work profile). I think that’s the problem because installing and enabling any other IME in the work profile and then launching FlorisBoard fixes it.
~~~ 1614758721583.stacktrace ~~~
java.lang.NullPointerException: activeImeIds must not be null
at dev.patrickgold.florisboard.ime.core.FlorisBoard$Companion.checkIfImeIsEnabled(FlorisBoard.kt:126)
at dev.patrickgold.florisboard.setup.EnableImeFragment.onResume(EnableImeFragment.kt:50)
at androidx.fragment.app.Fragment.performResume(Fragment.java:2747)
at androidx.fragment.app.FragmentStateManager.resume(FragmentStateManager.java:373)
at androidx.fragment.app.FragmentManager.moveToState(FragmentManager.java:1199)
at androidx.fragment.app.FragmentManager.moveToState(FragmentManager.java:1356)
at androidx.fragment.app.FragmentManager.moveFragmentToExpectedState(FragmentManager.java:1434)
at androidx.fragment.app.BackStackRecord.executeOps(BackStackRecord.java:442)
at androidx.fragment.app.FragmentManager.executeOps(FragmentManager.java:2169)
at androidx.fragment.app.FragmentManager.executeOpsTogether(FragmentManager.java:1992)
at androidx.fragment.app.FragmentManager.removeRedundantOperationsAndExecute(FragmentManager.java:1947)
at androidx.fragment.app.FragmentManager.execSingleAction(FragmentManager.java:1818)
at androidx.fragment.app.BackStackRecord.commitNow(BackStackRecord.java:297)
at androidx.viewpager2.adapter.FragmentStateAdapter$FragmentMaxLifecycleEnforcer.updateFragmentMaxLifecycle(FragmentStateAdapter.java:726)
at androidx.viewpager2.adapter.FragmentStateAdapter$FragmentMaxLifecycleEnforcer$1.onPageScrollStateChanged(FragmentStateAdapter.java:632)
at androidx.viewpager2.widget.CompositeOnPageChangeCallback.onPageScrollStateChanged(CompositeOnPageChangeCallback.java:87)
at androidx.viewpager2.widget.CompositeOnPageChangeCallback.onPageScrollStateChanged(CompositeOnPageChangeCallback.java:87)
at androidx.viewpager2.widget.ScrollEventAdapter.dispatchStateChanged(ScrollEventAdapter.java:426)
at androidx.viewpager2.widget.ScrollEventAdapter.onScrolled(ScrollEventAdapter.java:214)
at androidx.recyclerview.widget.RecyclerView.dispatchOnScrolled(RecyclerView.java:5173)
at androidx.recyclerview.widget.RecyclerView$ViewFlinger.run(RecyclerView.java:5338)
at android.view.Choreographer$CallbackRecord.run(Choreographer.java:1056)
at android.view.Choreographer.doCallbacks(Choreographer.java:878)
at android.view.Choreographer.doFrame(Choreographer.java:807)
at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:1041)
at android.os.Handler.handleCallback(Handler.java:938)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:223)
at android.app.ActivityThread.main(ActivityThread.java:7701)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:592)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:952)
Issue Analytics
- State:
- Created 3 years ago
- Comments:7 (2 by maintainers)
Top Results From Across the Web
Fresh Install - PC Will not stop crashing - Microsoft Community
I decided it was time to do a fresh install of Windows 10 x64. I've done it many times for many PC's. It's...
Read more >Random crashes while launching or working in Fusion 360
Install the Studio driver for Nvidia GeForce graphics cards. ... If Fusion launching takes more time and crashes: Turn off the Antivirus.
Read more >[Solved] Microsoft Flight Simulator 2020 Keeps Crashing on PC
Fix 3: Install all Windows updates · On your keyboard, press the Windows logo key and I at the same time to open...
Read more >Quickbooks crashes on start-up
Download and install the latest QuickBooks Tool Hub. ... getting your company files up and running, I'm available here to help any time!...
Read more >How To Fix AltStore Issues! (Not Installing, Crashing, Etc)
... GET AWESOME WALLPAPERS HERE: https://www.cheapphones.co/wallpapers/ MY SECOND CHANNEL! https://goo.gl/bG2KBz … Show more. Show more ...
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
Above commit fixes the crash if no other IME is present. Will be included in the next release v0.3.9!
Sick. Thanks.