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.

java.lang.RuntimeException: Unable to start activity ComponentInfo

See original GitHub issue

Short description

The new version from F-Droid always crashes.

Steps to reproduce

  1. Start program
  2. See crash

Environment information

  • FlorisBoard Version: 0.3.13 (56)
  • Device: Xiaomi Redmi Note 4
  • Android: 8.1.0 (cn=O_MR1 sdk=27)

Features enabled

smartbar = true
suggestions = false
suggestions_clipboard = false
suggestions_next_word = true
glide = false
clipboard_internal = false
clipboard_history = false

Attached stacktrace files

1631630872568.stacktrace
java.lang.RuntimeException: Unable to start activity ComponentInfo{dev.patrickgold.florisboard/dev.patrickgold.florisboard.settings.SettingsMainActivity}: java.lang.NullPointerException
	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2778)
	at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2856)
	at android.app.ActivityThread.-wrap11(Unknown Source:0)
	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1589)
	at android.os.Handler.dispatchMessage(Handler.java:106)
	at android.os.Looper.loop(Looper.java:164)
	at android.app.ActivityThread.main(ActivityThread.java:6494)
	at java.lang.reflect.Method.invoke(Native Method)
	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:440)
	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:807)
Caused by: java.lang.NullPointerException
	at dev.patrickgold.florisboard.ime.core.SubtypeManager$Companion.default(SubtypeManager.kt:56)
	at dev.patrickgold.florisboard.settings.SettingsMainActivity.getSubtypeManager(SettingsMainActivity.kt:56)
	at dev.patrickgold.florisboard.settings.SettingsMainActivity$SettingsFragment.onCreate(SettingsMainActivity.kt:216)
	at androidx.fragment.app.Fragment.performCreate(Fragment.java:2936)
	at androidx.fragment.app.FragmentStateManager.create(FragmentStateManager.java:472)
	at androidx.fragment.app.FragmentStateManager.moveToExpectedState(FragmentStateManager.java:278)
	at androidx.fragment.app.FragmentManager.executeOpsTogether(FragmentManager.java:2177)
	at androidx.fragment.app.FragmentManager.removeRedundantOperationsAndExecute(FragmentManager.java:2088)
	at androidx.fragment.app.FragmentManager.execPendingActions(FragmentManager.java:1990)
	at androidx.fragment.app.FragmentManager.dispatchStateChange(FragmentManager.java:3122)
	at androidx.fragment.app.FragmentManager.dispatchActivityCreated(FragmentManager.java:3056)
	at androidx.fragment.app.FragmentController.dispatchActivityCreated(FragmentController.java:251)
	at androidx.fragment.app.FragmentActivity.onStart(FragmentActivity.java:473)
	at androidx.appcompat.app.AppCompatActivity.onStart(AppCompatActivity.java:210)
	at android.app.Instrumentation.callActivityOnStart(Instrumentation.java:1334)
	at android.app.Activity.performStart(Activity.java:7029)
	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2741)
	... 9 more

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
patrickgoldcommented, Sep 16, 2021

Long press the FlorisBoard app icon in your launcher, then app info and clear cache. If your launcher does not have that options go to system options > applications > FlorisBoard and then clear cache.

0reactions
patrickgoldcommented, Sep 16, 2021

Ok if this does not fix your issue then something only on your device goes completely wrong while initializing the FlorisBoard Application object, and the subtype manager either is not initialized at all or set to null somehow. This is very difficult to pin down to what exactly is causing this though, so atm I don’t really know how I can fix this issue.

Does FlorisBoard only crash if you try to open the settings UI or also when you only activate the keyboard and tap into a text field?

Read more comments on GitHub >

github_iconTop Results From Across the Web

android - java.lang.RuntimeException: Unable to start activity ...
So, I'm writing this. This is the error. java.lang.RuntimeException: Unable to start activity ComponentInfo{my.package.name/my ...
Read more >
Solved: Error : Unable to start activity ComponentInfo com...
Solved: Hi, i'm new to visa, and trying to integrate Visa SDK for android, the sample can successfully run at my android studio....
Read more >
java.lang.RuntimeException: Unable to start activity ... - GitHub
I'm facing some issues with the latest version of the package ( flutter_appauth: 4.2.0 ):. It seems like some activity for ...
Read more >
In-App Payment Android: java.lang.RuntimeException: Unable ...
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.links.fitness/sqip.internal.CardEntryActivity}: java.lang.
Read more >
Unable to instantiate activity ComponentInfo : r/androiddev
RuntimeException : Unable to instantiate activity ComponentInfo{com.example. ... ZygoteInit.main(ZygoteInit.java:807) Caused by: java.lang.
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