UPBGE / upbge

UPBGE, the best integrated game engine in Blender
https://upbge.org
Other
1.42k stars 179 forks source link

UPBGE crashes when pressing P (Build from Source / Windows 10) #1150

Closed DanielderErbauer closed 4 years ago

DanielderErbauer commented 4 years ago

Apologies in advance, if I didn't see something very obvious.

As mentioned in the title, I built UPBGE from source on a Win10 machine. Building ran fine without any errors, but as soon as I start it and press P to start the game itself, it crashes. I cannot provide a crash report at the moment, as I wasn't able to find one in the temp files.

BluePrintRandom commented 4 years ago

have you tried a empty game?

to get your game from 2.79x to 2.83 you may need to port stuff 1 thing at a time.

DanielderErbauer commented 4 years ago

There is no game I want to port, it's actually the first time I'm using UPBGE.

BluePrintRandom commented 4 years ago

What is your gpu?

On Tue, Mar 17, 2020, 5:11 PM Daniel notifications@github.com wrote:

There is no game I want to port, it's actually the first time I'm using UPBGE.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/UPBGE/upbge/issues/1150#issuecomment-600360192, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABW3SWIMPGCZUWMMYGDNUYTRIAGSPANCNFSM4LN7PKFQ .

lordloki commented 4 years ago

Could you usse a build from https://mega.nz/#F!t9EEFSaS!JPiOPSInCZyU-SW_-rhEOQ to see if it is an issue with your build process?

DanielderErbauer commented 4 years ago

My GPU is a NVIDIA GeForce GTX 970. There seems to be no issue with the building process, as said crash also happens with the version you gave me. However, I tested v0.2 and it works completely fine.

DanielderErbauer commented 4 years ago

@lordloki I tested the Linux build on my Ubuntu 18.04.4 LTS installation (same PC but Dual Boot) and it works completely fine.

lordloki commented 4 years ago

Hi, Could you generate a crash dump file? Please, check this link https://wiki.thedarkmod.com/index.php?title=Save_a_Memory_Dump_for_debugging_Crashes to see how to generate a dump file. Thanks for your time.

DanielderErbauer commented 4 years ago

I'm sorry that I have to come back with empty hands but UPBGE doesn't crash in the way described on the website. Instead, when I press P, the program will freeze for about half a second and then just close and disappear from the task manager and therefor, I'm unable to create a crash dump.

lordloki commented 4 years ago

In a command promt, could you launch blender as 'blender.exe -d' ?

DanielderErbauer commented 4 years ago

C:\Users\Daniel\Desktop\Release>blender.exe -d Switching to fully guarded memory allocator. Blender 2.83 (sub 9) Build: 2020-03-17 04:45:10 Windows argv[0] = blender.exe argv[1] = -d Read prefs: C:\Users\Daniel\AppData\Roaming\UPBGE\Blender\2.83\config\userpref.blend read file Version 280 sub 24 date 2018-09-28 12:15 hash efc7f27f9c found bundled python: C:\Users\Daniel\Desktop\Release\2.83\python Debug: 1608, 945 rcti: : xmin 0, xmax 1607, ymin 20, ymax 964 (1607x944) found bundled python: C:\Users\Daniel\Desktop\Release\2.83\python ModuleNotFoundError: No module named 'numpy.core._multiarray_umath' Unable to initialise audio Error : EXCEPTION_ACCESS_VIOLATION Address : 0x00007FF6B93E2492 Module : C:\Users\Daniel\Desktop\Release\blender.exe

lordloki commented 4 years ago

it seems an audio problem. In Edit->Preference->system, could test the following things? 1- Change Sample rate to other values (commons are 44.1/48/96), after launch the game engine. 2- Change Audio device to OpenAL Soft, after launch the game engine 3- Change Audio device to SDL, after launch the game engine.

DanielderErbauer commented 4 years ago

After testing all settings (and even 'Null') the problem still remains unchanged.

BluePrintRandom commented 4 years ago

can you go to the console and type import numpy ?

On Thu, Mar 19, 2020 at 12:21 PM Daniel notifications@github.com wrote:

After testing all settings (and even 'Null') the problem still remains unchanged.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/UPBGE/upbge/issues/1150#issuecomment-601370706, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABW3SWO6ULSDRPGFLEKQ3VLRIJWEPANCNFSM4LN7PKFQ .

BluePrintRandom commented 4 years ago

I guess this would be unrelated to the crash unless AUD is using numpy somewhere *

On Thu, Mar 19, 2020 at 12:26 PM Jacob Merrill blueprintrandom1@gmail.com wrote:

can you go to the console and type import numpy ?

On Thu, Mar 19, 2020 at 12:21 PM Daniel notifications@github.com wrote:

After testing all settings (and even 'Null') the problem still remains unchanged.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/UPBGE/upbge/issues/1150#issuecomment-601370706, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABW3SWO6ULSDRPGFLEKQ3VLRIJWEPANCNFSM4LN7PKFQ .

DanielderErbauer commented 4 years ago

Numpy is available and testing it with commands from their quickstart tutorial also works.

lordloki commented 4 years ago

I have uploaded a new debug build. Could you download it and execute blender_debug_log.cmd (is at same folder than blender.exe) image After could you paste the .txt generate here? Thanks

DanielderErbauer commented 4 years ago

Unfortunately not even this works, when I press a key, after the debug info appears, to start 'blender.exe', a system error occurs stating that "the code cannot be executed because VCRUNTIME140_1D.dll could not be found. A new installation of the program might be able to solve the problem." (Not exact word-by-word message, as I translated it from german)

lordloki commented 4 years ago

Arggg, I forgot to include VCRUNTIME140_1D.dll in the build. I just uploaded a new debug build with VCRUNTIME140_1D.dll included. Could you download again and test as in message above? Thanks

DanielderErbauer commented 4 years ago

blender_debug_output.txt:

Switching to fully guarded memory allocator. Blender 2.83 (sub 9) Build: 2020-03-19 18:04:52 Windows argv[0] = blender argv[1] = --debug argv[2] = --debug-cycles argv[3] = --python-expr argv[4] = import bpy; bpy.ops.wm.sysinfo(filepath=r'C:\Users\Daniel\AppData\Local\Temp\blender\debug_logs\blender_system_info.txt') Read prefs: C:\Users\Daniel\AppData\Roaming\UPBGE\Blender\2.83\config\userpref.blend read file Version 280 sub 24 date 2018-09-28 12:15 hash efc7f27f9c Vendor: NVIDIA Corporation Renderer: GeForce GTX 970/PCIe/SSE2 Version: 4.5.0 NVIDIA 442.59 Warning! Dummy Version: 4.6.0 NVIDIA 442.59 Context Version: 4.5 Vendor: NVIDIA Corporation Renderer: GeForce GTX 970/PCIe/SSE2 Version: 4.5.0 NVIDIA 442.59 Warning! Dummy Version: 4.6.0 NVIDIA 442.59 Context Version: 4.5 found bundled python: C:\Users\Daniel\Desktop\Debug\2.83\python I0319 23:51:21.537443 12496 blender_python.cpp:185] Debug flags initialized to: CPU flags: AVX2 : True AVX : True SSE4.1 : True SSE3 : True SSE2 : True BVH layout : BVH8 Split : False CUDA flags: Adaptive Compile : False OptiX flags: CUDA streams : 1 OpenCL flags: Device type : ALL Debug : False Memory limit : 0 I0319 23:51:21.983044 12496 device_opencl.cpp:48] CLEW initialization succeeded. I0319 23:51:22.412065 12496 device_cuda.cpp:41] CUEW initialization succeeded INFORMATION: Es konnten keine Dateien mit dem angegebenen Muster gefunden werden. I0319 23:51:22.704643 12496 device_cuda.cpp:51] Neither precompiled kernels nor CUDA compiler was found, unable to use CUDA Debug: 1608, 945 rcti: : xmin 0, xmax 1607, ymin 20, ymax 964 (1607x944) found bundled python: C:\Users\Daniel\Desktop\Debug\2.83\python Unable to initialise audio Error : EXCEPTION_ACCESS_VIOLATION Address : 0x00007FF71DBB1614 Module : C:\Users\Daniel\Desktop\Debug\blender.exe Writing: C:\Users\Daniel\AppData\Local\Temp\blender.crash.txt

blender_system_info.txt:

=========================================== = Blender 2.83 (sub 9) System Information =

Blender:

version: 2.83 (sub 9), branch: master, commit date: 2020-03-18 18:39, hash: 00f739086734, type: build date: 2020-03-19, 18:04:52 platform: Windows binary path: 'C:\Users\Daniel\Desktop\Debug\blender.exe' build cflags: /W3 /w34062 /w34115 /w34189 /wd4018 /wd4146 /wd4065 /wd4127 /wd4181 /wd4200 /wd4244 /wd4267 /wd4305 /wd4800 /wd4828 /wd4996 /wd4661 /we4013 /we4133 /we4431 /w35038 /DWIN32 /D_WINDOWS /W3 /nologo /J /Gd /MP /bigobj -openmp
build cxxflags: /W3 /w34062 /w34115 /w34189 /wd4018 /wd4146 /wd4065 /wd4127 /wd4181 /wd4200 /wd4244 /wd4267 /wd4305 /wd4800 /wd4828 /wd4996 /wd4661 /we4013 /we4133 /we4431 /w35038 /DWIN32 /D_WINDOWS /W3 /GR /EHsc /nologo /J /Gd /MP /EHsc /bigobj /permissive- /Zc:twoPhase- -openmp
build linkflags: /MACHINE:X64 /SUBSYSTEM:CONSOLE /STACK:2097152 /INCREMENTAL:NO /ignore:4049 /ignore:4217 /ignore:4221 build system: CMake

