Results 1 to 2 of 2

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

  1. #1
    Join Date
    Dec 2014
    Posts
    1
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Qt 5.4 declarative-camera example 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?

    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 

  2. #2
    Join Date
    Oct 2010
    Posts
    3
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Qt 5.4 declarative-camera example on a Nexus 5 with Android 5.0 Lollipop

    Same issue here. I also use Qt5.4 and a Nexus 5 with lollipop.

    Here the debug output:
    Qt Code:
    1. W/Camera-JNI(17689): callback on dead camera object
    2. W/Camera-JNI(17689): callback on dead camera object
    3. W/Camera-JNI(17689): callback on dead camera object
    4. W/Qt (17689): (null):0 ((null)): QThread: Destroyed while thread is still running
    5. W/art (17689): Native thread exiting without having called DetachCurrentThread (maybe it's going to use a pthread_key_create destructor?): Thread[17,tid=17831,Native,Thread*=0xafc4e400,peer=0x12cf8080,"QtThread"]
    6. F/art (17689): art/runtime/thread.cc:1019] Native thread exited without calling DetachCurrentThread: Thread[17,tid=17831,Native,Thread*=0xafc4e400,peer=0x12cf8080,"QtThread"]
    7. F/libc (17689): Fatal signal 11 (SIGSEGV), code 1, fault addr 0xc8 in tid 17831 (QtThread)
    8. E/art (17689): JNI ERROR (app bug): accessed deleted global reference 0x90054a
    To copy to clipboard, switch view to plain text mode 

Similar Threads

  1. Replies: 4
    Last Post: 10th July 2014, 16:22
  2. Camera example application not working on android / HTC Flyer
    By Al_ in forum Qt for Embedded and Mobile
    Replies: 1
    Last Post: 11th May 2014, 17:37
  3. Replies: 0
    Last Post: 1st July 2013, 09:59
  4. cannot find -lUtilsd (Declarative UI)
    By codeman in forum Installation and Deployment
    Replies: 0
    Last Post: 15th December 2009, 12:42

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.