godotengine / godot

Godot Engine – Multi-platform 2D and 3D game engine
https://godotengine.org
MIT License
91k stars 21.17k forks source link

Switching to Mobile rendering method causes a 3D scene to crash on Intel GPUs #87213

Open jianliang-li opened 10 months ago

jianliang-li commented 10 months ago

Tested versions

Godot 4.0.4 release

System information

image

mac 14.2.1 Godot 4.0.4

Issue description

Godot has been developing for over a year and everything is normal. Today, I suddenly reported these errors, which only occur on my machine and not on my colleague's machine. The newly created empty project will crash when switched to a 3D scene in mobile mode. The 3D scene in forward+mode can work normally.

TextServer: Primary interface set to: "ICU / HarfBuzz / Graphite (Built-in)".
CORE API HASH: 1202233029
EDITOR API HASH: 1077268510
Class 'DisplayServerMacOS' is not exposed, skipping.
Class 'EditorPropertyNameProcessor' is not exposed, skipping.
Class 'FramebufferCacheRD' is not exposed, skipping.
Class 'GDScriptEditorTranslationParserPlugin' is not exposed, skipping.
Class 'GDScriptNativeClass' is not exposed, skipping.
Class 'GodotPhysicsServer2D' is not exposed, skipping.
Class 'GodotPhysicsServer3D' is not exposed, skipping.
Class 'IPUnix' is not exposed, skipping.
Class 'MovieWriterMJPEG' is not exposed, skipping.
Class 'MovieWriterPNGWAV' is not exposed, skipping.
Class 'ResourceFormatImporterSaver' is not exposed, skipping.
Class 'ResourceImporterMP3' is not exposed, skipping.
Class 'ResourceImporterOggVorbis' is not exposed, skipping.
Class 'SceneCacheInterface' is not exposed, skipping.
Class 'SceneRPCInterface' is not exposed, skipping.
Class 'SceneReplicationInterface' is not exposed, skipping.
Class 'UniformSetCacheRD' is not exposed, skipping.
EditorSettings: Load OK!
WARNING: Blend file import is enabled in the project settings, but no Blender path is configured in the editor settings. Blend files will not be imported.
     at: _editor_init (modules/gltf/register_types.cpp:70)
[mvk-info] Created 3 swapchain images with initial size (1920, 941) and contents scale 1.0 for screen PHL 243S7.
[mvk-info] Created 3 swapchain images with initial size (1920, 997) and contents scale 1.0 for screen PHL 243S7.
Loaded builtin certs
Creating VMA small objects pool for memory type index 1
EditorSettings: Save OK!
[mvk-info] Created 3 swapchain images with initial size (1920, 997) and contents scale 1.0 for screen PHL 243S7.
[mvk-error] VK_ERROR_DEVICE_LOST: MTLCommandBuffer "vkQueueSubmit CommandBuffer on Queue 0-0" execution failed (code 2): Caused GPU Timeout Error (00000002:kIOAccelCommandBufferCallbackErrorTimeout)
ERROR: VALIDATION - Message Id Number: 0 | Message Id Name: 
    VK_ERROR_DEVICE_LOST: MTLCommandBuffer "vkQueueSubmit CommandBuffer on Queue 0-0" execution failed (code 2): Caused GPU Timeout Error (00000002:kIOAccelCommandBufferCallbackErrorTimeout)
    Objects - 1
        Object[0] - VK_OBJECT_TYPE_QUEUE, Handle 105553139664280
   at: _debug_messenger_callback (drivers/vulkan/vulkan_context.cpp:267)
ERROR: Condition "err" is true. Returning: ERR_CANT_CREATE
   at: _update_swap_chain (drivers/vulkan/vulkan_context.cpp:1970)
ERROR: Vulkan: Cannot submit graphics queue. Error code: VK_ERROR_DEVICE_LOST
   at: swap_buffers (drivers/vulkan/vulkan_context.cpp:2358)
ERROR: Vulkan: Cannot submit graphics queue. Error code: VK_ERROR_DEVICE_LOST
   at: swap_buffers (drivers/vulkan/vulkan_context.cpp:2358)
