Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[nodejs-binding] Crash during InferenceSession initialization: "Check failed: node->IsInUse()" #23794

Open
1 task done
Yezzle opened this issue Feb 24, 2025 · 0 comments
Open
1 task done
Labels
platform:web issues related to ONNX Runtime web; typically submitted using template

Comments

@Yezzle
Copy link

Yezzle commented Feb 24, 2025

环境信息

  • OS: Linux x64 (Ubuntu 20.04)
  • ONNX Runtime版本: [email protected]
  • Node.js版本: v22.12

错误描述

在初始化InferenceSession时服务崩溃,错误堆栈指向napi_delete_reference

复现步骤

  1. 安装依赖:
    npm install onnxruntime-node

完整错误日志



#
# Fatal error in , line 0
# Check failed: node->IsInUse().
#
#
#
#FailureMessage Object: 0x7f629a8d9d30
----- Native stack trace -----

 1: 0xffd291  [node]
 2: 0x2798c4b V8_Fatal(char const*, ...) [node]
 3: 0x13e86b9 v8::internal::GlobalHandles::Destroy(unsigned long*) [node]
 4: 0xf085c2 v8impl::Reference::~Reference() [node]
 5: 0xf138bb napi_delete_reference [node]
 6: 0x7f62c42eb39f InferenceSessionWrap::Init(Napi::Env, Napi::Object) [/devops/iflycode-document-parse-service-rag/node_modules/onnxruntime-node/bin/napi-v3/linux/x64/onnxruntime_binding.node]
 7: 0x7f62c42f4cb3 InitAll(Napi::Env, Napi::Object) [/devops/iflycode-document-parse-service-rag/node_modules/onnxruntime-node/bin/napi-v3/linux/x64/onnxruntime_binding.node]
 8: 0x7f62c42f4cdc  [/devops/iflycode-document-parse-service-rag/node_modules/onnxruntime-node/bin/napi-v3/linux/x64/onnxruntime_binding.node]
 9: 0xf34441 napi_module_register_by_symbol(v8::Local<v8::Object>, v8::Local<v8::Value>, v8::Local<v8::Context>, napi_value__* (*)(napi_env__*, napi_value__*), int) [node]
10: 0xf378ba  [node]
11: 0xedf507 node::Environment::TryLoadAddon(char const*, int, std::function<bool (node::binding::DLib*)> const&) [node]
12: 0xf36bff node::binding::DLOpen(v8::FunctionCallbackInfo<v8::Value> const&) [node]
13: 0x7f5febe0f5e2 
npm notice
npm notice New major version of npm available! 10.9.0 -> 11.1.0
npm notice Changelog: https://github.com/npm/cli/releases/tag/v11.1.0
npm notice To update run: npm install -g [email protected]
npm notice

附加信息

  • 我已确认:
    • 非必现
@github-actions github-actions bot added the platform:web issues related to ONNX Runtime web; typically submitted using template label Feb 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
platform:web issues related to ONNX Runtime web; typically submitted using template
Projects
None yet
Development

No branches or pull requests

1 participant