Skip to content

Assert on first thread allocation on 3.5.2 #1398

Closed

Description

Hey.
Just updated to 3.5.2 and it asserts about missing theap in the very first allocation on new thread.

Editor_debug.exe!_mi_assert_fail(const char * assertion, const char * fname, unsigned int line, const char * func) Line 572	C++
Editor_debug.exe!mi_theap_malloc(mi_theap_s * theap, unsigned __int64 size) Line 278	C++
Editor_debug.exe!mi_theap_alloc_new(mi_theap_s * theap, unsigned __int64 size) Line 830	C++
Editor_debug.exe!mi_new(unsigned __int64 size) Line 837	C++
Editor_debug.exe!operator new(unsigned __int64 n) Line 40	C++

mi_new() -> _mi_theap_default() seems to return nullptr. 100% occurrence. 3.5.1 verified to behave correct.

Activity

  1. daanx commented on Sep 15, 2026

    @daanx
    Collaborator

    Thanks for the report! I'll revise this.

  2. sagaceilo commented on Sep 15, 2026

    @sagaceilo
    Author

    dev3 is no longer asserts in mi_new, but now getting the same as #1402

  3. daanx commented on Sep 15, 2026

    @daanx
    Collaborator

    Fixed #1402; Still working on the right approach with NULL theaps.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions