Skip to content

Segfault on LoadModelAnimations #164

@konsumer

Description

@konsumer

jardeltorres reported on raylib discord, so I followed up.

The code works fine if the animation is commented out, but segfaults if not. Additionally, I get TypeError: r.SetMaterialTexture is not a function

I forked their repro here

* thread #1, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=1, address=0x1)
    frame #0: 0x0000000104ddcd61 node-raylib.node`LoadModelAnimations + 177
node-raylib.node`LoadModelAnimations:
->  0x104ddcd61 <+177>: movl   %eax, (%r15)
    0x104ddcd64 <+180>: movl   0x54(%r13), %eax
    0x104ddcd68 <+184>: shlq   $0x2, %rax
    0x104ddcd6c <+188>: leaq   (%rax,%rax,4), %rdi
Target 0: (node) stopped.

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