Skip to content

Heap getting corrupted when moving from the stack to the heap with the string class on Windows #57

@Raelr

Description

@Raelr

Description

The String class is running into issues with memory corruption on Windows. When the string exceeds a certain number of characters it moves to be allocated on the heap. When this occurs, a memory corruption error occurs and the memory is lost. This seems to be due to memory allocation differences between Unix and Windows.

Reproduction Steps

  1. Run the Gameapp on Windows in editor mode (using the --editor flag).
  2. Open the console and start typing. When the string length exceeds a certain number it'll disappear and produce a randomised string.

Technical Details

  • OS Version: windows-latest
  • Project Version: latest

Additional Comments

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingutilsRelating to the engine's utils

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions