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

Custom C# script templates sometimes cause the editor to freeze permanently #35796

Open
macjuul opened this issue Jan 31, 2020 · 1 comment
Open

Comments

@macjuul
Copy link
Contributor

macjuul commented Jan 31, 2020

Godot version:
3.2 (Mono)

OS/device including version:
Windows 10

Issue description:
When creating a C# script from a custom template (located in script_templates) the editor sometimes permanently freezes and locks up when the .mono directory is present. Some more details gathered after testing:

  • The .mono directory generated when opening the project does not cause the freeze
  • The freeze always happens after pressing the build button, or running the game
  • Deleting the .mono directory does not prevent the crash until the editor is restarted
  • Just restarting Godot without deleting .mono does not fix the issue
  • No errors/logs in the console

crash

The contents of my script look like this

using Godot;
using System;

namespace Asteroids
{

    public class %CLASS% : %BASE%
    {

        public override void _Ready()
        {
           
        }

        public override void _Process(float delta)
        {
            
        }

    }

}

Steps to reproduce:

  • Open up a working Mono project
  • Creating a script from a custom template freezes the editor
  • Close the editor & delete the .mono directory
  • Custom scripts now work again

Minimal reproduction project:
I prefer to keep my projects source private, and so far attempting to reproduce the issue in separate projects hasn't worked out yet

This issue started happening around the same time as my other issue #35664

@KoBeWi
Copy link
Member

KoBeWi commented Dec 11, 2020

Can anyone still reproduce this bug in Godot 3.2.3 or any later release?

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

No branches or pull requests

3 participants