CesiumGS / CesiumGS/cesium

Cannot run Cesium on Windows - error loading onnxruntime

Open
#13,316 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
15.8k
Forks
3.9k
Avg merge
4d 6h
Merged PRs (30d)
34

Description

Environment:

  • Windows 11
  • Node.js v24.14.0

Process:

  • npm install seems to work
  • npm run build seems to work
  • npm run start causes an error:
> cesium@1.139.1 start
> node server.js

node:internal/modules/cjs/loader:1970
  return process.dlopen(module, path.toNamespacedPath(filename));
                 ^

Error: error: 1114\\?\C:\cesium\node_modules\onnxruntime-node\bin\napi-v3\win32\x64\onnxruntime_binding.node
    at Object..node (node:internal/modules/cjs/loader:1970:18)
    at Module.load (node:internal/modules/cjs/loader:1533:32)
    at Module._load (node:internal/modules/cjs/loader:1335:12)
    at wrapModuleLoad (node:internal/modules/cjs/loader:255:19)
    at Module.require (node:internal/modules/cjs/loader:1556:12)
    at require (node:internal/modules/helpers:152:16)
    at Object.<anonymous> (C:\cesium\node_modules\onnxruntime-node\dist\binding.js:10:1)
    at Module._compile (node:internal/modules/cjs/loader:1812:14)
    at Object..js (node:internal/modules/cjs/loader:1943:10)
    at Module.load (node:internal/modules/cjs/loader:1533:32) {
  code: 'ERR_DLOPEN_FAILED'
}

So I cannot be the only one who's encountering this, right? Maybe someone can figure out how to resolve this. I don't need that "AI-based transformer model embeddings stuff", so for now, I resolved it by literally just commenting out

https://github.com/CesiumGS/cesium/blob/59843497080681a63242c59db45f02bf93dbf22c/packages/sandcastle/scripts/buildGallery.js#L13

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the Windows 11 failure with npm install, npm run build, and npm run start, then inspect packages/sandcastle/scripts/buildGallery.js at the linked line and the onnxruntime-node loading path shown in the stack trace. Done means npm run start works on the reported Windows and Node.js versions without commenting out that line.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, nodejs
Domain
backend, build-system
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.