Skip to content

GGML_ASSERT(prev != ggml_uncaught_exception) on dynamic library load #15752

@luiznpi

Description

@luiznpi

While dynamically loading/unloading from an executable the ggml.dll I get often, but not always, this exception from ggml.cpp:

GGML_ASSERT(prev != ggml_uncaught_exception)

Even though I was clearing context, samples and model before unload the dll.

Learned that the "const auto prev{ std::get_terminate() } is set as a global on the C runtime, that is not reloaded between ggml.dll loads.

Even if I wanted I am not able to load twice the same ggml.dll on windows, so for me I can live without this exception. Is there a valid purpose for this exception ?

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