Opened 10 years ago

Last modified 8 years ago

#43780 assigned defect

sane-backends Trace/BPT trap: 5 after port upgrade

Reported by: leonfauster@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 2.2.1
Keywords: Cc: cooljeanius (Eric Gallager), tobypeterson
Port: sane-backends, libusb-compat

Description

sane-backends was working fine with this scanner "Canon CanoScan N1240U/LiDE30"

after upgrading all outdated ports i noticed the "Trace/BPT trap: 5" message.


$ port installed |grep -i -E 'sane|twain|gette|libusb'
  gettext @0.18.3.2_0+universal (active)
  libusb @1.0.17_0+universal 
  libusb @1.0.18_0+universal (active)
  libusb-compat @0.1.4_0+universal
  libusb-compat @0.1.5_0+universal (active)
  p5.12-locale-gettext @1.50.0_7 (active)
  p5.16-locale-gettext @1.50.0_7 (active)
  sane-backends @1.0.22_4+universal (active)
  twain-sane @3.0_0 (active)

$ port version
Version: 2.2.1

$ cat /opt/local/etc/sane.d/dll.conf | grep -v '#'
plustek

$ scanimage -L
device `plustek:libusb:020:001' is a Canon CanoScan N1240U/LiDE30 flatbed scanner
Trace/BPT trap: 5

$ echo $?
133

$ SANE_DEBUG_DLL=111 scanimage -L
[sanei_debug] Setting debug level of dll to 111.
[dll] sane_init: SANE dll backend version 1.0.13 from sane-backends 1.0.22
[dll] sane_init/read_dlld: attempting to open directory `./dll.d'
[dll] sane_init/read_dlld: attempting to open directory `/opt/local/etc/sane.d/dll.d'
[dll] sane_init/read_dlld: opendir failed: No such file or directory
[dll] sane_init/read_config: reading dll.conf
[dll] add_backend: adding backend `plustek'
[dll] sane_get_devices
[dll] load: searching backend `plustek' in `/opt/local/lib/sane'
[dll] load: trying to load `/opt/local/lib/sane/libsane-plustek.1.so'
[dll] load: dlopen()ing `/opt/local/lib/sane/libsane-plustek.1.so'
[dll] init: initializing backend `plustek'
[dll] init: backend `plustek' is version 1.0.0
[dll] sane_get_devices: found 1 devices
device `plustek:libusb:020:001' is a Canon CanoScan N1240U/LiDE30 flatbed scanner
[dll] sane_exit: exiting
[dll] sane_exit: calling backend `plustek's exit function
Trace/BPT trap: 5

scanning works but

$ scanimage --resolution 300 --mode Color -l 0 --format tiff -x 215 -y 297 > tmp3.tif
Killed: 9

$ echo $?
137

Change History (8)

comment:1 Changed 10 years ago by leonfauster@…

activating the older compat lib helps to get expected behaviour

  libusb-compat @0.1.4_0+universal (active)
  libusb-compat @0.1.5_0+universal
$ scanimage -L
device `plustek:libusb:020:001' is a Canon CanoScan N1240U/LiDE30 flatbed scanner

$ echo $?
0

comment:2 Changed 10 years ago by leonfauster@…

$ sw_vers 
ProductName:	Mac OS X
ProductVersion:	10.8.5
BuildVersion:	12F45

comment:3 Changed 10 years ago by cooljeanius (Eric Gallager)

Cc: egall@… added

Cc Me!

comment:4 Changed 10 years ago by mf2k (Frank Schima)

Owner: changed from macports-tickets@… to aguynamedryan+sane@…

In the future, please Cc the port maintainers (port info --maintainers sane-backends).

comment:5 Changed 8 years ago by leonfauster@…

Cc: leonfauster@… added

Cc Me!

Version 0, edited 8 years ago by leonfauster@… (next)

comment:6 Changed 8 years ago by leonfauster@…

I have migrated my scan station to 10.11. (El Capitan) and the same behaviour persists. Fresh installed OS and macports and scanimage -L exits with non zero status. Downgrading libusb-compat @0.1.4 solved it.

comment:7 Changed 8 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: toby@… added; leonfauster@… removed
Port: libusb-compat added

Has duplicate #52240.

comment:8 Changed 8 years ago by mf2k (Frank Schima)

Owner: changed from aguynamedryan+sane@… to macports-tickets@…
Status: newassigned

See #52241.

Note: See TracTickets for help on using tickets.