Hi there.
I have a All in One printer, HP OfficeJet 6950
It was working like a charm when I switched to Nixos with version 22.10. Printing was OK, scanning with gnome-scan was OK too.
The printer can scan from the classic way, when you open it and place your doc on the glass (sorry I’m not english, and idk how to gice a better description). It can also scan from a document tray when you place multiple pages in top.
Both method were working perfectly.
Since NixOS 23.05, scanning via Wifi using Gnome default app for scanning (simple-scan) was not working. At the time I spent hours to try to understand why …
I ended up by waiting the next 23.11 with my fingers crossed.
Unluckily, simple-scan still cannot scan with the same error.
Here is the capture
And here is the output of LANG=C simple-scan --debug
[+0.00s] DEBUG: simple-scan.vala:2015: Starting simple-scan 44.0, PID=25091
[+0.00s] DEBUG: unsetenv() is not thread-safe and should not be used after threads are created
[+0.14s] DEBUG: _g_io_module_get_default: Found default implementation dconf (DConfSettingsBackend) for ‘gsettings-backend’
[+0.17s] DEBUG: app-window.vala:2002: Loading state from /home/seb/.config/simple-scan/state
[+0.17s] WARNING: scanner.vala:1739: Unknown ScanType: . Please report this error.
[+0.17s] DEBUG: app-window.vala:1981: Restoring window to 600x400 pixels
[+0.19s] DEBUG: scanner.vala:1619: sane_init () -> SANE_STATUS_GOOD
[+0.19s] DEBUG: scanner.vala:1625: SANE version 1.2.1
[+0.19s] DEBUG: scanner.vala:1686: Requesting redetection of scan devices
[+0.19s] DEBUG: scanner.vala:863: Processing request
[+0.45s] DEBUG: app-window.vala:2078: Saving state to /home/seb/.config/simple-scan/state
[+8.74s] DEBUG: scanner.vala:348: sane_get_devices () -> SANE_STATUS_GOOD
[+8.74s] DEBUG: scanner.vala:374: Device: name="escl:https://10.0.2.2:443" vendor="HP" model="OfficeJet 6950 [CFC9A1]" type="platen,adf scanner"
[+9.05s] DEBUG: app-window.vala:2078: Saving state to /home/seb/.config/simple-scan/state
[+9.73s] DEBUG: app-window.vala:2078: Saving state to /home/seb/.config/simple-scan/state
[+10.15s] DEBUG: app-window.vala:2078: Saving state to /home/seb/.config/simple-scan/state
[+10.27s] DEBUG: simple-scan.vala:1820: Requesting scan at 300 dpi from device 'escl:https://10.0.2.2:443'
[+10.27s] DEBUG: scanner.vala:1777: Scanner.scan ("escl:https://10.0.2.2:443", dpi=300, scan_mode=ScanMode.COLOR, depth=8, type=single, side=front, paper_width=0, paper_height=0, brightness=0, contrast=0, delay=0ms)
[+10.27s] DEBUG: scanner.vala:863: Processing request
[+10.59s] DEBUG: app-window.vala:2078: Saving state to /home/seb/.config/simple-scan/state
[+11.13s] DEBUG: scanner.vala:924: sane_open ("escl:https://10.0.2.2:443") -> SANE_STATUS_GOOD
[+11.13s] DEBUG: scanner.vala:1002: sane_get_option_descriptor (0)
[+11.13s] DEBUG: scanner.vala:795: Option 0: name='(null)' title='Number of options' type=int size=4 cap=soft-detect
[+11.13s] DEBUG: scanner.vala:798: Description: Read-only option that specifies how many options a specific device supports.
[+11.13s] DEBUG: scanner.vala:1002: sane_get_option_descriptor (1)
[+11.13s] DEBUG: scanner.vala:795: Option 1: name='(null)' title='Scan mode' type=group size=0
[+11.13s] DEBUG: scanner.vala:798: Description:
[+11.13s] DEBUG: scanner.vala:1002: sane_get_option_descriptor (2)
[+11.13s] DEBUG: scanner.vala:795: Option 2: name='mode' title='Scan mode' type=string size=6 values=["Gray", "Color"] cap=soft-select,soft-detect
[+11.13s] DEBUG: scanner.vala:798: Description: Selects the scan mode (e.g., lineart, monochrome, or color).
[+11.13s] DEBUG: scanner.vala:1002: sane_get_option_descriptor (3)
[+11.13s] DEBUG: scanner.vala:795: Option 3: name='resolution' title='Scan resolution' type=int size=4 unit=dpi values=[75, 100, 200, 300, 600, 1200] cap=soft-select,soft-detect
[+11.13s] DEBUG: scanner.vala:798: Description: Sets the resolution of the scanned image.
[+11.13s] DEBUG: scanner.vala:1002: sane_get_option_descriptor (4)
[+11.13s] DEBUG: scanner.vala:795: Option 4: name='source' title='Scan source' type=string size=8 values=["Flatbed", "ADF"] cap=soft-select,soft-detect
[+11.13s] DEBUG: scanner.vala:798: Description: Selects the scan source (such as a document-feeder).
[+11.13s] DEBUG: scanner.vala:1002: sane_get_option_descriptor (5)
[+11.13s] DEBUG: scanner.vala:795: Option 5: name='(null)' title='Geometry' type=group size=0 cap=advanced
[+11.13s] DEBUG: scanner.vala:798: Description: Scan area and media size options
[+11.13s] DEBUG: scanner.vala:1002: sane_get_option_descriptor (6)
[+11.13s] DEBUG: scanner.vala:795: Option 6: name='tl-x' title='Top-left x' type=fixed size=4 unit=mm min=0.000000, max=215.222656, quant=0 cap=soft-select,soft-detect
[+11.13s] DEBUG: scanner.vala:798: Description: Top-left x position of scan area.
[+11.13s] DEBUG: scanner.vala:1002: sane_get_option_descriptor (7)
[+11.13s] DEBUG: scanner.vala:795: Option 7: name='tl-y' title='Top-left y' type=fixed size=4 unit=mm min=0.000000, max=299.889328, quant=0 cap=soft-select,soft-detect
[+11.13s] DEBUG: scanner.vala:798: Description: Top-left y position of scan area.
[+11.13s] DEBUG: scanner.vala:1002: sane_get_option_descriptor (8)
[+11.13s] DEBUG: scanner.vala:795: Option 8: name='br-x' title='Bottom-right x' type=fixed size=4 unit=mm min=0.677322, max=215.899994, quant=0 cap=soft-select,soft-detect
[+11.13s] DEBUG: scanner.vala:798: Description: Bottom-right x position of scan area.
[+11.13s] DEBUG: scanner.vala:1002: sane_get_option_descriptor (9)
[+11.13s] DEBUG: scanner.vala:795: Option 9: name='br-y' title='Bottom-right y' type=fixed size=4 unit=mm min=0.677322, max=300.566666, quant=0 cap=soft-select,soft-detect
[+11.13s] DEBUG: scanner.vala:798: Description: Bottom-right y position of scan area.
[+11.13s] DEBUG: scanner.vala:1002: sane_get_option_descriptor (10)
[+11.13s] DEBUG: scanner.vala:795: Option 10: name='(null)' title='Enhancement' type=group size=0 cap=advanced
[+11.13s] DEBUG: scanner.vala:798: Description:
[+11.13s] DEBUG: scanner.vala:1002: sane_get_option_descriptor (11)
[+11.13s] DEBUG: scanner.vala:795: Option 11: name='preview' title='Preview' type=bool size=4 cap=soft-select,soft-detect
[+11.13s] DEBUG: scanner.vala:798: Description: Request a preview-quality scan.
[+11.13s] DEBUG: scanner.vala:1002: sane_get_option_descriptor (12)
[+11.13s] DEBUG: scanner.vala:795: Option 12: name='preview-in-gray' title='Force monochrome preview' type=bool size=4 cap=soft-select,soft-detect
[+11.13s] DEBUG: scanner.vala:798: Description: Request that all previews are done in monochrome mode. On a three-pass scanner this cuts down the number of passes to one and on a one-pass scanner, it reduces the memory requirements and scan-time of the preview.
[+11.13s] DEBUG: scanner.vala:1002: sane_get_option_descriptor (13)
[+11.13s] DEBUG: scanner.vala:795: Option 13: name='brightness' title='Brightness' type=int size=4 min=0, max=2000, quant=1 cap=soft-select,soft-detect
[+11.13s] DEBUG: scanner.vala:798: Description: Controls the brightness of the acquired image.
[+11.13s] DEBUG: scanner.vala:1002: sane_get_option_descriptor (14)
[+11.13s] DEBUG: scanner.vala:795: Option 14: name='contrast' title='Contrast' type=int size=4 min=0, max=2000, quant=1 cap=soft-select,soft-detect
[+11.13s] DEBUG: scanner.vala:798: Description: Controls the contrast of the acquired image.
[+11.13s] DEBUG: scanner.vala:1002: sane_get_option_descriptor (15)
[+11.13s] DEBUG: scanner.vala:795: Option 15: name='sharpen' title='Sharpen' type=int size=4 min=-511731360, max=32679, quant=-190837479 cap=soft-select,soft-detect,inactive
[+11.13s] DEBUG: scanner.vala:798: Description: Set sharpen value.
[+11.13s] DEBUG: scanner.vala:1002: sane_get_option_descriptor (16)
[+11.13s] DEBUG: scanner.vala:795: Option 16: name='threshold' title='Threshold' type=int size=4 min=0, max=255, quant=1 cap=soft-select,soft-detect,inactive
[+11.13s] DEBUG: scanner.vala:798: Description: Select minimum-brightness to get a white point
[+11.13s] DEBUG: scanner.vala:1002: sane_get_option_descriptor (17)
[+11.13s] DEBUG: scanner.vala:602: sane_control_option (4, SANE_ACTION_SET_VALUE, source="Flatbed") -> (SANE_STATUS_GOOD, "Flatbed")
[+11.13s] DEBUG: scanner.vala:602: sane_control_option (2, SANE_ACTION_SET_VALUE, mode="Color") -> (SANE_STATUS_GOOD, "Color")
[+11.13s] DEBUG: scanner.vala:514: sane_control_option (3, SANE_ACTION_SET_VALUE, resolution=300) -> (SANE_STATUS_GOOD, 300)
[+11.13s] DEBUG: scanner.vala:584: sane_control_option (8, SANE_ACTION_SET_VALUE, br-x=option.range.max=215.899994) -> (SANE_STATUS_GOOD)
[+11.13s] DEBUG: scanner.vala:584: sane_control_option (9, SANE_ACTION_SET_VALUE, br-y=option.range.max=300.566666) -> (SANE_STATUS_GOOD)
[+11.13s] DEBUG: scanner.vala:449: scale_int: scaling 0 [min: -100, max: 100] to 1000 [min: 0, max: 2000]
[+11.13s] DEBUG: scanner.vala:514: sane_control_option (13, SANE_ACTION_SET_VALUE, brightness=1000) -> (SANE_STATUS_GOOD, 1000)
[+11.13s] DEBUG: scanner.vala:449: scale_int: scaling 0 [min: -100, max: 100] to 1000 [min: 0, max: 2000]
[+11.13s] DEBUG: scanner.vala:514: sane_control_option (14, SANE_ACTION_SET_VALUE, contrast=1000) -> (SANE_STATUS_GOOD, 1000)
[+12.25s] DEBUG: scanner.vala:1352: sane_start (page=0, pass=0) -> SANE_STATUS_NO_DOCS
[+12.25s] DEBUG: scanner.vala:1325: sane_cancel ()
[+12.25s] DEBUG: scanner.vala:825: sane_cancel ()
[+12.25s] DEBUG: scanner.vala:828: sane_close ()
[+12.25s] CRITICAL: page_get_has_data: assertion 'self != NULL' failed
[+12.25s] CRITICAL: book_delete_page: assertion 'page != NULL' failed
[+12.61s] DEBUG: app-window.vala:2078: Saving state to /home/seb/.config/simple-scan/state
[+13.80s] DEBUG: app-window.vala:2078: Saving state to /home/seb/.config/simple-scan/state
[+14.43s] DEBUG: app-window.vala:2078: Saving state to /home/seb/.config/simple-scan/state
[+15.04s] DEBUG: autosave-manager.vala:201: Deleting autosave records
[+15.04s] WARNING: autosave-manager.vala:214: Failed to delete autosaves: Error opening directory “/home/seb/.cache/simple-scan/autosaves”: No such file or directory
[+15.04s] DEBUG: scanner.vala:1807: Stopping scan thread
[+15.04s] DEBUG: scanner.vala:863: Processing request
[+15.05s] DEBUG: scanner.vala:1818: sane_exit ()
My previous search sent me to the low level library code on Github, but I wasn’t able to find a solution or a workaround.
For a workaround, I was wondering if as nixos is pretty good at isolating environments, is there a way to run simlple-scan from NixOS 22.11 ?
Thanks for any help
PS: I need to test from a live Ubuntu for example, I’ll post the results asap