Details
-
Bug
-
Resolution: Done
-
P2: Important
-
5.3.0 Beta1
-
None
-
Build System: Kubuntu 13.10 x64
QT: 5.3Beta 1 Android & x86
Target: Nexus 4 Android 4.4.2
-
-
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)
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.