stella-labs / planck-releases

Releases of Planck.
4 stars 0 forks source link

Download OCR model fails #1

Open blueatria opened 5 days ago

blueatria commented 5 days ago

I have installed on macOS. When I try the download OCR model it does not work with the following

image

otherwise it seems to be ok.

Its-Satyajit commented 3 days ago

Same issue

image

logs

Db directory: /home/satyajit/.planck
Database migrated
Applying vibrancy to window: main with theme: None
Applying vibrancy to window: main with theme: Some(Dark)
Applying vibrancy to window: onboarding with theme: Some(Dark)
Applying vibrancy to window: settings with theme: Some(Dark)
Changing onboarding state to completed
Applying vibrancy to window: fui with theme: Some(Dark)
Changing onboarding state to completed
thread 'tokio-runtime-worker' panicked at client/src-tauri/src/lib.rs:114:22:
called `Result::unwrap()` on an `Err` value: "Failed to download text-detection-v1.rten: Failed to rename file text-detection-v1.rten\n\nCaused by:\n    Invalid cross-device link (os error 18)\n\nLocation:\n    client/src-tauri/src/utils/download.rs:99:10"
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Changing onboarding state to completed
Changing onboarding state to completed
Changing onboarding state to completed
Applying vibrancy to window: fui with theme: None
Applying vibrancy to window: settings with theme: None
Ynng commented 3 days ago

Thank you for your feedback! I have successfully reproduced and fixed this bug. The solution was to replace the file rename operations with copy/move operations. This fix will be included in the next release, which will be available very soon.