Skip to content

Thread.spawn() crashes an Android #22963

Open
@tsokano

Description

Zig Version

0.14.0-dev.3145+6a6e72fff

Steps to Reproduce and Observed Behavior

I am sorry that I have not been able to pinpoint the exact cause, but file this as an issue.

src.zip

This worked up to 42e48b8 but crashes after 6a6e72f.

export fn sokol_main() sokol.app.Desc {
    _ = std.Thread.spawn(.{}, hello, .{}) catch |e| {
        std.log.debug("{}", .{e});
    };
    ...

Adding this line causes a crash in main_anroid.zig.

Expected Behavior

No crash.

Activity

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

Metadata

Assignees

No one assigned

    Labels

    bugObserved behavior contradicts documented or intended behavioros-android

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions