godotengine / godot

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

Crash loading godot-demo-projects/2d/dodge_the_creeps #93416

Open r-owen opened 3 weeks ago

r-owen commented 3 weeks ago

Tested versions

Reproducible in: Godot v4.2.2.stable Not reproducible in: Godot v4.3.beta2

System information

macOS 14.5.0 - Apple M3 (8 Threads)

Issue description

When trying to load godot-demo-projects/2d/dodge_the_creeps (cloned today, master, hash fbb7cb442) Godot crashes with:

godot crash dump.txt

I have loaded it three ways, with the same result each time (crash dump is from the second): • Run Godot and use the Project Manger. Select Import and choose the godot.project file. • Run Finder and double-click the project file in the dodge_the_creeps directory • Run Terminal and type $ open path-to-godot.project

Steps to reproduce

$ git clone https://github.com/godotengine/godot-demo-projects.git $ open godot-demo-projects/2d/dodge_the_creeps double-click godot.project

Minimal reproduction project (MRP)

I have no idea what's wrong, so I can't provide anything smaller.

akien-mga commented 3 weeks ago

The crash reports points at an OpenGL driver crash. Does it work if you create a new project using the Vulkan renderer (Forward Plus or Mobile)?

Otherwise, it may be that the crash report points at the wrong cause due to not having debug symbols, so the problem could be related to something else.

Weird crashes on macOS in 4.2.x sound similar to #89678, could you check if the steps in https://github.com/godotengine/godot/issues/89678#issuecomment-2119006190 solve it?

r-owen commented 3 weeks ago

I can create new projects just fine, and also I have tested some of the other 2d examples and every one I tried (other than dodge_the_creeps) ran just fine.

Also I just tried Godot 4.3.beta2 and the demo works fine. So perhaps this can be closed as already fixed in prerelease.

I have no idea how to switch an existing project to a different renderer (I am just learning Godot), so I have not been able to try your suggestion of switching to Vulcan.

I think the workaround mentioned in #89678 of updating XCode does not apply to me, as I have not installed it. I had it on a previous computer, but it's such a pig I decided to see if I could manage without it on this one. However, a friend tried to reproduce this bug and found that updating XCode did make it go away.