homebrew-amc icon indicating copy to clipboard operation
homebrew-amc copied to clipboard

Problem to import jpeg in AMC

Open sylbui opened this issue 3 years ago • 5 comments

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, <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'

Could you please help me?

Thank you in advance

sylbui avatar Jan 14 '22 18:01 sylbui

Hi,

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

maelvls avatar Jan 14 '22 20:01 maelvls

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 avatar Jan 14 '22 20:01 sylbui

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.

sylbui avatar Jan 14 '22 20:01 sylbui

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 à [email protected].

maelvls avatar Jan 15 '22 10:01 maelvls

Et si jamais chez-moi Le dossier ~/projets-QCM est vide vu qu’on le génére avec des scripts et on essaie d’avoir une seule version de script pr Linux et Mac OS. ça n’a pas posé de problèmes jusqu’à ma mise à jour d’imagemagick…

Bon après-midi,

Sylvie

De : Maël Valais @.> Répondre à : maelvls/homebrew-amc @.> Date : samedi, 15 janvier 2022 à 11:39 À : maelvls/homebrew-amc @.> Cc : Bui Sylvie Lan @.>, Author @.***> Objet : Re: [maelvls/homebrew-amc] Problem to import jpeg in AMC (Issue #74)

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.cchttps://gitlab.com/jojo_boulix/auto-multiple-choice/-/blob/master/AMC-detect.cc#L218.

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/

S'il s'agit de documents sensibles, vous pouvez me les envoyer à @.***

— Reply to this email directly, view it on GitHubhttps://github.com/maelvls/homebrew-amc/issues/74#issuecomment-1013659494, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AQF2KD2B4PXCQZ6PK4YFVW3UWFFE5ANCNFSM5L7P7V6Q. Triage notifications on the go with GitHub Mobile for iOShttps://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Androidhttps://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub. You are receiving this because you authored the thread.Message ID: @.***>

sylbui avatar Jan 15 '22 13:01 sylbui