Python:

version: 3.7.4 (default, Feb 17 2020, 16:27:36) [MSC v.1916 64 bit (AMD64)] file system encoding: utf-8:surrogatepass paths: 'C:\Users\Daniel\Desktop\Debug\2.83\scripts\startup' 'C:\Users\Daniel\Desktop\Debug\2.83\scripts\modules' 'C:\Users\Daniel\Desktop\Debug\python37_d.zip' 'C:\Users\Daniel\Desktop\Debug\2.83\python\DLLs' 'C:\Users\Daniel\Desktop\Debug\2.83\python\lib' 'C:\Users\Daniel\Desktop\Debug' 'C:\Users\Daniel\AppData\Roaming\Python\Python37\site-packages' 'C:\Users\Daniel\Desktop\Debug\2.83\python' 'C:\Users\Daniel\Desktop\Debug\2.83\python\lib\site-packages' 'C:\Users\Daniel\Desktop\Debug\2.83\scripts\freestyle\modules' 'C:\Users\Daniel\Desktop\Debug\2.83\scripts\addons\modules' 'C:\Users\Daniel\AppData\Roaming\UPBGE\Blender\2.83\scripts\addons\modules' 'C:\Users\Daniel\Desktop\Debug\2.83\scripts\addons' 'C:\Users\Daniel\Desktop\Debug\2.83\scripts\addons_contrib'

Python (External Binary):

binary path: '' version: [WinError 87] Falscher Parameter

Directories:

scripts: 'C:\Users\Daniel\Desktop\Debug\2.83\scripts\modules' 'C:\Users\Daniel\Desktop\Debug\2.83\scripts' user scripts: 'C:\Users\Daniel\AppData\Roaming\UPBGE\Blender\2.83\scripts' pref scripts: None datafiles: 'C:\Users\Daniel\AppData\Roaming\UPBGE\Blender\2.83\datafiles\' config: 'C:\Users\Daniel\AppData\Roaming\UPBGE\Blender\2.83\config\' scripts : 'C:\Users\Daniel\AppData\Roaming\UPBGE\Blender\2.83\scripts\' autosave: 'C:\Users\Daniel\AppData\Roaming\UPBGE\Blender\2.83\autosave\' tempdir: 'C:\Users\Daniel\AppData\Local\Temp\blender_a12496\'

FFmpeg:

avcodec: '58, 18, 100' avdevice: '58, 3, 100' avformat: '58, 12, 100' avutil: '56, 14, 100' swscale: ' 5, 1, 100'

SDL:

Version: 2.0.8 Loading method: linked (WITH_SDL_DYNLOAD=OFF)

Other Libraries:

OpenColorIO: 1, 1, 0 OpenImageIO: 1, 8, 13 OpenShadingLanguage: 1, 10, 9 OpenSubdiv: 0, 0, 0 OpenVDB: 7, 0, 0 Alembic: 1, 7, 12 USD: 0, 19, 11

OpenGL:

renderer: 'GeForce GTX 970/PCIe/SSE2' vendor: 'NVIDIA Corporation' version: '4.5.0 NVIDIA 442.59' extensions: GL_AMD_multi_draw_indirect GL_AMD_seamless_cubemap_per_texture GL_AMD_vertex_shader_layer GL_AMD_vertex_shader_viewport_index GL_ARB_ES2_compatibility GL_ARB_ES3_1_compatibility GL_ARB_ES3_2_compatibility GL_ARB_ES3_compatibility 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_compute_shader GL_ARB_compute_variable_group_size GL_ARB_conditional_render_inverted GL_ARB_conservative_depth 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_elements_base_vertex GL_ARB_draw_indirect GL_ARB_draw_instanced GL_ARB_enhanced_layouts 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_shader_viewport_layer_array GL_ARB_shading_language_100 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_ARB_texture_view GL_ARB_timer_query GL_ARB_transform_feedback2 GL_ARB_transform_feedback3 GL_ARB_transform_feedback_instanced GL_ARB_transform_feedback_overflow_query GL_ARB_transpose_matrix GL_ARB_uniform_buffer_object GL_ARB_vertex_array_bgra GL_ARB_vertex_array_object GL_ARB_vertex_attrib_64bit GL_ARB_vertex_attrib_binding GL_ARB_vertex_buffer_object GL_ARB_vertex_program GL_ARB_vertex_shader GL_ARB_vertex_type_10f_11f_11f_rev GL_ARB_vertex_type_2_10_10_10_rev GL_ARB_viewport_array GL_ARB_window_pos GL_ATI_draw_buffers GL_ATI_texture_float GL_ATI_texture_mirror_once GL_EXTX_framebuffer_mixed_formats GL_EXT_Cg_shader GL_EXT_abgr GL_EXT_bgra GL_EXT_bindable_uniform GL_EXT_blend_color GL_EXT_blend_equation_separate GL_EXT_blend_func_separate GL_EXT_blend_minmax GL_EXT_blend_subtract GL_EXT_compiled_vertex_array GL_EXT_depth_bounds_test GL_EXT_direct_state_access GL_EXT_draw_buffers2 GL_EXT_draw_instanced GL_EXT_draw_range_elements GL_EXT_fog_coord GL_EXT_framebuffer_blit GL_EXT_framebuffer_multisample GL_EXT_framebuffer_multisample_blit_scaled GL_EXT_framebuffer_object GL_EXT_framebuffer_sRGB GL_EXT_geometry_shader4 GL_EXT_gpu_program_parameters GL_EXT_gpu_shader4 GL_EXT_import_sync_object GL_EXT_memory_object GL_EXT_memory_object_win32 GL_EXT_multi_draw_arrays GL_EXT_multiview_texture_multisample GL_EXT_multiview_timer_query GL_EXT_packed_depth_stencil GL_EXT_packed_float GL_EXT_packed_pixels GL_EXT_pixel_buffer_object GL_EXT_point_parameters GL_EXT_polygon_offset_clamp GL_EXT_post_depth_coverage GL_EXT_provoking_vertex GL_EXT_raster_multisample GL_EXT_rescale_normal GL_EXT_secondary_color GL_EXT_semaphore GL_EXT_semaphore_win32 GL_EXT_separate_shader_objects GL_EXT_separate_specular_color GL_EXT_shader_image_load_formatted GL_EXT_shader_image_load_store GL_EXT_shader_integer_mix GL_EXT_shadow_funcs GL_EXT_sparse_texture2 GL_EXT_stencil_two_side GL_EXT_stencil_wrap GL_EXT_texture3D GL_EXT_texture_array GL_EXT_texture_buffer_object GL_EXT_texture_compression_dxt1 GL_EXT_texture_compression_latc GL_EXT_texture_compression_rgtc GL_EXT_texture_compression_s3tc GL_EXT_texture_cube_map GL_EXT_texture_edge_clamp GL_EXT_texture_env_add GL_EXT_texture_env_combine GL_EXT_texture_env_dot3 GL_EXT_texture_filter_anisotropic GL_EXT_texture_filter_minmax GL_EXT_texture_integer GL_EXT_texture_lod GL_EXT_texture_lod_bias GL_EXT_texture_mirror_clamp GL_EXT_texture_object GL_EXT_texture_sRGB GL_EXT_texture_sRGB_R8 GL_EXT_texture_sRGB_decode GL_EXT_texture_shadow_lod GL_EXT_texture_shared_exponent GL_EXT_texture_storage GL_EXT_texture_swizzle GL_EXT_timer_query GL_EXT_transform_feedback2 GL_EXT_vertex_array GL_EXT_vertex_array_bgra GL_EXT_vertex_attrib_64bit GL_EXT_win32_keyed_mutex GL_EXT_window_rectangles GL_IBM_rasterpos_clip GL_IBM_texture_mirrored_repeat GL_KHR_blend_equation_advanced GL_KHR_blend_equation_advanced_coherent GL_KHR_context_flush_control GL_KHR_debug GL_KHR_no_error GL_KHR_parallel_shader_compile GL_KHR_robust_buffer_access_behavior GL_KHR_robustness GL_KHR_shader_subgroup GL_KTX_buffer_region GL_NVX_conditional_render GL_NVX_gpu_memory_info GL_NVX_gpu_multicast2 GL_NVX_linked_gpu_multicast GL_NVX_multigpu_info GL_NVX_nvenc_interop GL_NVX_progress_fence GL_NV_ES1_1_compatibility GL_NV_ES3_1_compatibility GL_NV_alpha_to_coverage_dither_control GL_NV_bindless_multi_draw_indirect GL_NV_bindless_multi_draw_indirect_count GL_NV_bindless_texture GL_NV_blend_equation_advanced GL_NV_blend_equation_advanced_coherent GL_NV_blend_minmax_factor GL_NV_blend_square GL_NV_command_list GL_NV_compute_program5 GL_NV_conditional_render GL_NV_conservative_raster GL_NV_conservative_raster_dilate GL_NV_copy_depth_to_color GL_NV_copy_image GL_NV_depth_buffer_float GL_NV_depth_clamp GL_NV_draw_texture GL_NV_draw_vulkan_image GL_NV_explicit_multisample GL_NV_feature_query GL_NV_fence GL_NV_fill_rectangle GL_NV_float_buffer GL_NV_fog_distance GL_NV_fragment_coverage_to_color GL_NV_fragment_program GL_NV_fragment_program2 GL_NV_fragment_program_option GL_NV_fragment_shader_interlock GL_NV_framebuffer_mixed_samples GL_NV_framebuffer_multisample_coverage GL_NV_geometry_shader4 GL_NV_geometry_shader_passthrough GL_NV_gpu_multicast GL_NV_gpu_program4 GL_NV_gpu_program4_1 GL_NV_gpu_program5 GL_NV_gpu_program5_mem_extended GL_NV_gpu_program_fp64 GL_NV_gpu_shader5 GL_NV_half_float GL_NV_internalformat_sample_query GL_NV_light_max_exponent GL_NV_memory_attachment GL_NV_multisample_coverage GL_NV_multisample_filter_hint GL_NV_occlusion_query GL_NV_packed_depth_stencil GL_NV_parameter_buffer_object GL_NV_parameter_buffer_object2 GL_NV_path_rendering GL_NV_path_rendering_shared_edge GL_NV_pixel_data_range GL_NV_point_sprite GL_NV_primitive_restart GL_NV_query_resource GL_NV_query_resource_tag GL_NV_register_combiners GL_NV_register_combiners2 GL_NV_sample_locations GL_NV_sample_mask_override_coverage GL_NV_shader_atomic_counters GL_NV_shader_atomic_float GL_NV_shader_atomic_fp16_vector GL_NV_shader_atomic_int64 GL_NV_shader_buffer_load GL_NV_shader_storage_buffer_object GL_NV_shader_subgroup_partitioned GL_NV_shader_thread_group GL_NV_shader_thread_shuffle GL_NV_texgen_reflection GL_NV_texture_barrier GL_NV_texture_compression_vtc GL_NV_texture_env_combine4 GL_NV_texture_multisample GL_NV_texture_rectangle GL_NV_texture_rectangle_compressed GL_NV_texture_shader GL_NV_texture_shader2 GL_NV_texture_shader3 GL_NV_transform_feedback GL_NV_transform_feedback2 GL_NV_uniform_buffer_unified_memory GL_NV_vertex_array_range GL_NV_vertex_array_range2 GL_NV_vertex_attrib_integer_64bit GL_NV_vertex_buffer_unified_memory GL_NV_vertex_program GL_NV_vertex_program1_1 GL_NV_vertex_program2 GL_NV_vertex_program2_option GL_NV_vertex_program3 GL_NV_viewport_array2 GL_NV_viewport_swizzle GL_OVR_multiview GL_OVR_multiview2 GL_S3_s3tc GL_SGIS_generate_mipmap GL_SGIS_texture_lod GL_SGIX_depth_texture GL_SGIX_shadow GL_SUN_slice_accum GL_WIN_swap_hint WGL_EXT_swap_control

