Page MenuHomeFeedback Tracker

Script vm invalid map template declaration not caught which leads to crash
Assigned, NormalPublic

Description

While my brain was AFK I typed up this declaration, forgetting to specify what the map key template type should be. But this does not throw some error in the script-vm during compilation as one expects, instead, it results in a crash to death. My fault of course, but I think it might be good to catch this for people who won't understand what they did wrong so easily.

class REPRODUCE_CRASH 
{
	ref map<ref map<string>> m_mNestedMap;
};

2023-06-12 12:08:06 (UTC) : Version: 0.9.8.73 - Report Successful (Crash GUID: 04a03954-76ba-4b0c-a6b9-5e328771d17f)

Details

Severity
Crash
Resolution
Open
Reproducibility
Always
Operating System
Windows 7
Category
General

Event Timeline

Arkensor created this task.Jun 12 2023, 2:07 PM
Arkensor updated the task description. (Show Details)
Geez changed the task status from New to Assigned.Jun 14 2023, 12:57 PM
Geez added a subscriber: Geez.Jul 10 2023, 10:19 AM

Hello Arkensor.
This does not crash for us but instead we receive compile error:

Not enough parameters for template class 'map'

Possibly fixed?

If my exact example is now compile erroring correctly the issue must have been fixed already. In that case this can be resolved yes