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

Internal Script Error! - opcode #0 (report please) #45224

Closed
Speedphoenix opened this issue Jan 16, 2021 · 2 comments
Closed

Internal Script Error! - opcode #0 (report please) #45224

Speedphoenix opened this issue Jan 16, 2021 · 2 comments

Comments

@Speedphoenix
Copy link

Error message in terminal:

ERROR: call: Condition ' op >= Variant::OP_MAX ' is true. Breaking..:
   At: modules/gdscript/gdscript_function.cpp:451.

Godot version:

Godot Engine v3.2.2.stable.official - https://godotengine.org

OS/device including version:

OpenGL ES 3.0 Renderer: Mesa Intel(R) HD Graphics 520 (SKL GT2)

Issue description:

The game froze less than a minute after launching it from the editor and the debugger had the message
Internal Script Error! - opcode #0 (report please)

Steps to reproduce:
Unsure

Minimal reproduction project:

I was not able to reproduce this issue.
Note that my project has a lot of some randomness to it. I do not have the seeds, but if it helps, the issue occurred a few minutes before 2021-01-16T02:57:00+0000

0 - res://scripts/events/DecisionSimple.gd:24 - at function: on_refused
1 - res://scripts/events/TurnController.gd:75 - at function: trigger_next_turn
2 - res://scripts/events/TurnController.gd:66 - at function: on_turn_timeout

The method on_turn_timeout was called from a timer's timeout signal
The method trigger_next_turn emits a turn_changed signal
The editor pointed the stack trace 0 to the yield statement on this signal

func _apply_refuse_expire():
	yield(turn_controller, "turn_changed")
	gauge_controller.apply_to_gauges(refuse_or_expire_effects.on_gauges)

func on_refused(scene_tree: SceneTree) -> void:
	_apply_refuse_expire()

This issue happened on this project, on commit c4aea98, when running the scene res://dummytests/TestScene.tscn from the editor (using F6).

I have created the branch godot-issue-2 (at 6bc0cf9) where I removed every resource that has no relation to TestScene.tscn, but as I could not reproduce this to begin with, I did not remove any of the components that are remotely related.

The zip attachment is this project at commit 6bc0cf9 where I cleaned what is certainly unrelated
internal script error project.zip

@Demindiro
Copy link
Contributor

Demindiro commented Jan 16, 2021

See #42379

@Calinou
Copy link
Member

Calinou commented Jan 16, 2021

Duplicate of #42379 (same cause). Feel free to comment there with the minimal reproduction project.

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