Skip to content

REGISTER_ARCHETYPES crashes with ERR_MEM_MULTIALLOC_FREE on builds 3407 and later #3771

@manzarek123

Description

@manzarek123

What happened?

When using REGISTER_ARCHETYPES on builds 3407 and later you have a chance to generate a crash

Error: RAGE error: ERR_MEM_MULTIALLOC_FREE
A game error (at 000000014133c562) caused the game to stop working.

Game memory error. Please reboot and restart the game.

script error in native 000000003c2f9037: exception at address FiveM_b3570_GTAProcess.exe+133C55D
Process crash captured. Crash dialog content:
RAGE error: ERR_MEM_MULTIALLOC_FREE
A game error (at 000000014133c562) caused the game to stop working.

Game memory error. Please reboot and restart the game.

Crash report service returned si-0aea649635cc4f2f8e909043638a1a1a

The number of archetypes that can be created seems to be related to the number of YTYP loaded at the time of creation.

Expected result

Native not crashing

Reproduction steps

  1. start archetypeRepro
  2. type command "arch"
  3. wait for the crash

Importancy

Crash

Area(s)

FiveM

Specific version(s)

FiveM 3407 and more

Additional information

archetypeRepro.zip

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugcrashtriageNeeds a preliminary assessment to determine the urgency and required action

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions