[sane-devel] Agfa Snapscan 1212U, with SANE, on El Capitan

Niels Hutchison nielshutch at gmail.com
Thu Sep 16 00:34:24 BST 2021


OK. Next step...

1. I tried SwingSane, a Java frontend for SANE:
https://sourceforge.net/projects/swingsane/files/releases/0.2/macosx/
First step seemed to be configuring Global Settings, naming
Resource/Username/Password. This should identify the scanner
(according to the enigmatic video). I used "snapscan"/User name &
password for my home folder, then several other combinations. But
nothing turned up & no scan could be made. Here is the relavent
system.log (I think):

Sep 16 00:18:23 miMac syslogd[47]: ASL Sender Statistics
Sep 16 00:19:10 miMac WindowServer[164]:
_CGXRemoveWindowFromWindowMovementGroup: window 0x106 is not attached
to window 0x108
Sep 16 00:19:37 miMac WindowServer[164]:
_CGXRemoveWindowFromWindowMovementGroup: window 0x106 is not attached
to window 0x107
Sep 16 00:21:22 miMac WindowServer[164]:
_CGXRemoveWindowFromWindowMovementGroup: window 0x109 is not attached
to window 0x10b
Sep 16 00:21:26 miMac WindowServer[164]:
_CGXRemoveWindowFromWindowMovementGroup: window 0x109 is not attached
to window 0x10a
Sep 16 00:22:59 miMac cfprefsd[329]: CFPreferences: error renaming
file /Users/Niels/Library/Preferences/com.apple.xpc.activity2.plist.u6TrVtT
to /Users/Niels/Library/Preferences/com.apple.xpc.activity2.plist.
Sep 16 00:24:19 miMac WindowServer[164]:
_CGXRemoveWindowFromWindowMovementGroup: window 0x10c is not attached
to window 0x10e
Sep 16 00:24:22 miMac WindowServer[164]:
_CGXRemoveWindowFromWindowMovementGroup: window 0x10c is not attached
to window 0x10d
Sep 16 00:27:58 miMac WindowServer[164]:
_CGXRemoveWindowFromWindowMovementGroup: window 0x111 is not attached
to window 0x113
Sep 16 00:28:02 miMac WindowServer[164]:
_CGXRemoveWindowFromWindowMovementGroup: window 0x111 is not attached
to window 0x112
Sep 16 00:28:23 miMac syslogd[47]: ASL Sender Statistics
--------------------------------
2. I also tried SaneScanner, Alex Scheider’s app for OSX 10.7 and newer.
https://www.dropbox.com/s/bjbnye7uj6egxrx/SaneScanner.zip?dl=1
It recognized an "Agfa snapscan". When the scan button was pressed, it
went through the motions - an animated logo and tick on scan
completion - but no scan was made and the scanner did not move. Here
is the system.log:

Sep 15 22:37:59 miMac com.apple.xpc.launchd[1]
(com.apple.PubSub.Agent[560]): Endpoint has been activated through
legacy launch(3) APIs. Please switch to XPC or bootstrap_check_in():
com.apple.pubsub.notification
Sep 15 22:41:37 miMac kernel[0]: process SaneScanner[547] caught
causing excessive wakeups. Observed wakeups rate (per sec): 404;
Maximum permitted wakeups rate (per sec): 150; Observation period: 300
seconds; Task lifetime number of wakeups: 52739
Sep 15 22:41:37 miMac com.apple.xpc.launchd[1]
(com.apple.ReportCrash[568]): Endpoint has been activated through
legacy launch(3) APIs. Please switch to XPC or bootstrap_check_in():
com.apple.ReportCrash
Sep 15 22:41:37 miMac ReportCrash[568]: Invoking spindump for pid=547
wakeups_rate=404 duration=112 because of excessive wakeups
Sep 15 22:41:41 miMac spindump[442]: Saved wakeups_resource.diag
report for SaneScanner version  (1.0.0.0.0) to
/Library/Logs/DiagnosticReports/SaneScanner_2021-09-15-224141_miMac.wakeups_resource.diag
Sep 15 22:42:59 miMac cfprefsd[329]: CFPreferences: error renaming
file /Users/Niels/Library/Preferences/com.apple.xpc.activity2.plist.S7Kbr4q
to /Users/Niels/Library/Preferences/com.apple.xpc.activity2.plist.
Sep 15 22:46:19 miMac com.apple.xpc.launchd[1]
(com.apple.quicklook[574]): Endpoint has been activated through legacy
launch(3) APIs. Please switch to XPC or bootstrap_check_in():
com.apple.quicklook
Sep 15 22:46:20 miMac QuickLookSatellite[575]: CGSConnectionByID: 0 is
not a valid connection ID.
Sep 15 22:46:20 miMac QuickLookSatellite[575]: Invalid Connection ID 0
Sep 15 22:46:20 miMac QuickLookSatellite[575]: CGSConnectionByID: 0 is
not a valid connection ID.
Sep 15 22:46:20 --- last message repeated 2 times ---
Sep 15 22:46:20 miMac iconservicesagent[389]: -[ISGenerateImageOp
generateImageWithCompletion:] Failed to composit image for descriptor
<ISBindingImageDescriptor: 0x7f8a1a41b000>.
Sep 15 22:46:20 miMac quicklookd[574]: Error returned from
iconservicesagent: (null)
Sep 15 22:46:25 miMac QuickLookSatellite[575]: In
-[NSApplication(NSQuietSafeQuit) _updateCanQuitQuietlyAndSafely],
_LSSetApplicationInformationItem(NSCanQuitQuietlyAndSafely) returned
error -50
Sep 15 22:47:18 miMac ntpd[191]: time set -0.151948 s
Sep 15 22:47:59 miMac iconservicesagent[389]: -[ISGenerateImageOp
generateImageWithCompletion:] Failed to composit image for descriptor
<ISBindingImageDescriptor: 0x7f8a1a51d2d0>.
Sep 15 22:47:59 miMac syslogd[47]: ASL Sender Statistics
Sep 15 22:47:59 miMac quicklookd[574]: Error returned from
iconservicesagent: (null)
Sep 15 22:48:21 miMac loginwindow[101]:
-[SFLListManager(ServiceReplyProtocol)
notifyChanges:toListWithIdentifier:] Notified of item changes to list
with identifier com.apple.LSSharedFileList.RecentApplications
Sep 15 22:48:23 miMac
com.apple.appkit.xpc.openAndSavePanelService[577]: assertion failed:
15G22010: libxpc.dylib + 78286 [7978B4D9-7970-3302-87FA-75709127DBD2]:
0x89
Sep 15 22:48:28 miMac cfprefsd[329]: CFPreferences: error renaming
file /Users/Niels/Library/Preferences/ByHost/com.apple.loginwindow.1A03D7B1-A933-5535-9D33-7E8C09972801.plist.MZylbUx
to /Users/Niels/Library/Preferences/ByHost/com.apple.loginwindow.1A03D7B1-A933-5535-9D33-7E8C09972801.plist.
Sep 15 22:48:28 miMac cfprefsd[329]: CFPreferences: error renaming
file /Users/Niels/Library/Preferences/com.apple.spaces.plist.BgjDBCY
to /Users/Niels/Library/Preferences/com.apple.spaces.plist.
Sep 15 22:51:23 miMac iconservicesagent[389]: -[ISGenerateImageOp
generateImageWithCompletion:] Failed to composit image for descriptor
<ISBindingImageDescriptor: 0x7f8a1a51db60>.
--------------------------------
The "excessive wakeups" seem a bit of a worry...
As usual, no scan could be made with Image Capture, Preview or GIMP.
Other apps (QuiteInsane & WebSANE) seemed too complicated for me to
install.

I'm running out of clues.
Any ideas?
Niels

On 9/15/21, Ralph Little <skelband at gmail.com> wrote:
> Hi,
>
> On 2021-09-09 5:45 p.m., Niels Hutchison wrote:
>> Thanks for replying, Ralph.
>> Here's the Terminal outcome:
>>
>> miMac:~ Niels$ SANE_DEBUG_SNAPSCAN=128 scanimage -L
>> [sanei_debug] Setting debug level of snapscan to 128.
>> [snapscan] sane_snapscan_init
>> [snapscan] sane_snapscan_init: Snapscan backend version 1.4.53
>> [snapscan] add_usb_device(/dev/usb/scanner0 bus=usb)
>> [snapscan] add_usb_device: Detected (kind of) an USB device
>> [snapscan] snapscani_usb_open(/dev/usb/scanner0)
>> [snapscan] add_usb_device: error opening device /dev/usb/scanner0:
>> Invalid argument
>> [snapscan] add_usb_device(libusb:003:005-06bd-2061-ff-ff)
>> [snapscan] add_usb_device: Detected (kind of) an USB device
>> [snapscan] snapscani_usb_open(libusb:003:005-06bd-2061-ff-ff)
>> [snapscan] add_usb_device: Checking if 0x06bd is a supported USB vendor
>> ID
>> [snapscan] snapscani_check_device()
>> [snapscan] mini_inquiry
>> [snapscan] snapscan_cmd
>> [snapscan]
>> snapscani_usb_cmd(1,0x7fff58e99932,6,0x7fff58e99960,0x7fff58e99938
>> (36))
>> [snapscan] atomic_usb_cmd(1,0x7fff58e99932,6,0x7fff58e99960,0x7fff58e99938
>> (36))
>> [snapscan] usb_cmd(1,0x7fff58e99932,6,0x7fff58e99960,0x7fff58e99938 (36))
>> [snapscan] usb_cmd: cmdlen=6, datalen=0
>> [snapscan] usb_write: writing: 0x12 0x00 0x00 0x00 0x24 0x00
>> [snapscan] Written 6 bytes
>> [snapscan] usb_read: reading: 0xf9 0x00 0x00 0x00 0x00 0x00 0x00 0x00
>> [snapscan] Read 8 bytes
>> [snapscan] usb_read: reading: 0x06 0x00 0x02 0x02 0x49 0x00 0x00 0x00
>> 0x41 0x47 ...
>> [snapscan] Read 36 bytes
>> [snapscan] usb_read: reading: 0xfb 0x00 0x00 0x00 0x00 0x00 0x00 0x00
>> [snapscan] Read 8 bytes
>> [snapscan] snapscani_check_device: Is vendor "AGFA" model "SNAPSCAN" a
>> supported scanner?
>> [snapscan] snapscani_get_model_id(SNAPSCAN, 1, 2)
>> [snapscan] snapscani_get_model_id: looking up scanner for ID
>> 0x06bd,0x2061.
>> [snapscan] snapscani_check_device: Autodetected driver: SnapScan
>> [snapscan] snapscani_usb_close(1)
>> [snapscan] 1st read 3 write 1
>> [snapscan] snapscani_init_device_structure()
>> [snapscan] sane_snapscan_get_devices (0x7fff58e9a000, 0)
>> device `snapscan:libusb:003:005-06bd-2061-ff-ff' is a AGFA SNAPSCAN
>> flatbed scanner
>> [snapscan] sane_snapscan_exit
>>
> Well that all looks good.
> Can you do the same for an actual scan?
> The output might be a bit big depending on how far it gets but please
> chop off what seems irrelevant if it is a lot of text.
>
> Cheers,
> Ralph
>



More information about the sane-devel mailing list