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

ANR caused while initing DocumentScanner #21

Open
muhammadawaisshan opened this issue Oct 15, 2024 · 1 comment
Open

ANR caused while initing DocumentScanner #21

muhammadawaisshan opened this issue Oct 15, 2024 · 1 comment

Comments

@muhammadawaisshan
Copy link

      DefaultDispatcher-worker-1 (native):tid=29 systid=3287 

#00 pc 0x4c4ac libc.so (syscall + 28) (BuildId: 77338d8a2b4b56e6fd4f4505f9c828b6)
#1 pc 0x232670 libart.so (art::ConditionVariable::WaitHoldingLocks + 140) (BuildId: 2452917c4ff69cbb6e75e5512260946b)
#2 pc 0x573be4 libart.so (art::JNI::NewWeakGlobalRef + 876) (BuildId: 2452917c4ff69cbb6e75e5512260946b)
#3 pc 0x519dbc libart.so (art::JavaVMExt::LoadNativeLibrary + 844) (BuildId: 2452917c4ff69cbb6e75e5512260946b)
#4 pc 0x51c0 libopenjdkjvm.so (JVM_NativeLoad + 412) (BuildId: b1064b3de75b1f93daad0e68cd4667df)
#5 pc 0x351230 libart.so (art_quick_generic_jni_trampoline + 144) (BuildId: 2452917c4ff69cbb6e75e5512260946b)
#6 pc 0x211faf0 memfd:jit-zygote-cache (java.lang.Runtime.loadLibrary0 + 304)
#7 pc 0x211f904 memfd:jit-zygote-cache (java.lang.Runtime.loadLibrary0 + 356)
#8 pc 0x21308c4 memfd:jit-zygote-cache (java.lang.System.loadLibrary + 84)
at java.lang.Runtime.nativeLoad(Native method)
at java.lang.Runtime.nativeLoad(Runtime.java:1126)
at java.lang.Runtime.loadLibrary0(Runtime.java:1080)
at java.lang.Runtime.loadLibrary0(Runtime.java:1003)
at java.lang.System.loadLibrary(System.java:1661)
at com.zynksoftware.documentscanner.ui.DocumentScanner$init$1.invokeSuspend(DocumentScanner.kt:42)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:104)
at kotlinx.coroutines.internal.LimitedDispatcher$Worker.run(LimitedDispatcher.java:111)
at kotlinx.coroutines.scheduling.TaskImpl.run(Tasks.kt:99)
at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.java:585)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:802)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:706)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:693)

@muhammadawaisshan
Copy link
Author

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)
        }

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