unum-cloud / uform

Pocket-Sized Multimodal AI for content understanding and generation across multilingual texts, images, and 🔜 video, up to 5x faster than OpenAI CLIP and LLaVA 🖼️ & 🖋️
https://unum-cloud.github.io/uform/
Apache License 2.0
1.03k stars 62 forks source link

ONNX Runtime crashes on exit (JavaScript) #83

Open ashvardanian opened 5 months ago

ashvardanian commented 5 months ago

If you run npm test you'll see models being downloaded and validated, but at the end, when the actual UForm tests have passed, it prints:

terminate called after throwing an instance of 'onnxruntime::OnnxRuntimeException'
  what():  /onnxruntime_src/onnxruntime/core/session/ort_env.cc:90 static void OrtEnv::Release(OrtEnv*) env_ptr == p_instance_.get() was false. 

Aborted

And exits with code 134. It's either coming from UForm or ONNX. In the first case, we may not be disposing some of the state properly.