ERROR: Vulkan: Cannot submit graphics queue. Error code: VK_ERROR_DEVICE_LOST
   at: swap_buffers (drivers/vulkan/vulkan_context.cpp:2358)
ERROR: Vulkan: Cannot submit graphics queue. Error code: VK_ERROR_DEVICE_LOST
   at: swap_buffers (drivers/vulkan/vulkan_context.cpp:2358)
ERROR: Vulkan: Cannot submit graphics queue. Error code: VK_ERROR_DEVICE_LOST
   at: swap_buffers (drivers/vulkan/vulkan_context.cpp:2358)
ERROR: Vulkan: Cannot submit graphics queue. Error code: VK_ERROR_DEVICE_LOST
   at: swap_buffers (drivers/vulkan/vulkan_context.cpp:2358)
ERROR: Vulkan: Cannot submit graphics queue. Error code: VK_ERROR_DEVICE_LOST
   at: swap_buffers (drivers/vulkan/vulkan_context.cpp:2358)
ERROR: Vulkan: Cannot submit graphics queue. Error code: VK_ERROR_DEVICE_LOST
   at: swap_buffers (drivers/vulkan/vulkan_context.cpp:2358)
ERROR: Vulkan: Cannot submit graphics queue. Error code: VK_ERROR_DEVICE_LOST
   at: swap_buffers (drivers/vulkan/vulkan_context.cpp:2358)
ERROR: Vulkan: Cannot submit graphics queue. Error code: VK_ERROR_DEVICE_LOST
   at: swap_buffers (drivers/vulkan/vulkan_context.cpp:2358)
ERROR: Vulkan: Cannot submit graphics queue. Error code: VK_ERROR_DEVICE_LOST
   at: swap_buffers (drivers/vulkan/vulkan_context.cpp:2358)
ERROR: Vulkan: Cannot submit graphics queue. Error code: VK_ERROR_DEVICE_LOST
   at: swap_buffers (drivers/vulkan/vulkan_context.cpp:2358)
ERROR: Vulkan: Cannot submit graphics queue. Error code: VK_ERROR_DEVICE_LOST
   at: swap_buffers (drivers/vulkan/vulkan_context.cpp:2358)
ERROR: Vulkan: Cannot submit graphics queue. Error code: VK_ERROR_DEVICE_LOST
   at: swap_buffers (drivers/vulkan/vulkan_context.cpp:2358)
ERROR: Vulkan: Cannot submit graphics queue. Error code: VK_ERROR_DEVICE_LOST
   at: swap_buffers (drivers/vulkan/vulkan_context.cpp:2358)
ERROR: Vulkan: Cannot submit graphics queue. Error code: VK_ERROR_DEVICE_LOST
   at: swap_buffers (drivers/vulkan/vulkan_context.cpp:2358)
ERROR: Vulkan: Cannot submit graphics queue. Error code: VK_ERROR_DEVICE_LOST
   at: swap_buffers (drivers/vulkan/vulkan_context.cpp:2358)

Steps to reproduce

Switch to mobile mode and open the 3D scene

Minimal reproduction project (MRP)

aaaaa.zip

AThousandShips commented 10 months ago

Version 4.0.4 is no longer supported, please try version 4.1.3 or later instead 🙂

Calinou commented 10 months ago

@jianliang-li Please surround large blocks of text with triple backticks like this:

``` text here ```

This prevents them from taking too much space and also makes sure issue references aren't accidentally created. I edited your comment, but remember to do this next time :slightly_smiling_face:

jianliang-li commented 9 months ago

@jianliang-li Please surround large blocks of text with triple backticks like this:

text here

This prevents them from taking too much space and also makes sure issue references aren't accidentally created. I edited your comment, but remember to do this next time 🙂

Okay, thank you!

renolc commented 9 months ago

I started seeing something very similar recently on my intel MacBook Pro on Godot 4.2.1.stable.

Screenshot 2024-01-28 at 7 16 09 AM

Compatibility and Forward+ modes work fine. As soon as I try and swap to Mobile, or open a Mobile project, or start a new Mobile project, it hangs the editor when attempting to view the 3d preview until I force quit it.

