question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Crash on setup when no other IME is installed

See original GitHub issue

Short description

App crashes on setup when no other IME is installed. This can be tested by installing it into Shelter

Steps to reproduce

  1. Have no other IME installed
  2. Install Shelter
  3. Tap on install APK into Shelter
  4. Select FlorisBoard APK and install
  5. Launch FlorisBoard
  6. See error

Screen recording

https://user-images.githubusercontent.com/24937357/109780594-72594380-7c07-11eb-8b57-a727a7c544c3.mp4

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:closed
  • Created 3 years ago
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
patrickgoldcommented, Mar 10, 2021

Above commit fixes the crash if no other IME is present. Will be included in the next release v0.3.9!

0reactions
IveMalfunctionedcommented, Jul 31, 2022

Sick. Thanks.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found