Skip to content

[rmodels] Loading various models causes MSVC Heapcheck to fail on unload #4349

Closed
@HarryDC

Description

@HarryDC

Please, before submitting a new issue verify and check:

  • I tested it on latest raylib version from master branch
  • I checked there is no similar issue already reported
  • I checked the documentation on the wiki
  • My code has no errors or misuse of raylib

Issue description

Using Microsoft Visual Studio and a debug build, when i load various models from the Kenney Hex set in both .obj and .glb format, runtime issues a warning about a Heap Corruption at the UnloadModel() call, the same models work fine using v5.0. This even happens when just LoadModel()/UnloadModel() is used without drawing.

After using git bisect from the current main as of today back to v5.0 the offending commit was labeled as 86ead96 (Optional GPU Skinning)

Environment

Windows 11, MSVC

Issue Screenshot

image

image

Code Example

...
model = LoadModel("resources/obj/dirt.obj");
UnloadModel(model);
...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions