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

Problem to import jpeg in AMC #74

Open
sylbui opened this issue Jan 14, 2022 · 5 comments
Open

Problem to import jpeg in AMC #74

sylbui opened this issue Jan 14, 2022 · 5 comments

Comments

@sylbui
Copy link

sylbui commented Jan 14, 2022

Good evening,

I have a problem when importing jpegs into AMC.
I have an error message that says for each jpeg: No layout for ID +0/0/0+
and in the logs, I have the following error message:

Warning: unable to close filehandle GEN8 properly: Broken pipe at /usr/local/Cellar/auto-multiple-choice/1.5.0/libexec/lib/perl5/AMC/Subprocess.pm line 115, line 4 during global destruction.
libc++abi: terminating with uncaught exception of type cv::Exception: OpenCV(4.5.4) /tmp/opencv-20220113-79025-13skakl/opencv-4.5.4/modules/imgproc/src/smooth.dispatch.cpp:294: error: (-215:Assertion failed) ksize.width > 0 && ksize.width % 2 == 1 && ksize.height > 0 && ksize.height % 2 == 1 in function 'createGaussianKernels'

Could you please help me?

Thank you in advance

@maelvls
Copy link
Owner

maelvls commented Jan 14, 2022

Hi,

Do you think you could provide a zip with the necessary files so that I can reproduce the issue locally? Thanks!

@sylbui
Copy link
Author

sylbui commented Jan 14, 2022

Bonsoir,
Oui biensure.
Quels fichiers avez-vous besoin que je mette dans le Zip ?
Ceux de l'installation d'AMC qui sont ici : /usr/local/Cellar/auto-multiple-choice ?

Par avance merci

@sylbui
Copy link
Author

sylbui commented Jan 14, 2022

Hi,

Do you think you could provide a zip with the necessary files so that I can reproduce the issue locally? Thanks!

Fichiers sources de l'installation AMC 1.5.0 sur MAC OS Big sur 11.6.1
auto-multiple-choice.zip

Le problème est survenu depuis que j'ai du mettre à jour ma version de zbar et imagemagick.
Sur un autre ordinateur, j'arrive sans problème à importer les jpeg et à corriger avec AMC le même projet et les mêmes scans. Je ne pense pas que le problème vienne des fichiers de mon projet.

N'hésitez pas à me dire si vous avez besoin de plus d'informations et d'autres fichiers.

Et voici le message d'erreur complet :

(AMC-gui.pl:1957): Gtk-CRITICAL **: 21:56:33.203: gtk_widget_draw: assertion '!widget->priv->alloc_needed' failed
readline() on closed filehandle CI at /usr/local/Cellar/auto-multiple-choice/1.5.0/libexec/lib/perl5/AMC/Queue.pm line 40.
libc++abi: terminating with uncaught exception of type cv::Exception: OpenCV(4.5.4) /tmp/opencv-20220113-79025-13skakl/opencv-4.5.4/modules/imgproc/src/smooth.dispatch.cpp:294: error: (-215:Assertion failed) ksize.width > 0 && ksize.width % 2 == 1 && ksize.height > 0 && ksize.height % 2 == 1 in function 'createGaussianKernels'

