bloop icon indicating copy to clipboard operation
bloop copied to clipboard

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

Open jameshiew opened this issue 1 year ago • 0 comments
trafficstars

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 e0d3fec2884e88d229b91638d34ee157edeb148b
  • 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 - https://github.com/BloopAI/bloop/issues/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.

https://github.com/BloopAI/bloop/blob/e0d3fec2884e88d229b91638d34ee157edeb148b/apps/desktop/src-tauri/src/config.rs#L18-L21

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 avatar Nov 22 '24 13:11 jameshiew