New version: https://gdlp01.c-wss.com/gds/2/0100011322/01/scangearmp2-source-4.30-1.tar.gz sha256 ae337238379541d8f99f09bf24e82d291b8141e5a7758d46c0002a9becb828b8
Doesn't actually fix the segfault issue, but it's newer.
Patch to fix the issue:
--- src/scangearmp2-source-4.30-1/scangearmp2/src/canon_mfp_tools.c 2021-06-08 12:01:24.000000000 +0200
+++ patched_src/scangearmp2-source-4.30-1/scangearmp2/src/canon_mfp_tools.c 2022-02-11 11:54:38.234035119 +0100
@@ -394,7 +394,7 @@
goto onErr;
}
/* search canon mfp */
- numdev = libusb_get_device_list(NULL, &g_devlist);
+ numdev = libusb_get_device_list(g_context, &g_devlist);
if((int)numdev == 0) {
err = CN_USB_WRITE_ERROR;
goto onErr;
I don't use usb so I can't guarantee everything else works there. This code assumes libusb will grab the default context, but libusb_init is called with g_context instead of NULL, so the default is never initialized.
Pinned Comments
pvdl1984 commented on 2022-03-26 11:26 (UTC)
I also created the AUR scangearmp2-sane-git which uses the github repository below. It includes a slightly upgraded GUI for scangearmp2, but more importantly provides a sane driver.