Closed markosjal closed 5 years ago
I've been testing AirSane against the current version of the Mopria Scanner App, and found it working.
It crashes on me . You might try the test backend and see if it crashes there.
Thanks, it crashes for me with the test backend as well. I experimented for a while and found that the crash is related to the fact that the test backend provides a resolution range rather than discrete resolutions. I guess Mopria is just not aware of resolution ranges, and crashes for this reason. MacOS 10.14 is happy with the resolution range, so I think it's a bug in Mopria.
there was something I saw in ScannerCapabilities that seemed not right and when on test backend I saw something like
You are right, resolution ranges are unusual but supported by SANE. Also, telling from the disassembled AirScanScanner.app, resolution ranges are defined in the way as written by AirSane.
Of course you are free to modify the AirSane source code in any way that helps you with your debugging purposes.
When I saw the "profiles" section of the ScannerCapabilities it seemed off. I do not do this kind of code , so I am useless to modify it. Please take into consideration my suggestion to be able to override the Scanner Capabilites xml. In that way one can more easily diagnose thse problem .
I modified the program so scan resolutions are always reported as a discrete set, rather than a range. This fixed mopria crashes for me.
Testing with Mopria Android , the program crashes and closes. Wireshark reveals that It Sent ScannerStatus.xml just before the crash. So it looks like possibly someting in ScannerrStatus.xml is causing the crash.
Since Mopria is involved in defining these standards it seems compatibility should be a priority