Page MenuHomeFeedback Tracker

Clear Callqueue crash
Assigned, NormalPublic

Description

When clearing the callqueue from within a method executed via the callqueue, the game will crash.

Details

Severity
Crash
Resolution
Open
Reproducibility
Always
Operating System
Windows 7
Category
General
Steps To Reproduce
  1. For demonstration purposes, create a class with a static method that clears the callqueue:
class StaticClearCQ
{
	static void ClearCQ()
	{
		GetGame().GetCallqueue().Clear();
	}
}
  1. Open a world such as GM_Arland.ent and play it from the Workbench.
  2. While the game is running, test the method using the console:
StaticClearCQ.ClearCQ();

It is executed successfully without any apparent issues.

  1. Now, try the same but via the Callqueue:
GetGame().GetCallqueue().Call(StaticClearCQ.ClearCQ);

Once the ClearCQ method is executed, the Workbench crashes.

Event Timeline

TilW created this task.Jun 27 2024, 1:24 AM
Arkensor claimed this task.Jun 27 2024, 9:03 AM
Arkensor changed the task status from New to Assigned.