Hi:
we'are migrate our AVM from visionSDK 3.05 to VisionSDK 3.08
On visionSDK 3.05 with QT 5.6, the AVM is ok:
on visionSDK3.08 with QT 5.11
It looks that on visonSDK3.08, the OpenGL suface is ovewrite by QT window surface,
please help check the log at attachment.
Thanks.
07-20-20 43:14.614 root@dra7xx-evm:/opt/ecarx/apps/avm# 07-20-20 43:14.615 root@dra7xx-evm:/opt/ecarx/apps/avm# 07-20-20 43:16.015 root@dra7xx-evm:/opt/ecarx/apps/avm# 07-20-20 43:17.027 root@dra7xx-evm:/opt/ecarx/apps/avm# ./avm_qt_app avm 07-20-20 43:17.114 ##########################run model is 2 07-20-20 43:17.115 07-20-20 43:17.420 [AVMS][9440891]log_init. server log_to_console=1, log_to_shm=1 07-20-20 43:17.522 [AVMS][9440989]AvmGpu::avm_gpu_load_db_light. [1]=2004, [2]=2004, [3]=1927, [4]=1927 07-20-20 43:17.525 [AVMS][9441019]AvmGpu::avm_gpu_load_db_light. act_num [1]=233, [2]=233, [3]=174, [4]=174 07-20-20 43:17.562 [AVMS][9441068]avm_gpu_load_db_fisheye. f: offset(-5.000000) 07-20-20 43:17.563 [AVMS][9441068]avm_gpu_load_db_fisheye. r: offset(-5.000000) 07-20-20 43:17.563 [AVMS][9441069]avm_gpu_load_db_fisheye. fc: offset(-5.000000) 07-20-20 43:17.564 [AVMS][9441070]avm_gpu_load_db_fisheye. fc: offset(0.000000) 07-20-20 43:17.568 [AVMS][9441071]avm_gpu_load_db_fisheye. fc: offset(0.000000) 07-20-20 43:17.605 [AVMS][9441071]avm_gpu_load_db_fisheye. rc: offset(-5.000000) 07-20-20 43:17.605 [AVMS][9441072]AvmGpu::avm_gpu_init_avm_table_data. cost 166 ms, struct num=130776 07-20-20 43:17.606 [AVMS][9441078]OverlayDraw::pre_load_radar_data. file 'avm_qt_app_res/data/radar_block.db' cost 5 ms 07-20-20 43:17.607 [AVMS][9441100]avm_gpu_load_db_fisheye. f: offset(-5.000000) 07-20-20 43:17.607 [AVMS][9441100]avm_gpu_load_db_fisheye. r: offset(-5.000000) 07-20-20 43:17.608 [AVMS][9441101]avm_gpu_load_db_fisheye. fc: offset(-5.000000) 07-20-20 43:17.609 [AVMS][9441102]avm_gpu_load_db_fisheye. fc: offset(0.000000) 07-20-20 43:17.609 [AVMS][9441102]avm_gpu_load_db_fisheye. fc: offset(0.000000) 07-20-20 43:17.610 [AVMS][9441103]avm_gpu_load_db_fisheye. rc: offset(-5.000000) 07-20-20 43:17.611 [AVMS][9441103]AvmGpu::avm_gpu_init_avm_table_data. cost 4 ms, struct num=130776 07-20-20 43:17.613 [AVMS][9441107]OverlayDraw::pre_load_radar_data. file 'avm_qt_app_res/data/radar_block.db' cost 2 ms 07-20-20 43:18.396 Using Wayland-EGL 07-20-20 43:18.399 wlpvr: PVR Services Initialised 07-20-20 43:18.517 Non-blocking swap buffers not supported. Subsurface rendering can be affected. 07-20-20 43:18.517 wlpvr: Creating Wayland Client surface 2 buffers for process pid=11357! 07-20-20 43:18.518 Non-blocking swap buffers not supported. Subsurface rendering can be affected. 07-20-20 43:18.519 wlpvr: Creating Wayland Client surface 2 buffers for process pid=11357! 07-20-20 43:18.748 max texture 8 07-20-20 43:18.748 [AVMS][9442221]AvmGpu::avm_gpu_texture_init. tex[0] - uniform[3] 07-20-20 43:18.748 [AVMS][9442221]AvmGpu::avm_gpu_texture_init. tex[1] - uniform[1] 07-20-20 43:18.749 [AVMS][9442221]AvmGpu::avm_gpu_texture_init. tex[2] - uniform[0] 07-20-20 43:18.749 [AVMS][9442221]AvmGpu::avm_gpu_texture_init. tex[3] - uniform[2] 07-20-20 43:18.749 [AVMS][9442221]SummWidget::initializeGL. avm_gpu_texture_init ok 07-20-20 43:18.750 [AVMS][9442222]SummWidget::initializeGL. avm_gpu_postion_init ok 07-20-20 43:18.750 [AVMS][9442222]SummWidget::initializeGL. avm_gpu_set_view ok 07-20-20 43:18.750 [AVMS][9442247]SummWidget::initializeGL. gen_model_vbo 07-20-20 43:18.750 QOpenGLContext::currentContext()->nativeHandle() is NULL 07-20-20 43:18.752 get EGL display 07-20-20 43:18.793 Non-blocking swap buffers not supported. Subsurface rendering can be affected. 07-20-20 43:18.793 wlpvr: Creating Wayland Client surface 2 buffers for process pid=11357! 07-20-20 43:18.793 [AVMS][9442291]SummWidget::initializeGL. init success 07-20-20 43:18.795 SummWidget::paintGL 07-20-20 43:18.844 Non-blocking swap buffers not supported. Subsurface rendering can be affected. 07-20-20 43:18.846 wlpvr: Creating Wayland Client surface 2 buffers for process pid=11357! 07-20-20 43:19.038 max texture 8 07-20-20 43:19.038 [AVMS][9442510]AvmGpu::avm_gpu_texture_init. tex[0] - uniform[3] 07-20-20 43:19.038 [AVMS][9442510]AvmGpu::avm_gpu_texture_init. tex[1] - uniform[1] 07-20-20 43:19.038 [AVMS][9442510]AvmGpu::avm_gpu_texture_init. tex[2] - uniform[0] 07-20-20 43:19.039 [AVMS][9442510]AvmGpu::avm_gpu_texture_init. tex[3] - uniform[2] 07-20-20 43:19.080 Non-blocking swap buffers not supported. Subsurface rendering can be affected. 07-20-20 43:19.081 wlpvr: Creating Wayland Client surface 2 buffers for process pid=11357! 07-20-20 43:19.121 [AVMS][9442592]SurroundWidget::initializeGL. init success 07-20-20 43:19.122 SurroundWidget::paintGL 07-20-20 43:19.122 Using the 'xdg-shell-v6' shell integration 07-20-20 43:19.123 p avm is 3b94a0 07-20-20 43:19.163 SummWidget::paintGL 07-20-20 43:19.163 SurroundWidget::paintGL 07-20-20 43:19.164 Non-blocking swap buffers not supported. Subsurface rendering can be affected. 07-20-20 43:19.165 wlpvr: Creating Wayland Client surface 2 buffers for process pid=11357! 07-20-20 43:19.201 wlpvr: Creating Wayland Client surface 2 buffers for process pid=11357! 07-20-20 43:20.088 [AVMS][9443602]ModelLoader::Load 'avm_qt_app_res/SX12_6_22/SX12.3DS'. min_x=-1.07, min_y=0.00, min_z=-2.29 07-20-20 43:20.091 [AVMS][9443602]ModelLoader::Load 'avm_qt_app_res/SX12_6_22/SX12.3DS'. max_x=1.07, max_y=1.67, max_z=2.29 07-20-20 43:20.133 [AVMS][9443612]ModelDraw::pre_load_model_data. file avm_qt_app_res/SX12_6_22/SX12.3DS cost 1320 ms 07-20-20 43:20.134 [AVMS][9443613]ModelDraw::pre_load_car_data. ini file, det=-1.40 07-20-20 43:20.134 [AVMS][9443613]ModelDraw::pre_load_car_data. ini file, det=-1.40 07-20-20 43:20.136 [AVMS][9443644]ModelDraw::load_model. vert_size=386532, normal_size=386532, uv_size=1, idx_size=128844 07-20-20 43:20.180 [AVMS][9443651]ModelLoader::postLoadGLTexture. Couldn't load Image: avm_qt_app_res/SX12_6_22/BULE.PNG 07-20-20 43:20.180 [AVMS][9443651]ModelLoader::postLoadGLTexture. Couldn't load Image: avm_qt_app_res/SX12_6_22/C00.PNG 07-20-20 43:20.181 [AVMS][9443651]ModelLoader::postLoadGLTexture. Couldn't load Image: avm_qt_app_res/SX12_6_22/GRAY.PNG 07-20-20 43:20.181 [AVMS][9443651]ModelLoader::postLoadGLTexture. Couldn't load Image: avm_qt_app_res/SX12_6_22/GREEN.PNG 07-20-20 43:20.181 [AVMS][9443658]ModelDraw::load_model. vert_size=386532, normal_size=386532, uv_size=1, idx_size=128844 07-20-20 43:20.182 ### Display [0]: CRTC = 31, Connector = 29, format = 0x34325258 07-20-20 43:20.182 Mode chosen [1920x720] : Clock => 85614, Vertical refresh => 60, Type => 72 07-20-20 43:20.182 Horizontal => 1920, 1939, 1943, 1952, 0 07-20-20 43:20.183 Vertical => 720, 727, 728, 731, 0 07-20-20 43:20.184 ### Primary display => ConnectorId = 29, Resolution = 1920x720 07-20-20 43:20.246 Using display 0x3 with EGL version 1.4 07-20-20 43:20.247 EGL Version "1.4 build 1.17@4948957" 07-20-20 43:20.250 EGL Vendor "Imagination Technologies" 07-20-20 43:20.263 EGL Extensions "EGL_KHR_image EGL_KHR_image_base EGL_KHR_gl_texture_2D_image EGL_KHR_gl_texture_cubemap_image EGL_KHR_gl_renderbuffer_image EGL_IMG_cl_image EGL_KHR_fence_sync EGL_IMG_context_priority EGL_IMG_hibernate_process EGL_IMG_image_plane_attribs EGL_KHR_surfaceless_context EGL_KHR_wait_sync EGL_KHR_create_context EGL_WL_bind_wayland_display EGL_EXT_image_dma_buf_import" 07-20-20 43:20.271 RGBA2YUVSurface wid 64 height 64 07-20-20 43:20.272 data addr 0xaed6c7c8 07-20-20 43:20.272 dma fd 0x18 07-20-20 43:20.272 width 64 07-20-20 43:20.272 height 64 07-20-20 43:20.272 EGLWindowDisplay 0x3 07-20-20 43:20.272 outTexIndex 0x111710 07-20-20 43:20.272 outTex 0x111710 07-20-20 43:20.273 Create YUV surface ok :width 64 height 64 07-20-20 43:20.273 No memory 07-20-20 43:20.273 [AVMS][9443774]ModelLoader::postLoadGLTexture. Couldn't load Image: avm_qt_app_res/SX12_6_22/RED.PNG 07-20-20 43:20.273 [AVMS][9443774]ModelLoader::postLoadGLTexture. Couldn't load Image: avm_qt_app_res/SX12_6_22/SILVER.PNG 07-20-20 43:20.274 [AVMS][9443774]ModelLoader::postLoadGLTexture. Couldn't load Image: avm_qt_app_res/SX12_6_22/WHITE.PNG 07-20-20 43:20.274 FrontTextureData.data() data addr 0xa8dbc008 07-20-20 43:20.274 data addr 0xa8dbc008 07-20-20 43:20.274 FrontTextureData.data() data addr 0xa8dbc008 07-20-20 43:20.274 data addr 0xa8dbc008 07-20-20 43:20.274 dma fd 0x19 07-20-20 43:20.275 width 1280 07-20-20 43:20.275 height 720 07-20-20 43:20.275 EGLWindowDisplay 0x3 07-20-20 43:20.275 dma fd 0x1a 07-20-20 43:20.275 width 1280 07-20-20 43:20.275 height 720 07-20-20 43:20.276 EGLWindowDisplay 0x3 07-20-20 43:20.276 outTexIndex 0x122881 07-20-20 43:20.276 outTex 0x122881 07-20-20 43:20.276 data addr 0xa8c6a008 07-20-20 43:20.276 dma fd 0x1b 07-20-20 43:20.277 width 1280 07-20-20 43:20.277 height 720 07-20-20 43:20.277 EGLWindowDisplay 0x3 07-20-20 43:20.277 outTexIndex 0x1339f2 07-20-20 43:20.277 outTexIndex 0x144b63 07-20-20 43:20.282 outTex 0x1339f2 07-20-20 43:20.282 data addr 0xa8c6a008 07-20-20 43:20.283 dma fd 0x1b 07-20-20 43:20.283 outTex 0x144b63 07-20-20 43:20.283 data addr 0xa8b18008 07-20-20 43:20.283 width 1280 07-20-20 43:20.283 height 720 07-20-20 43:20.283 EGLWindowDisplay 0x3 07-20-20 43:20.284 dma fd 0x1c 07-20-20 43:20.284 width 1280 07-20-20 43:20.284 outTexIndex 0x155cd4 07-20-20 43:20.284 height 720 07-20-20 43:20.285 EGLWindowDisplay 0x3 07-20-20 43:20.305 outTex 0x155cd4 07-20-20 43:20.306 data addr 0xa8b18008 07-20-20 43:20.306 dma fd 0x1c 07-20-20 43:20.306 width 1280 07-20-20 43:20.307 height 720 07-20-20 43:20.307 EGLWindowDisplay 0x3 07-20-20 43:20.307 outTexIndex 0x166e45 07-20-20 43:20.307 outTex 0x166e45 07-20-20 43:20.308 data addr 0xa89c6008 07-20-20 43:20.308 outTexIndex 0x177fb6 07-20-20 43:20.308 outTex 0x177fb6 07-20-20 43:20.308 data addr 0xa89c6008 07-20-20 43:20.309 dma fd 0x1d 07-20-20 43:20.309 width 1280 07-20-20 43:20.309 height 720 07-20-20 43:20.309 EGLWindowDisplay 0x3 07-20-20 43:20.310 dma fd 0x1e 07-20-20 43:20.310 width 1280 07-20-20 43:20.310 height 720 07-20-20 43:20.310 EGLWindowDisplay 0x3 07-20-20 43:20.310 outTexIndex 0x189127 07-20-20 43:20.311 outTex 0x189127 07-20-20 43:20.311 outTexIndex 0x19a298 07-20-20 43:20.313 outTex 0x19a298 07-20-20 43:20.602 [AVMS][9444116]SyncVideoGetter::fetchSyncVideoProcess. thread. start to wait synced video 07-20-20 43:20.657 SurroundWidget::paintGL 07-20-20 43:20.657 SummWidget::paintGL 07-20-20 43:20.658 SurroundWidget::paintGL 07-20-20 43:20.699 SummWidget::paintGL 07-20-20 43:20.699 SurroundWidget::paintGL 07-20-20 43:20.700 SummWidget::paintGL 07-20-20 43:20.742 SurroundWidget::paintGL 07-20-20 43:20.743 SummWidget::paintGL 07-20-20 43:20.784 SurroundWidget::paintGL 07-20-20 43:20.785 SummWidget::paintGL 07-20-20 43:20.820 SurroundWidget::paintGL 07-20-20 43:20.864 SummWidget::paintGL 07-20-20 43:20.867 SurroundWidget::paintGL 07-20-20 43:20.901 SummWidget::paintGL 07-20-20 43:20.946 SurroundWidget::paintGL 07-20-20 43:20.947 SummWidget::paintGL 07-20-20 43:20.987 SurroundWidget::paintGL 07-20-20 43:20.989 SummWidget::paintGL 07-20-20 43:21.030 SurroundWidget::paintGL 07-20-20 43:21.085 SummWidget::paintGL 07-20-20 43:21.094 SurroundWidget::paintGL 07-20-20 43:21.096 SummWidget::paintGL 07-20-20 43:21.114 SurroundWidget::paintGL 07-20-20 43:21.115 SummWidget::paintGL 07-20-20 43:21.152 SurroundWidget::paintGL 07-20-20 43:21.154 SummWidget::paintGL 07-20-20 43:21.194 SurroundWidget::paintGL 07-20-20 43:21.195 SummWidget::paintGL 07-20-20 43:21.236 SurroundWidget::paintGL 07-20-20 43:21.237 SummWidget::paintGL 07-20-20 43:21.274 SurroundWidget::paintGL 07-20-20 43:21.314 SummWidget::paintGL 07-20-20 43:21.358 SurroundWidget::paintGL 07-20-20 43:21.359 SummWidget::paintGL 07-20-20 43:21.398 SurroundWidget::paintGL 07-20-20 43:21.399 SummWidget::paintGL 07-20-20 43:21.439 SurroundWidget::paintGL 07-20-20 43:21.440 SummWidget::paintGL 07-20-20 43:21.540 SurroundWidget::paintGL 07-20-20 43:21.540 SummWidget::paintGL 07-20-20 43:21.540 SurroundWidget::paintGL 07-20-20 43:21.541 SummWidget::paintGL 07-20-20 43:21.640 SurroundWidget::paintGL 07-20-20 43:21.640 SummWidget::paintGL 07-20-20 43:21.641 SurroundWidget::paintGL 07-20-20 43:21.641 SummWidget::paintGL 07-20-20 43:21.642 SurroundWidget::paintGL 07-20-20 43:21.742 SummWidget::paintGL 07-20-20 43:21.742 SurroundWidget::paintGL 07-20-20 43:21.742 SummWidget::paintGL 07-20-20 43:21.743 SurroundWidget::paintGL 07-20-20 43:21.744 SummWidget::paintGL 07-20-20 43:21.841 SurroundWidget::paintGL 07-20-20 43:21.842 SummWidget::paintGL 07-20-20 43:21.842 SurroundWidget::paintGL 07-20-20 43:21.843 SummWidget::paintGL 07-20-20 43:21.944 SurroundWidget::paintGL 07-20-20 43:21.945 SummWidget::paintGL 07-20-20 43:21.945 SurroundWidget::paintGL 07-20-20 43:21.948 SummWidget::paintGL 07-20-20 43:22.140 SurroundWidget::paintGL 07-20-20 43:22.140 SummWidget::paintGL 07-20-20 43:22.140 SurroundWidget::paintGL 07-20-20 43:22.140 SummWidget::paintGL 07-20-20 43:22.140 SurroundWidget::paintGL 07-20-20 43:22.140 SummWidget::paintGL 07-20-20 43:22.141 SurroundWidget::paintGL 07-20-20 43:22.141 SummWidget::paintGL 07-20-20 43:22.142 SurroundWidget::paintGL 07-20-20 43:22.240 SummWidget::paintGL 07-20-20 43:22.241 SurroundWidget::paintGL 07-20-20 43:22.241 SummWidget::paintGL 07-20-20 43:22.241 SurroundWidget::paintGL 07-20-20 43:22.242 SummWidget::paintGL 07-20-20 43:22.340 SurroundWidget::paintGL 07-20-20 43:22.340 SummWidget::paintGL 07-20-20 43:22.340 SurroundWidget::paintGL 07-20-20 43:22.342 SummWidget::paintGL 07-20-20 43:22.439 SurroundWidget::paintGL 07-20-20 43:22.440 SummWidget::paintGL 07-20-20 43:22.440 SurroundWidget::paintGL 07-20-20 43:22.441 SummWidget::paintGL 07-20-20 43:22.611 ^C