godotengine / godot

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

Crash on adding more than one scene instance with an OmniLight3D #85043

Open SixtenMachado opened 11 months ago

SixtenMachado commented 11 months ago

Godot version

4.2.beta5

System information

Godot v4.2.beta5 - macOS 10.14.6 - Vulkan (Forward+) - dedicated NVIDIA GeForce GT 750M - Intel(R) Core(TM) i7-4850HQ CPU @ 2.30GHz (8 Threads)

Issue description

For some reason, including more than one scene instance with an OmniLight3D crashes Godot. Sometimes it's forced my computer to reboot, other times it just freezes the engine. I noticed this when I wanted to make a glowing collectable. It doesn't seem to be a problem when the scene that the instances are put into is completely blank save for a root Node, it seems to happen when light is being cast on a mesh.

Steps to reproduce

Create a scene with a root Node and a MeshInstance3D plane, and a scene with a root Node3D and an OmniLight3D. Drag out two of the latter into the former.

Minimal reproduction project

N/A

Calinou commented 11 months ago

Vulkan (Forward+) - dedicated NVIDIA GeForce GT 750M

Vulkan-based renderers are not supported on NVIDIA GPUs on macOS, so please switch to the Compatibility rendering method in the top-right corner of the editor. I believe Vulkan-based renderers aren't expected to work on macOS versions older than 10.15 too.

I'm surprised Forward+ even started on your machine… It would never be able to start on Windows or Linux, because Kepler GPUs never had Vulkan support on mobile (only on desktop, and with significant bugs).

SixtenMachado commented 11 months ago

Dang, I didn't know. That's wild, I've had no issues other than this! Switching renderer resolved the issue. Mobile renderer seems to work too, btw, and gets the lighting looking a lot nicer.