Qt World Summit: Register Today!

Qt 5.4 declarative-camera example crashes on a Nexus 5 with Android 5.0 Lollipop

  • 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?

    @Starting remote process.I/art ( 3809): Late-enabling -Xcheck:jni
    I/Qt ( 3809): qt start
    D/Qt ( 3809): (null):0 ((null)): QML debugging is enabled. Only use this in a safe environment.
    D/OpenGLRenderer( 3809): Render dirty regions requested: true
    D/Atlas ( 3809): Validating map...
    I/Adreno-EGL( 3809): <qeglDrvAPI_eglInitialize:410>: QUALCOMM Build: 10/24/14, 167c270, I68fa98814b
    I/OpenGLRenderer( 3809): Initialized EGL, version 1.4
    D/OpenGLRenderer( 3809): Enabling debug mode 0
    D/Qt ( 3809): (null):0 ((null)): FT_New_Face failed with index 0 : 90
    W/Adreno-EGL( 3809): <qeglDrvAPI_eglSwapBuffers:3615>: EGL_BAD_CONTEXT
    W/Qt ( 3809): (null):0 ((null)): QEGLPlatformContext::swapBuffers(): eglError: 12294, this: 0xa002f640
    W/Qt ( 3809):
    D/Camera ( 3809): app passed NULL surface
    W/Camera-JNI( 3809): callback on dead camera object
    W/Camera-JNI( 3809): callback on dead camera object
    W/Camera-JNI( 3809): callback on dead camera object
    W/Qt ( 3809): (null):0 ((null)): QThread: Destroyed while thread is still running
    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"]
    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"]
    F/libc ( 3809): Fatal signal 11 (SIGSEGV), code 1, fault addr 0xc8 in tid 3854 (QtThread-184467)

    "org.qtproject.example.declarative_camera" died.@

Log in to reply