This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Qt 4.8.6 with SGX

Hi.

On our am335x based board, we're using u-boot (2013.10-ti2013.12.01), kernel (3.12.10-ti2013.12.01), and graphics SDK (5.01.01.01) from am335x starter kit SDK 07.00.00.00.

The graphics modules are re-built with: BUILD=release OMAPES=8.x FBDEV=yes SUPPORT_XORG=0 EGLIMAGE=0 PM_RUNTIME=yes


Qt 4.8.6 is re-built with configuration:

-prefix /usr/local/qt4
-release -opensource -confirm-license
-shared -fast -no-largefile -no-accessibility
-no-xmlpatterns -no-multimedia -no-audio-backend -no-phonon -no-phonon-backend
-no-svg -no-webkit -no-javascript-jit -no-script -no-scripttools -no-declarative -no-declarative-debug
-no-openssl -no-nis -no-cups -no-iconv -no-glib -no-gtkstyle
-platform qws/linux-x86-g++ -xplatform qws/linux-pixy_sip_30
-embedded arm -depths 16,24,32 -no-mmx -no-3dnow -no-sse -no-sse2
-opengl es2 -qt-gfx-transformed -qt-gfx-vnc -qt-gfx-linuxfb -qt-gfx-multiscreen -plugin-gfx-powervr
-qt-kbd-linuxinput -qt-mouse-pc -qt-mouse-linuxtp -qt-mouse-linuxinput -qt-mouse-tslib -plugin-mouse-linuxtp -plugin-mouse-pc
-D QT_NO_QWS_CURSOR -D QT_QWS_CLIENTBLIT

The graphics SDK OpenGL ES 1/2 demos run properly on the device. However, the qt hello_gles2 application creates a window with an empty green background. (textures example does the same) It also prints this error:

QEglContext::createSurface(): Unable to create EGL surface, error = 0x300b*** glibc detected *** ./hellogl_es2: double free or corruption (!prev) 0x0002a570 ***

Also, on serial console, there is a backtrace of error: 8130.backtrace.txt

I followed the instructions on http://processors.wiki.ti.com/index.php/SGXDbg to no avail. As suggested by https://gforge.ti.com/gf/download/docmanfileversion/265/4572/qt_powervr_dbg.txt, I applied the patch from https://gforge.ti.com/gf/download/docmanfileversion/264/4456/qt_wsegl_1.6.tar.gz

The output of gfx_check.sh: 0871.gfx_check.txt

Am I missing something? Any suggestions about this issue?

Thanks,

Fatih