godotengine / godotengine/godot

Crashes when building project with C# script

Open
#88,372 9 comments 0 reactions 0 assignees View on GitHub
bug needs testing platform:windows topic:dotnet topic:editor
Dominant language
C++
Stars
117k
Forks
26.8k
PR merge metrics
PR metrics pending

Description

### Tested versions

Reproducible in v4.2.1.stable.mono.official [b09f793f5]

### System information

Godot v4.2.1.stable.mono - Windows 10.0.19045 - GLES3 (Compatibility) - NVIDIA RTX 3500 Ada Generation Laptop GPU (NVIDIA; 31.0.15.2919) - 13th Gen Intel(R) Core(TM) i9-13950HX (32 Threads)

### Issue description

Clicking the Run button or pressing F5 causes a dialog with "Building .NET project" to appear. The dialog never goes away, and Godot is no longer responsive. Need to kill the application.

### Steps to reproduce

This can be reproduced by clicking the Run button or press F5 to run. Also by going to the MSBuild menu and click the Build button. Choose "Build Project". Choosing "Clean Project" however never caused a crash.

### Minimal reproduction project (MRP)

Was able to reproduce the error using the attached project. Reproducible using the steps above.

[MRP.zip](https://github.com/godotengine/godot/files/14301039/MRP.zip)

Contributor guide

Open the contributing guide

Research direction

Start with the attached MRP.zip and reproduce the hang using Run or F5, then the MSBuild menu's Build Project action on Godot v4.2.1.stable.mono. Compare this with Clean Project, which does not reproduce the issue. Done means building the C# project no longer hangs or makes Godot unresponsive.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
build-system
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.