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

Declaring an inner class that extends a variable name crashes the engine, instead of just reporting an error (GDScript) #75870

Closed
nenad-jalsovec opened this issue Apr 9, 2023 · 0 comments · Fixed by #75879

Comments

@nenad-jalsovec
Copy link

nenad-jalsovec commented Apr 9, 2023

Godot version

4.0 stable official

System information

Windows 10

Issue description

This has been posted by an user over at godotforums.org, in a more complicated form. I just made a super-minimal example that's trivial to reproduce. Don't know if this was already reported.

Engine crashes to desktop without a warning when following script is created and then saved:

var B = 1
class A extends B:
	pass

I also tried it in console version with verbose and debug flags enabled. The output to console was:
ERROR: FATAL: Condition "!exists" is true.
at: operator[] (./core/templates/hash_map.h:504)

Steps to reproduce

  1. Create a new GDScript script file
  2. Enter the following code
var B = 1
class A extends B:
	pass
  1. Save the script file.
  2. Engine crashes immediately upon save.

Minimal reproduction project

N/A, trivial to reproduce.

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.

2 participants