Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Android Bug With 5.3 Beta ?
Forum Updated to NodeBB v4.3 + New Features

Android Bug With 5.3 Beta ?

Scheduled Pinned Locked Moved QML and Qt Quick
6 Posts 2 Posters 2.9k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    DBoosalis
    wrote on last edited by
    #1

    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

    1 Reply Last reply
    0
    • D Offline
      D Offline
      DBoosalis
      wrote on last edited by
      #2

      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)

      1 Reply Last reply
      0
      • SGaistS Offline
        SGaistS Offline
        SGaist
        Lifetime Qt Champion
        wrote on last edited by
        #3

        Hi,

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

        Interested in AI ? www.idiap.ch
        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

        1 Reply Last reply
        0
        • D Offline
          D Offline
          DBoosalis
          wrote on last edited by
          #4

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

          1 Reply Last reply
          0
          • SGaistS Offline
            SGaistS Offline
            SGaist
            Lifetime Qt Champion
            wrote on last edited by
            #5

            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

            Interested in AI ? www.idiap.ch
            Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

            1 Reply Last reply
            0
            • D Offline
              D Offline
              DBoosalis
              wrote on last edited by
              #6

              I uploaded example to this bug report. Thanks

              1 Reply Last reply
              0

              • Login

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • Users
              • Groups
              • Search
              • Get Qt Extensions
              • Unsolved