Open KoBeWi opened 11 months ago
I tested with 4.1, and it does crash but with more info (no 4.2 build to test with rn):
as pointed out, removing the repeat_enable
thing fixes the editor crash on my end (so in 4.1 stable).
@mieldepoche repeat_enable
for sampler arrays is not supported in 4.1, hence the error.
Removing it does not fix the crash for me.
EDIT: Although removing texture arrays from stored ShaderMaterial parameters does fix the crash. Which is weird, because it was working perfectly, until it stopped for no reason.
Ok found what causes it 😬😬😬 The crash happens at startup in a destructor. Sus, isn't it? Well, that's because the material is loaded and destroyed. It happens on launch and inside a thread. The culprit is resource preview generator. I "fixed" the crash by placing the material in a gdignored folder 🤦♂️
I'm not sure if this is the same bug but I encountered something similar. changing a loaded scene from var -> const causes core/variant/array.cpp:55 - Parameter "_fp" is null.
and editor crashes. However, this is fixed when I remove my assets
folder (images and sound files).
https://github.com/godotengine/godot/assets/49021946/e5560164-e656-4f7e-8d03-e0fdc5d4e39f
Godot version
4.2 dc05278
System information
Windows 10.0.19045 - Vulkan (Forward+) - dedicated NVIDIA GeForce GTX 1060 (NVIDIA; 30.0.15.1403) - Intel(R) Core(TM) i7-7700HQ CPU @ 2.80GHz (8 Threads)
Issue description
I was casually doing something in a project when eventually the editor crashed and then I wasn't able to open the project at all. I removed every file except a single directory, which seems to be cause. It has a few textures and materials. The crash is silent.
Debugger stack:
Steps to reproduce
Minimal reproduction project
Unfortunately the textures are quite big and I was not able to remove them without fixing the crash. https://ufile.io/gq6ns9o3