Black Screen Issue [Android Qt 5.2]



  • Hi guys

    I am developing a basic app. I have a problem and I cant find the solution.

    I debug my app on "Desktop Qt 5.2.0 MinGW 32bit", It runs perfectly. I debug my app on "Android for armeabi (GCC 4.8, Qt 5.2.0)", Qt Creator send the app to my phone and I got the black screen. There is no error string on my phone, only black screen. After 3-4 seconds, My app is closed automatically.

    How can I fix?

    Note
    My phone is Samsung Galaxy Note 2 (Android 4.2.1)
    I use 16th Android Level

    Application Output Screenshot (for red errors) !http://keremerdem.net/dosyalar/diger/qt-black-screen-issue.jpg(photo)!

    Application Output
    @Starting remote process.D/dalvikvm(20057): GC_CONCURRENT freed 391K, 8% free 12465K/13447K, paused 1ms+2ms, total 11ms
    D/dalvikvm(20057): Trying to load lib /data/data/org.qtproject.example.StackView1/lib/libgnustl_shared.so 0x420c8d20
    D/dalvikvm(20057): Added shared lib /data/data/org.qtproject.example.StackView1/lib/libgnustl_shared.so 0x420c8d20
    D/dalvikvm(20057): No JNI_OnLoad found in /data/data/org.qtproject.example.StackView1/lib/libgnustl_shared.so 0x420c8d20, skipping init
    D/dalvikvm(20057): Trying to load lib /data/data/org.qtproject.example.StackView1/lib/libQt5Core.so 0x420c8d20
    D/dalvikvm(20057): Added shared lib /data/data/org.qtproject.example.StackView1/lib/libQt5Core.so 0x420c8d20
    D/dalvikvm(20057): Trying to load lib /data/data/org.qtproject.example.StackView1/lib/libQt5Network.so 0x420c8d20
    D/dalvikvm(20057): Added shared lib /data/data/org.qtproject.example.StackView1/lib/libQt5Network.so 0x420c8d20
    I/Qt (20057): Network start
    D/dalvikvm(20057): Trying to load lib /data/data/org.qtproject.example.StackView1/lib/libQt5Qml.so 0x420c8d20
    D/dalvikvm(20057): Added shared lib /data/data/org.qtproject.example.StackView1/lib/libQt5Qml.so 0x420c8d20
    D/dalvikvm(20057): No JNI_OnLoad found in /data/data/org.qtproject.example.StackView1/lib/libQt5Qml.so 0x420c8d20, skipping init
    D/dalvikvm(20057): Trying to load lib /data/data/org.qtproject.example.StackView1/lib/libQt5Gui.so 0x420c8d20
    D/dalvikvm(20057): Added shared lib /data/data/org.qtproject.example.StackView1/lib/libQt5Gui.so 0x420c8d20
    D/dalvikvm(20057): No JNI_OnLoad found in /data/data/org.qtproject.example.StackView1/lib/libQt5Gui.so 0x420c8d20, skipping init
    D/dalvikvm(20057): Trying to load lib /data/data/org.qtproject.example.StackView1/lib/libQt5Quick.so 0x420c8d20
    D/dalvikvm(20057): Added shared lib /data/data/org.qtproject.example.StackView1/lib/libQt5Quick.so 0x420c8d20
    D/dalvikvm(20057): No JNI_OnLoad found in /data/data/org.qtproject.example.StackView1/lib/libQt5Quick.so 0x420c8d20, skipping init
    D/dalvikvm(20057): Trying to load lib /data/data/org.qtproject.example.StackView1/lib/libQt5QuickParticles.so 0x420c8d20
    D/dalvikvm(20057): Added shared lib /data/data/org.qtproject.example.StackView1/lib/libQt5QuickParticles.so 0x420c8d20
    D/dalvikvm(20057): No JNI_OnLoad found in /data/data/org.qtproject.example.StackView1/lib/libQt5QuickParticles.so 0x420c8d20, skipping init
    D/dalvikvm(20057): Trying to load lib /data/data/org.qtproject.example.StackView1/plugins/platforms/android/libqtforandroidGL.so 0x420c8d20
    D/dalvikvm(20057): Added shared lib /data/data/org.qtproject.example.StackView1/plugins/platforms/android/libqtforandroidGL.so 0x420c8d20
    I/Qt (20057): qt start
    W/dalvikvm(20057): dvmFindClassByName rejecting 'org/qtproject/qt5/android/QtMessageDialogHelper'
    D/dalvikvm(20057): Trying to load lib /data/data/org.qtproject.example.StackView1/lib/libQt5QuickParticles.so 0x420c8d20
    D/dalvikvm(20057): Shared lib '/data/data/org.qtproject.example.StackView1/lib/libQt5QuickParticles.so' already loaded in same CL 0x420c8d20
    D/dalvikvm(20057): Trying to load lib /data/data/org.qtproject.example.StackView1/lib/libStackView1.so 0x420c8d20
    D/Qt (20057): qml\qqmlengine.cpp:1451 (QQmlDebuggingEnabler::QQmlDebuggingEnabler(bool)): QML debugging is enabled. Only use this in a safe environment.
    D/dalvikvm(20057): Added shared lib /data/data/org.qtproject.example.StackView1/lib/libStackView1.so 0x420c8d20
    D/dalvikvm(20057): No JNI_OnLoad found in /data/data/org.qtproject.example.StackView1/lib/libStackView1.so 0x420c8d20, skipping init
    W/Qt (20057): kernel\qcoreapplication.cpp:416 (QCoreApplicationPrivate::QCoreApplicationPrivate(int&, char**, uint)): WARNING: QApplication was not created in the main() thread.
    W/dalvikvm(20057): dvmFindClassByName rejecting 'org/qtproject/qt5/android/QtNativeInputConnection'
    W/dalvikvm(20057): dvmFindClassByName rejecting 'org/qtproject/qt5/android/QtExtractedText'
    D/libEGL (20057): loaded /system/lib/egl/libEGL_mali.so
    D/libEGL (20057): loaded /system/lib/egl/libGLESv1_CM_mali.so
    D/libEGL (20057): loaded /system/lib/egl/libGLESv2_mali.so
    D/ (20057): Device driver API match
    D/ (20057): Device driver API version: 10
    D/ (20057): User space API version: 10
    D/ (20057): mali: REVISION=Linux-r2p4-02rel0 BUILD_DATE=Tue Oct 16 15:37:13 KST 2012
    W/Qt (20057): qml\qqmlapplicationengine.cpp:131 (void QQmlApplicationEnginePrivate::_q_finishLoad(QObject*)): QQmlApplicationEngine failed to load component
    W/Qt (20057): qml\qqmlapplicationengine.cpp:132 (void QQmlApplicationEnginePrivate::_q_finishLoad(QObject*)): file:///data/data/org.qtproject.example.StackView1/files/qml/StackView1/main.qml:-1 File not found
    W/Qt (20057):
    F/libc (20057): Fatal signal 11 (SIGSEGV) at 0x00000004 (code=1), thread 20109 (mple.StackView1)

    'org.qtproject.example.StackView1' died.@



  • I have the same problem. But after black screen, program work normally.


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.