Android Bug With 5.3 Beta ?



  • I switch from a QuickView to a QQuickWidget, Now app terminates on Nexus 4, (was running ok with the view)
    the console output from QtCreator is below. Anybody else seen this behavior.

    My code looks pretty simple to create the window as shown here:
    @MainView::MainView(QWidget *parent) :
    QMainWindow(parent),database(0),staList(0)
    {
    quickW = new QQuickWidget(this);
    quickW->setSource(QUrl("qrc:/qml/MainScreen.qml"));
    setCentralWidget(quickW);
    }@

    bq. D/Qt (28818): qml/qqmlengine.cpp:1452 (QQmlDebuggingEnabler::QQmlDebuggingEnabler(bool)): QML debugging is enabled. Only use this in a safe environment.
    D/dalvikvm(28818): Added shared lib /data/app-lib/org.qtproject.example.Impact-1/libImpact.so 0x41e687b0
    D/dalvikvm(28818): No JNI_OnLoad found in /data/app-lib/org.qtproject.example.Impact-1/libImpact.so 0x41e687b0, skipping init
    I/Adreno-EGL(28818): <qeglDrvAPI_eglInitialize:320>: EGL 1.4 QUALCOMM Build: I0404c4692afb8623f95c43aeb6d5e13ed4b30ddbDate: 11/06/13
    D/OpenGLRenderer(28818): Enabling debug mode 0
    D/Qt (28818): fontdatabases/basic/qbasicfontdatabase.cpp:238 (static QStringList QBasicFontDatabase::addTTFile(const QByteArray&, const QByteArray&)): FT_New_Face failed with index 0 : 90



  • Follow up - I can get QuickWidget to work with Linux Desktop but craps out when running on Android Phone. Anyone have any idea on this ?

    I simplified the code to this:

    @int main(int argc, char *argv[])
    {
    QApplication app(argc, argv);
    QQuickWidget qw = new QQuickWidget;
    QMainWindow mw = new QMainWindow();
    qw->setSource(QUrl(QStringLiteral("qrc:///qml/main.qml")));
    qw->setResizeMode(QQuickWidget::SizeRootObjectToView);
    mw->setCentralWidget(qw);
    mw->resize(300,300);
    mw->show();
    return app.exec();
    }@
    Still craps out when I run it on Android 4.4.2 On Nexus 4
    Starting remote process.D/OpenGLRenderer( 5742): Enabling debug mode 0
    D/dalvikvm( 5742): GC_CONCURRENT freed 478K, 6% free 9152K/9664K, paused 2ms+1ms, total 16ms
    D/Qt ( 5742): fontdatabases/basic/qbasicfontdatabase.cpp:238 (static QStringList QBasicFontDatabase::addTTFile(const QByteArray&, const QByteArray&)): FT_New_Face failed with index 0 : 90
    W/Qt ( 5742): kernel/qopenglcontext.cpp:778 (bool QOpenGLContext::makeCurrent(QSurface
    )): QOpenGLContext::makeCurrent() called with non-opengl surface 0x77323b30
    W/Qt ( 5742): opengl/qopenglfunctions.cpp:237 (QOpenGLFunctions::QOpenGLFunctions(QOpenGLContext
    )): QOpenGLFunctions created with non-current context
    E/libEGL ( 5742): call to OpenGL ES API with no current context (logged once per thread)
    F/libc ( 5742): Fatal signal 11 (SIGSEGV) at 0x00000004 (code=1), thread 5762 (mple.viewwidget)


  • Lifetime Qt Champion

    Hi,

    Did you took a look at the "bug report system":http://bugreports.qt-project.org to see if it's something known ?



  • Saw a few bugs for other platforms, but not for Android, so I created one - QTBUG-37907


  • Lifetime Qt Champion

    Thanks for sharing ! I would recommend posting a zip file with the project ready to build so it's easier for the devs to test



  • I uploaded example to this bug report. Thanks


Log in to reply
 

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