saki4510t / UVCCamera

library and sample to access to UVC web camera on non-rooted Android device
3k stars 1.21k forks source link

A/libc: Fatal signal 11 (SIGSEGV), code 1, fault addr 0x8d63f5e1 in tid 2827 (VideoStream$ren) #558

Open Ananfry opened 4 years ago

Ananfry commented 4 years ago

After the app recognizes the camera, starts the preview and in a half of a second it crashes.

This is the logcat (look at the end):

01-01 08:34:46.846 32360-32360/? I/art: Late-enabling -Xcheck:jni 01-01 08:34:46.846 32360-32360/? I/art: Late-enabling JIT 01-01 08:34:46.858 32360-32360/? I/art: JIT created with code_cache_capacity=2MB compile_threshold=1000 01-01 08:34:46.935 32360-32360/com.serenegiant.opencvwithuvc V/MainActivity: onCreate: 01-01 08:34:47.027 32360-32360/com.serenegiant.opencvwithuvc V/CameraThread: getHandler: 01-01 08:34:47.052 32360-32391/com.serenegiant.opencvwithuvc W/EGLBase14: try to fallback to RGB565 01-01 08:34:47.056 32360-32391/com.serenegiant.opencvwithuvc D/EGLBase14: EGLContext created, client version 2 01-01 08:34:47.061 32360-32395/com.serenegiant.opencvwithuvc I/OMXClient: Using client-side OMX mux. 01-01 08:34:47.079 32360-32397/com.serenegiant.opencvwithuvc W/EGLBase14: try to fallback to RGB565 01-01 08:34:47.080 32360-32397/com.serenegiant.opencvwithuvc D/EGLBase14: EGLContext created, client version 2 01-01 08:34:47.081 32360-32360/com.serenegiant.opencvwithuvc V/MainActivity: onStart: 01-01 08:34:47.098 32360-32404/com.serenegiant.opencvwithuvc D/OpenGLRenderer: Use EGL_SWAP_BEHAVIOR_PRESERVED: false 01-01 08:34:47.144 32360-32404/com.serenegiant.opencvwithuvc I/OpenGLRenderer: Initialized EGL, version 1.4 01-01 08:34:47.202 32360-32360/com.serenegiant.opencvwithuvc V/UVCCameraTextureView: onSurfaceTextureAvailable:android.graphics.SurfaceTexture@41c73d7 01-01 08:34:47.204 32360-32360/com.serenegiant.opencvwithuvc V/UVCCameraTextureView: RenderThread#getHandler: 01-01 08:34:47.205 32360-32420/com.serenegiant.opencvwithuvc D/UVCCameraTextureView: RenderThread started 01-01 08:34:47.205 32360-32420/com.serenegiant.opencvwithuvc V/UVCCameraTextureView: RenderThread#init: 01-01 08:34:47.205 32360-32420/com.serenegiant.opencvwithuvc W/EGLBase14: try to fallback to RGB565 01-01 08:34:47.206 32360-32420/com.serenegiant.opencvwithuvc D/EGLBase14: EGLContext created, client version 2 01-01 08:35:32.253 32360-32360/com.serenegiant.opencvwithuvc V/MainActivity: onDialogResult:canceled=false 01-01 08:35:32.263 32360-32385/com.serenegiant.opencvwithuvc D/UsbDeviceConnectionJNI: close 01-01 08:35:32.263 32360-32385/com.serenegiant.opencvwithuvc I/USBMonitor: name=/dev/bus/usb/001/004,desc=50,busnum=1,devnum=4,rawDesc=[B@8bdd892 01-01 08:35:32.263 32360-32385/com.serenegiant.opencvwithuvc V/MainActivity: onConnect: 01-01 08:35:32.264 32360-32389/com.serenegiant.opencvwithuvc V/CameraThread: handleOpen: 01-01 08:35:32.264 32360-32389/com.serenegiant.opencvwithuvc V/CameraThread: handleClose: 01-01 08:35:32.264 32360-32389/com.serenegiant.opencvwithuvc V/CameraThread: handleStopRecording:mMuxer=null 01-01 08:35:32.264 32360-32389/com.serenegiant.opencvwithuvc V/UVCCameraTextureView: setVideoEncoder: 01-01 08:35:32.270 32360-32420/com.serenegiant.opencvwithuvc V/UVCCameraTextureView: RenderThread#setEncoder:encoder=null 01-01 08:35:32.275 32360-32385/com.serenegiant.opencvwithuvc V/MainActivity: startPreview: 01-01 08:35:32.284 32360-32360/com.serenegiant.opencvwithuvc V/UVCCameraTextureView: getPreviewTexture: 01-01 08:35:32.284 32360-32420/com.serenegiant.opencvwithuvc I/UVCCameraTextureView: RenderThread#updatePreviewSurface: 01-01 08:35:32.284 32360-32420/com.serenegiant.opencvwithuvc V/UVCCameraTextureView: updatePreviewSurface:tex_id=1 01-01 08:35:32.301 32360-32360/com.serenegiant.opencvwithuvc V/MainActivity: startImageProcessor: 01-01 08:35:32.351 32360-32389/com.serenegiant.opencvwithuvc D/UsbDeviceConnectionJNI: close 01-01 08:35:32.351 32360-32389/com.serenegiant.opencvwithuvc I/libusb/core: [32389core.c:2085:libusb_init2]:libusb v1.0.19.10903 01-01 08:35:32.351 32360-32389/com.serenegiant.opencvwithuvc I/libusb/usbfs: [32389android_usbfs.c:504:op_init2]:start up hotplug event handler 01-01 08:35:32.351 32360-32389/com.serenegiant.opencvwithuvc I/libusb/usbfs: [32389android_usbfs.c:512:op_init2]:call android_scan_devices 01-01 08:35:32.353 32360-32389/com.serenegiant.opencvwithuvc I/AbsUVCCameraHandler: supportedSize:{"formats":[{"index":1,"type":4,"default":1,"size":["640x480","352x288","320x240","176x144","160x120"]}]} 01-01 08:35:32.353 32360-32389/com.serenegiant.opencvwithuvc V/CameraThread: handleStartPreview: 01-01 08:35:32.376 32360-2827/com.serenegiant.opencvwithuvc W/EGLBase14: try to fallback to RGB565 01-01 08:35:32.377 32360-2827/com.serenegiant.opencvwithuvc D/EGLBase14: EGLContext created, client version 2 01-01 08:35:32.406 32360-2830/com.serenegiant.opencvwithuvc I/libUVCCamera: [2830UVCPreview.cpp:492:prepare_preview]:frameSize=(640,480)@YUYV 01-01 08:35:33.608 32360-2834/com.serenegiant.opencvwithuvc W/libUVCCamera: [2834UVCPreview.cpp:119:get_frame]:allocate new frame 01-01 08:35:33.616 32360-2830/com.serenegiant.opencvwithuvc W/libUVCCamera: [2830UVCPreview.cpp:119:get_frame]:allocate new frame 01-01 08:35:33.669 32360-2827/com.serenegiant.opencvwithuvc W/GLConsumer: [SurfaceTexture-1-32360-3] bindTextureImage: clearing GL error: 0x500 01-01 08:35:33.671 32360-2827/com.serenegiant.opencvwithuvc E/libEGL: called unimplemented OpenGL ES API 01-01 08:35:33.672 32360-2827/com.serenegiant.opencvwithuvc A/libc: Fatal signal 11 (SIGSEGV), code 1, fault addr 0x8d63f5e1 in tid 2827 (VideoStream$ren)

Any help will be appreciated

¡Thanks!

zyowo commented 4 years ago

I seem to have some of the same problems. An error is reported after allocate new frame twice.

https://paste.ubuntu.com/p/5t5vw58fjV/