Uploaded image for project: 'Qt 3D Studio'
  1. Qt 3D Studio
  2. QT3DS-2152

Viewer application crashes

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Not Evaluated
    • Resolution: Duplicate
    • Affects Version/s: Qt 3D Studio 2.0
    • Fix Version/s: None
    • Component/s: Runtime 2.x
    • Labels:
      None
    • Environment:
      Windows 10
      Qt Creator 4.7.0 rc1(4.6.84)
      Qt 5.11.0 (MSVC 2017, 64 bit)
    • Platform/s:
      Windows

      Description

      Qt viewer crashes from 2nd run and onwards, when trying to run Qt 3D Studio presentation composited into a Qt Quick QML application targeting 5.10/5.11 64 bit on Windows 10.

      Tried to reproduce same bug on Mac OS with no luck, hence the bug is specific to Windows 10.

      The application runs successfully on first compile and run, but crashes the Qt Viewer on subsequent runs. After digging deeper, the culprit behind the crash was qtshadercache

      generated at C:\Users\<username>\AppData\Local\cache\qtshadercache

      Once this cache is deleted, the application runs successfully the next run, but crashed again in the subsequent runs. 

      Hence, reproducing the bug.

      Thus, for subsequent compilations and runs of the app, Qt tries to reuse the Shader cache and  causing the App crash. We get rid of cache, to force Qt to generate it again and thus the app doesn't crash on the subsequent RUN. 

       

      Attaching the application output/log for reference:

       

       

      13:38:05: Starting D:\Qt\Examples\Qt-5.11.0\build-3dstudioruntime2-Desktop_Qt_5_11_0_MSVC2017_64bit2-Debug\simpleqml\debug\simpleqml...
      
      QML debugging is enabled. Only use this in a safe environment.
      Requesting OpenGL ES 3.0 context succeeded
      Actual format is QSurfaceFormat(version 3.0, options QFlags<QSurfaceFormat::FormatOption>(), depthBufferSize 0, redBufferSize 8, greenBufferSize 8, blueBufferSize 8, alphaBufferSize 8, stencilBufferSize 0, samples 0, swapBehavior QSurfaceFormat::SwapBehavior(DefaultSwapBehavior), swapInterval 1, colorSpace QSurfaceFormat::ColorSpace(DefaultColorSpace), profile QSurfaceFormat::OpenGLContextProfile(NoProfile))
      renderer: ANGLE (NVIDIA GeForce GTX 1070 Direct3D11 vs_5_0 ps_5_0)
      vendor: Google Inc.
      version: OpenGL ES 3.0 (ANGLE 2.1.0.8613f4946861)
      use feature-limited GLES2 rendering path: false
      max lights per layer: 16
      GL_MAX_DRAW_BUFFERS: 8
      multisample textures: false
      texture lod: true
      packed depth-stencil: true
      norm16 textures: false
      extensions: QSet("GL_EXT_texture_filter_anisotropic", "GL_OES_texture_float", "GL_EXT_color_buffer_float", "GL_EXT_read_format_bgra", "GL_EXT_shader_texture_lod", "GL_EXT_robustness", "GL_ANGLE_translated_shader_source", "GL_ANGLE_texture_compression_dxt3", "GL_EXT_occlusion_query_boolean", "GL_OES_rgb8_rgba8", "GL_NV_fence", "GL_NV_pixel_buffer_object", "GL_EXT_frag_depth", "GL_ANGLE_texture_compression_dxt5", "GL_EXT_draw_buffers", "GL_OES_EGL_image", "GL_EXT_texture_rg", "GL_ANGLE_instanced_arrays", "GL_ANGLE_framebuffer_blit", "GL_OES_element_index_uint", "GL_OES_standard_derivatives", "GL_EXT_texture_format_BGRA8888", "GL_ANGLE_pack_reverse_row_order", "GL_OES_texture_half_float", "GL_OES_depth32", "GL_EXT_debug_marker", "GL_ANGLE_framebuffer_multisample", "GL_EXT_texture_compression_dxt1", "GL_ANGLE_lossy_etc_decode", "GL_ANGLE_texture_usage", "GL_EXT_sRGB", "GL_OES_packed_depth_stencil", "GL_EXT_discard_framebuffer", "GL_EXT_map_buffer_range", "GL_OES_texture_half_float_linear", "GL_OES_compressed_ETC1_RGB8_texture", "GL_OES_vertex_array_object", "GL_KHR_debug", "GL_OES_texture_float_linear", "GL_OES_get_program_binary", "GL_OES_mapbuffer", "GL_EXT_color_buffer_half_float", "GL_ANGLE_depth_texture", "GL_OES_texture_npot", "", "GL_EXT_blend_minmax", "GL_EXT_unpack_subimage", "GL_EXT_disjoint_timer_query", "GL_EXT_texture_storage", "GL_NV_pack_subimage")
      qt.scenegraph.general: windows render loop
      qt.scenegraph.general: Using sg animation driver
      qt.scenegraph.general: Animation Driver: using vsync: 16.67 ms
      q3ds.studio3d: creating engine
      q3ds.studio3d: created engine 0x1d17fd82a10
      q3ds.studio3d: source is now ":/presentation/barrel.uip"
      q3ds.scene: prepareEngineResetGlobal
      q3ds.uip: Switching to .uia file :/presentation/barrel.uia
      q3ds.perf: :/presentation/barrel.uia loaded in 0 ms
      q3ds.uip: Registered subpresentation :/presentation/barrel.uip as barrel
      q3ds.uip: Registered 1 data input entries
      q3ds.uip: Loaded data model metadata from :/q3ds/res/DataModelMetadata/en-us/MetaData.xml
      q3ds.perf: Mesh :/presentation/barrel/meshes/Barrel.mesh loaded in 0 ms
      q3ds.perf: Presentation :/presentation/barrel.uip loaded in 12 ms
      q3ds.scene: Registered font TitilliumWeb-Regular with family Titillium Web
      q3ds.scene: Building scene for ":/presentation/barrel.uip" SceneBuilderParams( QFlags(0x4) QSize(800, 480) 1 QQuickView(0x726fdbfc80) )
      q3ds.scene: Registered font Arimo-Regular with family Arimo
      q3ds.scene: Render target depth-stencil attachment uses D16 (no stencil)
      q3ds.scene: Loading image :/presentation/maps/barrel_barrel_Diffuse.png
      q3ds.perf: Image loaded in 82 ms
      q3ds.scene: Loading image :/presentation/maps/barrel_barrel_Specular.png
      q3ds.perf: Image loaded in 95 ms
      q3ds.scene: Loading image :/presentation/maps/barrel_barrel_Normal.png
      q3ds.perf: Image loaded in 114 ms
      q3ds.scene: Loading image :/presentation/maps/barrel_barrel_Emissive.png
      q3ds.perf: Image loaded in 57 ms
      q3ds.perf: Composing 1 layers in presentation barrel.uip
      q3ds.slideplayer: Setting slide deck with 1 slides
      q3ds.slideplayer: Setting internal state from 0 to 1
      q3ds.slideplayer: Handling current slide change: from slide "Slide1", to slide "Slide1"
      q3ds.slideplayer: Scheduling object "Light" to be hidden
      q3ds.slideplayer: Scheduling object "Camera" to be hidden
      q3ds.slideplayer: Scheduling object "Layer" to be hidden
      q3ds.slideplayer: Scheduling object "Text2" to be hidden
      q3ds.slideplayer: Scheduling object "Barrel" to be hidden
      q3ds.slideplayer: Scheduling object "Text" to be hidden
      q3ds.slideplayer: Checking visibility for "Slide1"
      q3ds.slideplayer: The slides's ("Slide1") visibility is 1
      q3ds.slideplayer: Scheduling object "Light" to be shown
      q3ds.slideplayer: Scheduling object "Camera" to be shown
      q3ds.slideplayer: Scheduling object "Layer" to be shown
      q3ds.slideplayer: Scheduling object "Text2" to be shown
      q3ds.slideplayer: Scheduling object "Barrel" to be shown
      q3ds.slideplayer: Scheduling object "Text" to be shown
      q3ds.anim: Updating animations for slide (Slide1)
      q3ds.anim: Slide Scene-Slide1 has 1, 0, 0, 0, 0, 1, 0, 0, 1, 0, 0, 0 animated objects
      q3ds.scene: Layer Layer uses camera Camera
      q3ds.scene: Resize to QSize(800, 480) with viewport QRect(0,0 800x480) device pixel ratio 1
      q3ds.uip: Found 0 behavior instances in total
      q3ds.uip: Aspect engine reset
      q3ds.slideplayer: Setting internal state from 1 to 3
      q3ds.perf: Total setSource time (incl. subpresentations + Qt3D scene building): 733 ms
      qml: running: true
      qt.scenegraph.general: texture atlas dimensions: 2048x1024
      qt.scenegraph.general: R/G/B/A Buffers: 8 8 8 8
      qt.scenegraph.general: Depth Buffer: 24
      qt.scenegraph.general: Stencil Buffer: 8
      qt.scenegraph.general: Samples: 0
      qt.scenegraph.general: GL_VENDOR: Google Inc.
      qt.scenegraph.general: GL_RENDERER: ANGLE (NVIDIA GeForce GTX 1070 Direct3D11 vs_5_0 ps_5_0)
      qt.scenegraph.general: GL_VERSION: OpenGL ES 3.0 (ANGLE 2.1.0.8613f4946861)
      qt.scenegraph.general: GL_EXTENSIONS: GL_EXT_texture_filter_anisotropic GL_OES_texture_float GL_EXT_color_buffer_float GL_EXT_read_format_bgra GL_EXT_shader_texture_lod GL_EXT_robustness GL_ANGLE_translated_shader_source GL_ANGLE_texture_compression_dxt3 GL_EXT_occlusion_query_boolean GL_OES_rgb8_rgba8 GL_NV_fence GL_NV_pixel_buffer_object GL_EXT_frag_depth GL_ANGLE_texture_compression_dxt5 GL_EXT_draw_buffers GL_OES_EGL_image GL_EXT_texture_rg GL_ANGLE_instanced_arrays GL_ANGLE_framebuffer_blit GL_OES_element_index_uint GL_OES_standard_derivatives GL_EXT_texture_format_BGRA8888 GL_ANGLE_pack_reverse_row_order GL_OES_texture_half_float GL_OES_depth32 GL_EXT_debug_marker GL_ANGLE_framebuffer_multisample GL_EXT_texture_compression_dxt1 GL_ANGLE_lossy_etc_decode GL_ANGLE_texture_usage GL_EXT_sRGB GL_OES_packed_depth_stencil GL_EXT_discard_framebuffer GL_EXT_map_buffer_range GL_OES_texture_half_float_linear GL_OES_compressed_ETC1_RGB8_texture GL_OES_vertex_array_object GL_KHR_debug GL_OES_texture_float_linear GL_OES_get_program_binary GL_OES_mapbuffer GL_EXT_color_buffer_half_float GL_ANGLE_depth_texture GL_OES_texture_npot GL_EXT_blend_minmax GL_EXT_unpack_subimage GL_EXT_disjoint_timer_query GL_EXT_texture_storage GL_NV_pack_subimage
      qt.scenegraph.general: Max Texture Size: 16384
      qt.scenegraph.general: Debug context: false
      q3ds.scene: Resize to QSize(1160, 600) with viewport QRect(0,0 1160x600) device pixel ratio 1
      q3ds.studio3d: Setting external render target size on surface selector 0x1d17fd79fa0
      q3ds.studio3d: [R] new renderer 0x1d10844fe00, window is 0x726fdbfc80, context is 0x1d108403cb0, aspect engine 0x1d1084026d0
      q3ds.perf: Presentation barrel.uip: Time from the end of Qt3D scene building until first frame action: 107 ms
      qml: presentationReady
       
       
       
      qml: Barrel rotation is QVector3D(90, 0, 0)
      13:38:18: The program has unexpectedly finished.
      13:38:18: The process was ended forcefully.
       
      13:38:18: D:/Qt/Examples/Qt-5.11.0/build-3dstudioruntime2-Desktop_Qt_5_11_0_MSVC2017_64bit2-Debug/simpleqml/debug/simpleqml crashed.
      

       

       

        Attachments

          Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            Activity

              People

              Assignee:
              lagocs Laszlo Agocs
              Reporter:
              fmc Nikhil Bagul
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes