HaikuArchives / sanity

A graphical Haiku & BeOS scanner application, using SANE.
1 stars 4 forks source link

Sanity locks up after detecting Canon scanner #12

Closed Vidrep closed 7 years ago

Vidrep commented 7 years ago

Canon MX320 Sanity auto detects USB connected scanner then locks up Attaching debugger to Sanity brings up error message (see attached screenshot) Debugger report attached sanity_error Sanity-465-debug-17-01-2017-12-04-34.report.txt

diversys commented 7 years ago

You can press Skip in this dialog, Debugger is just looking for a debug version of libjpeg (it's part of a separated package https://github.com/haikuports/haikuports/blob/master/media-libs/jpeg/jpeg-9b.recipe#L68) which is in turn a dependency of Translation Kit (JPEGTranslator).

You would then need to click every Running thread followed by Debug and take pics of what's inside of the upper right view of Debugger (e.g. view with Frame, IP and Function columns).

Vidrep commented 7 years ago

Attached are the debug screenshots as you instructed. Would it be worthwhile to build and install the jpeg-9b package from haikuports?

thread_1253 thread_1258 thread_1492 thread_1727

diversys commented 7 years ago

It looks like the very last image is the one we needed (all the rest are just waiting for BLooper). Could you please select it again and click Tools->Save debug report?

Vidrep commented 7 years ago

I have two Canon multifunction printers, both exhibiting the same issue. According to the SANE Supported devices page (http://www.sane-project.org/sane-mfgs.html#Z-CANON) the MP210 is "complete", while the MX320 is "untested; Same protocol as Pixma Generation 3? Testers needed!". I'll contact the SANE project developers and provide test info for that unit. I ran the debugger and saved the report as instructed, on both scanners. I have attached screenshots of the debugged thread and the corresponding reports. mp-210_team_1707_transferworker MP210_Sanity-1217-debug-18-01-2017-11-25-34.report.txt mx320_team_931_transferworker MX320_Sanity-454-debug-18-01-2017-11-20-07.report.txt

I am available most days to discuss further, if needed, on the #haiku IRC channel.

phoudoin commented 7 years ago

Sounds more like an issue with libusb port, no?

diversys commented 7 years ago

Same thought here. It's probably better to move this issue over to haikuports.

Vidrep commented 7 years ago

I'm just pasting the results of "scanimage --listdevices" after-the-fact so we have a record.

Welcome to the Haiku shell.

~> scanimage --list-devices device `pixma:04A91721_71DF23' is a CANON Canon PIXMA MP210 multi-function peripheral ~>

Welcome to the Haiku shell.

~> scanimage --list-devices device `pixma:04A91736_15644C' is a CANON Canon PIXMA MX320 multi-function peripheral ~>

Where do we go from here?