Skip to content

Webui is crashing after closing in a thread. #632

@OsakiTsukiko

Description

@OsakiTsukiko

Works just fine on the main thread but when i put it inside a separate thread it gives segfault on closing.
(i am on zig but i think this is not zig related)

Segmentation fault at address 0x7efd138ce7e0
???:?:?: 0x7efd138ce7e0 in ??? (???)
Unwind information for `???:0x7efd138ce7e0` was not available, trace may be incomplete

???:?:?: 0x7efd2269686f in ??? (libc.so.6)
???:?:?: 0x7efd2271aa4b in ??? (libc.so.6)

after closing the window

        var win = webui.newWindow();
        win.setHide(true);

        _ = try win.bind("toggle_close", toggleClose);
        win.setFrameless(true);

        try win.show(index);
        webui.wait();

this is my thread function ^

try dashboard.spawn();
defer dashboard.join();

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