Use of uninitialized value in sprintf at /usr/local/Cellar/auto-multiple-choice/1.5.0/libexec/lib/perl5/AMC/Boite.pm line 210, <GEN9> line 4.
Use of uninitialized value in sprintf at /usr/local/Cellar/auto-multiple-choice/1.5.0/libexec/lib/perl5/AMC/Boite.pm line 210, <GEN9> line 4.
Use of uninitialized value in sprintf at /usr/local/Cellar/auto-multiple-choice/1.5.0/libexec/lib/perl5/AMC/Boite.pm line 210, <GEN9> line 4.
Use of uninitialized value in sprintf at /usr/local/Cellar/auto-multiple-choice/1.5.0/libexec/lib/perl5/AMC/Boite.pm line 210, <GEN9> line 4.
Use of uninitialized value in sprintf at /usr/local/Cellar/auto-multiple-choice/1.5.0/libexec/lib/perl5/AMC/Boite.pm line 210, <GEN9> line 4.
Use of uninitialized value in sprintf at /usr/local/Cellar/auto-multiple-choice/1.5.0/libexec/lib/perl5/AMC/Boite.pm line 210, <GEN9> line 4.
Use of uninitialized value in sprintf at /usr/local/Cellar/auto-multiple-choice/1.5.0/libexec/lib/perl5/AMC/Boite.pm line 210, <GEN9> line 4.
Use of uninitialized value in sprintf at /usr/local/Cellar/auto-multiple-choice/1.5.0/libexec/lib/perl5/AMC/Boite.pm line 210, <GEN9> line 4.
Warning: unable to close filehandle GEN8 properly: Broken pipe at /usr/local/Cellar/auto-multiple-choice/1.5.0/libexec/lib/perl5/AMC/Subprocess.pm line 115, <GEN9> line 4 during global destruction.
libc++abi: terminating with uncaught exception of type cv::Exception: OpenCV(4.5.4) /tmp/opencv-20220113-79025-13skakl/opencv-4.5.4/modules/imgproc/src/smooth.dispatch.cpp:294: error: (-215:Assertion failed) ksize.width > 0 && ksize.width % 2 == 1 && ksize.height > 0 && ksize.height % 2 == 1 in function 'createGaussianKernels'

Use of uninitialized value in sprintf at /usr/local/Cellar/auto-multiple-choice/1.5.0/libexec/lib/perl5/AMC/Boite.pm line 210, <GEN9> line 4.
Use of uninitialized value in sprintf at /usr/local/Cellar/auto-multiple-choice/1.5.0/libexec/lib/perl5/AMC/Boite.pm line 210, <GEN9> line 4.
Use of uninitialized value in sprintf at /usr/local/Cellar/auto-multiple-choice/1.5.0/libexec/lib/perl5/AMC/Boite.pm line 210, <GEN9> line 4.
Use of uninitialized value in sprintf at /usr/local/Cellar/auto-multiple-choice/1.5.0/libexec/lib/perl5/AMC/Boite.pm line 210, <GEN9> line 4.
Use of uninitialized value in sprintf at /usr/local/Cellar/auto-multiple-choice/1.5.0/libexec/lib/perl5/AMC/Boite.pm line 210, <GEN9> line 4.
Use of uninitialized value in sprintf at /usr/local/Cellar/auto-multiple-choice/1.5.0/libexec/lib/perl5/AMC/Boite.pm line 210, <GEN9> line 4.
Use of uninitialized value in sprintf at /usr/local/Cellar/auto-multiple-choice/1.5.0/libexec/lib/perl5/AMC/Boite.pm line 210, <GEN9> line 4.
Use of uninitialized value in sprintf at /usr/local/Cellar/auto-multiple-choice/1.5.0/libexec/lib/perl5/AMC/Boite.pm line 210, <GEN9> line 4.
Warning: unable to close filehandle GEN8 properly: Broken pipe at /usr/local/Cellar/auto-multiple-choice/1.5.0/libexec/lib/perl5/AMC/Subprocess.pm line 115, <GEN9> line 4 during global destruction.
libc++abi: terminating with uncaught exception of type cv::Exception: OpenCV(4.5.4) /tmp/opencv-20220113-79025-13skakl/opencv-4.5.4/modules/imgproc/src/smooth.dispatch.cpp:294: error: (-215:Assertion failed) ksize.width > 0 && ksize.width % 2 == 1 && ksize.height > 0 && ksize.height % 2 == 1 in function 'createGaussianKernels'

Use of uninitialized value in sprintf at /usr/local/Cellar/auto-multiple-choice/1.5.0/libexec/lib/perl5/AMC/Boite.pm line 210, <GEN9> line 4.
Use of uninitialized value in sprintf at /usr/local/Cellar/auto-multiple-choice/1.5.0/libexec/lib/perl5/AMC/Boite.pm line 210, <GEN9> line 4.
Use of uninitialized value in sprintf at /usr/local/Cellar/auto-multiple-choice/1.5.0/libexec/lib/perl5/AMC/Boite.pm line 210, <GEN9> line 4.
Use of uninitialized value in sprintf at /usr/local/Cellar/auto-multiple-choice/1.5.0/libexec/lib/perl5/AMC/Boite.pm line 210, <GEN9> line 4.
Use of uninitialized value in sprintf at /usr/local/Cellar/auto-multiple-choice/1.5.0/libexec/lib/perl5/AMC/Boite.pm line 210, <GEN9> line 4.
Use of uninitialized value in sprintf at /usr/local/Cellar/auto-multiple-choice/1.5.0/libexec/lib/perl5/AMC/Boite.pm line 210, <GEN9> line 4.
Use of uninitialized value in sprintf at /usr/local/Cellar/auto-multiple-choice/1.5.0/libexec/lib/perl5/AMC/Boite.pm line 210, <GEN9> line 4.
Use of uninitialized value in sprintf at /usr/local/Cellar/auto-multiple-choice/1.5.0/libexec/lib/perl5/AMC/Boite.pm line 210, <GEN9> line 4.
Warning: unable to close filehandle GEN8 properly: Broken pipe at /usr/local/Cellar/auto-multiple-choice/1.5.0/libexec/lib/perl5/AMC/Subprocess.pm line 115, <GEN9> line 4 during global destruction.
libc++abi: terminating with uncaught exception of type cv::Exception: OpenCV(4.5.4) /tmp/opencv-20220113-79025-13skakl/opencv-4.5.4/modules/imgproc/src/smooth.dispatch.cpp:294: error: (-215:Assertion failed) ksize.width > 0 && ksize.width % 2 == 1 && ksize.height > 0 && ksize.height % 2 == 1 in function 'createGaussianKernels'

Use of uninitialized value in sprintf at /usr/local/Cellar/auto-multiple-choice/1.5.0/libexec/lib/perl5/AMC/Boite.pm line 210, <GEN9> line 4.
Use of uninitialized value in sprintf at /usr/local/Cellar/auto-multiple-choice/1.5.0/libexec/lib/perl5/AMC/Boite.pm line 210, <GEN9> line 4.
Use of uninitialized value in sprintf at /usr/local/Cellar/auto-multiple-choice/1.5.0/libexec/lib/perl5/AMC/Boite.pm line 210, <GEN9> line 4.
Use of uninitialized value in sprintf at /usr/local/Cellar/auto-multiple-choice/1.5.0/libexec/lib/perl5/AMC/Boite.pm line 210, <GEN9> line 4.
Use of uninitialized value in sprintf at /usr/local/Cellar/auto-multiple-choice/1.5.0/libexec/lib/perl5/AMC/Boite.pm line 210, <GEN9> line 4.
Use of uninitialized value in sprintf at /usr/local/Cellar/auto-multiple-choice/1.5.0/libexec/lib/perl5/AMC/Boite.pm line 210, <GEN9> line 4.
Use of uninitialized value in sprintf at /usr/local/Cellar/auto-multiple-choice/1.5.0/libexec/lib/perl5/AMC/Boite.pm line 210, <GEN9> line 4.
Use of uninitialized value in sprintf at /usr/local/Cellar/auto-multiple-choice/1.5.0/libexec/lib/perl5/AMC/Boite.pm line 210, <GEN9> line 4.
Warning: unable to close filehandle GEN8 properly: Broken pipe at /usr/local/Cellar/auto-multiple-choice/1.5.0/libexec/lib/perl5/AMC/Subprocess.pm line 115, <GEN9> line 4 during global destruction.
libc++abi: terminating with uncaught exception of type cv::Exception: OpenCV(4.5.4) /tmp/opencv-20220113-79025-13skakl/opencv-4.5.4/modules/imgproc/src/smooth.dispatch.cpp:294: error: (-215:Assertion failed) ksize.width > 0 && ksize.width % 2 == 1 && ksize.height > 0 && ksize.height % 2 == 1 in function 'createGaussianKernels'

Use of uninitialized value in sprintf at /usr/local/Cellar/auto-multiple-choice/1.5.0/libexec/lib/perl5/AMC/Boite.pm line 210, <GEN9> line 4.
Use of uninitialized value in sprintf at /usr/local/Cellar/auto-multiple-choice/1.5.0/libexec/lib/perl5/AMC/Boite.pm line 210, <GEN9> line 4.
Use of uninitialized value in sprintf at /usr/local/Cellar/auto-multiple-choice/1.5.0/libexec/lib/perl5/AMC/Boite.pm line 210, <GEN9> line 4.
Use of uninitialized value in sprintf at /usr/local/Cellar/auto-multiple-choice/1.5.0/libexec/lib/perl5/AMC/Boite.pm line 210, <GEN9> line 4.
Use of uninitialized value in sprintf at /usr/local/Cellar/auto-multiple-choice/1.5.0/libexec/lib/perl5/AMC/Boite.pm line 210, <GEN9> line 4.
Use of uninitialized value in sprintf at /usr/local/Cellar/auto-multiple-choice/1.5.0/libexec/lib/perl5/AMC/Boite.pm line 210, <GEN9> line 4.
Use of uninitialized value in sprintf at /usr/local/Cellar/auto-multiple-choice/1.5.0/libexec/lib/perl5/AMC/Boite.pm line 210, <GEN9> line 4.
Use of uninitialized value in sprintf at /usr/local/Cellar/auto-multiple-choice/1.5.0/libexec/lib/perl5/AMC/Boite.pm line 210, <GEN9> line 4.
Warning: unable to close filehandle GEN8 properly: Broken pipe at /usr/local/Cellar/auto-multiple-choice/1.5.0/libexec/lib/perl5/AMC/Subprocess.pm line 115, <GEN9> line 4 during global destruction.
libc++abi: terminating with uncaught exception of type cv::Exception: OpenCV(4.5.4) /tmp/opencv-20220113-79025-13skakl/opencv-4.5.4/modules/imgproc/src/smooth.dispatch.cpp:294: error: (-215:Assertion failed) ksize.width > 0 && ksize.width % 2 == 1 && ksize.height > 0 && ksize.height % 2 == 1 in function 'createGaussianKernels'

Use of uninitialized value in sprintf at /usr/local/Cellar/auto-multiple-choice/1.5.0/libexec/lib/perl5/AMC/Boite.pm line 210, <GEN9> line 4.
Use of uninitialized value in sprintf at /usr/local/Cellar/auto-multiple-choice/1.5.0/libexec/lib/perl5/AMC/Boite.pm line 210, <GEN9> line 4.
Use of uninitialized value in sprintf at /usr/local/Cellar/auto-multiple-choice/1.5.0/libexec/lib/perl5/AMC/Boite.pm line 210, <GEN9> line 4.
Use of uninitialized value in sprintf at /usr/local/Cellar/auto-multiple-choice/1.5.0/libexec/lib/perl5/AMC/Boite.pm line 210, <GEN9> line 4.
Use of uninitialized value in sprintf at /usr/local/Cellar/auto-multiple-choice/1.5.0/libexec/lib/perl5/AMC/Boite.pm line 210, <GEN9> line 4.
Use of uninitialized value in sprintf at /usr/local/Cellar/auto-multiple-choice/1.5.0/libexec/lib/perl5/AMC/Boite.pm line 210, <GEN9> line 4.
Use of uninitialized value in sprintf at /usr/local/Cellar/auto-multiple-choice/1.5.0/libexec/lib/perl5/AMC/Boite.pm line 210, <GEN9> line 4.
Use of uninitialized value in sprintf at /usr/local/Cellar/auto-multiple-choice/1.5.0/libexec/lib/perl5/AMC/Boite.pm line 210, <GEN9> line 4.
Warning: unable to close filehandle GEN8 properly: Broken pipe at /usr/local/Cellar/auto-multiple-choice/1.5.0/libexec/lib/perl5/AMC/Subprocess.pm line 115, <GEN9> line 4 during global destruction.
libc++abi: terminating with uncaught exception of type cv::Exception: OpenCV(4.5.4) /tmp/opencv-20220113-79025-13skakl/opencv-4.5.4/modules/imgproc/src/smooth.dispatch.cpp:294: error: (-215:Assertion failed) ksize.width > 0 && ksize.width % 2 == 1 && ksize.height > 0 && ksize.height % 2 == 1 in function 'createGaussianKernels'

Use of uninitialized value in sprintf at /usr/local/Cellar/auto-multiple-choice/1.5.0/libexec/lib/perl5/AMC/Boite.pm line 210, <GEN9> line 4.
Use of uninitialized value in sprintf at /usr/local/Cellar/auto-multiple-choice/1.5.0/libexec/lib/perl5/AMC/Boite.pm line 210, <GEN9> line 4.
Use of uninitialized value in sprintf at /usr/local/Cellar/auto-multiple-choice/1.5.0/libexec/lib/perl5/AMC/Boite.pm line 210, <GEN9> line 4.
Use of uninitialized value in sprintf at /usr/local/Cellar/auto-multiple-choice/1.5.0/libexec/lib/perl5/AMC/Boite.pm line 210, <GEN9> line 4.
Use of uninitialized value in sprintf at /usr/local/Cellar/auto-multiple-choice/1.5.0/libexec/lib/perl5/AMC/Boite.pm line 210, <GEN9> line 4.
Use of uninitialized value in sprintf at /usr/local/Cellar/auto-multiple-choice/1.5.0/libexec/lib/perl5/AMC/Boite.pm line 210, <GEN9> line 4.
Use of uninitialized value in sprintf at /usr/local/Cellar/auto-multiple-choice/1.5.0/libexec/lib/perl5/AMC/Boite.pm line 210, <GEN9> line 4.
Use of uninitialized value in sprintf at /usr/local/Cellar/auto-multiple-choice/1.5.0/libexec/lib/perl5/AMC/Boite.pm line 210, <GEN9> line 4.
Warning: unable to close filehandle GEN8 properly: Broken pipe at /usr/local/Cellar/auto-multiple-choice/1.5.0/libexec/lib/perl5/AMC/Subprocess.pm line 115, <GEN9> line 4 during global destruction.
libc++abi: terminating with uncaught exception of type cv::Exception: OpenCV(4.5.4) /tmp/opencv-20220113-79025-13skakl/opencv-4.5.4/modules/imgproc/src/smooth.dispatch.cpp:294: error: (-215:Assertion failed) ksize.width > 0 && ksize.width % 2 == 1 && ksize.height > 0 && ksize.height % 2 == 1 in function 'createGaussianKernels'

Use of uninitialized value in sprintf at /usr/local/Cellar/auto-multiple-choice/1.5.0/libexec/lib/perl5/AMC/Boite.pm line 210, <GEN9> line 4.
Use of uninitialized value in sprintf at /usr/local/Cellar/auto-multiple-choice/1.5.0/libexec/lib/perl5/AMC/Boite.pm line 210, <GEN9> line 4.
Use of uninitialized value in sprintf at /usr/local/Cellar/auto-multiple-choice/1.5.0/libexec/lib/perl5/AMC/Boite.pm line 210, <GEN9> line 4.
Use of uninitialized value in sprintf at /usr/local/Cellar/auto-multiple-choice/1.5.0/libexec/lib/perl5/AMC/Boite.pm line 210, <GEN9> line 4.
Use of uninitialized value in sprintf at /usr/local/Cellar/auto-multiple-choice/1.5.0/libexec/lib/perl5/AMC/Boite.pm line 210, <GEN9> line 4.
Use of uninitialized value in sprintf at /usr/local/Cellar/auto-multiple-choice/1.5.0/libexec/lib/perl5/AMC/Boite.pm line 210, <GEN9> line 4.
Use of uninitialized value in sprintf at /usr/local/Cellar/auto-multiple-choice/1.5.0/libexec/lib/perl5/AMC/Boite.pm line 210, <GEN9> line 4.
Use of uninitialized value in sprintf at /usr/local/Cellar/auto-multiple-choice/1.5.0/libexec/lib/perl5/AMC/Boite.pm line 210, <GEN9> line 4.
Warning: unable to close filehandle GEN8 properly: Broken pipe at /usr/local/Cellar/auto-multiple-choice/1.5.0/libexec/lib/perl5/AMC/Subprocess.pm line 115, <GEN9> line 4 during global destruction.

@maelvls
Copy link
Owner

maelvls commented Jan 15, 2022

Merci pour le zip. Il y a peut-être eu un "breaking change" avec soit imagemagick ou opencv; l'appel à createGaussianKernels est par exemple fait dans AMC-detect.cc.

Pour reproduire l'erreur, il me faudrait aussi un zip du projet AMC (si possible) avec les fichiers JPEG scannés. Le projet est dans:

~/projets-QCM/<nom-du-projet>

S'il s'agit de documents sensibles, vous pouvez m'envoyer le zip à mael@vls.dev.

@sylbui
Copy link
Author

sylbui commented Jan 15, 2022 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants