Open muhammadawaisshan opened 1 month ago
Used IO dispatcher too but anr remains same i.e:
val configuration = DocumentScanner.Configuration()
configuration.imageQuality = 100
configuration.imageSize = 1000000 // 1 MB
configuration.imageType = Bitmap.CompressFormat.JPEG
CoroutineScope(Dispatchers.IO).launch {
DocumentScanner.init(this@App, configuration)
}
00 pc 0x4c4ac libc.so (syscall + 28) (BuildId: 77338d8a2b4b56e6fd4f4505f9c828b6)
01 pc 0x232670 libart.so (art::ConditionVariable::WaitHoldingLocks + 140) (BuildId: 2452917c4ff69cbb6e75e5512260946b)
02 pc 0x573be4 libart.so (art::JNI::NewWeakGlobalRef + 876) (BuildId: 2452917c4ff69cbb6e75e5512260946b)
03 pc 0x519dbc libart.so (art::JavaVMExt::LoadNativeLibrary + 844) (BuildId: 2452917c4ff69cbb6e75e5512260946b)
04 pc 0x51c0 libopenjdkjvm.so (JVM_NativeLoad + 412) (BuildId: b1064b3de75b1f93daad0e68cd4667df)
05 pc 0x351230 libart.so (art_quick_generic_jni_trampoline + 144) (BuildId: 2452917c4ff69cbb6e75e5512260946b)
06 pc 0x211faf0 memfd:jit-zygote-cache (java.lang.Runtime.loadLibrary0 + 304)
07 pc 0x211f904 memfd:jit-zygote-cache (java.lang.Runtime.loadLibrary0 + 356)
08 pc 0x21308c4 memfd:jit-zygote-cache (java.lang.System.loadLibrary + 84)