Hello,

I've built the declarative-camera example bundled with Qt 5.4 for the kit "Android for armeabi-v7a (GCC 4.9, Qt 5.4.0)" selecting android-21 as Android Build SDK. Then I've deployed the example to my Nexus 5 running Android 5.0 Lollipop and it runs ok but when I try to select the "Front-Facing camera" using the pop-up button provided by the example application it crashes. I've included the Application Output from QtCreator below. Did anyone get the example running without this issue?

Qt Code:
  1. Starting remote process.I/art ( 3809): Late-enabling -Xcheck:jni
  2. I/Qt ( 3809): qt start
  3. D/Qt ( 3809): (null):0 ((null)): QML debugging is enabled. Only use this in a safe environment.
  4. D/OpenGLRenderer( 3809): Render dirty regions requested: true
  5. D/Atlas ( 3809): Validating map...
  6. I/Adreno-EGL( 3809): <qeglDrvAPI_eglInitialize:410>: QUALCOMM Build: 10/24/14, 167c270, I68fa98814b
  7. I/OpenGLRenderer( 3809): Initialized EGL, version 1.4
  8. D/OpenGLRenderer( 3809): Enabling debug mode 0
  9. D/Qt ( 3809): (null):0 ((null)): FT_New_Face failed with index 0 : 90
  10. W/Adreno-EGL( 3809): <qeglDrvAPI_eglSwapBuffers:3615>: EGL_BAD_CONTEXT
  11. W/Qt ( 3809): (null):0 ((null)): QEGLPlatformContext::swapBuffers(): eglError: 12294, this: 0xa002f640
  12. W/Qt ( 3809):
  13. D/Camera ( 3809): app passed NULL surface
  14. W/Camera-JNI( 3809): callback on dead camera object
  15. W/Camera-JNI( 3809): callback on dead camera object
  16. W/Camera-JNI( 3809): callback on dead camera object
  17. W/Qt ( 3809): (null):0 ((null)): QThread: Destroyed while thread is still running
  18. W/art ( 3809): Native thread exiting without having called DetachCurrentThread (maybe it's going to use a pthread_key_create destructor?): Thread[16,tid=3854,Native,Thread*=0xaff4f400,peer=0x12d9b080,"QtThread-18446744072151889792"]
  19. F/art ( 3809): art/runtime/thread.cc:1019] Native thread exited without calling DetachCurrentThread: Thread[16,tid=3854,Native,Thread*=0xaff4f400,peer=0x12d9b080,"QtThread-18446744072151889792"]
  20. F/libc ( 3809): Fatal signal 11 (SIGSEGV), code 1, fault addr 0xc8 in tid 3854 (QtThread-184467)
  21.  
  22.  
  23. "org.qtproject.example.declarative_camera" died.
To copy to clipboard, switch view to plain text mode