Skip to content

Interpreter is null when loading model in async context (Release mode only, M2 Mac) #20

@zibo-chen

Description

@zibo-chen

When trying to wrap mnn-rs with async interfaces, the Interpreter fails to load models (returns null) specifically in release mode. This only occurs in async contexts - synchronous code works fine in both debug and release modes.

Create async function that loads MNN model

Build in release mode

Run - Interpreter is null

Same code works in debug mode or when using sync code

Has the development team encountered similar issues with async contexts in release mode? Any known workarounds or debugging suggestions?

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