Implementation Dependent OpenGL Limits:

Maximum DrawElements Vertices: 1048576 Maximum DrawElements Indices: 1048576

GLSL: Maximum Varying Floats: 124 Maximum Vertex Attributes: 16 Maximum Vertex Uniform Components: 4096 Maximum Fragment Uniform Components: 4096 Maximum Vertex Image Units: 32 Maximum Fragment Image Units: 32 Maximum Pipeline Image Units: 192

Cycles:

CPU device capabilities: SSE2 SSE3 SSE41 AVX AVX2

OpenCL device capabilities: Number of platforms: 1 Platform #0 Platform Name: NVIDIA CUDA Platform Vendor: NVIDIA Corporation Platform Version: OpenCL 1.2 CUDA 10.2.141 Platform Profile: FULL_PROFILE Platform Extensions: cl_khr_global_int32_base_atomics cl_khr_global_int32_extended_atomics cl_khr_local_int32_base_atomics cl_khr_local_int32_extended_atomics cl_khr_fp64 cl_khr_byte_addressable_store cl_khr_icd cl_khr_gl_sharing cl_nv_compiler_options cl_nv_device_attribute_query cl_nv_pragma_unroll cl_nv_d3d10_sharing cl_khr_d3d10_sharing cl_nv_d3d11_sharing cl_nv_copy_opts cl_nv_create_buffer cl_khr_int64_base_atomics cl_khr_int64_extended_atomics Number of devices: 1 Device: #0 Device Name: GeForce GTX 970 Device Vendor: NVIDIA Corporation Device OpenCL C Version: OpenCL C 1.2 Device Profile: FULL_PROFILE Device Version: OpenCL 1.2 CUDA Device Extensions: cl_khr_global_int32_base_atomics cl_khr_global_int32_extended_atomics cl_khr_local_int32_base_atomics cl_khr_local_int32_extended_atomics cl_khr_fp64 cl_khr_byte_addressable_store cl_khr_icd cl_khr_gl_sharing cl_nv_compiler_options cl_nv_device_attribute_query cl_nv_pragma_unroll cl_nv_d3d10_sharing cl_khr_d3d10_sharing cl_nv_d3d11_sharing cl_nv_copy_opts cl_nv_create_buffer cl_khr_int64_base_atomics cl_khr_int64_extended_atomics Device Max clock frequency (MHz): 1253 Device Max compute units: 13 Device Max work group size: 1024

