I have the same issue but the problem occurs only on Samsung Galaxy S3. The Unity splash screen appears, then the app is trying to trigger the camera, only to crash out of memory. I have tested the app on S4 and even an old tablet that runs Android 4.2.2 and the AR camera works just fine, as it should be. I have the complete logcat of the crash, but here are the most important lines:
W/Adreno-ES20( 4275): <core_glDiscardFramebufferEXT:3708>: GL_INVALID_ENUM
W/QCameraHWI_Preview( 176): android::status_t android::QCameraStream_preview::processPreviewFrame(mm_camera_ch_data_buf_t*): CAMERA_MSG_PREVIEW_FRAME
W/QCameraHWI_Preview( 176): 3rd party preview case
W/QCameraHWI_Preview( 176): previewBufSize = 460800
D/ShotSingle( 176): CAMERA_MSG_PREVIEW_FRAME E
D/ShotSingle( 176): CAMERA_MSG_PREVIEW_FRAME X
D/SecCameraCoreManager( 176): getParameters
W/Adreno-GSL( 4275): <gsl_ldd_control:393>: ioctl fd 62 code 0xc01c0934 (IOCTL_KGSL_GPUMEM_ALLOC_ID) failed: errno 12 Out of memory
E/Adreno-GSL( 4275): <ioctl_kgsl_sharedmem_alloc:1524>: ioctl_kgsl_sharedmem_alloc: FATAL ERROR : (null)
F/libc ( 4275): Fatal signal 11 (SIGSEGV) at 0x00000000 (code=1), thread 4275 (com.Jeff.Vuforia)
Description of the issue:
When running a Vuforia-based app, including any of the Vuforia samples, the camera video background is not rendered; the background is always looking black; however the targets are correctly detected and their 3D augmentation models are correctly rendered on top of the black background. The app then crashes out of memory.
Exact Device Model number:
Samsung Galaxy SIII SGH-1747M
Installed OS version:
Vuforia SDK version
Vuforia SDK 4.2.3
Platform (Andoid native, iOS native or Unity)
In the editor, everything works fine and I can use my webcam. Once I build on the phone, the problem occurs.
The issue can be reproduced with the Image Targets Vuforia Unity sample.
See above for the logcat extract linked to the crash.
The issue occurs in landscape mode.
None of the cameras work.
The issue occurs when using MODE_DEFAULT, no tests have been done in other modes, but I confirm that it works all good on different devices.
Concurrent camera access:
No apps is interfering with the camera. Even after a complete reboot, the camera cannot be used in the Vuforia app.