baldurk / renderdoc

RenderDoc is a stand-alone graphics debugging tool.
https://renderdoc.org
MIT License
9.11k stars 1.36k forks source link

1.0: "Replaying the capture encountered invalid/corrupted data" #904

Closed mcclure closed 6 years ago

mcclure commented 6 years ago

Have been using RenderDoc 0.9x (don't remember) with https://github.com/bjornbytes/lovr (a self built version...) on Windows 10. It worked great.

Today opened it and it asked if I wanted to upgrade to 1.0. I said sure! It downloaded and I restarted the application.

I am now 100% getting this error when I try to do a capture of my program.

image

Here is how I got this error message: I opened renderdoc. I selected lovr.exe and gave it a nonexistent input file (so it would just go to its 'file not found' screen). I selected capture frame 5. I started. I double clicked frame 5. I got the error.

Below are screenshots of the app when the error occurred and the diagnostic log. " Reading invalid array or byte buffer - 3944961821114368 larger than total stream size 40576." looks suspicious. Let me know if I should gather additional data.

image

image

RDOC 012104: [16:52:56]             core.cpp( 298) - Log     - RenderDoc v1.0 64-bit Release (5ef2d0bb5e86a37ba6c250987e9dc8c33c26435c) loaded in replay application
RDOC 009404: [16:52:56]             core.cpp( 298) - Log     - RenderDoc v1.0 64-bit Release (5ef2d0bb5e86a37ba6c250987e9dc8c33c26435c) loaded in replay application
QTRD 012104: [16:52:56]       qrenderdoc.cpp(  87) - Log     - QRenderDoc initialising.
RDOC 013984: [16:52:56]             core.cpp( 298) - Log     - RenderDoc v1.0 64-bit Release (5ef2d0bb5e86a37ba6c250987e9dc8c33c26435c) loaded in replay application
QTRD 012104: [16:53:03]              unknown(   0) - Debug   - QWindowsNativeFileDialogBase::onSelectionChange () 0
QTRD 012104: [16:53:04]              unknown(   0) - Debug   - QWindowsNativeFileDialogBase::onSelectionChange (QUrl("file:///C:/Users/Andi/work/lv/lovr/build/Debug/lovr.exe")) 1
RDOC 012104: [16:53:32]    win32_process.cpp( 477) - Log     - Running process C:\Users\Andi\work\lv\lovr\build\Debug\lovr.exe
RDOC 012104: [16:53:32]    win32_process.cpp( 538) - Log     - Injecting renderdoc into process 8664
RDOC 003000: [16:53:32]             core.cpp( 298) - Log     - RenderDoc v1.0 32-bit Release (5ef2d0bb5e86a37ba6c250987e9dc8c33c26435c) loaded in replay application
RDOC 003000: [16:53:32]    win32_process.cpp( 538) - Log     - Injecting renderdoc into process 8664
RDOC 008664: [16:53:32]             core.cpp( 298) - Log     - RenderDoc v1.0 32-bit Release (5ef2d0bb5e86a37ba6c250987e9dc8c33c26435c) capturing application
RDOC 008664: [16:53:34]   win32_libentry.cpp(  65) - Log     - Loading into C:\Users\Andi\work\lv\lovr\build\Debug\lovr.exe
RDOC 012104: [16:53:34]   target_control.cpp( 512) - Log     - Got remote handshake: lovr [8664]
RDOC 008664: [16:53:35]   gl_hooks_win32.cpp( 966) - Log     - dc E90134CD. PFD: type 0, 32 color bits, 24 depth bits, 0 stencil bits. Win: 120x0
RDOC 008664: [16:53:35]        gl_common.cpp( 408) - Log     - Vendor checks for 0 (NVIDIA Corporation / GeForce GTX 1070/PCIe/SSE2 / 4.6.0 NVIDIA 388.13)
RDOC 008664: [16:53:35]        gl_common.cpp( 690) - Warning - FBOs are shared on this implementation
RDOC 008664: [16:53:35]   gl_hooks_win32.cpp( 966) - Log     - dc 3B0132C0. PFD: type 0, 32 color bits, 24 depth bits, 8 stencil bits. Win: 800x600
RDOC 008664: [16:53:35]        gl_common.cpp( 408) - Log     - Vendor checks for 46 (NVIDIA Corporation / GeForce GTX 1070/PCIe/SSE2 / 3.3.0 NVIDIA 388.13)
RDOC 008664: [16:53:35]        gl_common.cpp( 690) - Warning - FBOs are shared on this implementation
RDOC 012104: [16:53:35]   target_control.cpp( 720) - Log     - Used API: OpenGL (Presenting & supported)
RDOC 008664: [16:53:35]      dxgi_common.cpp(1365) - Warning - Querying IDXGIAdapter for interface: GUID {7abb6563-02bc-47c4-8ef9-acc4795edbcf}
RDOC 008664: [16:53:35]      dxgi_common.cpp(1360) - Warning - Querying IDXGIObject for interface: GUID {7abb6563-02bc-47c4-8ef9-acc4795edbcf}
RDOC 008664: [16:53:35]      dxgi_common.cpp(1365) - Warning - Querying ID3D11Device for interface: GUID {85611e73-70a9-490e-9614-a9e302777904}
RDOC 008664: [16:53:35]        gl_driver.cpp(2220) - Log     - Got a Debug message from GL_DEBUG_SOURCE_API, type GL_DEBUG_TYPE_ERROR, ID 1282, severity GL_DEBUG_SEVERITY_HIGH:
'GL_INVALID_OPERATION error generated. Target doesn't match the texture's target.'
RDOC 008664: [16:53:35] gl_texture_funcs.cpp( 286) - Error   - Assertion failed: 'r->datatype == TextureBinding(target)' 
RDOC 008664: [16:53:35]        gl_driver.cpp(2220) - Log     - Got a Debug message from GL_DEBUG_SOURCE_API, type GL_DEBUG_TYPE_ERROR, ID 1282, severity GL_DEBUG_SEVERITY_HIGH:
'GL_INVALID_OPERATION error generated.'
RDOC 008664: [16:53:35]        gl_driver.cpp(2220) - Log     - Got a Debug message from GL_DEBUG_SOURCE_API, type GL_DEBUG_TYPE_ERROR, ID 1282, severity GL_DEBUG_SEVERITY_HIGH:
'GL_INVALID_OPERATION error generated.'
RDOC 008664: [16:53:35]        gl_driver.cpp(2220) - Log     - Got a Debug message from GL_DEBUG_SOURCE_API, type GL_DEBUG_TYPE_ERROR, ID 1282, severity GL_DEBUG_SEVERITY_HIGH:
'GL_INVALID_OPERATION error generated.'
RDOC 008664: [16:53:35]        gl_driver.cpp(2220) - Log     - Got a Debug message from GL_DEBUG_SOURCE_API, type GL_DEBUG_TYPE_ERROR, ID 1282, severity GL_DEBUG_SEVERITY_HIGH:
'GL_INVALID_OPERATION error generated. Target doesn't match the texture's target.'
RDOC 008664: [16:53:35] gl_texture_funcs.cpp( 286) - Error   - Assertion failed: 'r->datatype == TextureBinding(target)' 
RDOC 008664: [16:53:35]        gl_driver.cpp(2220) - Log     - Got a Debug message from GL_DEBUG_SOURCE_API, type GL_DEBUG_TYPE_ERROR, ID 1282, severity GL_DEBUG_SEVERITY_HIGH:
'GL_INVALID_OPERATION error generated.'
RDOC 008664: [16:53:35]        gl_driver.cpp(2220) - Log     - Got a Debug message from GL_DEBUG_SOURCE_API, type GL_DEBUG_TYPE_ERROR, ID 1282, severity GL_DEBUG_SEVERITY_HIGH:
'GL_INVALID_OPERATION error generated.'
RDOC 008664: [16:53:35]        gl_driver.cpp(2220) - Log     - Got a Debug message from GL_DEBUG_SOURCE_API, type GL_DEBUG_TYPE_ERROR, ID 1282, severity GL_DEBUG_SEVERITY_HIGH:
'GL_INVALID_OPERATION error generated.'
RDOC 008664: [16:53:35]        gl_driver.cpp(2220) - Log     - Got a Debug message from GL_DEBUG_SOURCE_API, type GL_DEBUG_TYPE_ERROR, ID 1282, severity GL_DEBUG_SEVERITY_HIGH:
'GL_INVALID_OPERATION error generated.'
RDOC 008664: [16:53:35]        gl_driver.cpp(2220) - Log     - Got a Debug message from GL_DEBUG_SOURCE_API, type GL_DEBUG_TYPE_ERROR, ID 1282, severity GL_DEBUG_SEVERITY_HIGH:
'GL_INVALID_OPERATION error generated. The source or destination texture is not complete.'
RDOC 008664: [16:53:35]        gl_driver.cpp(2220) - Log     - Got a Debug message from GL_DEBUG_SOURCE_API, type GL_DEBUG_TYPE_ERROR, ID 1282, severity GL_DEBUG_SEVERITY_HIGH:
'GL_INVALID_OPERATION error generated.'
RDOC 008664: [16:53:35]        gl_driver.cpp(2220) - Log     - Got a Debug message from GL_DEBUG_SOURCE_API, type GL_DEBUG_TYPE_ERROR, ID 1282, severity GL_DEBUG_SEVERITY_HIGH:
'GL_INVALID_OPERATION error generated.'
RDOC 008664: [16:53:35]        gl_driver.cpp(2220) - Log     - Got a Debug message from GL_DEBUG_SOURCE_API, type GL_DEBUG_TYPE_ERROR, ID 1282, severity GL_DEBUG_SEVERITY_HIGH:
'GL_INVALID_OPERATION error generated. The source or destination texture is not complete.'
RDOC 008664: [16:53:35]        gl_driver.cpp(2220) - Log     - Got a Debug message from GL_DEBUG_SOURCE_API, type GL_DEBUG_TYPE_ERROR, ID 1282, severity GL_DEBUG_SEVERITY_HIGH:
'GL_INVALID_OPERATION error generated.'
RDOC 008664: [16:53:35]        gl_driver.cpp(2220) - Log     - Got a Debug message from GL_DEBUG_SOURCE_API, type GL_DEBUG_TYPE_ERROR, ID 1282, severity GL_DEBUG_SEVERITY_HIGH:
'GL_INVALID_OPERATION error generated.'
RDOC 008664: [16:53:35]        gl_driver.cpp(2220) - Log     - Got a Debug message from GL_DEBUG_SOURCE_API, type GL_DEBUG_TYPE_ERROR, ID 1282, severity GL_DEBUG_SEVERITY_HIGH:
'GL_INVALID_OPERATION error generated. The source or destination texture is not complete.'
RDOC 008664: [16:53:35]        gl_driver.cpp(2220) - Log     - Got a Debug message from GL_DEBUG_SOURCE_API, type GL_DEBUG_TYPE_ERROR, ID 1282, severity GL_DEBUG_SEVERITY_HIGH:
'GL_INVALID_OPERATION error generated.'
RDOC 008664: [16:53:35]        gl_driver.cpp(2220) - Log     - Got a Debug message from GL_DEBUG_SOURCE_API, type GL_DEBUG_TYPE_ERROR, ID 1282, severity GL_DEBUG_SEVERITY_HIGH:
'GL_INVALID_OPERATION error generated.'
RDOC 008664: [16:53:35]        gl_driver.cpp(2220) - Log     - Got a Debug message from GL_DEBUG_SOURCE_API, type GL_DEBUG_TYPE_ERROR, ID 1282, severity GL_DEBUG_SEVERITY_HIGH:
'GL_INVALID_OPERATION error generated. The source or destination texture is not complete.'
RDOC 008664: [16:53:35]        gl_driver.cpp(2220) - Log     - Got a Debug message from GL_DEBUG_SOURCE_API, type GL_DEBUG_TYPE_ERROR, ID 1282, severity GL_DEBUG_SEVERITY_HIGH:
'GL_INVALID_OPERATION error generated.'
RDOC 008664: [16:53:35]        gl_driver.cpp(2220) - Log     - Got a Debug message from GL_DEBUG_SOURCE_API, type GL_DEBUG_TYPE_ERROR, ID 1282, severity GL_DEBUG_SEVERITY_HIGH:
'GL_INVALID_OPERATION error generated.'
RDOC 008664: [16:53:35]        gl_driver.cpp(2220) - Log     - Got a Debug message from GL_DEBUG_SOURCE_API, type GL_DEBUG_TYPE_ERROR, ID 1282, severity GL_DEBUG_SEVERITY_HIGH:
'GL_INVALID_OPERATION error generated. The source or destination texture is not complete.'
RDOC 008664: [16:53:35]        gl_driver.cpp(2220) - Log     - Got a Debug message from GL_DEBUG_SOURCE_API, type GL_DEBUG_TYPE_ERROR, ID 1282, severity GL_DEBUG_SEVERITY_HIGH:
'GL_INVALID_OPERATION error generated.'
RDOC 008664: [16:53:35]        gl_driver.cpp(2220) - Log     - Got a Debug message from GL_DEBUG_SOURCE_API, type GL_DEBUG_TYPE_ERROR, ID 1282, severity GL_DEBUG_SEVERITY_HIGH:
'GL_INVALID_OPERATION error generated.'
RDOC 008664: [16:53:35]        gl_driver.cpp(2220) - Log     - Got a Debug message from GL_DEBUG_SOURCE_API, type GL_DEBUG_TYPE_ERROR, ID 1282, severity GL_DEBUG_SEVERITY_HIGH:
'GL_INVALID_OPERATION error generated. The source or destination texture is not complete.'
RDOC 008664: [16:53:35]        gl_driver.cpp(2220) - Log     - Got a Debug message from GL_DEBUG_SOURCE_API, type GL_DEBUG_TYPE_ERROR, ID 1282, severity GL_DEBUG_SEVERITY_HIGH:
'GL_INVALID_OPERATION error generated.'
RDOC 008664: [16:53:35]        gl_driver.cpp(1597) - Log     - Starting capture, frame 5
RDOC 008664: [16:53:35]        gl_driver.cpp(1615) - Log     - Finished capture, Frame 6
RDOC 008664: [16:53:35]     gl_initstate.cpp(1576) - Warning - Technically you could try and readback the contents of a RenderBuffer via pixel copy.
RDOC 008664: [16:53:35]     gl_initstate.cpp(1577) - Warning - Currently we don't support that though, and initial contents will be uninitialised.
RDOC 008664: [16:53:35]          rdcfile.cpp(1084) - Log     - Finishing write to section 1 (renderdoc/internal/framecapture). Compressed from 71052992 bytes to 4356734
RDOC 008664: [16:53:35]             core.cpp(1090) - Log     - Written to disk: C:/Users/Andi/AppData/Local/Temp/RenderDoc/lovr_2018.03.08_21.53.32_frame5.rdc
RDOC 008664: [16:53:35]          rdcfile.cpp( 239) - Log     - Opening RDCFile C:/Users/Andi/AppData/Local/Temp/RenderDoc/lovr_2018.03.08_21.53.32_frame5.rdc
RDOC 012104: [16:53:35]   target_control.cpp( 673) - Log     - Got a new capture: 0 (time 1520546015) 11003 byte thumbnail
RDOC 012104: [16:53:38]          rdcfile.cpp( 239) - Log     - Opening RDCFile C:\Users\Andi\AppData\Local\Temp\RenderDoc\lovr_2018.03.08_21.53.32_frame5.rdc
RDOC 012104: [16:53:38]          rdcfile.cpp( 239) - Log     - Opening RDCFile C:\Users\Andi\AppData\Local\Temp\RenderDoc\lovr_2018.03.08_21.53.32_frame5.rdc
RDOC 012104: [16:53:39]        gl_common.cpp(  56) - Log     - Running GL replay on: NVIDIA Corporation / GeForce GTX 1070/PCIe/SSE2 / 4.5.0 NVIDIA 388.13
RDOC 012104: [16:53:39]        gl_common.cpp(  70) - Log     - [0]: GL_AMD_multi_draw_indirect, [1]: GL_AMD_seamless_cubemap_per_texture, [2]: GL_AMD_vertex_shader_viewport_index, [3]: GL_AMD_vertex_shader_layer, [4]: GL_ARB_arrays_of_arrays, [5]: GL_ARB_base_instance, [6]: GL_ARB_bindless_texture, [7]: GL_ARB_blend_func_extended, [8]: GL_ARB_buffer_storage, [9]: GL_ARB_clear_buffer_object, [10]: GL_ARB_clear_texture, [11]: GL_ARB_clip_control, [12]: GL_ARB_color_buffer_float, [13]: GL_ARB_compressed_texture_pixel_storage, [14]: GL_ARB_conservative_depth, [15]: GL_ARB_compute_shader, [16]: GL_ARB_compute_variable_group_size, [17]: GL_ARB_conditional_render_inverted, [18]: GL_ARB_copy_buffer, [19]: GL_ARB_copy_image, [20]: GL_ARB_cull_distance, [21]: GL_ARB_debug_output, [22]: GL_ARB_depth_buffer_float, [23]: GL_ARB_depth_clamp, [24]: GL_ARB_depth_texture, [25]: GL_ARB_derivative_control, [26]: GL_ARB_direct_state_access, [27]: GL_ARB_draw_buffers, [28]: GL_ARB_draw_buffers_blend, [29]: GL_ARB_draw_indirect, [30]: GL_ARB_draw_elements_base_vertex, [31]: GL_ARB_draw_instanced, [32]: GL_ARB_enhanced_layouts, [33]: GL_ARB_ES2_compatibility, [34]: GL_ARB_ES3_compatibility, [35]: GL_ARB_ES3_1_compatibility, [36]: GL_ARB_ES3_2_compatibility, [37]: GL_ARB_explicit_attrib_location, [38]: GL_ARB_explicit_uniform_location, [39]: GL_ARB_fragment_coord_conventions, [40]: GL_ARB_fragment_layer_viewport, [41]: GL_ARB_fragment_program, [42]: GL_ARB_fragment_program_shadow, [43]: GL_ARB_fragment_shader, [44]: GL_ARB_fragment_shader_interlock, [45]: GL_ARB_framebuffer_no_attachments, [46]: GL_ARB_framebuffer_object, [47]: GL_ARB_framebuffer_sRGB, [48]: GL_ARB_geometry_shader4, [49]: GL_ARB_get_program_binary, [50]: GL_ARB_get_texture_sub_image, [51]: GL_ARB_gl_spirv, [52]: GL_ARB_gpu_shader5, [53]: GL_ARB_gpu_shader_fp64, [54]: GL_ARB_gpu_shader_int64, [55]: GL_ARB_half_float_pixel, [56]: GL_ARB_half_float_vertex, [57]: GL_ARB_imaging, [58]: GL_ARB_indirect_parameters, [59]: GL_ARB_instanced_arrays, [60]: GL_ARB_internalformat_query, [61]: GL_ARB_internalformat_query2, [62]: GL_ARB_invalidate_subdata, [63]: GL_ARB_map_buffer_alignment, [64]: GL_ARB_map_buffer_range, [65]: GL_ARB_multi_bind, [66]: GL_ARB_multi_draw_indirect, [67]: GL_ARB_multisample, [68]: GL_ARB_multitexture, [69]: GL_ARB_occlusion_query, [70]: GL_ARB_occlusion_query2, [71]: GL_ARB_parallel_shader_compile, [72]: GL_ARB_pipeline_statistics_query, [73]: GL_ARB_pixel_buffer_object, [74]: GL_ARB_point_parameters, [75]: GL_ARB_point_sprite, [76]: GL_ARB_polygon_offset_clamp, [77]: GL_ARB_post_depth_coverage, [78]: GL_ARB_program_interface_query, [79]: GL_ARB_provoking_vertex, [80]: GL_ARB_query_buffer_object, [81]: GL_ARB_robust_buffer_access_behavior, [82]: GL_ARB_robustness, [83]: GL_ARB_sample_locations, [84]: GL_ARB_sample_shading, [85]: GL_ARB_sampler_objects, [86]: GL_ARB_seamless_cube_map, [87]: GL_ARB_seamless_cubemap_per_texture, [88]: GL_ARB_separate_shader_objects, [89]: GL_ARB_shader_atomic_counter_ops, [90]: GL_ARB_shader_atomic_counters, [91]: GL_ARB_shader_ballot, [92]: GL_ARB_shader_bit_encoding, [93]: GL_ARB_shader_clock, [94]: GL_ARB_shader_draw_parameters, [95]: GL_ARB_shader_group_vote, [96]: GL_ARB_shader_image_load_store, [97]: GL_ARB_shader_image_size, [98]: GL_ARB_shader_objects, [99]: GL_ARB_shader_precision, [100]: GL_ARB_shader_storage_buffer_object, 
RDOC 012104: [16:53:39]        gl_common.cpp(  70) - Log     - [101]: GL_ARB_shader_subroutine, [102]: GL_ARB_shader_texture_image_samples, [103]: GL_ARB_shader_texture_lod, [104]: GL_ARB_shading_language_100, [105]: GL_ARB_shader_viewport_layer_array, [106]: GL_ARB_shading_language_420pack, [107]: GL_ARB_shading_language_include, [108]: GL_ARB_shading_language_packing, [109]: GL_ARB_shadow, [110]: GL_ARB_sparse_buffer, [111]: GL_ARB_sparse_texture, [112]: GL_ARB_sparse_texture2, [113]: GL_ARB_sparse_texture_clamp, [114]: GL_ARB_spirv_extensions, [115]: GL_ARB_stencil_texturing, [116]: GL_ARB_sync, [117]: GL_ARB_tessellation_shader, [118]: GL_ARB_texture_barrier, [119]: GL_ARB_texture_border_clamp, [120]: GL_ARB_texture_buffer_object, [121]: GL_ARB_texture_buffer_object_rgb32, [122]: GL_ARB_texture_buffer_range, [123]: GL_ARB_texture_compression, [124]: GL_ARB_texture_compression_bptc, [125]: GL_ARB_texture_compression_rgtc, [126]: GL_ARB_texture_cube_map, [127]: GL_ARB_texture_cube_map_array, [128]: GL_ARB_texture_env_add, [129]: GL_ARB_texture_env_combine, [130]: GL_ARB_texture_env_crossbar, [131]: GL_ARB_texture_env_dot3, [132]: GL_ARB_texture_filter_anisotropic, [133]: GL_ARB_texture_filter_minmax, [134]: GL_ARB_texture_float, [135]: GL_ARB_texture_gather, [136]: GL_ARB_texture_mirror_clamp_to_edge, [137]: GL_ARB_texture_mirrored_repeat, [138]: GL_ARB_texture_multisample, [139]: GL_ARB_texture_non_power_of_two, [140]: GL_ARB_texture_query_levels, [141]: GL_ARB_texture_query_lod, [142]: GL_ARB_texture_rectangle, [143]: GL_ARB_texture_rg, [144]: GL_ARB_texture_rgb10_a2ui, [145]: GL_ARB_texture_stencil8, [146]: GL_ARB_texture_storage, [147]: GL_ARB_texture_storage_multisample, [148]: GL_ARB_texture_swizzle, [149]: GL_ARB_texture_view, [150]: GL_ARB_timer_query, [151]: GL_ARB_transform_feedback2, [152]: GL_ARB_transform_feedback3, [153]: GL_ARB_transform_feedback_instanced, [154]: GL_ARB_transform_feedback_overflow_query, [155]: GL_ARB_transpose_matrix, [156]: GL_ARB_uniform_buffer_object, [157]: GL_ARB_vertex_array_bgra, [158]: GL_ARB_vertex_array_object, [159]: GL_ARB_vertex_attrib_64bit, [160]: GL_ARB_vertex_attrib_binding, [161]: GL_ARB_vertex_buffer_object, [162]: GL_ARB_vertex_program, [163]: GL_ARB_vertex_shader, [164]: GL_ARB_vertex_type_10f_11f_11f_rev, [165]: GL_ARB_vertex_type_2_10_10_10_rev, [166]: GL_ARB_viewport_array, [167]: GL_ARB_window_pos, [168]: GL_ATI_draw_buffers, [169]: GL_ATI_texture_float, [170]: GL_ATI_texture_mirror_once, [171]: GL_S3_s3tc, [172]: GL_EXT_texture_env_add, [173]: GL_EXT_abgr, [174]: GL_EXT_bgra, [175]: GL_EXT_bindable_uniform, [176]: GL_EXT_blend_color, [177]: GL_EXT_blend_equation_separate, [178]: GL_EXT_blend_func_separate, [179]: GL_EXT_blend_minmax, [180]: GL_EXT_blend_subtract, [181]: GL_EXT_compiled_vertex_array, [182]: GL_EXT_Cg_shader, [183]: GL_EXT_depth_bounds_test, [184]: GL_EXT_direct_state_access, [185]: GL_EXT_draw_buffers2, [186]: GL_EXT_draw_instanced, [187]: GL_EXT_draw_range_elements, [188]: GL_EXT_fog_coord, [189]: GL_EXT_framebuffer_blit, [190]: GL_EXT_framebuffer_multisample, [191]: GL_EXTX_framebuffer_mixed_formats, [192]: GL_EXT_framebuffer_multisample_blit_scaled, [193]: GL_EXT_framebuffer_object, [194]: GL_EXT_framebuffer_sRGB, [195]: GL_EXT_geometry_shader4, [196]: GL_EXT_gpu_program_parameters, [197]: GL_EXT_gpu_shader4, [198]: GL_EXT_multi_draw_arrays, [199]: GL_EXT_packed_depth_stencil, [200]: GL_EXT_packed_float, 
RDOC 012104: [16:53:39]        gl_common.cpp(  70) - Log     - [201]: GL_EXT_packed_pixels, [202]: GL_EXT_pixel_buffer_object, [203]: GL_EXT_point_parameters, [204]: GL_EXT_polygon_offset_clamp, [205]: GL_EXT_post_depth_coverage, [206]: GL_EXT_provoking_vertex, [207]: GL_EXT_raster_multisample, [208]: GL_EXT_rescale_normal, [209]: GL_EXT_secondary_color, [210]: GL_EXT_separate_shader_objects, [211]: GL_EXT_separate_specular_color, [212]: GL_EXT_shader_image_load_formatted, [213]: GL_EXT_shader_image_load_store, [214]: GL_EXT_shader_integer_mix, [215]: GL_EXT_shadow_funcs, [216]: GL_EXT_sparse_texture2, [217]: GL_EXT_stencil_two_side, [218]: GL_EXT_stencil_wrap, [219]: GL_EXT_texture3D, [220]: GL_EXT_texture_array, [221]: GL_EXT_texture_buffer_object, [222]: GL_EXT_texture_compression_dxt1, [223]: GL_EXT_texture_compression_latc, [224]: GL_EXT_texture_compression_rgtc, [225]: GL_EXT_texture_compression_s3tc, [226]: GL_EXT_texture_cube_map, [227]: GL_EXT_texture_edge_clamp, [228]: GL_EXT_texture_env_combine, [229]: GL_EXT_texture_env_dot3, [230]: GL_EXT_texture_filter_anisotropic, [231]: GL_EXT_texture_filter_minmax, [232]: GL_EXT_texture_integer, [233]: GL_EXT_texture_lod, [234]: GL_EXT_texture_lod_bias, [235]: GL_EXT_texture_mirror_clamp, [236]: GL_EXT_texture_object, [237]: GL_EXT_texture_shared_exponent, [238]: GL_EXT_texture_sRGB, [239]: GL_EXT_texture_sRGB_decode, [240]: GL_EXT_texture_storage, [241]: GL_EXT_texture_swizzle, [242]: GL_EXT_timer_query, [243]: GL_EXT_transform_feedback2, [244]: GL_EXT_vertex_array, [245]: GL_EXT_vertex_array_bgra, [246]: GL_EXT_vertex_attrib_64bit, [247]: GL_EXT_window_rectangles, [248]: GL_EXT_import_sync_object, [249]: GL_IBM_rasterpos_clip, [250]: GL_IBM_texture_mirrored_repeat, [251]: GL_KHR_context_flush_control, [252]: GL_KHR_debug, [253]: GL_EXT_memory_object, [254]: GL_EXT_memory_object_win32, [255]: GL_EXT_win32_keyed_mutex, [256]: GL_KHR_parallel_shader_compile, [257]: GL_KHR_no_error, [258]: GL_KHR_robust_buffer_access_behavior, [259]: GL_KHR_robustness, [260]: GL_EXT_semaphore, [261]: GL_EXT_semaphore_win32, [262]: GL_KTX_buffer_region, [263]: GL_NV_alpha_to_coverage_dither_control, [264]: GL_NV_bindless_multi_draw_indirect, [265]: GL_NV_bindless_multi_draw_indirect_count, [266]: GL_NV_bindless_texture, [267]: GL_NV_blend_equation_advanced, [268]: GL_NV_blend_equation_advanced_coherent, [269]: GL_NVX_blend_equation_advanced_multi_draw_buffers, [270]: GL_NV_blend_minmax_factor, [271]: GL_NV_blend_square, [272]: GL_NV_clip_space_w_scaling, [273]: GL_NV_command_list, [274]: GL_NV_compute_program5, [275]: GL_NV_conditional_render, [276]: GL_NV_conservative_raster, [277]: GL_NV_conservative_raster_dilate, [278]: GL_NV_conservative_raster_pre_snap_triangles, [279]: GL_NV_copy_depth_to_color, [280]: GL_NV_copy_image, [281]: GL_NV_depth_buffer_float, [282]: GL_NV_depth_clamp, [283]: GL_NV_draw_texture, [284]: GL_NV_draw_vulkan_image, [285]: GL_NV_ES1_1_compatibility, [286]: GL_NV_ES3_1_compatibility, [287]: GL_NV_explicit_multisample, [288]: GL_NV_fence, [289]: GL_NV_fill_rectangle, [290]: GL_NV_float_buffer, [291]: GL_NV_fog_distance, [292]: GL_NV_fragment_coverage_to_color, [293]: GL_NV_fragment_program, [294]: GL_NV_fragment_program_option, [295]: GL_NV_fragment_program2, [296]: GL_NV_fragment_shader_interlock, [297]: GL_NV_framebuffer_mixed_samples, [298]: GL_NV_framebuffer_multisample_coverage, [299]: GL_NV_geometry_shader4, [300]: GL_NV_geometry_shader_passthrough, 
RDOC 012104: [16:53:39]        gl_common.cpp(  87) - Log     - [301]: GL_NV_gpu_program4, [302]: GL_NV_internalformat_sample_query, [303]: GL_NV_gpu_program4_1, [304]: GL_NV_gpu_program5, [305]: GL_NV_gpu_program5_mem_extended, [306]: GL_NV_gpu_program_fp64, [307]: GL_NV_gpu_shader5, [308]: GL_NV_half_float, [309]: GL_NV_light_max_exponent, [310]: GL_NV_multisample_coverage, [311]: GL_NV_multisample_filter_hint, [312]: GL_NV_occlusion_query, [313]: GL_NV_packed_depth_stencil, [314]: GL_NV_parameter_buffer_object, [315]: GL_NV_parameter_buffer_object2, [316]: GL_NV_path_rendering, [317]: GL_NV_path_rendering_shared_edge, [318]: GL_NV_pixel_data_range, [319]: GL_NV_point_sprite, [320]: GL_NV_primitive_restart, [321]: GL_NV_query_resource, [322]: GL_NV_query_resource_tag, [323]: GL_NV_register_combiners, [324]: GL_NV_register_combiners2, [325]: GL_NV_sample_locations, [326]: GL_NV_sample_mask_override_coverage, [327]: GL_NV_shader_atomic_counters, [328]: GL_NV_shader_atomic_float, [329]: GL_NV_shader_atomic_float64, [330]: GL_NV_shader_atomic_fp16_vector, [331]: GL_NV_shader_atomic_int64, [332]: GL_NV_shader_buffer_load, [333]: GL_NV_shader_storage_buffer_object, [334]: GL_NV_stereo_view_rendering, [335]: GL_NV_texgen_reflection, [336]: GL_NV_texture_barrier, [337]: GL_NV_texture_compression_vtc, [338]: GL_NV_texture_env_combine4, [339]: GL_NV_texture_multisample, [340]: GL_NV_texture_rectangle, [341]: GL_NV_texture_rectangle_compressed, [342]: GL_NV_texture_shader, [343]: GL_NV_texture_shader2, [344]: GL_NV_texture_shader3, [345]: GL_NV_transform_feedback, [346]: GL_NV_transform_feedback2, [347]: GL_NV_uniform_buffer_unified_memory, [348]: GL_NV_vertex_array_range, [349]: GL_NV_vertex_array_range2, [350]: GL_NV_vertex_attrib_integer_64bit, [351]: GL_NV_vertex_buffer_unified_memory, [352]: GL_NV_vertex_program, [353]: GL_NV_vertex_program1_1, [354]: GL_NV_vertex_program2, [355]: GL_NV_vertex_program2_option, [356]: GL_NV_vertex_program3, [357]: GL_NV_viewport_array2, [358]: GL_NV_viewport_swizzle, [359]: GL_NVX_conditional_render, [360]: GL_NVX_gpu_memory_info, [361]: GL_NVX_multigpu_info, [362]: GL_NVX_nvenc_interop, [363]: GL_NV_shader_thread_group, [364]: GL_NV_shader_thread_shuffle, [365]: GL_KHR_blend_equation_advanced, [366]: GL_KHR_blend_equation_advanced_coherent, [367]: GL_SGIS_generate_mipmap, [368]: GL_SGIS_texture_lod, [369]: GL_SGIX_depth_texture, [370]: GL_SGIX_shadow, [371]: GL_SUN_slice_accum, [372]: GL_WIN_swap_hint, [373]: WGL_EXT_swap_control, 
RDOC 012104: [16:53:39]        gl_common.cpp( 408) - Log     - Vendor checks for 45 (NVIDIA Corporation / GeForce GTX 1070/PCIe/SSE2 / 4.5.0 NVIDIA 388.13)
RDOC 012104: [16:53:39]        gl_common.cpp( 138) - Log     - Function pointers available:
RDOC 012104: [16:53:39]        gl_common.cpp( 149) - Log     - 1111111111111111111111111111111111111111111111111111111111111111
RDOC 012104: [16:53:39]        gl_common.cpp( 149) - Log     - 1111111111111111111111111111111111111111111111111111111111111111
RDOC 012104: [16:53:39]        gl_common.cpp( 149) - Log     - 1111111111111111111111111111111111111111111111111111111111111111
RDOC 012104: [16:53:39]        gl_common.cpp( 149) - Log     - 1111111111111111111111111111111111111111111111111111111111111111
RDOC 012104: [16:53:39]        gl_common.cpp( 149) - Log     - 1111111111111111111111111111111111111111111111111111111111111111
RDOC 012104: [16:53:39]        gl_common.cpp( 149) - Log     - 1111111111111111111111111111111111111111111111111111111111111111
RDOC 012104: [16:53:39]        gl_common.cpp( 149) - Log     - 1111111111111111111111111111111111111111111111111111111111111111
RDOC 012104: [16:53:39]        gl_common.cpp( 149) - Log     - 1111111111111111111111111111111111111111111111111111111111111111
RDOC 012104: [16:53:39]        gl_common.cpp( 149) - Log     - 1111111111111111111111111111111111111111111111101111111111111110
RDOC 012104: [16:53:39]        gl_common.cpp( 149) - Log     - 0000001111111111111111111111111111111111111111111111111111111111
RDOC 012104: [16:53:39]        gl_common.cpp( 149) - Log     - 1111111111111111111111111111111111111111111111111111111111111111
RDOC 012104: [16:53:39]        gl_common.cpp( 149) - Log     - 1111111111111111111111111111111111111111111111111111111111111111
RDOC 012104: [16:53:39]        gl_common.cpp( 149) - Log     - 1111111111111111111100000000000000000000000000000000000000000000
RDOC 012104: [16:53:39]  gl_replay_win32.cpp( 323) - Log     - Created device.
RDOC 012104: [16:53:39]         gl_debug.cpp( 304) - Log     - GLSL version 460
RDOC 012104: [16:53:39]        gl_common.cpp( 690) - Warning - FBOs are shared on this implementation
RDOC 012104: [16:53:39]     amd_counters.cpp(  47) - Warning - The GL_AMD_performance_monitor extension is not exposed by the driver.
RDOC 012104: [16:53:39]     amd_counters.cpp(  47) - Warning - The GL_AMD_performance_monitor extension is not exposed by the driver.
RDOC 012104: [16:53:39]     amd_counters.cpp(  47) - Warning - The GL_AMD_performance_monitor extension is not exposed by the driver.
RDOC 012104: [16:53:39]     amd_counters.cpp(  47) - Warning - Requesting available counters from an unsupported API or hardware generation.
RDOC 012104: [16:53:39]     amd_counters.cpp( 152) - Warning - Open context for counters failed. Hardware Not Supported
RDOC 012104: [16:53:39] replay_controller.cpp(1574) - Log     - Created replay driver.
RDOC 012104: [16:53:39]     gl_initstate.cpp(1576) - Warning - Technically you could try and readback the contents of a RenderBuffer via pixel copy.
RDOC 012104: [16:53:39]     gl_initstate.cpp(1577) - Warning - Currently we don't support that though, and initial contents will be uninitialised.
RDOC 012104: [16:53:39]         serialiser.h(1548) - Error   - Reading invalid array or byte buffer - 3944961821114368 larger than total stream size 40576.
RDOC 012104: [16:53:39] gl_interop_funcs.cpp( 518) - Error   - Serialisation failed in 'wglDXLockObjectsNV'.
RDOC 012104: [16:53:39]        gl_driver.cpp(2353) - Log     - Timer chunk initialisation - 239.794 ms
RDOC 012104: [16:53:39] replay_controller.cpp( 184) - Log     - Shutting down replay renderer
baldurk commented 6 years ago

Sorry about that, looks like the serialisation of WGL_NV_DX_interop got broken in the refactor for v1.0 and I didn't catch that in my testing.

(Gory details: it was only calculating the number of mip levels to save while reading, not while writing, so while writing it skipped the main loop. Then the read path tried to read data that wasn't there, and got a vastly incorrect size and bailed out. At least the error-detection code caught it and didn't explode trying to allocate 3944961821114368 bytes).

That fix above should sort it, I was able to repro the problem on a test program for that extension. You can test with the next nightly build.

mcclure commented 6 years ago

Thanks, will test on Monday

baldurk commented 6 years ago

I tried the latest nightly build along with a pre-built copy of lovr from lovr.org, and it seemed to work for me now at least on the 'no game' screen. Closing this issue now, but please comment if you run into problems.

mcclure commented 6 years ago

I forgot to test sorry!! And thanks