Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unhandled Exception on opening of any project and build for 3.4 Beta 3 Mono #51344

Closed
Keppl opened this issue Aug 7, 2021 · 3 comments · Fixed by #51322
Closed

Unhandled Exception on opening of any project and build for 3.4 Beta 3 Mono #51344

Keppl opened this issue Aug 7, 2021 · 3 comments · Fixed by #51322

Comments

@Keppl
Copy link

Keppl commented Aug 7, 2021

Godot version

3.4-beta3-mono

System information

Windows 10

Issue description

Opening any project with Godot 3.4 beta 3 produces following on console/terminal:

Unhandled Exception:
System.NullReferenceException: Object reference not set to an instance of an object
at GodotTools.Build.MSBuildPanel._Notification (System.Int32 what) [0x00022] in :0
at (wrapper managed-to-native) Godot.EditorNativeCalls.godot_icall_2_387(intptr,intptr,intptr,string)
at Godot.EditorPlugin.AddControlToBottomPanel (Godot.Control control, System.String title) [0x00012] in :0
at GodotTools.GodotSharpEditor.EnablePlugin () [0x00066] in :0
ERROR: System.NullReferenceException: Object reference not set to an instance of an object
at: debug_send_unhandled_exception_error (modules/mono/mono_gd/gd_mono_utils.cpp:369)

Unhandled Exception:
System.NullReferenceException: Object reference not set to an instance of an object
at GodotTools.Build.MSBuildPanel._Notification (System.Int32 what) [0x00022] in :0
ERROR: System.NullReferenceException: Object reference not set to an instance of an object
at: debug_send_unhandled_exception_error (modules/mono/mono_gd/gd_mono_utils.cpp:369)

Building solution generates another one:

Unhandled Exception:
System.NullReferenceException: Object reference not set to an instance of an object
at GodotTools.Build.MSBuildPanel.BuildSolution () [0x0003a] in :0
at GodotTools.Build.MSBuildPanel.BuildMenuOptionPressed (GodotTools.Build.MSBuildPanel+BuildMenuOptions id) [0x00014] in :0
ERROR: System.NullReferenceException: Object reference not set to an instance of an object
at: debug_send_unhandled_exception_error (modules/mono/mono_gd/gd_mono_utils.cpp:369)

Happens for me on two different Windows machines.
Doesn't seems to have any negative effect, at least not on second machine. On first Godot crashed/closed once during build but I haven't tested if that was a persistent issue or a one off.

Not sure if this is related, but Editor Settings -> Mono -> Builds -> Build tool is showing a number for me.

Annotation 2021-08-06 223440

Similar to #50486 (comment)

Neither of those (exception or number in build tools instead of name/drop down) happens for me in 3.4 beta 2.

Steps to reproduce

Open any project in Godot v3.4 beta 3, on windows 10

Minimal reproduction project

No response

@Keppl Keppl changed the title Unhandled Exception on opening of any project and build for 3.4 Beta 3 Unhandled Exception on opening of any project and build for 3.4 Beta 3 Mono Aug 7, 2021
@OtherCannon
Copy link

I am having a similar issue, I created a new project in Godot 3.4 beta 3 Mono and upon creating a C# script Godot crashed. I checked the project folder and Godot had successfully created the .sln, .csproj, and C# script, but in the editor the script was not attached to the node. I tried reattaching it but Godot crashed. Something of note: The "Solution" option is no longer available in project settings.

@akien-mga akien-mga added this to the 3.4 milestone Aug 7, 2021
@akien-mga
Copy link
Member

akien-mga commented Aug 7, 2021

That's fixed by #51325. Bad timing sadly, I wasn't aware of the bug and upcoming fix when building beta 3.

Edit: I'm preparing a hotfix release with a backport of #51325: https://github.com/akien-mga/godot/tree/3.4-beta3-mono-hotfix

@akien-mga
Copy link
Member

Here's a hotfixed 3.4 beta 3 mono build which resolves this issue: https://downloads.tuxfamily.org/godotengine/3.4/beta3/mono/

You might not need to redownload the export templates if you have them already, only editor code was changed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants