Crash (at the end of the movie)

Hello,

Since upating to Xenial and Krypton, I get crashes quite reqularly. Most typically I get the crash at the end of a movie.
Many times after the crash, all terminals tty1-7 get blank. SSH is working.

Ubuntu server 16.04.2 LTS
17.0 Git:20170210-nogitfound

Here are some logs of the last crash.

dpkg -l | grep mesa http://paste.ubuntu.com/24029741/
DISPLAY=:0 vainfo http://paste.ubuntu.com/24029742/
cat ~/.kodi/temp/kodi.log http://paste.ubuntu.com/24029743/
dmesg http://paste.ubuntu.com/24029744/
id http://paste.ubuntu.com/24029745/
amixer http://paste.ubuntu.com/24029746/
cat /var/log/Xorg.0.log http://paste.ubuntu.com/24029747/

cat ~/kodi_crashlog-20170219_220218.log http://paste.ubuntu.com/24029959/

(After this, I tried to restart kodi with systemctl restart kodi, got new crash)

cat ~/kodi_crashlog-20170219_221103.log http://paste.ubuntu.com/24029961/

I can’t make a lot out of the logs, except that it may be audio related.
Any help would be appreciated. Thank you.