https://bugs.kde.org/show_bug.cgi?id=505722

[email protected] changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]

--- Comment #3 from [email protected] ---
I seem to be running into the same issue with a Canon P-215II portable ADF
scanner. Skanpage segfaults when I select the scanner. Simple Scan and
scanimage (--source "ADF Duplex") work fine with the same scanner.

Fedora Linux 45 (KDE Plasma Desktop Edition), Wayland
kernel: 7.3.3-300.fc45.x86_64
Plasma 6.8.3, Qt 6.11.2, Frameworks 6.32.0
skanpage-26.08.3-1.fc45, libksane-26.08.3-1.fc45, sane-backends-1.4.0 (canon_dr
backend)

Backtrace:

#0  __printf_buffer ()
#1  __vsnprintf_internal ()
#2  __snprintf_chk ()
#3  copyToLangArr(QByteArray const&) ()
#4  KCatalogPrivate::setupGettextEnv() ()
#5  KCatalog::translate(QByteArray const&) const ()
#6  KLocalizedStringPrivate::toString(...) const ()
#7  KLocalizedString::toString() const ()
#8  KSaneCore::ListOption::readValue() ()
#9  KSaneCore::InterfacePrivate::reloadOptions() ()
#10 void doActivate<false>(QObject*, int, void**) ()
#11 KSaneCore::BaseOption::writeData(void*) ()
#12 KSaneCore::BaseOption::restoreSavedData() ()
#13 KSaneCore::PageSizeOption::computePageSizes() ()
#14 KSaneCore::PageSizeOption::restoreOptions() ()
#15 void doActivate<false>(QObject*, int, void**) ()
#16 void doActivate<false>(QObject*, int, void**) ()
#17 KSaneCore::BaseOption::writeData(void*) ()
#18 KSaneCore::BaseOption::restoreSavedData() ()
#19 KSaneCore::PageSizeOption::computePageSizes() ()
... (frames 13-18 keep repeating, tens of thousands of frames deep)

It seems to be stuck in a loop of computePageSizes / restoreSavedData, same
kind of loop as with the Kodak scanner, going through the options 1 to 59 and
starting over (about 7,000 times). In my case each pass also does a get 7 / get
6 / set 7 first. Option 6 is page-width and 7 is page-height (checked by
setting them with scanimage):

[21:54:32.865071] [dll] sane_open: trying to open `canon_dr:libusb:001:019'
[21:54:32.867713] [dll] sane_open: open successful
[21:54:32.867722] [dll]
sane_get_option_descriptor(handle=0x7f8f28006b30,option=0)
[21:54:32.867732] [dll]
sane_control_option(handle=0x7f8f28006b30,option=0,action=0,value=0x7ffd61c44a68,info=0x7ffd61c449b0)
[21:54:32.867740] [dll]
sane_get_option_descriptor(handle=0x7f8f28006b30,option=1)
[21:54:32.867749] [dll] sane_get_option_descriptor(handle=0x7f8f280
[21:54:32.867765] [dll] sane_get_option_descriptor(handle=0x7f8f280
[21:54:32.867773] [dll] sane_get_option_descriptor(handle=0x7f8f280
[21:54:32.867780] [dll]
sane_control_option(handle=0x7f8f28006b30,o61c44188,info=0x7ffd61c440a4)
[21:54:32.867826] [dll] sane_get_option_descriptor(handle=0x7f8f280
[21:54:32.867836] [dll] sane_get_option_descriptor(handle=0x7f8f280
[21:54:32.867843] [dll]
sane_control_option(handle=0x7f8f28006b30,o61c44188,info=0x7ffd61c440a4)
.....
[21:55:01.383121] [dll] sane_get_option_descriptor(handle=0x7f8f280
[21:55:01.383134] [dll]
sane_control_option(handle=0x7f8f28006b30,option=53,action=0,value=0x7ffd6144bf58,info=0x7ffd6144bf0c)
[21:55:01.383147] [canon_dr] read_panel: start 53
[21:55:01.383159] [canon_dr] read_panel: finish 0
[21:55:01.383172] [dll] sane_get_option_descriptor(handle=0x7f8f280
[21:55:01.383185] [dll]
sane_control_option(handle=0x7f8f28006b30,od6144bf58,info=0x7ffd6144bf0c)
[21:55:01.383198] [canon_dr] read_panel: start 54
[21:55:01.383210] [canon_dr] read_panel: finish 0
[21:55:01.383222] [dll]
sane_get_option_descriptor(handle=0x7f8f28006b30,option=55)
[21:55:01.383235] [dll]
sane_control_option(handle=0x7f8f28006b30,od6144bf58,info=0x7ffd6144bf0c)
[21:55:01.383248] [canon_dr] read_counters: start
[21:55:01.383261] [canon_dr] do_usb_cmd: start 1794970501 383259
[21:55:01.384147] [canon_dr] do_usb_cmd: finish 1794970501 384144
[21:55:01.384171] [canon_dr] read_counters: total counter: 1400 rol
[21:55:01.384173] [dll]
sane_get_option_descriptor(handle=0x7f8f28006b30,option=56)
[21:55:01.384175] [dll]
sane_control_option(handle=0x7f8f28006b30,od6144bf58,info=0x7ffd6144bf0c)
[21:55:01.384177] [canon_dr] read_counters: start
[21:55:01.384179] [canon_dr] do_usb_cmd: start 1794970501 384179
[21:55:01.385160] [canon_dr] do_usb_cmd: finish 1794970501 385159
[21:55:01.385164] [canon_dr] read_counters: total counter: 1400 rol
[21:55:01.385166] [dll] sane_get_option_descriptor(handle=0x7f8f280
[21:55:01.385169] [dll]
sane_get_option_descriptor(handle=0x7f8f28006b30,option=58)
[21:55:01.385171] [dll]
sane_control_option(handle=0x7f8f28006b30,od6144bf58,info=0x7ffd6144bf0c)
[21:55:01.385173] [canon_dr] read_sensors: start 58
[21:55:01.385175] [canon_dr] do_usb_cmd: start 1794970501 385175
[21:55:01.386130] [canon_dr] do_usb_cmd: finish 1794970501 386113
[21:55:01.386134] [canon_dr] read_sensors: finish
[21:55:01.386137] [dll] sane_get_option_descriptor(handle=0x7f8f280
[21:55:01.386139] [dll]
sane_control_option(handle=0x7f8f28006b30,od6144bf58,info=0x7ffd6144bf0c)
[21:55:01.386141] [canon_dr] read_sensors: start 59
[21:55:01.386143] [canon_dr] read_sensors: finish
[21:55:01.386145] [dll]
sane_control_option(handle=0x7f8f28006b30,obe2b1730,info=0x7ffd6144bd34)
[21:55:01.386147] [dll]
sane_control_option(handle=0x7f8f28006b30,option=6,action=0,value=0x555ebe8a07c0,info=0x7ffd6144bd34)
[21:55:01.386165] [dll]
sane_control_option(handle=0x7f8f28006b30,obe2b1730,info=0x7ffd6144bd14)
[21:55:01.386169] [dll] sane_get_option_descriptor(handle=0x7f8f280
[21:55:01.386171] [dll]
sane_get_option_descriptor(handle=0x7f8f28006b30,option=2)
Segmentation fault (core dumped)

Might be related to this being a sheet-fed scanner with no fixed page size: on
it the scan-area limits follow page-width/page-height (scanimage -A shows -x/-y
max equal to the current page size), and values get rounded, e.g. asking for
Letter (215.9 x 279.4 mm) reads back as 215.893 x 279.406.

Same steps to reproduce: 
1. Open Skanpage
2. Select Canon P-215II scanner
3. Wait a bit and then it segfaults

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to