Skip to content

Segment Fault Error occured on MacOS. #37

@jayhanjaelee

Description

@jayhanjaelee

I'm tryting to build an GUI Calculator application to watch your youtube content.
I've already installed GLFW, and leif and clipboard, OpenGL math Libraries.
After that, I just copy and paste Hello, World Example from README.

compile was okay, but an segmentation fault was occured when I run it,
When I debugged it using LLDB. It seems to occur an error when lf_load_font_asset was called.

This is an debugging log the program stopped in LLDB.

Process 64908 stopped

  • thread Updates to Scripts #1, queue = 'com.apple.main-thread', stop reason = instruction step over
    frame #0: 0x0000000100036644 calclf_init_glfw + 196 calclf_init_glfw:
    -> 0x100036644 <+196>: bl 0x10003784c ; lf_load_font_asset
    0x100036648 <+200>: adrp x8, 78
    0x10003664c <+204>: ldr d1, [x8, #0xc8]
    0x100036650 <+208>: str s1, [x19, #0x5b0]
    Target 0: (calc) stopped.
    (lldb)
    Process 64908 stopped
  • thread Updates to Scripts #1, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=1, address=0x0)
    frame #0: 0x0000000000000000
    error: memory read failed for 0x0
    Target 0: (calc) stopped.

My System Environment is as below.

  • MacOS Tahoe 26.2
  • GLFW 3.4
  • leif installed from main branch

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