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

Error: "Failed to instantiate [ch.qos.logback.classic.LoggerContext]" #46

Open
stoefln opened this issue Feb 2, 2023 · 1 comment
Open

Comments

@stoefln
Copy link

stoefln commented Feb 2, 2023

What is the issue or idea you have?
I launch the kotlin version of minicap on an Android 29 AVD (rooted) via this command :

CLASSPATH=/data/local/tmp/minicap/minicap-kotlin2.apk /system/bin/app_process /system/bin io.devicefarmer.minicap.Main -Q 60 -P 800x1280@800x1280/0

...but I get following error:

Failed to instantiate [ch.qos.logback.classic.LoggerContext]
Reported exception:
java.lang.ArrayIndexOutOfBoundsException: length=0; index=0
	at android.os.Environment.getExternalStorageState(Environment.java:1026)
	at ch.qos.logback.core.android.AndroidContextUtil.getMountedExternalStorageDirectoryPath(Unknown Source:0)
	at ch.qos.logback.core.android.AndroidContextUtil.setupProperties(Unknown Source:14)
	at ch.qos.logback.classic.util.ContextInitializer.autoConfig(Unknown Source:12)
	at org.slf4j.impl.StaticLoggerBinder.init(Unknown Source:7)
	at org.slf4j.impl.StaticLoggerBinder.<clinit>(Unknown Source:20)
	at org.slf4j.impl.StaticLoggerBinder.getSingleton(Unknown Source:0)
	at org.slf4j.LoggerFactory.bind(LoggerFactory.java:150)
	at org.slf4j.LoggerFactory.performInitialization(LoggerFactory.java:124)
	at org.slf4j.LoggerFactory.getILoggerFactory(LoggerFactory.java:417)
	at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:362)
	at io.devicefarmer.minicap.provider.BaseProvider.<clinit>(BaseProvider.kt:44)
	at io.devicefarmer.minicap.Main$Companion.main(Main.kt:62)
	at io.devicefarmer.minicap.Main.main(Unknown Source:2)
	at com.android.internal.os.RuntimeInit.nativeFinishInit(Native Method)
	at com.android.internal.os.RuntimeInit.main(RuntimeInit.java:338)
PID: 7862
INFO: 800x1280@800x1280/0

Have you tried STF?
Have not tried it in STF.

It seems minicap is started anyway, but this error is breaking my toolchain... Any ideas of what's going on?

@stoefln
Copy link
Author

stoefln commented Feb 24, 2023

Also filed a bug here: tony19/logback-android#315

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

No branches or pull requests

1 participant