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 when run FacePreview code (OpenCV, Android) #179

Closed
baole opened this issue Jul 13, 2015 · 6 comments
Closed

Crash when run FacePreview code (OpenCV, Android) #179

baole opened this issue Jul 13, 2015 · 6 comments
Labels

Comments

@baole
Copy link

baole commented Jul 13, 2015

Crashed on Nexus 5, Android M. Javacp 1.0

07-13 23:28:14.704: E/FaceView(29018): classifier: /storage/emulated/0/opencv/etc/haarcascades/haarcascade_frontalface_alt.xml
07-13 23:28:14.790: I/art(29018): Background sticky concurrent mark sweep GC freed 57365(2MB) AllocSpace objects, 2(32KB) LOS objects, 42% free, 16MB/28MB, paused 5.053ms total 73.254ms
07-13 23:28:14.990: W/art(29031): Suspending all threads took: 10.732ms
07-13 23:28:15.007: W/ActivityManager(815): getRunningAppProcesses: caller 10119 does not hold REAL_GET_TASKS; limiting output
07-13 23:28:15.178: A/libc(29018): Fatal signal 11 (SIGSEGV), code 1, fault addr 0x28 in tid 29018 (m.anttek.javacv)
07-13 23:28:15.195: W/ActivityManager(815): getRunningAppProcesses: caller 10043 does not hold REAL_GET_TASKS; limiting output
07-13 23:28:15.204: W/ActivityManager(815): getRunningAppProcesses: caller 10043 does not hold REAL_GET_TASKS; limiting output
07-13 23:28:15.287: A/DEBUG(192): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
07-13 23:28:15.287: A/DEBUG(192): Build fingerprint: 'google/hammerhead/hammerhead:M/MPZ44Q/1960707:user/release-keys'
07-13 23:28:15.287: A/DEBUG(192): Revision: '0'
07-13 23:28:15.287: A/DEBUG(192): ABI: 'arm'
07-13 23:28:15.287: A/DEBUG(192): pid: 29018, tid: 29018, name: m.test.javacv  >>> com.test.javacv <<<
07-13 23:28:15.287: A/DEBUG(192): signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x28
07-13 23:28:15.310: A/DEBUG(192):     r0 00000000  r1 00000000  r2 b3b912e1  r3 8000008d
07-13 23:28:15.310: A/DEBUG(192):     r4 00000000  r5 b6f13ad7  r6 b5dbab64  r7 00000001
07-13 23:28:15.310: A/DEBUG(192):     r8 b6f1b6cc  r9 00000013  sl b5dbab64  fp b6f13ad7
07-13 23:28:15.310: A/DEBUG(192):     ip b3c77eb8  sp bea0b180  lr b3c1f79b  pc b3c1f79a  cpsr 400f0030
07-13 23:28:15.311: A/DEBUG(192): backtrace:
07-13 23:28:15.311: A/DEBUG(192):     #00 pc 0011a79a  /data/app/com.test.javacv-1/lib/arm/libopencv_core.so
07-13 23:28:15.329: E/PhotosPlugin(29031): Loading PhotosPlugin
07-13 23:28:15.330: W/ActivityManager(815): getRunningAppProcesses: caller 10043 does not hold REAL_GET_TASKS; limiting output
07-13 23:28:15.491: W/ActivityManager(815): getRunningAppProcesses: caller 10043 does not hold REAL_GET_TASKS; limiting output
07-13 23:28:16.046: W/ResourceType(815): ResTable_typeSpec entry count inconsistent: given 1, previously 1273
07-13 23:28:16.292: I/GAv4(29031): Google Analytics 7.5.71 is starting up. To enable debug logging on a device run:
07-13 23:28:16.292: I/GAv4(29031):   adb shell setprop log.tag.GAv4 DEBUG
07-13 23:28:16.292: I/GAv4(29031):   adb logcat -s GAv4
07-13 23:28:16.556: A/DEBUG(192): Tombstone written to: /data/tombstones/tombstone_06
07-13 23:28:16.556: E/DEBUG(192): AM write failed: Broken pipe
07-13 23:28:16.557: I/BootReceiver(815): Copying /data/tombstones/tombstone_06 to DropBox (SYSTEM_TOMBSTONE)
07-13 23:28:16.566: W/ActivityManager(815):   Force finishing activity com.test.javacv/.FacePreview
07-13 23:28:16.586: I/Zygote(210): Process 29018 exited due to signal (11)
07-13 23:28:16.870: I/WindowManager(815): Screenshot max retries 4 of Token{d5c9f9f ActivityRecord{470953e u0 com.test.javacv/.FacePreview t4852 f}} appWin=Window{c5e28c6 u0 Starting com.test.javacv} drawState=4
@tomerhatav
Copy link

