Skip to content

GameStudio crashes when multi-selecting entities in specific scene (ArgumentNullException in IsPrimitiveType / Nullable.GetUnderlyingType) #2903

@dawnmichal

Description

@dawnmichal

Release Type: Official Release

Version: 4.2.1.2442

Platform(s): Windows 11

Describe the bug
GameStudio crashes when I select multiple entities at once in the scene editor/hierarchy. Selecting the same entities one by one does not crash. The crash appears related to the property/inspector UI trying to determine a primitive type for a null Type/nullable value.

Expected behavior
Inspector shows a combined selection (or disables mismatched properties) without crashing.

Log and callstacks
CrashReport.txt

Additional context

  • This does not occur when selecting entities individually.
  • It seems to depend on the specific scene/content. Likely triggered when one of the selected entities has a component/property of type System.Type or a Nullable that is currently null, and the inspector checks IsPrimitiveType without a null guard.
  • Unrelated build errors about missing audio assets were present in the log (Audio/Vehicles/Engine01, Audio/Vehicles/skid), but they don’t appear to cause the crash.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions