correction impossible - broken pipe - libjasper missing

Added by yann gavet over 5 years ago

Bonjour,
lorsque je souhaite lancer la correction automatique (chargement des scan), j'ai un message d'erreur:
/usr/lib/AMC/exec/AMC-detect: error while loading shared libraries: libjasper.so.1: cannot open shared object file: No such file or directory
Warning: unable to close filehandle GEN1 properly: Broken pipe at /usr/share/perl5/AMC/Subprocess.pm line 105 during global destruction.

Je suis sous ubuntu 18.04. Il n'y a effectivement pas de libjasper sur le système, et pas moyen d'en trouver une dans les paquets.
J'ai un peu plus de 5Go de libres sur mon disque, cela me semble suffisant pour gérer les fichiers temporaires.

Si vous avez des pistes à m'indiquer, je suis preneur.
Merci par avance
yann

[  13615,   1.38] [13615]>>
This is AutoMultipleChoice, version 1.4.0~rc2 (r:620ef5a)
Perl: /usr/bin/perl v5.26.1

========================================

Version: ImageMagick 6.9.7-4 Q16 x86_64 20170114 http://www.imagemagick.org
Copyright: © 1999-2017 ImageMagick Studio LLC
License: http://www.imagemagick.org/script/license.php
Features: Cipher DPC Modules OpenMP 
Delegates (built-in): bzlib djvu fftw fontconfig freetype jbig jng jpeg lcms lqr ltdl lzma openexr pangocairo png tiff wmf x xml zlib
========================================

GraphicsMagick 1.3.28 2018-01-20 Q16 http://www.GraphicsMagick.org/
Copyright (C) 2002-2018 GraphicsMagick Group.
Additional copyrights and licenses apply to this software.
See http://www.GraphicsMagick.org/www/Copyright.html for details.

Feature Support:
  Native Thread Safe       yes
  Large Files (> 32 bit)   yes
  Large Memory (> 32 bit)  yes
  BZIP                     yes
  DPS                      no
  FlashPix                 no
  FreeType                 yes
  Ghostscript (Library)    no
  JBIG                     yes
  JPEG-2000                no
  JPEG                     yes
  Little CMS               yes
  Loadable Modules         no
  OpenMP                   yes (201511)
  PNG                      yes
  TIFF                     yes
  TRIO                     no
  UMEM                     no
  WebP                     yes
  WMF                      yes
  X11                      yes
  XML                      yes
  ZLIB                     yes

Host type: x86_64-pc-linux-gnu

Configured using the command:
  ./configure  '--build' 'x86_64-linux-gnu' '--enable-shared' '--enable-static' '--enable-libtool-verbose' '--prefix=/usr' '--mandir=${prefix}/share/man' '--infodir=${prefix}/share/info' '--docdir=${prefix}/share/doc/graphicsmagick' '--with-gs-font-dir=/usr/share/fonts/type1/gsfonts' '--with-x' '--x-includes=/usr/include/X11' '--x-libraries=/usr/lib/X11' '--without-dps' '--without-modules' '--without-frozenpaths' '--with-webp' '--with-perl' '--with-perl-options=INSTALLDIRS=vendor' '--enable-quantum-library-names' '--with-quantum-depth=16' 'build_alias=x86_64-linux-gnu' 'CFLAGS=-Wall -g -fno-strict-aliasing -O2' 'LDFLAGS=' 'CXXFLAGS=-Wall -g -fno-strict-aliasing -O2'

Final Build Parameters:
  CC       = gcc
  CFLAGS   = -fopenmp -Wall -g -fno-strict-aliasing -O2 -Wall -pthread
  CPPFLAGS = -I/usr/include/X11 -I/usr/include/freetype2 -I/usr/include/libxml2
  CXX      = g++
  CXXFLAGS = -Wall -g -fno-strict-aliasing -O2 -pthread
  LDFLAGS  = -L/usr/lib/X11
  LIBS     = -ljbig -lwebp -lwebpmux -llcms2 -ltiff -lfreetype -ljpeg -lpng16 -lwmflite -lXext -lSM -lICE -lX11 -llzma -lbz2 -lxml2 -lz -lm -lgomp -lpthread
========================================

[  13823,   0.01] [vTRS] <-  capture
[  13826,   0.02] Connecting to database capture...
[  13829,   0.00] Opening RO transaction for layout [rVAR]...
[  13829,   0.00] [rVAR] <-  layout
[  13823,   0.01] Closing transaction for capture [vTRS]...
[  13822,   0.02] [CFLD]  X  capture
[  13823,   0.01] [vTRS]  X  capture
[  13826,   0.02] Loading perl module capture...
[  13822,   0.02] ERROR(): No layout for ID +0/0/0+
[  13829,   0.00] Closing transaction for layout [rVAR]...
[  13823,   0.01] Module capture loaded.
[  13826,   0.02] Checking database version...
[  13822,   0.02] Image sending QUIT
[  13829,   0.00] [rVAR]  X  layout
[  13615,   7.94] Detected ERR message
[  13823,   0.01] Opening RW transaction for capture [CFLD]...
[  13822,   0.02] CMD : quit
[  13826,   0.02] Opening RO transaction for capture [rVAR]...
Warning: unable to close filehandle GEN2 properly: Broken pipe at /usr/share/perl5/AMC/Subprocess.pm line 105 during global destruction.
[  13829,   0.00] variables table present.
[  13826,   0.02] [rVAR] <-  capture
[  13822,   0.02] Image finished: parent times [   0.02,   0.00]
[  13823,   0.01] [CFLD] <-> capture
[  13829,   0.00] Opening RO transaction for layout [vTRS]...
[  13823,   0.01] Preparing statement Failed
[  13829,   0.00] [vTRS] <-  layout
[  13826,   0.02] Closing transaction for capture [rVAR]...
[  13829,   0.00] Closing transaction for layout [vTRS]...
[  13823,   0.01] Closing transaction for capture [CFLD]...
[  13826,   0.02] [rVAR]  X  capture
[  13804,   0.45] MAJ : 13823 13826 13829
[  13829,   0.00] [vTRS]  X  layout
[  13826,   0.02] variables table present.
[  13804,   0.45] Fork : 13830
[  13830,   0.00] Analysing scan /home/yann/Documents/Projets-QCM/TS_2018/scans/E1-10.pdf-page-014-013_0010.pbm
[  13829,   0.00] Module layout loaded.
[  13826,   0.02] Opening RO transaction for capture [vTRS]...
[  13804,   0.45] MAJ : 13823 13826 13829 13830
[  13830,   0.00] Connecting to database layout...
[  13823,   0.01] [CFLD]  X  capture
[  13829,   0.00] Exec subprocess...
[  13830,   0.00] Loading perl module layout...
[  13826,   0.02] [vTRS] <-  capture
[  13823,   0.01] ERROR(): No layout for ID +0/0/0+
[  13829,   0.00] /usr/lib/AMC/exec/AMC-detect -x 2480.31494396015 -y 3507.87397260274 -d 42.519511994409 -p 0.2 -m 0.2 -c 3 -t 0.8 -o 1
[  13830,   0.00] Checking database version...
[  13826,   0.02] Closing transaction for capture [vTRS]...
[  13615,   7.94] Detected ERR message
[  13826,   0.02] [vTRS]  X  capture
[  13830,   0.00] Opening RO transaction for layout [rVAR]...
[  13823,   0.01] Image sending QUIT
[  13829,   0.00] PID=13831 : GLOB(0x555cab7891e8) --> GLOB(0x555cab7891d0)
[  13830,   0.00] [rVAR] <-  layout
[  13823,   0.01] CMD : quit
[  13826,   0.02] Module capture loaded.
Warning: unable to close filehandle GEN2 properly: Broken pipe at /usr/share/perl5/AMC/Subprocess.pm line 105 during global destruction.
[  13829,   0.00] CMD : load /home/yann/Documents/Projets-QCM/TS_2018/scans/E1-10.pdf-page-013-012_0010.pbm
[  13823,   0.01] Image finished: parent times [   0.01,   0.00]
[  13826,   0.02] Opening RW transaction for capture [CFLD]...
[  13830,   0.00] Closing transaction for layout [rVAR]...
[  13829,   0.00] Global frame:
[  13826,   0.02] [CFLD] <-> capture
[  13830,   0.00] [rVAR]  X  layout
[  13829,   0.00] (0.00,0.00) (0.00,0.00) (0.00,0.00) (0.00,0.00)
[  13826,   0.02] Preparing statement Failed
[  13830,   0.00] variables table present.
[  13804,   0.47] MAJ : 13826 13829 13830
[  13829,   0.00] CMD : optim 316.54,291.94 2163.78,291.94 2163.78,3309.45 316.54,3309.45
[  13826,   0.02] Closing transaction for capture [CFLD]...
[  13830,   0.00] Opening RO transaction for layout [vTRS]...
[  13804,   0.47] Fork : 13832
[  13832,   0.00] Analysing scan /home/yann/Documents/Projets-QCM/TS_2018/scans/E1-10.pdf-page-015-014_0010.pbm
[  13829,   0.00] MSE=0
[  13804,   0.47] MAJ : 13826 13829 13830 13832
[  13832,   0.00] Connecting to database layout...
[  13829,   0.00] CMD : mesure0 0.8 square 709.491633141669 747.287761328774 195.915105382809 233.711233569914
[  13832,   0.00] Loading perl module layout...
[  13829,   0.00] CMD : mesure0 0.8 square 748.948176009074 786.744304196179 195.915105382809 233.711233569914
[  13830,   0.00] [vTRS] <-  layout
[  13826,   0.02] [CFLD]  X  capture
[  13832,   0.00] Checking database version...
[  13826,   0.02] ERROR(): No layout for ID +0/0/0+
[  13829,   0.00] CMD : mesure0 0.8 square 788.404718876479 826.200847063583 195.915105382809 233.711233569914
[  13830,   0.00] Closing transaction for layout [vTRS]...
[  13832,   0.00] Opening RO transaction for layout [rVAR]...
[  13826,   0.02] Image sending QUIT
[  13830,   0.00] [vTRS]  X  layout
[  13829,   0.00] CMD : mesure0 0.8 square 827.861261743884 865.657389930988 195.915105382809 233.711233569914
[  13615,   7.94] Detected ERR message
[  13829,   0.00] CMD : mesure0 0.8 square 867.317804611288 905.113932798393 195.915105382809 233.711233569914
[  13830,   0.00] Module layout loaded.
[  13826,   0.02] CMD : quit
Warning: unable to close filehandle GEN2 properly: Broken pipe at /usr/share/perl5/AMC/Subprocess.pm line 105 during global destruction.
[  13832,   0.00] [rVAR] <-  layout
[  13829,   0.00] CMD : mesure0 0.8 square 906.774347478693 944.570475665798 195.915105382809 233.711233569914
[  13826,   0.02] Image finished: parent times [   0.02,   0.00]
[  13832,   0.00] Closing transaction for layout [rVAR]...
[  13830,   0.00] Exec subprocess...
[  13829,   0.00] CMD : mesure0 0.8 square 946.230890346098 984.027018533202 195.915105382809 233.711233569914
[  13832,   0.00] [rVAR]  X  layout
[  13830,   0.00] /usr/lib/AMC/exec/AMC-detect -x 2480.31494396015 -y 3507.87397260274 -d 42.519511994409 -p 0.2 -m 0.2 -c 3 -t 0.8 -o 1
[  13829,   0.00] CMD : mesure0 0.8 square 985.687433213503 1023.48356140061 195.915105382809 233.711233569914
[  13832,   0.00] variables table present.
[  13804,   0.51] MAJ : 13829 13830 13832
[  13832,   0.00] Opening RO transaction for layout [vTRS]...
[  13829,   0.00] CMD : mesure0 0.8 square 1025.14397608091 1062.94010426801 195.915105382809 233.711233569914
[  13804,   0.51] Fork : 13834
[  13830,   0.00] PID=13833 : GLOB(0x555cab7891e8) --> GLOB(0x555cab7891d0)
[  13834,   0.00] Analysing scan /home/yann/Documents/Projets-QCM/TS_2018/scans/E1-10.pdf-page-016-015_0010.pbm
[  13832,   0.00] [vTRS] <-  layout
[  13829,   0.00] CMD : mesure0 0.8 square 1064.60051894831 1102.39664713542 195.915105382809 233.711233569914
[  13834,   0.00] Connecting to database layout...
[  13804,   0.51] MAJ : 13829 13830 13832 13834
[  13830,   0.00] CMD : load /home/yann/Documents/Projets-QCM/TS_2018/scans/E1-10.pdf-page-014-013_0010.pbm
[  13832,   0.00] Closing transaction for layout [vTRS]...
[  13829,   0.00] CMD : mesure0 0.8 square 1104.05706181572 1141.85319000282 195.915105382809 233.711233569914
[  13834,   0.00] Loading perl module layout...
[  13830,   0.00] Global frame:
[  13832,   0.00] [vTRS]  X  layout
[  13829,   0.00] CMD : mesure0 0.8 square 1143.51360468312 1181.30973287023 195.915105382809 233.711233569914
[  13830,   0.00] (0.00,0.00) (0.00,0.00) (0.00,0.00) (0.00,0.00)
[  13834,   0.00] Checking database version...
[  13829,   0.00] CMD : mesure0 0.8 square 709.491633141669 747.287761328774 245.728305880941 283.524434068046
[  13832,   0.00] Module layout loaded.
[  13834,   0.00] Opening RO transaction for layout [rVAR]...
[  13830,   0.00] CMD : optim 316.54,291.94 2163.78,291.94 2163.78,3309.45 316.54,3309.45
[  13829,   0.00] CMD : mesure0 0.8 square 748.948176009074 786.744304196179 245.728305880941 283.524434068046
...

Replies (2)

RE: correction impossible - broken pipe - libjasper missing - Added by yann gavet over 5 years ago

Bonjour,
j'ai installé AMC par le ppa.
Table de version :
1.4.0~rc2-1~bionic1 500
500 http://ppa.launchpad.net/alexis.bienvenue/amc/ubuntu bionic/main amd64 Packages

J'ai l'impression que le paquet a embarqué des liens vers la libjasper.so alors qu'il n'en avait pas besoin (je parle de AMC-detect, je n'ai plus le résultat de ldd). De même, il y avait des liens vers intel_mkl qui semblaient inutiles.

J'ai téléchargé les sources et recompilé l'ensemble et installé (make install), j'ai réussi à faire ma correction sans problème (si ce n'est que j'ai un message qui m'indique que le packet auto-multiple-choice-common n'est pas installé).

(1-2/2)