Here's literally a blank project with no changes other than setting the renderer to Mobile. Opening it and trying to view the 3d preview breaks Godot. mobile-crash-test.zip

Opening the project with verbose logging produces the following output:

my crash log

❯ /Applications/Godot.app/Contents/MacOS/Godot --path ~/Source/gamedev/godot/mobile-crash-test --editor --verbose 2024-01-28 07:07:07.746 Godot[2430:43070] WARNING: Secure coding is automatically enabled for restorable state! However, not on all supported macOS versions of this application. Opt-in to secure coding explicitly by implementing NSApplicationDelegate.applicationSupportsSecureRestorableState:. Godot Engine v4.2.1.stable.official.b09f793f5 - https://godotengine.org TextServer: Added interface "Dummy" TextServer: Added interface "ICU / HarfBuzz / Graphite (Built-in)" [mvk-info] MoltenVK version 1.2.0, supporting Vulkan version 1.2.231. The following 83 Vulkan extensions are supported: VK_KHR_16bit_storage v1 VK_KHR_8bit_storage v1 VK_KHR_bind_memory2 v1 VK_KHR_buffer_device_address v1 VK_KHR_create_renderpass2 v1 VK_KHR_dedicated_allocation v3 VK_KHR_depth_stencil_resolve v1 VK_KHR_descriptor_update_template v1 VK_KHR_device_group v4 VK_KHR_device_group_creation v1 VK_KHR_driver_properties v1 VK_KHR_dynamic_rendering v1 VK_KHR_external_fence v1 VK_KHR_external_fence_capabilities v1 VK_KHR_external_memory v1 VK_KHR_external_memory_capabilities v1 VK_KHR_external_semaphore v1 VK_KHR_external_semaphore_capabilities v1 VK_KHR_fragment_shader_barycentric v1 VK_KHR_get_memory_requirements2 v1 VK_KHR_get_physical_device_properties2 v2 VK_KHR_get_surface_capabilities2 v1 VK_KHR_imageless_framebuffer v1 VK_KHR_image_format_list v1 VK_KHR_maintenance1 v2 VK_KHR_maintenance2 v1 VK_KHR_maintenance3 v1 VK_KHR_multiview v1 VK_KHR_portability_subset v1 VK_KHR_push_descriptor v2 VK_KHR_relaxed_block_layout v1 VK_KHR_sampler_mirror_clamp_to_edge v3 VK_KHR_sampler_ycbcr_conversion v14 VK_KHR_separate_depth_stencil_layouts v1 VK_KHR_shader_draw_parameters v1 VK_KHR_shader_float_controls v4 VK_KHR_shader_float16_int8 v1 VK_KHR_shader_subgroup_extended_types v1 VK_KHR_spirv_1_4 v1 VK_KHR_storage_buffer_storage_class v1 VK_KHR_surface v25 VK_KHR_swapchain v70 VK_KHR_swapchain_mutable_format v1 VK_KHR_timeline_semaphore v2 VK_KHR_uniform_buffer_standard_layout v1 VK_KHR_variable_pointers v1 VK_EXT_buffer_device_address v2 VK_EXT_debug_marker v4 VK_EXT_debug_report v10 VK_EXT_debug_utils v2 VK_EXT_descriptor_indexing v2 VK_EXT_fragment_shader_interlock v1 VK_EXT_hdr_metadata v2 VK_EXT_host_query_reset v1 VK_EXT_image_robustness v1 VK_EXT_inline_uniform_block v1 VK_EXT_memory_budget v1 VK_EXT_metal_objects v1 VK_EXT_metal_surface v1 VK_EXT_post_depth_coverage v1 VK_EXT_private_data v1 VK_EXT_robustness2 v1 VK_EXT_sample_locations v1 VK_EXT_scalar_block_layout v1 VK_EXT_separate_stencil_usage v1 VK_EXT_shader_stencil_export v1 VK_EXT_shader_viewport_index_layer v1 VK_EXT_subgroup_size_control v2 VK_EXT_swapchain_colorspace v4 VK_EXT_texel_buffer_alignment v1 VK_EXT_texture_compression_astc_hdr v1 VK_EXT_vertex_attribute_divisor v3 VK_AMD_gpu_shader_half_float v2 VK_AMD_negative_viewport_height v1 VK_AMD_shader_image_load_store_lod v1 VK_AMD_shader_trinary_minmax v1 VK_IMG_format_pvrtc v1 VK_INTEL_shader_integer_functions2 v1 VK_GOOGLE_display_timing v1 VK_MVK_macos_surface v3 VK_MVK_moltenvk v36 VK_NV_fragment_shader_barycentric v1 VK_NV_glsl_shader v1 [mvk-info] GPU device: model: Intel(R) Iris(TM) Plus Graphics type: Integrated vendorID: 0x8086 deviceID: 0x8a53 pipelineCacheUUID: 000027D8-0E02-07D2-0000-000000000000 supports the following Metal Versions, GPU's and Feature Sets: Metal Shading Language 3.0 GPU Family Mac 2 GPU Family Mac 1 GPU Family Common 3 GPU Family Common 2 GPU Family Common 1 macOS GPU Family 2 v1 macOS GPU Family 1 v4 macOS GPU Family 1 v3 macOS GPU Family 1 v2 macOS GPU Family 1 v1 [mvk-info] Created VkInstance for Vulkan version 1.2.0, as requested by app, with the following 4 Vulkan extensions enabled: VK_KHR_get_physical_device_properties2 v2 VK_KHR_surface v25 VK_EXT_debug_utils v2 VK_MVK_macos_surface v3 Vulkan devices: #0: Intel Intel(R) Iris(TM) Plus Graphics - Supported, Integrated Vulkan API 1.2.231 - Forward Mobile - Using Vulkan Device #0: Intel - Intel(R) Iris(TM) Plus Graphics Optional extension VK_KHR_fragment_shading_rate not found Optional extension VK_EXT_pipeline_creation_cache_control not found Optional extension VK_KHR_incremental_present not found - Vulkan Variable Rate Shading not supported - Vulkan multiview supported: max view count: 32 max instances: 134217727 - Vulkan subgroup: size: 32 min size: 32 max size: 32 stages: STAGE_TESSELLATION_CONTROL, STAGE_FRAGMENT, STAGE_COMPUTE supported ops: FEATURE_BASIC, FEATURE_VOTE, FEATURE_ARITHMETIC, FEATURE_BALLOT, FEATURE_SHUFFLE, FEATURE_SHUFFLE_RELATIVE, FEATURE_QUAD quad operations in all stages [mvk-info] Vulkan semaphores using MTLEvent. [mvk-info] Created VkDevice to run on GPU Intel(R) Iris(TM) Plus Graphics with the following 10 Vulkan extensions enabled: VK_KHR_16bit_storage v1 VK_KHR_create_renderpass2 v1 VK_KHR_image_format_list v1 VK_KHR_maintenance2 v1 VK_KHR_multiview v1 VK_KHR_shader_float16_int8 v1 VK_KHR_storage_buffer_storage_class v1 VK_KHR_swapchain v70 VK_EXT_subgroup_size_control v2 VK_GOOGLE_display_timing v1 [mvk-info] Created 3 swapchain images with initial size (1152, 648) and contents scale 1.0 for screen DELL S2722DZ (1). [mvk-info] Created 3 swapchain images with initial size (1152, 648) and contents scale 1.0 for screen DELL S2722DZ (1). [mvk-info] Created 3 swapchain images with initial size (2560, 1387) and contents scale 1.0 for screen DELL S2722DZ (1). [mvk-info] Created 3 swapchain images with initial size (2560, 1387) and contents scale 1.0 for screen DELL S2722DZ (1). Startup PSO cache (0.5 MiB) Using "default" pen tablet driver... Creating VMA small objects pool for memory type index 0 Shader 'CanvasSdfShaderRD' (group 0) SHA256: 5ea119f44a724a1f058ec3e8423ea4c3fe034d2ee82e56ebc747fa1a0baaa9bc Shader 'SkeletonShaderRD' (group 0) SHA256: fe51f4681cb5f660b134059f4679e894971aa2532215387c71ac9af2165388e2 Shader 'SortShaderRD' (group 0) SHA256: 5a41c903acc8ad1e3956c60de9e61da06b1c56eface70cc3724e243559fd968d Shader 'ParticlesShaderRD' (group 0) SHA256: 86438f71dfc097273a57316133b6295383452b82f247f0c32c6bacc2d24ab0de Shader 'ParticlesCopyShaderRD' (group 0) SHA256: a3e1fa80529fc326aaa0d25e1eb40783ae0890065374cacc3fb51bfee38dc2bf Shader 'CanvasShaderRD' (group 0) SHA256: ce2ff3af69127014b437cf6ef26d6ba65198c6c1ca61ad9a54466a14bb72a2f4 Shader 'CanvasOcclusionShaderRD' (group 0) SHA256: afa67418ce46d450afc59595eac9e84111a41a6eff5abaaa7651ab7795ef5254 Shader 'SceneForwardMobileShaderRD' (group 0) SHA256: b419e4ab0d78dc2724b2e9a9b3b0574016d4a076f726905b59882bea589d2a6d Shader 'SkyShaderRD' (group 0) SHA256: 2cbc48bdeaf80156e01ba054bc4a97b23ff406e51ef1a60b1ee5ec4b2fd8cf5d Shader 'BokehDofRasterShaderRD' (group 0) SHA256: 11902fef5e3b1aea49c9de355fc49c94414704ec539ac3a2274c926c49b4e26f Shader 'BlurRasterShaderRD' (group 0) SHA256: 46618603369d68d0540f9f9262d4cfeef17b4be845399248cbb16708c580f813 Shader 'CopyToFbShaderRD' (group 0) SHA256: ad524b1410c56ace12680ca485b507cba7f6026cce5a21066250f103a56e2c75 Shader 'CubeToDpShaderRD' (group 0) SHA256: cab703e71ceb93072e1cce6199c1a385846ce7b2af91ad4763e661e4982fc4ce Shader 'CubemapDownsamplerRasterShaderRD' (group 0) SHA256: 48cd383d9780101b03ec8f840c861d179bf16dc7fea8df675cf8c780acf38505 Shader 'CubemapFilterRasterShaderRD' (group 0) SHA256: 88913124ce5a66b777595d580d877bec7a7c970fbcfdd86385fbfef5eef039bf Shader 'CubemapRoughnessRasterShaderRD' (group 0) SHA256: 962afd6e2abfaf1b99d0014591faab8c6cad897df7f345da9b98d9a4f560c8d0 Shader 'SpecularMergeShaderRD' (group 0) SHA256: 2a1f4efcac9c94e97732581883706096b536a5591eeaafb086efa80e8418ffea Shader 'ShadowFrustumShaderRD' (group 0) SHA256: 8ffff230ab427840e93dd79dfa0631002d74a82943f4d1e3d3ce23c7a8954db4 Shader 'MotionVectorsShaderRD' (group 0) SHA256: 5dcc88fc536f1b60ee01359298130471af2a29487dcf556b67e0e953e8b91655 Shader 'LuminanceReduceRasterShaderRD' (group 0) SHA256: fbac6dbbf0071eb78b79e7807dfe60bffc6488db0ab9d31e0ee00df20319ce6e Shader 'TonemapShaderRD' (group 0) SHA256: b947a9cc5d44ad577b236462eb0a4fcd80bce1745c38ee168a8fcc9fa800bfe4 Shader 'BlitShaderRD' (group 0) SHA256: 0e6a459c322d7fb87a642985a50befb4eb4e0da295f7131ffa4ff65537e856b4 CoreAudio: detected 2 channels CoreAudio: audio buffer frames: 512 calculated latency: 11ms TextServer: Primary interface set to: "ICU / HarfBuzz / Graphite (Built-in)". 2024-01-28 07:07:08.956 Godot[2430:43070] WARNING: AVCaptureDeviceTypeExternal is deprecated for Continuity Cameras. Please use AVCaptureDeviceTypeContinuityCamera and add NSCameraUseContinuityCameraDeviceType to your Info.plist. CameraServer: Registered camera ShadowCast 2 with ID 1 and position 0 at index 0 CameraServer: Registered camera DELL Monitor RGB Webcam with ID 2 and position 0 at index 1 CameraServer: Registered camera DELL Monitor RGB Webcam with ID 3 and position 0 at index 2 CameraServer: Registered camera FaceTime HD Camera (Built-in) with ID 4 and position 0 at index 3 CameraServer: Registered camera Phillip’s iPhone Camera with ID 5 and position 0 at index 4 CORE API HASH: 915626997 EDITOR API HASH: 1313472085 EditorSettings: Load OK! WARNING: Blend file import is enabled in the project settings, but no Blender path is configured in the editor settings. Blend files will not be imported. at: _editor_init (modules/gltf/register_types.cpp:63) [mvk-info] Created 3 swapchain images with initial size (2560, 1387) and contents scale 1.0 for screen DELL S2722DZ (1). [mvk-info] Created 3 swapchain images with initial size (2560, 1359) and contents scale 1.0 for screen DELL S2722DZ (1). [mvk-info] Created 3 swapchain images with initial size (2560, 1415) and contents scale 1.0 for screen DELL S2722DZ (1). Loaded system CA certificates Creating VMA small objects pool for memory type index 1 EditorSettings: Save OK! [mvk-info] Created 3 swapchain images with initial size (2560, 1415) and contents scale 1.0 for screen DELL S2722DZ (1). [mvk-error] VK_ERROR_DEVICE_LOST: MTLCommandBuffer "vkQueueSubmit CommandBuffer on Queue 0-0" execution failed (code 2): Caused GPU Timeout Error (00000002:kIOAccelCommandBufferCallbackErrorTimeout) ERROR: VALIDATION - Message Id Number: 0 | Message Id Name: VK_ERROR_DEVICE_LOST: MTLCommandBuffer "vkQueueSubmit CommandBuffer on Queue 0-0" execution failed (code 2): Caused GPU Timeout Error (00000002:kIOAccelCommandBufferCallbackErrorTimeout) Objects - 1 Object[0] - VK_OBJECT_TYPE_QUEUE, Handle 105553135109352 at: _debug_messenger_callback (drivers/vulkan/vulkan_context.cpp:267) ERROR: Vulkan: Did not create swapchain successfully. Error code: VK_ERROR_DEVICE_LOST at: prepare_buffers (drivers/vulkan/vulkan_context.cpp:2459) ERROR: Vulkan: Cannot submit graphics queue. Error code: VK_ERROR_DEVICE_LOST at: swap_buffers (drivers/vulkan/vulkan_context.cpp:2536) ERROR: Vulkan: Did not create swapchain successfully. Error code: VK_ERROR_DEVICE_LOST at: prepare_buffers (drivers/vulkan/vulkan_context.cpp:2459) ERROR: Vulkan: Cannot submit graphics queue. Error code: VK_ERROR_DEVICE_LOST at: swap_buffers (drivers/vulkan/vulkan_context.cpp:2536) ERROR: Vulkan: Did not create swapchain successfully. Error code: VK_ERROR_DEVICE_LOST at: prepare_buffers (drivers/vulkan/vulkan_context.cpp:2459) ERROR: Vulkan: Cannot submit graphics queue. Error code: VK_ERROR_DEVICE_LOST at: swap_buffers (drivers/vulkan/vulkan_context.cpp:2536) ERROR: Vulkan: Did not create swapchain successfully. Error code: VK_ERROR_DEVICE_LOST at: prepare_buffers (drivers/vulkan/vulkan_context.cpp:2459) ERROR: Vulkan: Cannot submit graphics queue. Error code: VK_ERROR_DEVICE_LOST at: swap_buffers (drivers/vulkan/vulkan_context.cpp:2536) ERROR: Vulkan: Did not create swapchain successfully. Error code: VK_ERROR_DEVICE_LOST at: prepare_buffers (drivers/vulkan/vulkan_context.cpp:2459) ERROR: Vulkan: Cannot submit graphics queue. Error code: VK_ERROR_DEVICE_LOST at: swap_buffers (drivers/vulkan/vulkan_context.cpp:2536) ERROR: Vulkan: Did not create swapchain successfully. Error code: VK_ERROR_DEVICE_LOST at: prepare_buffers (drivers/vulkan/vulkan_context.cpp:2459) ERROR: Vulkan: Cannot submit graphics queue. Error code: VK_ERROR_DEVICE_LOST at: swap_buffers (drivers/vulkan/vulkan_context.cpp:2536) ERROR: Vulkan: Did not create swapchain successfully. Error code: VK_ERROR_DEVICE_LOST at: prepare_buffers (drivers/vulkan/vulkan_context.cpp:2459) ERROR: Vulkan: Cannot submit graphics queue. Error code: VK_ERROR_DEVICE_LOST at: swap_buffers (drivers/vulkan/vulkan_context.cpp:2536) ERROR: Vulkan: Did not create swapchain successfully. Error code: VK_ERROR_DEVICE_LOST at: prepare_buffers (drivers/vulkan/vulkan_context.cpp:2459) ERROR: Vulkan: Cannot submit graphics queue. Error code: VK_ERROR_DEVICE_LOST at: swap_buffers (drivers/vulkan/vulkan_context.cpp:2536) ERROR: Vulkan: Did not create swapchain successfully. Error code: VK_ERROR_DEVICE_LOST at: prepare_buffers (drivers/vulkan/vulkan_context.cpp:2459) ERROR: Vulkan: Cannot submit graphics queue. Error code: VK_ERROR_DEVICE_LOST at: swap_buffers (drivers/vulkan/vulkan_context.cpp:2536) ERROR: Vulkan: Did not create swapchain successfully. Error code: VK_ERROR_DEVICE_LOST at: prepare_buffers (drivers/vulkan/vulkan_context.cpp:2459) ERROR: Vulkan: Cannot submit graphics queue. Error code: VK_ERROR_DEVICE_LOST at: swap_buffers (drivers/vulkan/vulkan_context.cpp:2536) ERROR: Vulkan: Did not create swapchain successfully. Error code: VK_ERROR_DEVICE_LOST at: prepare_buffers (drivers/vulkan/vulkan_context.cpp:2459) ERROR: Vulkan: Cannot submit graphics queue. Error code: VK_ERROR_DEVICE_LOST at: swap_buffers (drivers/vulkan/vulkan_context.cpp:2536) ERROR: Vulkan: Did not create swapchain successfully. Error code: VK_ERROR_DEVICE_LOST at: prepare_buffers (drivers/vulkan/vulkan_context.cpp:2459) ERROR: Vulkan: Cannot submit graphics queue. Error code: VK_ERROR_DEVICE_LOST at: swap_buffers (drivers/vulkan/vulkan_context.cpp:2536) ERROR: Vulkan: Did not create swapchain successfully. Error code: VK_ERROR_DEVICE_LOST at: prepare_buffers (drivers/vulkan/vulkan_context.cpp:2459) ERROR: Vulkan: Cannot submit graphics queue. Error code: VK_ERROR_DEVICE_LOST at: swap_buffers (drivers/vulkan/vulkan_context.cpp:2536) ERROR: Vulkan: Did not create swapchain successfully. Error code: VK_ERROR_DEVICE_LOST at: prepare_buffers (drivers/vulkan/vulkan_context.cpp:2459) ERROR: Vulkan: Cannot submit graphics queue. Error code: VK_ERROR_DEVICE_LOST at: swap_buffers (drivers/vulkan/vulkan_context.cpp:2536) ERROR: Vulkan: Did not create swapchain successfully. Error code: VK_ERROR_DEVICE_LOST at: prepare_buffers (drivers/vulkan/vulkan_context.cpp:2459) ERROR: Vulkan: Cannot submit graphics queue. Error code: VK_ERROR_DEVICE_LOST at: swap_buffers (drivers/vulkan/vulkan_context.cpp:2536) ERROR: Vulkan: Did not create swapchain successfully. Error code: VK_ERROR_DEVICE_LOST at: prepare_buffers (drivers/vulkan/vulkan_context.cpp:2459) ERROR: Vulkan: Cannot submit graphics queue. Error code: VK_ERROR_DEVICE_LOST at: swap_buffers (drivers/vulkan/vulkan_context.cpp:2536) ERROR: Vulkan: Did not create swapchain successfully. Error code: VK_ERROR_DEVICE_LOST at: prepare_buffers (drivers/vulkan/vulkan_context.cpp:2459) ERROR: Vulkan: Cannot submit graphics queue. Error code: VK_ERROR_DEVICE_LOST at: swap_buffers (drivers/vulkan/vulkan_context.cpp:2536) ERROR: Vulkan: Did not create swapchain successfully. Error code: VK_ERROR_DEVICE_LOST at: prepare_buffers (drivers/vulkan/vulkan_context.cpp:2459) ERROR: Vulkan: Cannot submit graphics queue. Error code: VK_ERROR_DEVICE_LOST at: swap_buffers (drivers/vulkan/vulkan_context.cpp:2536) ERROR: Vulkan: Did not create swapchain successfully. Error code: VK_ERROR_DEVICE_LOST at: prepare_buffers (drivers/vulkan/vulkan_context.cpp:2459) ERROR: Vulkan: Cannot submit graphics queue. Error code: VK_ERROR_DEVICE_LOST at: swap_buffers (drivers/vulkan/vulkan_context.cpp:2536) ERROR: Vulkan: Did not create swapchain successfully. Error code: VK_ERROR_DEVICE_LOST at: prepare_buffers (drivers/vulkan/vulkan_context.cpp:2459) ERROR: Vulkan: Cannot submit graphics queue. Error code: VK_ERROR_DEVICE_LOST at: swap_buffers (drivers/vulkan/vulkan_context.cpp:2536) ERROR: Vulkan: Did not create swapchain successfully. Error code: VK_ERROR_DEVICE_LOST at: prepare_buffers (drivers/vulkan/vulkan_context.cpp:2459) ERROR: Vulkan: Cannot submit graphics queue. Error code: VK_ERROR_DEVICE_LOST at: swap_buffers (drivers/vulkan/vulkan_context.cpp:2536) ERROR: Vulkan: Did not create swapchain successfully. Error code: VK_ERROR_DEVICE_LOST at: prepare_buffers (drivers/vulkan/vulkan_context.cpp:2459) ERROR: Vulkan: Cannot submit graphics queue. Error code: VK_ERROR_DEVICE_LOST at: swap_buffers (drivers/vulkan/vulkan_context.cpp:2536) ERROR: Vulkan: Did not create swapchain successfully. Error code: VK_ERROR_DEVICE_LOST at: prepare_buffers (drivers/vulkan/vulkan_context.cpp:2459) ERROR: Vulkan: Cannot submit graphics queue. Error code: VK_ERROR_DEVICE_LOST at: swap_buffers (drivers/vulkan/vulkan_context.cpp:2536) ^C

