-
Notifications
You must be signed in to change notification settings - Fork 58
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
[CLI] Illegal instruction (core dumped) under Proxmox VM #52
Comments
Can you provide details of:
Previous reports of this error have involved some kind of CPU virtualization (#49, robertknight/rten#35). I was able to run Ocrs on the two images you provided and got the correct output, so there isn't an issue with the image itself. |
Can you confirm the CPU model being used by the VM? It doesn't appear in that screenshot. See #49 (comment). For the best performance, you want something that supports AVX-2 / FMA. I'm not familiar with Proxmox, but it sounds like the "host" option is the easiest way to get this. If there is a There is a bug as Ocrs shouldn't just crash if the capability is not present, but the fallback without these CPU features will be somewhat slower. |
Thanks for the report. I was able to trigger an Illegal Instruction error using an Ubuntu 24.04 VM running under emulation in UTM (qemu), with the CPU set to Intel Nehalem (see https://en.wikipedia.org/wiki/X86-64#Microarchitecture_levels), which is a pre-AVX2 CPU. The issue is fixed upstream by robertknight/rten#131 and should be in the next Ocrs release. Backtrace:
|
This fixes a crash on x64 CPUs that don't support AVX2 instructions, and generally improves performance. Fixes #52
ocrs-cli v0.6.0 has been released which should fix the issue. I would still recommend configuring your VM to use a newer CPU, as using one that supports AVX2 will be 2-4x faster. |
Just try w/ 0.6.0, works well, thanks for quick response! |
Installed w/
cargo install ocrs-cli
trying to run
ocr <filename>
on this 2 images (png) return aIllegal instruction (core dumped)
output:The text was updated successfully, but these errors were encountered: