You are not logged in.

#1 2019-07-09 10:39:29

firewalker
Member
From: Hellas (Greece).
Registered: 2006-06-05
Posts: 585

scanimage hangs

Scanimage doesn't detect scanner (tha used to work fine) and hangs in the process.

scanimage -L

Will just hang there without printing anything on stdout. Even

scanimage -h

will output the help message and it will seat there without exiting.

Every time I run scanimage the log will report:

Jul 09 13:38:18 laptop org_kde_powerdevil[6290]: UdevQt: unhandled device action "unbind"
Jul 09 13:38:18 laptop plasmashell[6163]: UdevQt: unhandled device action "unbind"

Running as root gives the same results.

Any suggestions?

Last edited by firewalker (2019-07-09 10:46:42)


Γίνε ρεαλιστής, μείνε ονειροπόλος ...

Offline

#2 2019-07-09 11:14:52

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,762

Re: scanimage hangs

strace the call, see where it stalls.
Can you lspci/lsusb?
It's a usb scanner? (Since the answer is most likely yes: does it show up in lsusb and "lsusb -v"? What if you disable usb autosuspend, https://wiki.archlinux.org/index.php/Po … utosuspend  & https://wiki.archlinux.org/index.php/SA … apscan_e40 )

Offline

#3 2019-07-09 11:50:14

firewalker
Member
From: Hellas (Greece).
Registered: 2006-06-05
Posts: 585

Re: scanimage hangs

Yes it is a usb scanner.

sane-find-scanner

detects it just fine.

It doesn't seem to be suspended. The strange thing is that scanimage will hang even if the scanner isn;t connected.

It seems it tries to do something with a network device. Strace floods stdout with:

recvfrom(14, "\0\0\204\0\0\0\0\22\0\0\0\0\rlocalhost_prl\0\0\1\0\1\0"..., 2048, 0, {sa_family=AF_INET, sin_port=htons(5353), sin_addr=inet_addr("192.168.0.204")}, [16]) = 313
select(15, [14], NULL, NULL, {tv_sec=0, tv_usec=300000}) = 1 (in [14], left {tv_sec=0, tv_usec=199914})

There is no network configuration for sane.


Γίνε ρεαλιστής, μείνε ονειροπόλος ...

Offline

#4 2019-07-09 11:57:27

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,762

Re: scanimage hangs

5353 is mdns/avahi - what's 192.168.0.204 (any actual device) - does it have 5353 open?
Do you intentionally have mdns configured? Does it work™ outside this context?

Last edited by seth (2019-07-09 11:57:45)

Offline

#5 2019-07-09 13:07:28

firewalker
Member
From: Hellas (Greece).
Registered: 2006-06-05
Posts: 585

Re: scanimage hangs

It is a device in our building (don't know which one) with all ports closed. If I disconnect from our network scanimage works just fine...

Quite strange...


Γίνε ρεαλιστής, μείνε ονειροπόλος ...

Offline

#6 2019-07-09 13:12:14

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,762

Re: scanimage hangs

seth wrote:

Do you intentionally have mdns configured?

avahi-browse --all --ignore-local --resolve --terminate

https://wiki.archlinux.org/index.php/Avahi

Offline

#7 2019-07-09 13:20:37

firewalker
Member
From: Hellas (Greece).
Registered: 2006-06-05
Posts: 585

Re: scanimage hangs

avahi-browse --all --ignore-local --resolve --terminate

Failed to create client object: Daemon not running

I have never configured anything for avahi or mdns.

OK, the device is a macbook of a colleague of mine...

Last edited by firewalker (2019-07-09 13:21:29)


Γίνε ρεαλιστής, μείνε ονειροπόλος ...

Offline

#8 2019-07-09 13:49:20

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,762

Re: scanimage hangs

cat /etc/nsswitch.conf
systemctl status avahi-daemon.service # though should not be running

You could drop the port in iptables (warning, it's udp) but I rather wonder why scanimage tries that itfp.
avahi/mdns/bonjour should be  running on a macbook (and the port be open), did he do sth. specific to it?

Offline

#9 2019-07-09 14:16:45

firewalker
Member
From: Hellas (Greece).
Registered: 2006-06-05
Posts: 585

Re: scanimage hangs

The daemon is not running.

Could scanimage think that the macbook on the specific address is a remote scanner and tries to communicate with it? What could force scanimage to search for remote scanners?


Γίνε ρεαλιστής, μείνε ονειροπόλος ...

Offline

#10 2019-07-09 17:47:21

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,762

Re: scanimage hangs

It certainly gets an answer from the macbook - I assume severing that connection will "fix" it?

However, it doesn't query port 5353 here at all… can you paste the complete strace ("strace scanimage -L 2>&1 | curl -F 'f:1=<-' ix.io")?

Offline

Board footer

Powered by FluxBB