Enabled add-ons:

io_anim_bvh (version: (1, 0, 0), path: C:\Users\Daniel\Desktop\Debug\2.83\scripts\addons\io_anim_bvh__init.py) io_curve_svg (version: UNKNOWN, path: C:\Users\Daniel\Desktop\Debug\2.83\scripts\addons\io_curve_svg\init.py) io_mesh_ply (version: (1, 1, 0), path: C:\Users\Daniel\Desktop\Debug\2.83\scripts\addons\io_mesh_ply\init.py) io_mesh_stl (version: (1, 1, 3), path: C:\Users\Daniel\Desktop\Debug\2.83\scripts\addons\io_mesh_stl\init.py) io_mesh_uv_layout (version: (1, 1, 1), path: C:\Users\Daniel\Desktop\Debug\2.83\scripts\addons\io_mesh_uv_layout\init.py) io_scene_fbx (version: (4, 20, 3), path: C:\Users\Daniel\Desktop\Debug\2.83\scripts\addons\io_scene_fbx\init.py) io_scene_gltf2 (version: (1, 2, 48), path: C:\Users\Daniel\Desktop\Debug\2.83\scripts\addons\io_scene_gltf2\init.py) io_scene_obj (version: (3, 8, 0), path: C:\Users\Daniel\Desktop\Debug\2.83\scripts\addons\io_scene_obj\init.py) io_scene_x3d (version: (2, 2, 5), path: C:\Users\Daniel\Desktop\Debug\2.83\scripts\addons\io_scene_x3d\init.py) cycles (version: UNKNOWN, path: C:\Users\Daniel\Desktop\Debug\2.83\scripts\addons\cycles\init__.py)

lordloki commented 4 years ago

Could you paste here this file: C:\Users\Daniel\AppData\Local\Temp\blender.crash.txt? Thanks

youle31 commented 4 years ago

I had this crash too 1 time on windows, and on linux too.

On linux, last time I compiled using downloaded libs from svn, this wasn't crashing. On windows, I think i deleted my build, updated the svn libraries, rebuilded everything from scratch, maybe also I reinstalled my graphic drivers (which handle sound via HDMI), and the issue wasn't there anymore, but i'm not sure about what fixed the issue.

I had this bug several times previously and iirc this was happening when aud module was initialized, and iirc it was there: PyObject *mod = PyImport_ImportModuleLevel("aud", nullptr, nullptr, nullptr, 0); and i don't remember exactly the end of the trace stack.

This bug was also reported by nestanquiero on linux, maybe we could ask him if he remembers how he fixed it (maybe it was tinkering with his OS sound settings > change default device, reinstall audio/graphic drivers if the sound is in HDMI...)

DanielderErbauer commented 4 years ago

@lordloki

Blender 2.83 (sub 9), Commit date: 2020-03-18 18:39, Hash 00f739086734

backtrace

29: BLI_system_backtrace - 0x7FF71C886080 28: sig_handle_crash_backtrace - 0x7FF7155D6DE0 27: sig_handle_crash - 0x7FF7155D6AA0 26: windows_exception_handler - 0x7FF7155D6ED0 25: UnhandledExceptionFilter - 0x7FFA7629FE80 24: memset - 0x7FFA78803000 23: _C_specific_handler - 0x7FFA787EC640 22: _chkstk - 0x7FFA78801100 21: RtlRaiseException - 0x7FFA787C9EF0 20: KiUserExceptionDispatcher - 0x7FFA787FFE60 19: initGamePythonScripting - 0x7FF71DBB1460 18: setupGamePython - 0x7FF71DBB2EA0 17: LA_Launcher::InitEngine - 0x7FF71DA80460 16: LA_BlenderLauncher::InitEngine - 0x7FF71DA83110 15: StartKetsjiShell - 0x7FF71DA7E000 14: game_engine_exec - 0x7FF71703B280 13: wm_operator_invoke - 0x7FF715DA2BC0 12: wm_handler_operator_call - 0x7FF715D9E000 11: wm_handlers_do_keymap_with_keymap_handler - 0x7FF715DA1200 10: wm_handlers_do_intern - 0x7FF715DA0560 9: wm_handlers_do - 0x7FF715D9F020 8: wm_event_do_handlers - 0x7FF715D99CC0 7: WM_main - 0x7FF715D6F880 6: main - 0x7FF7155CE7F0 5: invoke_main - 0x7FF71DA035A0 4: __scrt_common_main_seh - 0x7FF71DA03350 3: __scrt_common_main - 0x7FF71DA03330 2: mainCRTStartup - 0x7FF71DA03660 1: BaseThreadInitThunk - 0x7FFA76CD7BC0 0: RtlUserThreadStart - 0x7FFA787CCEB0

lordloki commented 4 years ago

It seems that the crash occurs when we load the AUD python module (as you you audio device can not be initialized). I'm going to make a new build with the audio disabled to confirm it.

lordloki commented 4 years ago

Do you have the audio drivers updated?

DanielderErbauer commented 4 years ago

Audio drivers are up to date.

lordloki commented 4 years ago

Hi again,

I have just uploaded a test_crash.7z build including printing for each step in the function crashed. Could you download it, execute again blender_debug_log.cmd and paste here the blender_debug_output.txt?

Here I put my result compare to your: image Thanks for your time

DanielderErbauer commented 4 years ago

Switching to fully guarded memory allocator. Blender 2.83 (sub 10) Build: 2020-03-21 19:20:11 Windows argv[0] = blender argv[1] = --debug argv[2] = --debug-cycles argv[3] = --python-expr argv[4] = import bpy; bpy.ops.wm.sysinfo(filepath=r'C:\Users\Daniel\AppData\Local\Temp\blender\debug_logs\blender_system_info.txt') Read prefs: C:\Users\Daniel\AppData\Roaming\UPBGE\Blender\2.83\config\userpref.blend read file Version 280 sub 24 date 2018-09-28 12:15 hash efc7f27f9c found bundled python: C:\Users\Daniel\Desktop\Release\2.83\python I0321 20:59:20.052326 17004 blender_python.cpp:185] Debug flags initialized to: CPU flags: AVX2 : True AVX : True SSE4.1 : True SSE3 : True SSE2 : True BVH layout : BVH8 Split : False CUDA flags: Adaptive Compile : False OptiX flags: CUDA streams : 1 OpenCL flags: Device type : ALL Debug : False Memory limit : 0 I0321 20:59:20.268748 17004 device_opencl.cpp:48] CLEW initialization succeeded. I0321 20:59:20.785369 17004 device_cuda.cpp:41] CUEW initialization succeeded I0321 20:59:20.785369 17004 device_cuda.cpp:43] Found precompiled kernels Debug: 1608, 945 rcti: : xmin 0, xmax 1607, ymin 20, ymax 964 (1607x944) step 1 step 2 step 3 step 4 step 5 step 6 found bundled python: C:\Users\Daniel\Desktop\Release\2.83\python step 7 step 8 step 9 step 10 step 11 step 12 step 13 Unable to initialise audio step 14 Error : EXCEPTION_ACCESS_VIOLATION Address : 0x00007FF7F5B432AD Module : C:\Users\Daniel\Desktop\Release\blender.exe

lordloki commented 4 years ago

I have uploaded a new build "Test_crash2.7z" with a fix to avoid the load the aud module when the audio device can not be initialized. Could you test it?

DanielderErbauer commented 4 years ago

It works 😲 About the audio module, do you have any ideas?

lordloki commented 4 years ago

Hi again, we are investigating where exactly there is an issue inside of PyInit_aud() function. Could you download build "Test_crash3.7z", execute again blender_debug_log.cmd and paste here the blender_debug_output.txt? Thanks for your patience.

DanielderErbauer commented 4 years ago

Switching to fully guarded memory allocator. Blender 2.83 (sub 10) Build: 2020-03-22 19:34:59 Windows argv[0] = blender argv[1] = --debug argv[2] = --debug-cycles argv[3] = --python-expr argv[4] = import bpy; bpy.ops.wm.sysinfo(filepath=r'C:\Users\Daniel\AppData\Local\Temp\blender\debug_logs\blender_system_info.txt') Read prefs: C:\Users\Daniel\AppData\Roaming\UPBGE\Blender\2.83\config\userpref.blend read file Version 280 sub 24 date 2018-09-28 12:15 hash efc7f27f9c found bundled python: C:\Users\Daniel\Desktop\Release\2.83\python I0322 21:45:23.162824 15280 blender_python.cpp:185] Debug flags initialized to: CPU flags: AVX2 : True AVX : True SSE4.1 : True SSE3 : True SSE2 : True BVH layout : BVH8 Split : False CUDA flags: Adaptive Compile : False OptiX flags: CUDA streams : 1 OpenCL flags: Device type : ALL Debug : False Memory limit : 0 I0322 21:45:23.404179 15280 device_opencl.cpp:48] CLEW initialization succeeded. I0322 21:45:24.002089 15280 device_cuda.cpp:41] CUEW initialization succeeded I0322 21:45:24.003085 15280 device_cuda.cpp:43] Found precompiled kernels Debug: 1608, 945 rcti: : xmin 0, xmax 1607, ymin 20, ymax 964 (1607x944) found bundled python: C:\Users\Daniel\Desktop\Release\2.83\python 1 2 Unable to initialise audio

Blender Game Engine Started Blender Game Engine Finished Saved session recovery to 'C:\Users\Daniel\AppData\Local\Temp\quit.blend' ModuleNotFoundError: No module named 'numpy.core._multiarray_umath' ImportError: numpy.core.multiarray failed to import Error: Not freed memory blocks: 1, total unfreed memory 0.000229 MB Data from OB len: 120 00000230B0EE77B8

Blender quit Press any key to exit . . .

lordloki commented 4 years ago

HI, we follow investigating. The crash comes from python aud part. Againg as before, could you download build "Test_crash4.7z", execute again blender_debug_log.cmd and paste here the blender_debug_output.txt? Thanks for your patience.

DanielderErbauer commented 4 years ago

Switching to fully guarded memory allocator. Blender 2.83 (sub 11) Build: 2020-03-24 05:41:07 Windows argv[0] = blender argv[1] = --debug argv[2] = --debug-cycles argv[3] = --python-expr argv[4] = import bpy; bpy.ops.wm.sysinfo(filepath=r'C:\Users\Daniel\AppData\Local\Temp\blender\debug_logs\blender_system_info.txt') Read prefs: C:\Users\Daniel\AppData\Roaming\UPBGE\Blender\2.83\config\userpref.blend read file Version 280 sub 24 date 2018-09-28 12:15 hash efc7f27f9c found bundled python: C:\Users\Daniel\Desktop\Release\2.83\python I0324 10:22:50.753762 13416 blender_python.cpp:185] Debug flags initialized to: CPU flags: AVX2 : True AVX : True SSE4.1 : True SSE3 : True SSE2 : True BVH layout : BVH8 Split : False CUDA flags: Adaptive Compile : False OptiX flags: CUDA streams : 1 OpenCL flags: Device type : ALL Debug : False Memory limit : 0 I0324 10:22:50.969187 13416 device_opencl.cpp:48] CLEW initialization succeeded. I0324 10:22:51.466419 13416 device_cuda.cpp:41] CUEW initialization succeeded I0324 10:22:51.466419 13416 device_cuda.cpp:43] Found precompiled kernels Debug: 1608, 945 rcti: : xmin 0, xmax 1607, ymin 20, ymax 964 (1607x944) found bundled python: C:\Users\Daniel\Desktop\Release\2.83\python Unable to initialise audio

Blender Game Engine Started Blender Game Engine Finished Saved session recovery to 'C:\Users\Daniel\AppData\Local\Temp\quit.blend' ModuleNotFoundError: No module named 'numpy.core._multiarray_umath' ImportError: numpy.core.multiarray failed to import Error: Not freed memory blocks: 1, total unfreed memory 0.000229 MB Data from OB len: 120 00000235E4C5D5B8

Blender quit Press any key to exit . . .

lordloki commented 4 years ago

Hi, Could you test this build and see if everything works for you (specifically the audio)? https://mega.nz/file/whcRSSBa#JQ2ZC2shE4JG6nKZP0LQHQofD3eghyVc3dftv4yDDGA

Thanks

DanielderErbauer commented 4 years ago

It runs and Audio works perfectly! Thank you :D

lordloki commented 4 years ago

Great!! The fix will be commit in the next days. Thanks for your time.

lordloki commented 4 years ago

Commited

Zarbizaure commented 5 months ago

Hi, jumping back on this topic. I have an audio-less computer on which I want to run blenderplayer but I get the same result. I tried briefly plugging my dummy earphones into the computer and it woks just fine. I really don't care about the audio, I just want to force it disabled. I tried the "-g noaudio" flag too, but it didn't fix it. Any ideas?

I'm running UPBGE 0.36.1.