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

Native crash in libimageproc #95

Open
ened opened this issue Mar 15, 2021 · 3 comments
Open

Native crash in libimageproc #95

ened opened this issue Mar 15, 2021 · 3 comments

Comments

@ened
Copy link
Contributor

ened commented Mar 15, 2021

Fatal signal 11 (SIGSEGV), code 2 (SEGV_ACCERR), fault addr 0x6e317ef000 in tid 20821 (Thread-5), pid 20535 (.company.app)
#00 pc 000000000005442c  /data/app/~~XsWP1OGZc2n8-MKcEzQIaQ==/com.company.app-gjks4GWNvIB1qk2_wAGt1w==/base.apk!libImageProc.so (offset 0x80000) (processimage+648) (BuildId: 7e4ede6ccbc86183c879de1cddbbcd98ccd77908)
#01 pc 0000000000054914  /data/app/~~XsWP1OGZc2n8-MKcEzQIaQ==/com.company.app-gjks4GWNvIB1qk2_wAGt1w==/base.apk!libImageProc.so (offset 0x80000) (Java_com_github_niqdev_mjpeg_MjpegInputStreamNative_pixeltobmp+84) (B
uildId: 7e4ede6ccbc86183c879de1cddbbcd98ccd77908)
#02 pc 000000000013ced4  /apex/com.android.art/lib64/libart.so (art_quick_generic_jni_trampoline+148) (BuildId: aeb876e57f112c8539df5053f2da77d4)
#03 pc 000000000207c27c  /memfd:jit-cache (deleted) (offset 0x2000000) (com.github.niqdev.mjpeg.MjpegInputStreamNative.readMjpegFrame+908)
#04 pc 00000000020820f8  /memfd:jit-cache (deleted) (offset 0x2000000) (com.github.niqdev.mjpeg.MjpegViewNative$MjpegViewThread.run+536)
#05 pc 000000000013387c  /apex/com.android.art/lib64/libart.so (art_quick_osr_stub+60) (BuildId: aeb876e57f112c8539df5053f2da77d4)
#06 pc 000000000033b1b8  /apex/com.android.art/lib64/libart.so (art::jit::Jit::MaybeDoOnStackReplacement(art::Thread*, art::ArtMethod*, unsigned int, int, art::JValue*)+344) (BuildId: aeb876e57f112c8539df5053f2da77d4)
#07 pc 000000000067c570  /apex/com.android.art/lib64/libart.so (MterpMaybeDoOnStackReplacement+208) (BuildId: aeb876e57f112c8539df5053f2da77d4)
#08 pc 0000000000132350  /apex/com.android.art/lib64/libart.so (MterpHelpers+240) (BuildId: aeb876e57f112c8539df5053f2da77d4)
#09 pc 000000000000420a  [anon:dalvik-classes7.dex extracted in memory from /data/app/~~XsWP1OGZc2n8-MKcEzQIaQ==/com.company.app-gjks4GWNvIB1qk2_wAGt1w==/base.apk!classes7.dex] (com.github.niqdev.mjpeg.MjpegViewNati
ve$MjpegViewThread.run+674)
#10 pc 0000000000303e24  /apex/com.android.art/lib64/libart.so (art::interpreter::Execute(art::Thread*, art::CodeItemDataAccessor const&, art::ShadowFrame&, art::JValue, bool, bool) (.llvm.7582775073154344913)+268) (Bu
ildId: aeb876e57f112c8539df5053f2da77d4)
#11 pc 000000000065cac4  /apex/com.android.art/lib64/libart.so (artQuickToInterpreterBridge+760) (BuildId: aeb876e57f112c8539df5053f2da77d4)
#12 pc 000000000013cff8  /apex/com.android.art/lib64/libart.so (art_quick_to_interpreter_bridge+88) (BuildId: aeb876e57f112c8539df5053f2da77d4)
#13 pc 0000000000133564  /apex/com.android.art/lib64/libart.so (art_quick_invoke_stub+548) (BuildId: aeb876e57f112c8539df5053f2da77d4)
#14 pc 00000000001a8a6c  /apex/com.android.art/lib64/libart.so (art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)+200) (BuildId: aeb876e57f112c8539df5053f2da77d4)
#15 pc 0000000000548990  /apex/com.android.art/lib64/libart.so (art::JValue art::InvokeVirtualOrInterfaceWithJValues<art::ArtMethod*>(art::ScopedObjectAccessAlreadyRunnable const&, _jobject*, art::ArtMethod*, jvalue co
nst*)+460) (BuildId: aeb876e57f112c8539df5053f2da77d4)
#16 pc 00000000005970ec  /apex/com.android.art/lib64/libart.so (art::Thread::CreateCallback(void*)+1288) (BuildId: aeb876e57f112c8539df5053f2da77d4)
#17 pc 00000000000af880  /apex/com.android.runtime/lib64/bionic/libc.so (__pthread_start(void*)+64) (BuildId: 47a9ba0d54d9614053e13adab1207062)
#18 pc 00000000000500d0  /apex/com.android.runtime/lib64/bionic/libc.so (__start_thread+64) (BuildId: 47a9ba0d54d9614053e13adab1207062)

Happens once in a while - still trying to build a repro case.

@niqdev
Copy link
Owner

niqdev commented Mar 28, 2021

Hi, I'm not actively developing this lib, feel free to open a pr to fix the issue and I'll be more than happy to review it and merge it.
Thanks

@niqdev
Copy link
Owner

niqdev commented Mar 29, 2021

Does #83 solve this issue?

@ened
Copy link
Contributor Author

ened commented Mar 29, 2021

@niqdev no, #83 covers performance only. This one is a hard crash.

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

2 participants