renolc commented 9 months ago

As a temporary fix, if you have a Mobile project you need to open on an Intel Mac, open the project.godot file in any text editor and look for the renderer/rendering_method="mobile" line. From here you can:

  1. delete or comment out the line (by adding a ; to the beginning) to switch to Forward+ rendering
  2. change the line to renderer/rendering_method="gl_compatibility" to switch to Compatibility rendering

After changing to one of these two rendering methods, I can successfully open and continue working on my project.

renolc commented 9 months ago

Did some further testing today. The same issue happens in 4.1.3.stable, but not 4.1.2.stable. So whatever is borked must have been a change between those versions.

AThousandShips commented 9 months ago

Since it happens on 4.0.4 it unlikely to be a change added to 4.1.3 and not in 4.1.2 (unless it was fixed in 4.1.2, and then broken again in 4.1.3)

renolc commented 9 months ago

Hmm, very strange because just yesterday it was working fine in 4.1.2, but today it freezes just like the other 4.X versions I've tried. Maybe some kind of race condition producing inconsistent results.

What's extra weird is I made a 3d/mobile renderer game on 4.1.2 on this very laptop not that long ago and didn't have any issues throughout the whole project (maybe 2 weeks of daily dev), but now I can't even open that same project on this same laptop without godot freezing once it tries to render the 3d pane.

Mac has had some updates since then, so maybe that's a factor. 🤷

EDIT: just double checked and I finished up that 4.1.2 game about 4 months ago. I believe I updated to Sonoma after that, but I can't quite remember. Maybe something in Sonoma borked it