Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-37907

QQuickWidget will not run on Android

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 5.4.0
    • 5.3.0 Beta1
    • Quick: Other
    • None
    • Build System: Kubuntu 13.10 x64
      QT: 5.3Beta 1 Android & x86
      Target: Nexus 4 Android 4.4.2
    • Android
    • a4f50269f82695fbd0dd344f87b4b355feff4333

    Description

      Creating a simple QQuickWidget results in a crash on Android. Test was done on Android 4.4.2 running on Nexus 4. A blank window comes up for even the default "Hello" qml item when creating the program. This code will work when running on Qt5.3 Desktop (Linux).

      Test Case: (See atttached tar file)

      MainView::MainView(QWidget *parent) :
      QMainWindow(parent),database(0),staList(0)

      { quickW = new QQuickWidget(this); quickW->setSource(QUrl("qrc:/qml/Hello.qml")); setCentralWidget(quickW); }

      Output:
      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 0×77323b30
      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 0×00000004 (code=1), thread 5762 (mple.viewwidget)

      Work around is to not use QuickWidget, and use QDeclarativeView.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            lagocs Laszlo Agocs
            dboosalis David Boosalis
            Votes:
            5 Vote for this issue
            Watchers:
            11 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes