Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash with Koin on LiquidKeyboard #1231

Closed
Bambooin opened this issue Feb 7, 2024 · 1 comment
Closed

Crash with Koin on LiquidKeyboard #1231

Bambooin opened this issue Feb 7, 2024 · 1 comment
Assignees
Labels

Comments

@Bambooin
Copy link
Collaborator

Bambooin commented Feb 7, 2024

Describe the bug
A clear and concise description of what the bug is.

Random crash on Koin in latest commit of develop.

To Reproduce
Steps to reproduce the bug:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See bug

Expected behavior
A clear and concise description of what you expected to happen.

Log
If applicable, add crash log to quick focus your problem.

--------- Crash stacktrace
java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:558)
	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:936)
Caused by: java.lang.reflect.InvocationTargetException
	at java.lang.reflect.Method.invoke(Native Method)
	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:548)
	... 1 more
Caused by: org.koin.core.error.NoBeanDefFoundException: No definition found for type 'com.osfans.trime.data.theme.Theme'. Check your Modules configuration and add missing type and/or qualifier!
	at org.koin.core.scope.Scope.throwDefinitionNotFound(Scope.kt:301)
	at org.koin.core.scope.Scope.resolveValue(Scope.kt:271)
	at org.koin.core.scope.Scope.resolveInstance(Scope.kt:233)
	at org.koin.core.scope.Scope.get(Scope.kt:212)
	at com.osfans.trime.ime.symbol.LiquidKeyboard$special$$inlined$inject$default$3.invoke(KoinComponent.kt:67)
	at kotlin.SynchronizedLazyImpl.getValue(LazyJVM.kt:74)
	at com.osfans.trime.ime.symbol.LiquidKeyboard.getTheme(LiquidKeyboard.kt:39)
	at com.osfans.trime.ime.symbol.LiquidKeyboard.access$getTheme(LiquidKeyboard.kt:36)
	at com.osfans.trime.ime.symbol.LiquidKeyboard$simpleAdapter$2.invoke(LiquidKeyboard.kt:45)
	at com.osfans.trime.ime.symbol.LiquidKeyboard$simpleAdapter$2.invoke(LiquidKeyboard.kt:44)
	at kotlin.SynchronizedLazyImpl.getValue(LazyJVM.kt:74)
	at com.osfans.trime.ime.symbol.LiquidKeyboard.getSimpleAdapter(LiquidKeyboard.kt:44)
	at com.osfans.trime.ime.symbol.LiquidKeyboard.initFixData(LiquidKeyboard.kt:141)
	at com.osfans.trime.ime.symbol.LiquidKeyboard.select(LiquidKeyboard.kt:133)
	at com.osfans.trime.ime.core.Trime.selectLiquidKeyboard(Trime.kt:260)
	at com.osfans.trime.ime.core.Trime.selectLiquidKeyboard(Trime.kt:281)
	at com.osfans.trime.ime.text.TextInputManager.onEvent(TextInputManager.kt:347)
	at com.osfans.trime.ime.keyboard.KeyboardView.onLongPress(KeyboardView.kt:1317)
	at com.osfans.trime.ime.keyboard.KeyboardView.openPopupIfRequired(KeyboardView.kt:1294)
	at com.osfans.trime.ime.keyboard.KeyboardView.access$openPopupIfRequired(KeyboardView.kt:63)
	at com.osfans.trime.ime.keyboard.KeyboardView$MyHandler.handleMessage(KeyboardView.kt:329)
	at android.os.Handler.dispatchMessage(Handler.java:106)
	at android.os.Looper.loopOnce(Looper.java:201)
	at android.os.Looper.loop(Looper.java:288)
	at android.app.ActivityThread.main(ActivityThread.java:7924)
	... 3 more

Screenshots
If applicable, add screenshots to help explain your problem.

Smartphone (please complete the following information):

  • Device: [e.g. Xiaomi Mix 4]
  • OS: [e.g. Android 11]
  • Theme: [e.g. Tongwenfeng]
  • Version: [e.g. 3.2.1]
  • Build info:
    You could find build info in About Activity and click it to copy.
    e.g. 
    Build: Commit CI
    Date: 2022-06-12 10:09 UTC
    Commit: v3.2.6-58-gd9b4c1f, 2022-06-12 17:58:14 +0800
    Branch: develop
    Repository: https://github.com/osfans/trime
    

Additional context
Add any other context about the problem here.

@WhiredPlanck WhiredPlanck self-assigned this Feb 9, 2024
@WhiredPlanck
Copy link
Collaborator

@Bambooin I can't reproduce this issue ......

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants