Closed totaam closed 8 years ago
illegal hardware instruction (core dumped)
is occurring in the vp9 sanity checks.
Your libvpx library is either broken or not compatible with your CPU. This is not an xpra bug I am afraid, calling a library should not cause a crash...
You could try to workaround it by listing all the encodings except vp9 (and maybe also vp8 - which also uses the same libvpx library), like so:
xpra start --encodings=rgb,h264,png,jpeg,webp ...
(or setting "encodings" in your global
/etc/xpra/xpra.conf
.
Ok. This seems to be the bug: https://bugs.launchpad.net/ubuntu/+source/libvpx/+bug/1518933
..and it's not fixed on the latest 14.04 repository as I checked and have the newest version of libvpx installed.
-*So now the problem becomes how to start xpra without loading libvpx.**
I tried setting encodings in both xpra.conf and on the command line, but it still crashes at the same point.
.... 2016-01-10 10:51:55,188 vp9 setting cpu speed to 8 2016-01-10 10:51:55,188 update_cfg() bitrate(64,32,0.003)=16 2016-01-10 10:51:55,188 vp9 setting lossless to 0 zsh: illegal hardware instruction (core dumped) xpra start :100 --encodings=rgb,h264,png,jpeg --start-child=xterm
How do I make it not load libvpx?
Thanks.
Hah, I have a better solution, ignore what I said about encodings, it won't be needed. We have something designed just for this case (which I had forgotten about):
- for the server:
xpra start --video-encoders=x264,nvenc
- for the client
xpra attach --video-decoders=avcodec
You can use
video-encoders=help
orvideo-decoders=help
to get a list of options.
Thanks antoine. I ended up compiling from source
--without-vpx
and it works now.Btw.
AV_PIX_FMT_0RGB
andAV_PIX_FMT_BGR0
is missing from 14.04pixfmt.h
. Had to comment those out in the source of xpra to get it to compile.To get Xdummy working on Ubuntu was another adventure, but it was resolved in the end by just installing the original Xdummy script (http://www.karlrunge.com/x11vnc/Xdummy). Much easier than fiddling with the
/dev/tty|fd|card
group permissions.Thanks for your help. You can mark this resolved as far as I'm concerned. Now to do some testing...
Btw. AV_PIX_FMT_0RGB and AV_PIX_FMT_BGR0 is missing from 14.04 [[BR]] You need one of those Debian specific patches for libav:
- [/browser/xpra/tags/v0.15.x/debian/patches/new-libav-codec2.patch]
- [/browser/xpra/tags/v0.15.x/debian/patches/new-libav-no0RGB.patch]
Closing as invalid because there's nothing we can do in xpra if the OS supplied libraries are buggy. In some other cases, we detect Ubuntu and skip whatever is broken there (ie: opengl drivers), but in this case we would also need to detect that the CPU doesn't support sse2 (or whatever it is)..
Issue migrated from trac ticket # 1084
component: server | priority: major | resolution: invalid
2016-01-10 01:35:34: caspercg created the issue