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.

Problem:QEglContext::createSurface(): Unable to create EGL surface, error = 0x300b

Hello,when I executed qt demo with opengl,an error occurred: QEglContext::createSurface(): Unable to create EGL surface, error = 0x300b

I use the Graphics_SDK_setuplinux_hardfp_5_01_01_01 and Linux3.12.10,and I can run the demo in gfxsdkdemos/ogles.

I followed your guide to integrate SGX accelerated Qt :http://processors.wiki.ti.com/index.php/Building_Qt_with_OpenGL_ES_accelerated_by_SGX#Building_Qt_with_OpenGL_ES

So I already use the 0001-wsegl2-support.patch,but it didn't work.

  • Hi Eric,

    I'll ask the factory team to help with your issue.

    Best regards,
    Miroslav

  • I have tried many times and there is the mistake:

    [root@EM335X /mnt/nandflash]#./textures -qws -display powervr
    PVR: Hint: Setting WindowSystem to libpvrQWSWSEGL.so
    PVR:(Error): PVRSRVMetricsTimeNow: using (potentially) low resolution timer [97, /pvr_metrics.c]
    PVR:(Error): LoadWSModule: Window system is wrong version libpvrQWSWSEGL.so = (2) -> OGLES = (4) [86, /generic_ws.c]
    PVR:
    PVR: Memory Stats
    PVR: ------------
    PVR:
    PVR: High Water Mark = 4200 bytes
    PVR:
    PVR: 4200 bytes still allocated in 1 allocations
    PVR:
    PVR[   35.043668] PVR_K:(Error): PVRSRVCreateDCSwapChainKM: Failed to create 3rd party SwapChain [1413, home/hzc/work/OpenGL/Graphics_SDK_5_01_01_01/GFX_Linux_KM/services4/srvkm/common/deviceclass.c]
    : 1   -  4200 bytes at 0x3b3d8 - eurasiacon/imgegl/tls.c:31
    PVR:
    PVR:(Warning): PVR2DEnumerateDevices: display device name too long, truncating [142, /pvr2dinit.c]
    PVR:
    PVR: Memory Stats
    PVR: ------------
    PVR:
    PVR: High Water Mark = 4200 bytes
    PVR:
    PVR: 4200 bytes still allocated in 1 allocations
    PVR:
    PVR: 1   -  4200 bytes at 0x3b3d8 - eurasiacon/imgegl/tls.c:31
    PVR:
    PVR:
    PVR: Memory Stats
    PVR: ------------
    PVR:
    PVR: High Water Mark = 4200 bytes
    PVR:
    PVR: 4200 bytes still allocated in 1 allocations
    PVR:
    PVR: 1   -  4200 bytes at 0x3b3d8 - eurasiacon/imgegl/tls.c:31
    PVR:
    PVR:(Warning): PVR2DEnumerateDevices: display device name too long, truncating [142, /pvr2dinit.c]
    PVR:
    PVR: Memory Stats
    PVR: ------------
    PVR:
    PVR: High Water Mark = 4200 bytes
    PVR:
    PVR: 4200 bytes still allocated in 1 allocations
    PVR:
    PVR: 1   -  4200 bytes at 0x3b3d8 - eurasiacon/imgegl/tls.c:31
    PVR:
    PVR:(Error): PVRSRVCreateDCSwapChain: Error - 3 returned [497, /bridged_pvr_dc_glue.c]
    PVR:(Error): PVR2DCreateFlipChain: can't create flipchain [208, /pvr2dflip.c]
    PVR:(Warning): Running StartUpMemSpeedTest. High memory watermark will be ruined. Disable using apphint EnableMemorySpeedTest [45, /metrics.c]
    PVR: Bytes  :    512    1024    2048    4096    8192   16384   32768   65536  131072
    PVR: ---------------|-------|-------|-------|-------|-------|-------|-------|-------|
    PVR: H -> VB:   0.00    0.00    0.00    0.04    0.00    0.16    0.00    0.00    0.00
    PVR: H ->  H:   0.00    0.00    0.00    0.00    0.08    0.16    0.00    0.62    0.00
    QEglContext::createSurface(): Unable to create EGL surface, error = 0x300b
    PVR:
    PVR:  Texture allocation HWM = 8 bytes
    PVR:
    PVR: Memory Stats
    PVR: ------------
    PVR:
    PVR: High Water Mark = 2134022 bytes
    PVR:
    PVR: 4328 bytes still allocated in 2 allocations
    PVR:
    PVR: 1   -   128 bytes at 0x27678 - eurasiacon/imgegl/srv.c:472
    PVR: 2   -  4200 bytes at 0x3b3d8 - eurasiacon/imgegl/tls.c:31
    PVR:
    PVR:(Warning): HW Recovery stats: Host: 0        uKernel: 0 [124, /sgxrender_context.c]
    PVR:(Warning): PB Grow Count - 0x0, PB Shrink Count - 0x0 [583, /sgxpb.c]
    PVR:
    PVR: Memory Stats
    PVR: ------------
    PVR:
    PVR: High Water Mark = 2134022 bytes
    PVR:
    PVR: 4200 bytes still allocated in 1 allocations
    PVR:
    PVR: 1   -  4200 bytes at 0x3b3d8 - eurasiacon/imgegl/tls.c:31
    PVR:
    PVR:
    PVR:(Error): LoadWSModule: Window system is wrong version libpvrQWSWSEGL.so = (2) -> OGLES = (4) [86, /generic_ws.c]
    PVR:
    PVR: Memory Stats
    PVR: ------------
    PVR:
    PVR: High Water Mark = 2134022 bytes
    PVR:
    PVR: 4200 bytes still allocated in 1 allocations
    PVR:
    PVR: 1   -  4200 bytes at 0x3b3d8 - eurasiacon/imgegl/tls.c:31
    PVR:
    PVR:(Warning): PVR2DEnumerateDevices: display device name too long, truncating [142, /pvr2dinit.c]
    PVR:
    PVR: Memory Stats
    PVR: ------------
    PVR:
    PVR: High Water Mark = 2134022 bytes
    PVR:
    PVR: 4200 bytes still allocated in 1 allocations
    PVR:
    PVR: 1   -  4200 bytes at 0x3b3d8 - eurasiacon/imgegl/tls.c:31
    PVR:
    PVR:(Warning): Running StartUpMemSpeedTest. High memory watermark will be ruined. Disable using apphint EnableMemorySpeedTest [45, /metrics.c]
    PVR: Bytes  :    512    1024    2048    4096    8192   16384   32768   65536  131072
    PVR: ---------------|-------|-------|-------|-------|-------|-------|-------|-------|
    PVR: H -> VB:   0.00    0.00    0.02    0.00    0.08    0.00    0.00    0.00    0.00
    PVR: H ->  H:   0.00    0.01    0.02    0.00    0.00    0.00    0.00    0.62    0.00
    QEglContext::createSurface(): Unable to create EGL surface, error = 0x300b
    PVR:
    PVR:  Texture allocation HWM = 8 bytes
    PVR:
    PVR: Memory Stats
    PVR: ------------
    PVR:
    PVR: High Water Mark = 2134022 bytes
    PVR:
    PVR: 4328 bytes still allocated in 2 allocations
    PVR:
    PVR: 1   -   128 bytes at 0x40788 - eurasiacon/imgegl/srv.c:472
    PVR: 2   -  4200 bytes at 0x3b3d8 - eurasiacon/imgegl/tls.c:31
    PVR:
    PVR:(Warning): HW Recovery stats: Host: 0        uKernel: 0 [124, /sgxrender_context.c]
    PVR:(Warning): PB Grow Count - 0x0, PB Shrink Count - 0x0 [583, /sgxpb.c]
    PVR:
    PVR: Memory Stats
    PVR: ------------
    PVR:
    PVR: High Water Mark = 2134022 bytes
    PVR:
    PVR: 4200 bytes still allocated in 1 allocations
    PVR:
    PVR: 1   -  4200 bytes at 0x3b3d8 - eurasiacon/imgegl/tls.c:31
    PVR:
    PVR:
    PVR:(Error): LoadWSModule: Window system is wrong version libpvrQWSWSEGL.so = (2) -> OGLES = (4) [86, /generic_ws.c]
    PVR:
    PVR: Memory Stats
    PVR: ------------
    PVR:
    PVR: High Water Mark = 2134022 bytes
    PVR:
    PVR: 4200 bytes still allocated in 1 allocations
    PVR:
    PVR: 1   -  4200 bytes at 0x3b3d8 - eurasiacon/imgegl/tls.c:31
    PVR:
    PVR:(Warning): PVR2DEnumerateDevices: display device name too long, truncating [142, /pvr2dinit.c]
    PVR:
    PVR: Memory Stats
    PVR: ------------
    PVR:
    PVR: High Water Mark = 2134022 bytes
    PVR:
    PVR: 4200 bytes still allocated in 1 allocations
    PVR:
    PVR: 1   -  4200 bytes at 0x3b3d8 - eurasiacon/imgegl/tls.c:31
    PVR:
    PVR:(Warning): Running StartUpMemSpeedTest. High memory watermark will be ruined. Disable using apphint EnableMemorySpeedTest [45, /metrics.c]
    PVR: Bytes  :    512    1024    2048    4096    8192   16384   32768   65536  131072
    PVR: ---------------|-------|-------|-------|-------|-------|-------|-------|-------|
    PVR: H -> VB:   0.00    0.01    0.00    0.00    0.08    0.16    0.00    0.62    1.25
    PVR: H ->  H:   0.00    0.00    0.00    0.00    0.08    0.00    0.00    0.62    1.25
    QEglContext::createSurface(): Unable to create EGL surface, error = 0x300b
    PVR:
    PVR:  Texture allocation HWM = 8 bytes
    PVR:
    PVR: Memory Stats
    PVR: ------------
    PVR:
    PVR: High Water Mark = 2134022 bytes
    PVR:
    PVR: 4328 bytes still allocated in 2 allocations
    PVR:
    PVR: 1   -   128 bytes at 0x412e8 - eurasiacon/imgegl/srv.c:472
    PVR: 2   -  4200 bytes at 0x3b3d8 - eurasiacon/imgegl/tls.c:31
    PVR:
    PVR:(Warning): HW Recovery stats: Host: 0        uKernel: 0 [124, /sgxrender_context.c]
    PVR:(Warning): PB Grow Count - 0x0, PB Shrink Count - 0x0 [583, /sgxpb.c]
    PVR:
    PVR: Memory Stats
    PVR: ------------
    PVR:
    PVR: High Water Mark = 2134022 bytes
    PVR:
    PVR: 4200 bytes still allocated in 1 allocations
    PVR:
    PVR: 1   -  4200 bytes at 0x3b3d8 - eurasiacon/imgegl/tls.c:31
    PVR:
    PVR:
    PVR:(Error): LoadWSModule: Window system is wrong version libpvrQWSWSEGL.so = (2) -> OGLES = (4) [86, /generic_ws.c]
    PVR:
    PVR: Memory Stats
    PVR: ------------
    PVR:
    PVR: High Water Mark = 2134022 bytes
    PVR:
    PVR: 4200 bytes still allocated in 1 allocations
    PVR:
    PVR: 1   -  4200 bytes at 0x3b3d8 - eurasiacon/imgegl/tls.c:31
    PVR:
    PVR:(Warning): PVR2DEnumerateDevices: display device name too long, truncating [142, /pvr2dinit.c]
    PVR:
    PVR: Memory Stats
    PVR: ------------
    PVR:
    PVR: High Water Mark = 2134022 bytes
    PVR:
    PVR: 4200 bytes still allocated in 1 allocations
    PVR:
    PVR: 1   -  4200 bytes at 0x3b3d8 - eurasiacon/imgegl/tls.c:31
    PVR:
    PVR:(Warning): Running StartUpMemSpeedTest. High memory watermark will be ruined. Disable using apphint EnableMemorySpeedTest [45, /metrics.c]
    PVR: Bytes  :    512    1024    2048    4096    8192   16384   32768   65536  131072
    PVR: ---------------|-------|-------|-------|-------|-------|-------|-------|-------|
    PVR: H -> VB:   0.00    0.01    0.00    0.00    0.00    0.00    0.00    0.00    0.00
    PVR: H ->  H:   0.00    0.00    0.00    0.04    0.08    0.00    0.00    0.00    0.00
    QEglContext::createSurface(): Unable to create EGL surface, error = 0x300b
    PVR:
    PVR:  Texture allocation HWM = 8 bytes
    PVR:
    PVR: Memory Stats
    PVR: ------------
    PVR:
    PVR: High Water Mark = 2134022 bytes
    PVR:
    PVR: 4328 bytes still allocated in 2 allocations
    PVR:
    PVR: 1   -   128 bytes at 0x41a10 - eurasiacon/imgegl/srv.c:472
    PVR: 2   -  4200 bytes at 0x3b3d8 - eurasiacon/imgegl/tls.c:31
    PVR:
    PVR:(Warning): HW Recovery stats: Host: 0        uKernel: 0 [124, /sgxrender_context.c]
    PVR:(Warning): PB Grow Count - 0x0, PB Shrink Count - 0x0 [583, /sgxpb.c]
    PVR:
    PVR: Memory Stats
    PVR: ------------
    PVR:
    PVR: High Water Mark = 2134022 bytes
    PVR:
    PVR: 4200 bytes still allocated in 1 allocations
    PVR:
    PVR: 1   -  4200 bytes at 0x3b3d8 - eurasiacon/imgegl/tls.c:31
    PVR:
    PVR:
    PVR:(Error): LoadWSModule: Window system is wrong version libpvrQWSWSEGL.so = (2) -> OGLES = (4) [86, /generic_ws.c]
    PVR:
    PVR: Memory Stats
    PVR: ------------
    PVR:
    PVR: High Water Mark = 2134022 bytes
    PVR:
    PVR: 4200 bytes still allocated in 1 allocations
    PVR:
    PVR: 1   -  4200 bytes at 0x3b3d8 - eurasiacon/imgegl/tls.c:31
    PVR:
    PVR:(Warning): PVR2DEnumerateDevices: display device name too long, truncating [142, /pvr2dinit.c]
    PVR:
    PVR: Memory Stats
    PVR: ------------
    PVR:
    PVR: High Water Mark = 2134022 bytes
    PVR:
    PVR: 4200 bytes still allocated in 1 allocations
    PVR:
    PVR: 1   -  4200 bytes at 0x3b3d8 - eurasiacon/imgegl/tls.c:31
    PVR:
    PVR:(Warning): Running StartUpMemSpeedTest. High memory watermark will be ruined. Disable using apphint EnableMemorySpeedTest [45, /metrics.c]
    PVR: Bytes  :    512    1024    2048    4096    8192   16384   32768   65536  131072
    PVR: ---------------|-------|-------|-------|-------|-------|-------|-------|-------|
    PVR: H -> VB:   0.00    0.00    0.00    0.04    0.00    0.00    0.00    0.00    0.00
    PVR: H ->  H:   0.00    0.00    0.02    0.00    0.00    0.00    0.00    0.00    1.25
    QEglContext::createSurface(): Unable to create EGL surface, error = 0x300b
    PVR:
    PVR:  Texture allocation HWM = 8 bytes
    PVR:
    PVR: Memory Stats
    PVR: ------------
    PVR:
    PVR: High Water Mark = 2134022 bytes
    PVR:
    PVR: 4328 bytes still allocated in 2 allocations
    PVR:
    PVR: 1   -   128 bytes at 0x42560 - eurasiacon/imgegl/srv.c:472
    PVR: 2   -  4200 bytes at 0x3b3d8 - eurasiacon/imgegl/tls.c:31
    PVR:
    PVR:(Warning): HW Recovery stats: Host: 0        uKernel: 0 [124, /sgxrender_context.c]
    PVR:(Warning): PB Grow Count - 0x0, PB Shrink Count - 0x0 [583, /sgxpb.c]
    PVR:
    PVR: Memory Stats
    PVR: ------------
    PVR:
    PVR: High Water Mark = 2134022 bytes
    PVR:
    PVR: 4200 bytes still allocated in 1 allocations
    PVR:
    PVR: 1   -  4200 bytes at 0x3b3d8 - eurasiacon/imgegl/tls.c:31
    PVR:
    PVR:
    PVR:(Error): LoadWSModule: Window system is wrong version libpvrQWSWSEGL.so = (2) -> OGLES = (4) [86, /generic_ws.c]
    PVR:
    PVR: Memory Stats
    PVR: ------------
    PVR:
    PVR: High Water Mark = 2134022 bytes
    PVR:
    PVR: 4200 bytes still allocated in 1 allocations
    PVR:
    PVR: 1   -  4200 bytes at 0x3b3d8 - eurasiacon/imgegl/tls.c:31
    PVR:
    PVR:(Warning): PVR2DEnumerateDevices: display device name too long, truncating [142, /pvr2dinit.c]
    PVR:
    PVR: Memory Stats
    PVR: ------------
    PVR:
    PVR: High Water Mark = 2134022 bytes
    PVR:
    PVR: 4200 bytes still allocated in 1 allocations
    PVR:
    PVR: 1   -  4200 bytes at 0x3b3d8 - eurasiacon/imgegl/tls.c:31
    PVR:
    PVR:(Warning): Running StartUpMemSpeedTest. High memory watermark will be ruined. Disable using apphint EnableMemorySpeedTest [45, /metrics.c]
    PVR: Bytes  :    512    1024    2048    4096    8192   16384   32768   65536  131072
    PVR: ---------------|-------|-------|-------|-------|-------|-------|-------|-------|
    PVR: H -> VB:   0.00    0.00    0.00    0.04    0.00    0.00 1342177280.00    0.00    0.00
    PVR: H ->  H:   0.00    0.00    0.02 167772160.00    0.08    0.00    0.31    0.00    1.25
    QEglContext::createSurface(): Unable to create EGL surface, error = 0x300b
    PVR:
    PVR:  Texture allocation HWM = 8 bytes
    PVR:
    PVR: Memory Stats
    PVR: ------------
    PVR:
    PVR: High Water Mark = 2134022 bytes
    PVR:
    PVR: 4328 bytes still allocated in 2 allocations
    PVR:
    PVR: 1   -   128 bytes at 0x42e00 - eurasiacon/imgegl/srv.c:472
    PVR: 2   -  4200 bytes at 0x3b3d8 - eurasiacon/imgegl/tls.c:31
    PVR:
    PVR:(Warning): HW Recovery stats: Host: 0        uKernel: 0 [124, /sgxrender_context.c]
    PVR:(Warning): PB Grow Count - 0x0, PB Shrink Count - 0x0 [583, /sgxpb.c]
    PVR:
    PVR: Memory Stats
    PVR: ------------
    PVR:
    PVR: High Water Mark = 2134022 bytes
    PVR:
    PVR: 4200 bytes still allocated in 1 allocations
    PVR:
    PVR: 1   -  4200 bytes at 0x3b3d8 - eurasiacon/imgegl/tls.c:31
    PVR:
    PVR: