Bug 501367

Summary: Unexpected behaviour during ADF/ADF Duplex scanning in Skanpage
Product: [Applications] Skanpage Reporter: Olga <urozhaevaoo>
Component: generalAssignee: Alexander Stippich <a.stippich>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version First Reported In: 24.12.2   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: Video with issue
Screenshot

Description Olga 2025-03-11 15:46:34 UTC
STEPS TO REPRODUCE
1.  Connect your scanner(s) with ADF/ADF Duplex to your computer with USB cable/Wi-Fi/Ethernet 
2.  Open Skanpage -> Select Scan source- "ADF"/"ADF Duplex" -> Scan several pages


OBSERVED RESULT
When scanning is complete, only one side of the sheet/one page is displayed. The others will be displayed if you open the "Acquire Image" window again and click "Scan".

EXPECTED RESULT
Once scanning is complete, all scanned pages are displayed in Skanpage

SOFTWARE/OS VERSIONS
Linux/KDE Plasma:  ALT Workstation K 11.0 Beta
KDE Frameworks Version:  6.10.0
Qt Version:  6.7.2
Comment 1 Alexander Stippich 2025-03-15 15:42:49 UTC
Does this also happen with other scan software on linux, i.e. GNOME's Document Scanner?
Comment 2 Olga 2025-03-17 16:20:49 UTC
(In reply to Alexander Stippich from comment #1)
> Does this also happen with other scan software on linux, i.e. GNOME's
> Document Scanner?

I've tried such softwares as Simple-scan (https://apps.gnome.org/en/SimpleScan/) and XSane (https://wiki.ubuntuusers.de/XSane/) and haven't faced with this problem
Comment 3 Alexander Stippich 2025-03-22 10:37:06 UTC
Hmm, that sounds weird.
What scanner device are you using and do you know the SANE backend?
Does it also happen with Skanlite?
Could you please upload a short video showing the issue?
Comment 4 Olga 2025-03-26 16:20:45 UTC
(In reply to Alexander Stippich from comment #3)
> What scanner device are you using and do you know the SANE backend?
I have different scanners for example:
Epson M200
Pantum CM1100ADW
Pantum M6550NW
Pantum M6607NW
Pantum BM5100FDW
Kyocera ECOSYS-M2040dn
Oki MB472
Brother MFC L2720DW
I know SANE backend a little of bit  
> Does it also happen with Skanlite?
Yes, it does. Here is an issue for Skanlite -  https://bugs.kde.org/show_bug.cgi?id=501680
> Could you please upload a short video showing the issue?
Yes, please (skanpage_ADF.mkv
Comment 5 Olga 2025-03-26 16:22:54 UTC
Created attachment 179758 [details]
Video with issue
Comment 6 Alexander Stippich 2025-03-30 11:50:25 UTC
Thanks. I think I know what is happening. Could you please record the video with English language or please tell me what the entry exactly says for the ADF scan source in English.
Comment 7 Olga 2025-04-02 14:48:53 UTC
(In reply to Alexander Stippich from comment #6)
> Thanks. I think I know what is happening. Could you please record the video
> with English language or please tell me what the entry exactly says for the
> ADF scan source in English.
It says ADF Duplex (Please refer to the Screenshot)

Please note, I've noticed 2 new behaviours:
1. I only get one side of all pages and have to scan a gain to get the other sides. This behaviour applicable for Oki MB472 and Avision Scanner AV 186+, when they are connected with USB cable
2. This issue reproduces for OS with non English language ( for example Russian, Ukrainian)
Comment 8 Olga 2025-04-02 14:49:34 UTC
Created attachment 179938 [details]
Screenshot
Comment 9 Bug Janitor Service 2025-04-05 13:56:59 UTC
A possibly relevant merge request was started @ https://invent.kde.org/libraries/ksanecore/-/merge_requests/31
Comment 10 Alexander Stippich 2025-04-06 19:05:33 UTC
Git commit a43761c0a327106171b653fbf4ca9747c9089599 by Alexander Stippich.
Committed on 05/04/2025 at 14:06.
Pushed by sars into branch 'master'.

look for more values to determine multi-page scanning
Related: bug 501680

M  +2    -1    src/interface_p.cpp

https://invent.kde.org/libraries/ksanecore/-/commit/a43761c0a327106171b653fbf4ca9747c9089599