-
Notifications
You must be signed in to change notification settings - Fork 950
Demo for "flashgames.DuskDrive-v0" cannot run on virtual machine guest Ubuntu 16.04 LTS #42
Comments
Looks like a mismatch between the OpenGL version that go_vncdriver is looking for and the version you have installed. Do you know which version of OpenGL you have installed? |
Also, could you try running this example go-gl program? You'll need to set $GOPATH if you haven't done so yet:
Then run: go get -u github.com/go-gl/examples/gl21-cube
gl21-cube |
Hi,
And I can run the example as you mentioned and got a spinning cube. Is there anything wrong? |
@mr-cloud I stumbled on the same situation (running virtualbox here). |
@lccro I have tried as you mentioned, and now the driver vmwgfx error disappeared but the driver swrast error still exists. Can you explain this problem and how can I solve it? |
Finally, I solved my problem by removing the "libstdc++.so.6" in my Anaconda environment. It seems that this library which is maintained by the newest Anaconda is out-dated. You may use |
I have a similar problem to @mr-cloud. My error when I run the example code is:
When I do
So nothing in Anaconda. Are there any other solutions? |
Your console has a message: "libEGL warning: DRI2: failed to authenticate". Maybe the opengl you installed is not proper (e.g., the version collision or failed authentication). |
@msouder This is caused by your OpenGL installation. You can test it by runing
which should give a long list of info and not an error message, and
which should show some gears spinning in a window. If both these don't work, look at Ubuntu forums for installing OpenGL. |
Thanks @tlbtlbtlb. I am trying to get this to work on older hardware, a GeForce GT 335M that can only use the nvidia-340 driver. Maybe DRI doesn't work with that one? I tried switching to Nouveau drivers, but EGL still wouldn't initialize. I did get slightly different error messages though. |
Here's a thread with what seems like the same problem and several suggestions: https://steamcommunity.com/app/221410/discussions/2/828934089701456106/ You might try disabling DRI by setting:
|
I really can't tell what I did in the last few days that made it work finally after 5 tries but it works for my under virtualbox on win10 running Ubuntu 16.04 LTS ... |
Did anybody get this to work in VirtualBox with 3D acceleration enabled? |
lccro's solution worked for me. Just turned off 3D acceleration in my Virtualbox settings and blam! Everything works, no messing with files :) |
@laksefest : Yes, that seems to do the trick. Definately worth to mention :-) |
I have just installed all the requirements in VM Ubuntu 16.04 LTS as the doc said -- https://github.com/openai/universe.
Then I started docker and opened the browser-based VNC-client, all both worked well. But when I ran the demo for "flashgames.DuskDrive-v0" in PyCharm as above guide, I got the output also errors in console:
[2016-12-09 02:34:48,212] Making new env: flashgames.DuskDrive-v0
[2016-12-09 02:34:48,276] Writing logs to file: /tmp/universe-7615.log
[2016-12-09 02:34:48,289] Using the golang VNC implementation
[2016-12-09 02:34:48,289] Using VNCSession arguments: {'start_timeout': 7, 'fine_quality_level': 50, 'encoding': 'tight', 'subsample_level': 2}. (Customize by running "env.configure(vnc_kwargs={...})"
[2016-12-09 02:34:48,327] [0] Connecting to environment: vnc://localhost:5900 password=openai. Use the browser-based VNC client: http://localhost:15900/viewer/?password=openai
2016/12/09 02:34:48 I1209 02:34:48.329181 7615 gymvnc.go:417] [0:localhost:5900] opening connection to VNC server
2016/12/09 02:34:48 I1209 02:34:48.376161 7615 gymvnc.go:550] [0:localhost:5900] connection established
libGL error: unable to load driver: vmwgfx_dri.so
libGL error: driver pointer missing
libGL error: failed to load driver: vmwgfx
libGL error: unable to load driver: swrast_dri.so
libGL error: failed to load driver: swrast
libEGL warning: DRI2: failed to open vmwgfx (search paths /usr/lib/x86_64-linux-gnu/dri:${ORIGIN}/dri:/usr/lib/dri)
libEGL warning: DRI2: failed to open swrast (search paths /usr/lib/x86_64-linux-gnu/dri:${ORIGIN}/dri:/usr/lib/dri)
2016/12/09 02:34:48 C1209 02:34:48.549093 7615 vncgl.go:40] failed to initialize glfw: APIUnavailable: EGL: Failed to initialize EGL: EGL is not or could not be initialized
Process finished with exit code 1
And the specific page of "flashgames.DuskDrive-v0" is blank.
My host OS is Windows 10 with graphics Intel HD5500 and NVIDIA GeForce 940m, I use VMware workstation 11 to virtualize the Ubuntu 16.06 LTS. And I try Universe in Ubuntu.
Could you please give me some advice, any solution would be appreciated.
The text was updated successfully, but these errors were encountered: