YomiNinja
YomiNinja copied to clipboard
Application crashes whenever trying to copy the OCR text
I've been trying the app some more and for some reason now it crashes whenever I try to copy the OCRd text. It works if I close my browser, but I was able to use it just fine a few days ago... I reinstalled it and even tried with the new version but same thing. I only have 8GBs of Ram and oldish CPU, but I'm able to play modern games for the most part, so idk...
initializing wih address: 0.0.0.0:12345
stdout: Notice: this application is experimental!!!
Args usage: [app_settings_preset] [language_code] [server_port]
e.g.: default ja 12345
App settings: default
inference_backend: Open_VINO
server_port: 12345
cpu_threads: 4
language_code: ch, preset_name: chinese_v4
language_code: en, preset_name: english_v4
language_code: ja, preset_name: japanese_v4
language_code: ko, preset_name: korean_v4
[INFO-JSON]:{"server_address":"0.0.0.0:12345"}
processing recognition input
stdout:
Models:
det_model_dir: ./models/ch_PP-OCRv4_det_infer
cls_model_dir: ./models/ch_ppocr_mobile_v2.0_cls_infer
rec_model_dir: ./models/japan_PP-OCRv4_rec_infer
rec_label_file: ./recognition_label_files/dict_japan.txt
stdout: [INFO] fastdeploy/runtime/backends/openvino/ov_backend.cc(218)::fastdeploy::OpenVINOBackend::InitFromPaddle
number of streams:1.
[INFO] fastdeploy/runtime/backends/openvino/ov_backend.cc(228)::fastdeploy::OpenVINOBackend::InitFromPaddle affinity:YES.
[INFO] fastdeploy/runtime/backends/openvino/ov_backend.cc(240)::fastdeploy::OpenVINOBackend::InitFromPaddle Compile OpenVINO model on device_name:CPU.
stdout: [INFO] fastdeploy/runtime/runtime.cc(286)::fastdeploy::Runtime::CreateOpenVINOBackend Runtime initialized with Backend::OPENVINO in Device::CPU.
stdout: [INFO] fastdeploy/runtime/backends/openvino/ov_backend.cc(218)::fastdeploy::OpenVINOBackend::InitFromPaddle
number of streams:1.
[INFO] fastdeploy/runtime/backends/openvino/ov_backend.cc(228)::fastdeploy::OpenVINOBackend::InitFromPaddle affinity:YES.
[INFO] fastdeploy/runtime/backends/openvino/ov_backend.cc(240)::fastdeploy::OpenVINOBackend::InitFromPaddle Compile OpenVINO model on device_name:CPU.
stdout: [INFO] fastdeploy/runtime/runtime.cc(286)::fastdeploy::Runtime::CreateOpenVINOBackend Runtime initialized with Backend::OPENVINO in Device::CPU.
stdout: [INFO] fastdeploy/runtime/backends/openvino/ov_backend.cc(218)::fastdeploy::OpenVINOBackend::InitFromPaddle
number of streams:1.
[INFO] fastdeploy/runtime/backends/openvino/ov_backend.cc(228)::fastdeploy::OpenVINOBackend::InitFromPaddle affinity:YES.
[INFO] fastdeploy/runtime/backends/openvino/ov_backend.cc(240)::fastdeploy::OpenVINOBackend::InitFromPaddle Compile OpenVINO model on device_name:CPU.
stdout: [INFO] fastdeploy/runtime/runtime.cc(286)::fastdeploy::Runtime::CreateOpenVINOBackend Runtime initialized with Backend::OPENVINO in Device::CPU.
controller.recognize: 2.111s
I should also mention that my mouse gets super laggy when I copy the text, after that it crashes.
Seems like it is exactly the same problem I was having weeks ago, as the application crashes without throwing errors, making it difficult to find out what is causing it. Please try version 0.3.1 and let me know if you get different results.
Okay... It seems to have something to do with my browser (Edge). Tried with Opera GX with a bunch of stuff opened and it worked flawlessly... I'll let you know if I figure out what's causing it exactly lol Also makes sense it worked before since I only switched to Edge recently.
Alright so it only seems to happen with Edge when I have a lot of tabs opened, but I only had 1 tab active and the rest suspended so it only consumed 800mb of RAM and a little CPU... My Opera GX session consumed almost twice as that.
I opened Edge with only a few windows and, even though they were all active and consumed more RAM and CPU than the one with many suspended windows, the program worked perfectly without crashing.
Does the crash still occur if you disable the 'Show Yomichan window on text copy' settings option?
Does the crash still occur if you disable the 'Show Yomichan window on text copy' settings option?
Disabling it fixed it lol. Works perfect now.
Can you confirm if this is solved for you on the last version and if so close the ticket?