Closed terasgr closed 4 years ago
+1
I have the same issue on macOS Mojave because of The operation couldn’t be completed. (com.apple.ImageCaptureCore error -9922.)
. It seems that the ImageCapture has changed something?
./scanline -verbose
Searching for available scanners
Waiting up to 10.0 seconds to find scanners
Found scanner: CanoScan LiDE 210
Opening session with scanner
didOpenSessionWithError: [no error]
deviceDidBecomeReady
didSelectFunctionalUnit: ICScannerFunctionalUnitFlatbed <0x7f9bee502350>:
pixelDataType : ICScannerPixelDataTypeRGB
supportedBitDepths : <NSMutableIndexSet: 0x7f9bee5021d0>[number of indexes: 3 (in 3 ranges), indexes: (1 8 16)]
bitDepth : 8
supportedDocumentTypes : <NSMutableIndexSet: 0x7f9bee501a70>[number of indexes: 8 (in 4 ranges), indexes: (1-3 5 53 61-63)]
documentType : 1
physicalSize : [width = 21.61 cms, height = 29.70 cms]
measurementUnit : 1
supportedResolutions : <NSMutableIndexSet: 0x7f9bee503020>[number of indexes: 19126 (in 1 ranges), indexes: (75-19200)]
preferredResolutions : <NSMutableIndexSet: 0x7f9bee503050>[number of indexes: 7 (in 7 ranges), indexes: (75 100 150 200 300 400 600)]
resolution : 300
overviewResolution : 300
supportedScaleFactors : <NSMutableIndexSet: 0x7f9bee503140>[number of indexes: 376 (in 1 ranges), indexes: (25-400)]
preferredScaleFactors : <NSMutableIndexSet: 0x7f9bee503170>[number of indexes: 14 (in 14 ranges), indexes: (50 70 78 83 85 91 94 97 100 104 141 200 300 400)]
scaleFactor : 100
acceptsThresholdForBlackAndWhiteScanning : YES
usesThresholdForBlackAndWhiteScanning : NO
thresholdForBlackAndWhiteScanning : 127
templates : (null)
vendorFeatures : (null)
state : 0x00000001
error: [no error]
didSelectFunctionalUnit: ICScannerFunctionalUnitFlatbed <0x7f9bee502350>:
pixelDataType : ICScannerPixelDataTypeRGB
supportedBitDepths : <NSMutableIndexSet: 0x7f9bee5021d0>[number of indexes: 3 (in 3 ranges), indexes: (1 8 16)]
bitDepth : 8
supportedDocumentTypes : <NSMutableIndexSet: 0x7f9bee501a70>[number of indexes: 8 (in 4 ranges), indexes: (1-3 5 53 61-63)]
documentType : 1
physicalSize : [width = 21.61 cms, height = 29.70 cms]
measurementUnit : 1
supportedResolutions : <NSMutableIndexSet: 0x7f9bee503020>[number of indexes: 19126 (in 1 ranges), indexes: (75-19200)]
preferredResolutions : <NSMutableIndexSet: 0x7f9bee503050>[number of indexes: 7 (in 7 ranges), indexes: (75 100 150 200 300 400 600)]
resolution : 300
overviewResolution : 300
supportedScaleFactors : <NSMutableIndexSet: 0x7f9bee503140>[number of indexes: 376 (in 1 ranges), indexes: (25-400)]
preferredScaleFactors : <NSMutableIndexSet: 0x7f9bee503170>[number of indexes: 14 (in 14 ranges), indexes: (50 70 78 83 85 91 94 97 100 104 141 200 300 400)]
scaleFactor : 100
acceptsThresholdForBlackAndWhiteScanning : YES
usesThresholdForBlackAndWhiteScanning : NO
thresholdForBlackAndWhiteScanning : 127
templates : (null)
vendorFeatures : (null)
state : 0x00000001
error: The operation couldn’t be completed. (com.apple.ImageCaptureCore error -9922.)
I might have been able to fix that issue in https://github.com/martinfilliau/scanline/commits/catalina-compat . At least, it compiles and I can start the binary, but I do not have a scanner right now to test it. I will do a PR when I will be sure that it is OK. Please note, the binary in the branch catalina-compat
is not up to date, therefore the code needs to be compiled to test it.
I recompiled the app and I can confirm that the -help
option works.
Also the -list
option works.
But it was unable to scan anything. The app still hangs there.
@terasgr does it hang indefinitely? no error message at all?
I hope to have access to a scanner soon
No messages at all, just stay there forever.
EDIT: Just to be sure, the way to scan a document is to run the command without any parameter, right?
@teras -- if you run with any params, it should attempt to scan from the first scanner it finds. If it doesn't find one it'll time out.
I (finally) updated to Catalina, but I'm not experiencing this problem. The binary linked to in the README works, and compiling with XCode 11.3.1
I found the problem
If I was using the scanner as
scanline name
it didn't work.
Since you said it was working under the specific file, I tried to play around with the parameters.
Now, if I use the scanner as
scanline -flatbed name
it works.
You can consider closing this bug report now! Thanks for the support.
Hello I am trying to run your software in Catalina, but unfortunately it doesn't do anything. When I type
./scanline -help
the application freezes (doesn't do anything and doesn't return). I have to[ctr]-[c]
to exit.For reference, I have a Canon Lide 400 which works perfectly with image capture, but this situation is there even when the scanner is not connected.