Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Problems in VirtualBox Linux  (Read 3610 times)

0 Members and 1 Guest are viewing this topic.

mathnmusic

  • Newbie
  • *
  • Posts: 1
    • View Profile
Problems in VirtualBox Linux
« on: June 10, 2014, 05:26:47 am »
I installed a Lubuntu machine in VirtualBox and then installed Py-SFML within that.
When I try to open a window with:
   w = sf.RenderWindow(sf.VideoMode(640, 480), "A Window")
there are two error messages:
  libGL error: failed to authenticate magic 1  (this number increases on subsequent runs)
  libGL error: failed to load driver: vboxvideo
When I play music with:
   music = sf.Music.from_file("Orchestral.OGG")
   music.play()
it does play but the sound is distorted.
   Could these problems be caused because of the machine settings when I installed Lubuntu?  For example, maybe I should have selected "Null audio driver" instead of "Windows Direct Sound".  I tried enabling 3D acceleration and am otherwise clueless on how to fix the graphics problem.


eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11029
    • View Profile
    • development blog
    • Email
AW: Problems in VirtualBox Linux
« Reply #1 on: June 10, 2014, 08:37:46 am »
It's known that VM can have issues. You just might want to play around with all the VM graphics settings. Google might also help with providing some possible solutions.
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

Jesper Juhl

  • Hero Member
  • *****
  • Posts: 1405
    • View Profile
    • Email
Re: Problems in VirtualBox Linux
« Reply #2 on: June 15, 2014, 08:58:55 pm »
1. Make sure you have the Virtualbox Guest Additions installed in the guest. Otherwise performance of everything (especially graphics) will suck.
2. Make sure you have enough video RAM allocated for the guest in the VB settings (personally I've had issues when allocating less than 24MB - not quite sure why though).
3. Play around with enabling/disabling 2D and 3D acceleration for the VM.
4. Play with these environment variables in the guest (especially LIBGL_ALWAYS_SOFTWARE and LIBGL_ALWAYS_INDIRECT).
« Last Edit: June 15, 2014, 09:12:46 pm by Jesper Juhl »

 

anything