Suddenly receiving OpenGLFlip errors when building for desktop, html5 builds fine

Hello. I’d been working throughout the day on a project which was building just fine. I got done editing some code, flipped into the editor, and it won’t build with the below error. So I pop back a commit to when it was for sure 100% working, and… its not. It builds and opens in the browser just fine, though.

INFO:DLIB: Log server started on port 3589
INFO:ENGINE: Target listening with name: DESKTOP-LIE6LQ4 - fe80::2d13:69d8:be47:684a - Windows
INFO:ENGINE: Engine service started on port 3590
INFO:ENGINE: Defold Engine 1.2.190 (2ee937b)
INFO:GRAPHICS: Device: OpenGL
INFO:GRAPHICS: Renderer: NVIDIA GeForce RTX 2070/PCIe/SSE2
INFO:GRAPHICS: Version: 3.3.0 NVIDIA 496.49
INFO:GRAPHICS: Vendor: NVIDIA Corporation
INFO:GRAPHICS: Extensions: GL_AMD_multi_draw_indirect GL_AMD_seamless_cubemap_per_texture GL_AMD_vertex_shader_viewport_index GL_AMD_vertex_shader_layer GL_ARB_arrays_of_arrays GL_ARB_base_instance GL_ARB_bindless_texture GL_ARB_blend_func_extended GL_ARB_buffer_storage GL_ARB_clear_buffer_object GL_ARB_clear_texture GL_ARB_clip_control GL_ARB_color_buffer_float GL_ARB_compressed_texture_pixel_storage GL_ARB_conservative_depth GL_ARB_compute_shader GL_ARB_compute_variable_group_size GL_ARB_conditional_render_inverted GL_ARB_copy_buffer GL_ARB_copy_image GL_ARB_cull_distance GL_ARB_debug_output GL_ARB_depth_buffer_float GL_ARB_depth_clamp GL_ARB_depth_texture GL_ARB_derivative_control GL_ARB_direct_state_access GL_ARB_draw_buffers GL_ARB_draw_buffers_blend GL_ARB_draw_indirect GL_ARB_draw_elements_base_vertex GL_ARB_draw_instanced GL_ARB_enhanced_layouts GL_ARB_ES2_compatibility GL_ARB_ES3_compatibility GL_ARB_ES3_1_compatibility GL_ARB_ES3_2_compatibility GL_ARB_explicit_attrib_location GL_ARB_explicit_uniform_location GL_ARB_fragment_coord_conventions GL_ARB_fragment_layer_viewport GL_ARB_fragment_program GL_ARB_fragment_program_shadow GL_ARB_fragment_shader GL_ARB_fragment_shader_interlock GL_ARB_framebuffer_no_attachments GL_ARB_framebuffer_object GL_ARB_framebuffer_sRGB GL_ARB_geometry_shader4 GL_ARB_get_program_binary GL_ARB_get_texture_sub_image GL_ARB_gl_spirv GL_ARB_gpu_shader5 GL_ARB_gpu_shader_fp64 GL_ARB_gpu_shader_int64 GL_ARB_half_float_pixel GL_ARB_half_float_vertex GL_ARB_imaging GL_ARB_indirect_parameters GL_ARB_instanced_arrays GL_ARB_internalformat_query GL_ARB_internalformat_query2 GL_ARB_invalidate_subdata GL_ARB_map_buffer_alignment GL_ARB_map_buffer_range GL_ARB_multi_bind GL_ARB_multi_draw_indirect GL_ARB_multisample GL_ARB_multitexture GL_ARB_occlusion_query GL_ARB_occlusion_query2 GL_ARB_parallel_shader_compile GL_ARB_pipeline_statistics_query GL_ARB_pixel_buffer_object GL_ARB_point_parameters GL_ARB_point_sprite GL_ARB_polygon_offset_clamp GL_ARB_post_depth_coverage GL_ARB_program_interface_query GL_ARB_provoking_vertex GL_ARB_query_buffer_object GL_ARB_robust_buffer_access_behavior GL_ARB_robustness GL_ARB_sample_locations GL_ARB_sample_shading GL_ARB_sampler_objects GL_ARB_seamless_cube_map GL_ARB_seamless_cubemap_per_texture GL_ARB_separate_shader_objects GL_ARB_shader_atomic_counter_ops GL_ARB_shader_atomic_counters GL_ARB_shader_ballot GL_ARB_shader_bit_encoding GL_ARB_shader_clock GL_ARB_shader_draw_parameters GL_ARB_shader_group_vote GL_ARB_shader_image_load_store GL_ARB_shader_image_size GL_ARB_shader_objects GL_ARB_shader_precision GL_ARB_shader_storage_buffer_object GL_ARB_shader_subroutine GL_ARB_shader_texture_image_samples GL_ARB_shader_texture_lod GL_ARB_shading_language_100 GL_ARB_shader_viewport_layer_array GL_ARB_shading_language_420pack GL_ARB_shading_language_include GL_ARB_shading_language_packing GL_ARB_shadow GL_ARB_sparse_buffer GL_ARB_sparse_texture GL_ARB_sparse_texture2 GL_ARB_sparse_texture_clamp GL_ARB_spirv_extensions GL_ARB_stencil_texturing GL_ARB_sync GL_ARB_tessellation_shader GL_ARB_texture_barrier GL_ARB_texture_border_clamp GL_ARB_texture_buffer_object GL_ARB_texture_buffer_object_rgb32 GL_ARB_texture_buffer_range GL_ARB_texture_compression GL_ARB_texture_compression_bptc GL_ARB_texture_compression_rgtc GL_ARB_texture_cube_map GL_ARB_texture_cube_map_array GL_ARB_texture_env_add GL_ARB_texture_env_combine GL_ARB_texture_env_crossbar GL_ARB_texture_env_dot3 GL_ARB_texture_filter_anisotropic GL_ARB_texture_filter_minmax GL_ARB_texture_float GL_ARB_texture_gather GL_ARB_texture_mirror_clamp_to_edge GL_ARB_texture_mirrored_repeat GL_ARB_texture_multisample GL_ARB_texture_non_power_of_two GL_ARB_texture_query_levels GL_ARB_texture_query_lod GL_ARB_texture_rectangle GL_ARB_texture_rg GL_ARB_texture_rgb10_a2ui GL_ARB_texture_stencil8 GL_ARB_texture_storage GL_ARB_texture_storage_multisample GL_ARB_texture_swizzle GL_…
[Output truncated]
INFO:ENGINE: Loading data from: build/default
INFO:ENGINE: Initialised sound device ‘default’
ERROR:GRAPHICS: dmGraphics::OpenGLFlip(1281): gl error 1282: invalid operation

Assertion failed: 0, file …\src\opengl\graphics_opengl.cpp, line 1281
INFO:CRASH: Successfully wrote Crashdump to file: C:\Users\Timmcd\AppData\Roaming\Defold/_crash
ERROR:CRASH: CALL STACK:

ERROR:CRASH: 0 0x7FF69396F640 dmCrash::GenerateCallstack D:\a\defold\defold\engine\crash\src\backtrace_win32.cpp:142

ERROR:CRASH: 1 0x7FF693A36B14 raise minkernel\crts\ucrt\src\appcrt\misc\signal.cpp:547

ERROR:CRASH: 2 0x7FF693A370E0 abort minkernel\crts\ucrt\src\appcrt\startup\abort.cpp:71

ERROR:CRASH: 3 0x7FF6939DB750 common_assert_to_stderr<wchar_t> minkernel\crts\ucrt\src\appcrt\startup\assert.cpp:186

ERROR:CRASH: 4 0x7FF6939DBED4 _wassert minkernel\crts\ucrt\src\appcrt\startup\assert.cpp:443

ERROR:CRASH: 5 0x7FF693973F90 dmGraphics::OpenGLFlip D:\a\defold\defold\engine\graphics\src\opengl\graphics_opengl.cpp:1281

ERROR:CRASH: 6 0x7FF69360E7F0 dmEngine::Init D:\a\defold\defold\engine\engine\src\engine.cpp:1154

ERROR:CRASH: 7 0x7FF693612FC0 dmEngineCreate D:\a\defold\defold\engine\engine\src\engine.cpp:1955

ERROR:CRASH: 8 0x7FF693613390 dmEngine::RunLoop D:\a\defold\defold\engine\engine\src\engine_loop.cpp:54

ERROR:CRASH: 9 0x7FF69360BE40 engine_main D:\a\defold\defold\engine\engine\src\engine_main.cpp:137

ERROR:CRASH: 10 0x7FF6939C5D64 __scrt_common_main_seh d:\agent_work\4\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl:288

ERROR:CRASH: 11 0x7FFBE9867020 BaseThreadInitThunk :0

ERROR:CRASH: 12 0x7FFBEAA22630 RtlUserThreadStart :0

ERROR:CRASH:

I discovered the issue. GPU/CPU/FPS stat overlay softwares Afterburner/RTSS cause the desktop Build to instantly crash with the above errors.

2 Likes