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

npm run start-app crashes with "failed to load resource" #1297

Open
jameshiew opened this issue Nov 22, 2024 · 0 comments
Open

npm run start-app crashes with "failed to load resource" #1297

jameshiew opened this issue Nov 22, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@jameshiew
Copy link

jameshiew commented Nov 22, 2024

Describe the bug
Trying to run the app with npm run start-app, it crashes shortly after starting with this error.

   Compiling bloop v0.6.4 (/opt/workspace/3p/bloop/apps/desktop/src-tauri)
    Finished `dev` profile [optimized + debuginfo] target(s) in 15.63s
The application panicked (crashed).
Message:  failed to resolve resource
Location: apps/desktop/src-tauri/src/config.rs:21

Expected behavior
npm run start-app not to panic.

To Reproduce

  • On commit e0d3fec
  • macOS 15.1.1 (24B91) on M1 Pro
  • rustc 1.79.0 (129f3b996 2024-06-10)
  • nodejs v22.11.0

Following the instructions at https://github.com/BloopAI/bloop/blob/e0d3fec2884e88d229b91638d34ee157edeb148b/apps/desktop/README.md.

I have onnxruntime installed through brew install onnxruntime. Re. this issue - #1246 - I updated tauri.conf.json first to point to my installed dylib instead of frameworks/libonnxruntime.dylib.

        "frameworks": [
          "/opt/homebrew/Cellar/onnxruntime/1.20.0/lib/libonnxruntime.dylib"
        ],

I can then run npm run start-app from the root directory, and briefly access the web app at http://localhost:5173/, before it crashes with the error from here.

let path = app
.path_resolver()
.resolve_resource("config/config.json")
.expect("failed to resolve resource");

config/config.json exists in my local repo at apps/desktop/src-tauri/config/config.json.

npm run start (running the Tauri app in release mode) doesn't give this issue

@jameshiew jameshiew added the bug Something isn't working label Nov 22, 2024
@jameshiew jameshiew changed the title Running app crashes with "failed to load resource" npm run start-app crashes with "failed to load resource" Nov 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant