NixOS / nixpkgs

Nix Packages collection & NixOS
MIT License
18.08k stars 14.08k forks source link

Scanimage segfault #84806

Closed NorfairKing closed 4 years ago

NorfairKing commented 4 years ago

Describe the bug A clear and concise description of what the bug is.

With

hardware.sane.enable = true;

I get:

scanimage -L  
scanimage: error while loading libusb-1.0.so.0 from libusb-0.1.so.4: libusb-1.0.so.0: cannot open shared object file: No such file or directory
[1]    22999 segmentation fault (core dumped)  scanimage -L

This blocks me from working on https://github.com/NixOS/nixpkgs/issues/84802

NorfairKing commented 4 years ago

Aha! It seems this may have something to do with my printing setup because when I turn off

services.printing.enable = true;

then suddenly this segfault doesn't happen anymore. In any case, it's not a nixpkgs problem.

NorfairKing commented 4 years ago

Scratch that, it wasn't because of scanning but because of the brscan backend that I enabled. I'm having a hard time debugging why. Perhaps @jraygauthier could provide some insight?