moxin-org / moxin

Moxin: an AI LLM platform in pure Rust
https://www.moxin.app
Apache License 2.0
134 stars 17 forks source link

Crash error: logger with name 'wasi_logging_stdout' already exists #158

Closed jmbejar closed 1 month ago

jmbejar commented 1 month ago

The application crashes when a second model is loaded, showing the following error:

libc++abi: terminating due to uncaught exception of type spdlog::spdlog_ex: logger with name 'wasi_logging_stdout' already exists

It happens in the following flows:

In all cases, the backend seems to struggle to load a new model.

L-jasmine commented 1 month ago

@hydai https://github.com/moxin-org/moxin/blob/fb3d19c0307ff11d71f55f99665d13e728f34614/moxin-backend/src/backend_impls/api_server.rs#L100-L107

L-jasmine commented 1 month ago

@jmbejar Try this simple way to fix the problem , delete the WasiNNLogging plugin from your plugins folder

jmbejar commented 1 month ago

@L-jasmine After removing ~/.wasmedge/plugin/libwasmedgePluginWasiLogging.dylib the issue didn't happen again, so the solution to this issue is related with this plugin. What should be done to avoid this issue in other users?

guofoo commented 1 month ago

Can we provide a version check to make sure the FE and BE stays consistent - and give a message to user when things are out of alignment and need further steps (such as re-installing something)