Kodi Community Forum
Linux VAAPI causes freeze on stop only on 12.3 - OpenSUSE and Arch - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: General Support (https://forum.kodi.tv/forumdisplay.php?fid=111)
+---- Forum: Linux (https://forum.kodi.tv/forumdisplay.php?fid=52)
+---- Thread: Linux VAAPI causes freeze on stop only on 12.3 - OpenSUSE and Arch (/showthread.php?tid=183192)

Pages: 1 2 3 4 5


VAAPI causes freeze on stop only on 12.3 - OpenSUSE and Arch - alexktz - 2014-01-13

I reinstalled completely fresh today on Arch and when I hit stop XBMC freezes immediately leaving the picture in place on the screen until I restart xbmc via systemctl.

I have a Xeon 1245 v3 with official Intel drivers on a Supermicro x10sat.
I would post a crash log but one isn't being generated. Where do I start with this one?


Re: Arch Linux 12.3 Fresh install - Xbmc freeze on stop - nickr - 2014-01-13

Are you saying when you hit stop (button x) while watching a movie?

Xbmc should still be creating a log under. ~/.xbmc/temp/


RE: Arch Linux 12.3 Fresh install - Xbmc freeze on stop - alexktz - 2014-01-13

Yes when I hit stop during any kind of video playback (local file, YouTube etc). It also happened when I used yatse to load up another video whilst one was playing. Presumably yatse or xbmc tries to stop the current vid then start the next, but it was freezing on stop.

I've checked my filesystem using the find command for any file named crash / crashlog and got nothing. Very odd.


RE: Arch Linux 12.3 Fresh install - Xbmc freeze on stop - nickr - 2014-01-13

the log file is ~/.xbmc/temp/xbmc.log

It may not create a cashlog as such, but the xbmc log will be there. Set it to debug first, then restart xbmc, then cause the crash.

Post the log to pastebin or similar.


RE: Arch Linux 12.3 Fresh install - Xbmc freeze on stop - alexktz - 2014-01-13

** I'm running it as root user I think on arch with the standard systemd service.

Found the log. It was in /var/lib/xbmc/.xbmc for anyone else that needs that info going forward...

debug log duly posted on pastebin.

http://pastebin.com/MJFQLGqD


RE: Arch Linux 12.3 Fresh install - Xbmc freeze on stop - nickr - 2014-01-13

At a quick glance I cannot see what the problem might be, but for god's sake stop running as root!


RE: Arch Linux 12.3 Fresh install - Xbmc freeze on stop - alexktz - 2014-01-17

I see no issue with running as root really. It's only playback, what harm can it do? It's also the default in Arch.

Anyway, I think the issue must be related to the p4600 gpu in the xeon 1245 v3. I have an Intel 3470 (not K version) with HD4000 built-in and the exact same set of packages works great there. I'm going to play around with different intel drivers to see if this makes a difference but it's a pretty big problem tbh, so the CPU will have to be swapped if it can't be fixed.

Anyone got a clue?


RE: Arch Linux 12.3 Fresh install - Xbmc freeze on stop - alexktz - 2014-01-17

I took a punt and install the bleeding edge Intel git drivers and this has had no effect.

It seems that disabling vaapi resolves my issue. This isn't ideal, but will do for now. Is this a haswell issue?


With a bit more testing I am 100% positive vaapi is the root cause of my issue.


RE: Arch Linux 12.3 Fresh install - Xbmc freeze on stop - alexktz - 2014-01-18

Right, some more investigative work shows that the issue is NOT there under OpenELEC with runs XBMC 12.2 and IS there with OpenSUSE again on 12.3. I will be installing 12.2 in Arch in the morning!

My guess is that as the issue occurs across two different OSs (will try a third tomorrow) that the issue may well be XBMC related or Intel driver related. I don't know enough to figure out more, would really appreciate a person in the know chipping in.


edit - I have just updated the thread title now I know it's not an OS specific bug.


RE: VAAPI causes freeze on stop only on 12.3 - OpenSUSE and Arch - fritsch - 2014-01-18

Build with internal ffmpeg and fine. Both Arch and suse ship with external libav by default which causes that issue.


Re: RE: VAAPI causes freeze on stop only on 12.3 - OpenSUSE and Arch - alexktz - 2014-01-18

(2014-01-18, 01:56)fritsch Wrote: Build with internal ffmpeg and fine. Both Arch and suse ship with external libav by default which causes that issue.

Great I'll give it a look tomorrow. Thanks.


RE: VAAPI causes freeze on stop only on 12.3 - OpenSUSE and Arch - alexktz - 2014-01-18

(2014-01-18, 01:56)fritsch Wrote: Build with internal ffmpeg and fine. Both Arch and suse ship with external libav by default which causes that issue.

Right, I'm probably being thick but I don't see an option in the Arch PKGBUILD. I do see plenty of other options, but it appears that --disable-external-ffmpeg is already a compile flag.

Could you elaborate a little for me please?


RE: VAAPI causes freeze on stop only on 12.3 - OpenSUSE and Arch - fritsch - 2014-01-18

Jep, you are right.

Can you run xbmc from gdb? and capture a backtrace?


RE: VAAPI causes freeze on stop only on 12.3 - OpenSUSE and Arch - alexktz - 2014-01-18

I'm not 100% sure on how to use gdb... It is installed, but then what?

Here is a more recent xbmc.log for you though.

http://pastebin.com/FUyBTVdh


RE: VAAPI causes freeze on stop only on 12.3 - OpenSUSE and Arch - fritsch - 2014-01-18

Can you make a screenshot of your Audio Settings? 12.3 thinks your output device can do AE_FMT_FLOAT which is obviously false. Set everything to analog 2.0 channels, disable passthrough.

If you can: try to reproduce with our gotham nightly builds. 12.3 won't be developed anymore.