I have the same problem.
Nexus 5, Android L. Javacp 1.0

A/libc﹕ Fatal signal 11 (SIGSEGV), code 1, fault addr 0x28 in tid 19199

 185-185/? I/DEBUG﹕ *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
07-14 10:00:23.587      185-185/? I/DEBUG﹕ Build fingerprint: 'google/hammerhead/hammerhead:5.1.1/LMY48B/1863243:user/release-keys'
07-14 10:00:23.587      185-185/? I/DEBUG﹕ Revision: '11'
07-14 10:00:23.587      185-185/? I/DEBUG﹕ ABI: 'arm'
07-14 10:00:23.587      185-185/? I/DEBUG﹕ pid: 5609, tid: 5609, name: example.app  >>> com.example.app <<<
07-14 10:00:23.587      185-185/? I/DEBUG﹕ signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x28
07-14 10:00:23.602      185-185/? I/DEBUG﹕ r0 00000000  r1 b6f6b2cf  r2 a0d802e2  r3 fffffff9
07-14 10:00:23.602      185-185/? I/DEBUG﹕ r4 00000000  r5 b6f6b2cf  r6 ae9efe74  r7 b6f6b396
07-14 10:00:23.602      185-185/? I/DEBUG﹕ r8 00000013  r9 b6f70714  sl 00000001  fp a0e6444c
07-14 10:00:23.603      185-185/? I/DEBUG﹕ ip a0e66eb8  sp bedf0cc0  lr a0e0e79b  pc a0e0e79a  cpsr 600f0030
07-14 10:00:23.603      185-185/? I/DEBUG﹕ backtrace:
07-14 10:00:23.603      185-185/? I/DEBUG﹕ #00 pc 0011a79a  /data/app/com.example.app-2/lib/arm/libopencv_core.so
07-14 10:00:24.333      185-185/? W/debuggerd﹕ type=1400 audit(0.0:78): avc: denied { read } for name="kgsl-3d0" dev="tmpfs" ino=5655 scontext=u:r:debuggerd:s0 tcontext=u:object_r:gpu_device:s0 tclass=chr_file
07-14 10:00:24.343      185-185/? W/debuggerd﹕ type=1400 audit(0.0:79): avc: denied { read } for name="kgsl-3d0" dev="tmpfs" ino=5655 scontext=u:r:debuggerd:s0 tcontext=u:object_r:gpu_device:s0 tclass=chr_file
07-14 10:00:24.429      185-185/? I/DEBUG﹕ Tombstone written to: /data/tombstones/tombstone_04

@saudet
Copy link
Member

saudet commented Jul 14, 2015

Looks like a problem with OpenCV 3.0... Does this happen with any other version?

@tomerhatav
Copy link

No, only with OpenCV 3.0

@baole
Copy link
Author

baole commented Jul 14, 2015

How can we change to older OpenCV version?

EDIT: I switch to javacv ver 0.8 and it still crashes.

saudet added a commit to bytedeco/javacpp-presets that referenced this issue Jul 18, 2015
… for Android 2.2, because GCC 4.6 has issues with OpenMP (issue bytedeco/javacv#179)
@saudet saudet added the bug label Jul 18, 2015
@saudet
Copy link
Member

saudet commented Jul 18, 2015

I found that the problem is probably caused by OpenMP, as explained in the last commit noted above. I've placed a new set of binaries here that should fix this issue:
https://oss.sonatype.org/content/repositories/snapshots/org/bytedeco/javacpp-presets/opencv/3.0.0-1.0.1-SNAPSHOT/
They work fine in the Nexus 5 emulator here, but let me know if they still do not work for you, and thanks reporting!

@saudet saudet changed the title Crash when run FacePreview code Crash when run FacePreview code (OpenCV, Android) Jul 21, 2015
@saudet
Copy link
Member

saudet commented Oct 31, 2015

The builds for version 1.1 work properly, so please use that! And thanks for reporting.

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

3 participants