Page MenuHomeFeedback Tracker

Calling GetCurrentFile on ResourceBrowser crashes Workbench due to illegal write
Assigned, UrgentPublic

Details

Severity
None
Resolution
Open
Reproducibility
N/A
Operating System
Windows 10 x64
Category
General
Steps To Reproduce

Step[0]: Run the following code

ResourceBrowser m_Module = Workbench.GetModule("ResourceManager");
if (m_Module) {
	string filename;
	m_Module.GetCurrentFile(filename);
}

Step[1]: Crash!

Additional Information

Note that this function works fine for ScriptEditor, but fails to work with ResourceBrowser.

The following code will not crash and happily print output!

ScriptEditor m_Module = Workbench.GetModule("ScriptEditor");
if (m_Module) {
	string filename;
	m_Module.GetCurrentFile(filename);
	Print(filename);
}

devs plz fix fast i got a cool plugin im tryna build that needs this :(

Event Timeline

duplicated by mistake. please delete

Geez changed the task status from New to Assigned.Aug 19 2020, 12:53 PM