#981585 sxiv: crashes if launched from Emacs

Package:
sxiv
Source:
sxiv
Description:
simple X image viewer
Submitter:
John Doe
Date:
2021-02-01 19:24:04 UTC
Severity:
important
#981585#5
Date:
2021-02-01 19:20:53 UTC
From:
To:
Dear Maintainer,

I launched sxiv from Emacs using `async-shell-command` and this command line -
`find ... -type f ... -print0 | xargs -0 sxiv -ifo`
It opens, I'm able to browse images, but a few seconds later it crashes and I
see the following output -
```
XIO:  fatal IO error 88 (Socket operation on non-socket) on X server ":0"
      after 8379 requests (8378 known processed) with 2 events remaining.
XIO:  fatal IO error 88 (Socket operation on non-socket) on X server ":0"
      after 8379 requests (8378 known processed) with 2 events remaining.
```

I tried running it from a terminal, but could not reproduce it.

M-x emacs-version -
GNU Emacs 26.1 (build 2, x86_64-pc-linux-gnu, GTK+ Version 3.24.5) of
2019-09-23, modified by Debian

I tested with sxiv v25-1 from Stable and with a backported v26-1 from Testing.