Page 1 of 1

Video Rendering causes guest to hang on exit with 3D Acceleration.

Posted: 5. Sep 2016, 18:22
by rickyoswaldiow
I'm running Linux Mint 18 (Sarah) 32bit with Cinnamon in VirtualBox 5.1.4 with 3D Acceleration enabled at 128MB. Due to (previously solved) problems of the desktop running in software rendering I removed the version of Guest Additions that is bundled with mint and installed from the Guest Additions image supplied with VBox. This seemed to work great and the desktop runs a lot smoother.

When I play a video in Banshee or Xplayer (named 'Vidoes') that come bundled with Mint, they seem to play the first frame and then stop. The play button is still active but the video does not progress - I can manually scan through the timeline at this point and see the individual frames but it will not play. I downloaded VLC which successfully plays the videos, but when I close VLC the machine appears to freeze - the image disappears from the player but oddly I can still see the cursor updating as I mouse over things, such as the "grabby hand" cursor if I try to move a window, but nothing visually updates and I have to restart VBox.

If I disable 3D Acceleration the problem with Banshee and Xplayer persists, but I can cleanly exit from VLC and continue using the VM. This is of course far from ideal. Additionally the first time I got 3D Acceleration working and found this issue, I noticed the Chromium rendering overlay as a window alongside the running VM in the host when I started to play a video in VLC, but oddly that window is not displaying currently.

Host is Windows 10 64bit running on an i5 6600k and a GeForce GTX 960.

Code: Select all

ricky@host ~ $ glxinfo | grep render
direct rendering: Yes
OpenGL renderer string: Chromium

ricky@host ~ $ glxinfo | grep OpenGL
OpenGL vendor string: Humper
OpenGL renderer string: Chromium
OpenGL version string: 2.1 Chromium 1.9
OpenGL shading language version string: 4.50 NVIDIA
OpenGL extensions:

ricky@host ~ $ uname -a
Linux host 4.4.0-36-generic #55-Ubuntu SMP Thu Aug 11 18:00:59 UTC 2016 i686 i686 i686 GNU/Linux

ricky@host ~ $ lsmod | grep v
vboxsf                 45056  0
joydev                 20480  0
snd_seq_midi_event     16384  1 snd_seq_midi
vboxvideo              45056  0
ttm                    90112  1 vboxvideo
snd_seq                57344  2 snd_seq_midi_event,snd_seq_midi
drm_kms_helper        135168  1 vboxvideo
snd_seq_device         16384  3 snd_seq,snd_rawmidi,snd_seq_midi
drm                   311296  3 ttm,drm_kms_helper,vboxvideo
snd                    69632  11 snd_ac97_codec,snd_intel8x0,snd_timer,snd_pcm,snd_seq,snd_rawmidi,snd_seq_device
syscopyarea            16384  2 drm_kms_helper,vboxvideo
sysfillrect            16384  2 drm_kms_helper,vboxvideo
sysimgblt              16384  2 drm_kms_helper,vboxvideo
vboxguest             253952  8 vboxsf,vboxvideo
ppdev                  20480  0
parport                45056  3 lp,ppdev,parport_pc
video                  36864  0

Addendum When I play a video with 3D Acceleration enabled, the video itself always appears on top of other windows such as the browser and file manager, but not the entire VLC window. I have tested with multiple formats (avi, mp4 and webm) in VLC. Even just stopping the video causes the issue, not just closing VLC, but pausing a video does not. The display is unresponsive if I stop a video, but I can use the keyboard shortcut to play the video and the VM becomes responsive once again.

Embedded videos in webpages do not exhibit the overlapping behavior, but they behave otherwise the same as Xplayer and Banshee.

Re: Video Rendering causes guest to hang on exit with 3D Acceleration.

Posted: 5. Sep 2016, 23:55
by rickyoswaldiow
Not exactly a "solution", but I installed XFCE and the main problem does not occur there. Videos still insist on being on top of everything else, but the other media players work and I can close/stop them without it freezing up the desktop rendering. If a mod wants me to marked this as [solved] then I will, but really I haven't solved my problem, and I've actually completely removed Cinnamon now anyway.