Scan not shown when

Added by Günter Dannoritzer over 2 years ago

Hi,

so far I am using AMC for several years without problems on my Mint, installed from the apt repository. Suddenly, when doing the manual data input and switching to the scan view, the scan is not shown anymore. Some boxes are shown not aligned. Searching through the forum, I did not find any similar error.

I am using 1.5.2+git2022-05-07

Any idea what suddenly happened, that the scan are not shown? The respective image files are there in the folder scans.

Attached is a view of the manual data input, switched to scan.

Regards,

Günter

amc.png (112.1 kB)


Replies (7)

RE: Scan not shown when - Added by Alexis Bienvenüe over 2 years ago

Can you try opening windows and switching to scans in debugging mode (from the Help menu) and post the corresponding log file?

RE: Scan not shown when - Added by Günter Dannoritzer over 2 years ago

Attached is the log file. In the first try with debug enabled, I saw the message that GraphicsMagick is not installed. So I did that. But unfortunately that did not solve the problem.

RE: Scan not shown when - Added by Alexis Bienvenüe over 2 years ago

Thanks. Can you try the following command from the project directory and report the output?

sqlite3 data/capture.sqlite 'select src from capture_page limit 10'

RE: Scan not shown when - Added by Günter Dannoritzer over 2 years ago

The output is:


sqlite3 data/capture.sqlite 'select src from capture_page limit 10'
%HOME/MC-Projekte/ka-lf3-l2-l3-fi1i/scans/FI1I-LF3-2u3-Antwortbogen_0004.pdf.png
%HOME/MC-Projekte/ka-lf3-l2-l3-fi1i/scans/FI1I-LF3-2u3-Antwortbogen_0002.pdf.png
%HOME/MC-Projekte/ka-lf3-l2-l3-fi1i/scans/FI1I-LF3-2u3-Antwortbogen_0001.pdf.png
%HOME/MC-Projekte/ka-lf3-l2-l3-fi1i/scans/FI1I-LF3-2u3-Antwortbogen_0003.pdf.png
%HOME/MC-Projekte/ka-lf3-l2-l3-fi1i/scans/FI1I-LF3-2u3-Antwortbogen_0006.pdf.png
%HOME/MC-Projekte/ka-lf3-l2-l3-fi1i/scans/FI1I-LF3-2u3-Antwortbogen_0005.pdf.png
%HOME/MC-Projekte/ka-lf3-l2-l3-fi1i/scans/FI1I-LF3-2u3-Antwortbogen_0008.pdf.png
%HOME/MC-Projekte/ka-lf3-l2-l3-fi1i/scans/FI1I-LF3-2u3-Antwortbogen_0007.pdf.png
%HOME/MC-Projekte/ka-lf3-l2-l3-fi1i/scans/FI1I-LF3-2u3-Antwortbogen_0010.pdf.png
%HOME/MC-Projekte/ka-lf3-l2-l3-fi1i/scans/FI1I-LF3-2u3-Antwortbogen_0009.pdf.png

RE: Scan not shown when - Added by Alexis Bienvenüe over 2 years ago

I think I see were this problem comes from.
Can you try editing the /usr/share/perl5/AMC/Gui/Manuel.pm file around line 534, so that

    my $scan_file = proj2abs(
        { '%PROJET' => $self->{'project-dir'} },
        $self->{capture}->get_scan_page(@spc)
    );

becomes
    my $scan_file = proj2abs(
        { '%PROJET' => $self->{'project-dir'}, '%HOME'=>$ENV{HOME} },
        $self->{capture}->get_scan_page(@spc)
    );

and then try again?

RE: Scan not shown when - Added by Günter Dannoritzer over 2 years ago

Alexis,

Yes, that did it. Thank you very much for your help! I really appreciate it.

And thank you very much for providing such a great program.

Regards,
Günter

RE: Scan not shown when - Added by Alexis Bienvenüe over 2 years ago

I'll add this bug fix in the next update to the PPA…
Thanks for the report!

(1-7/7)