While running Unity Editor with Ubuntu emulated inside VirtualBox with 3D acceleration enabled, the editor will hang while trying to open a project.
Following can be seen in editor log:
OpenGL Warning: glXChooseFBConfig returning NULL, due to attrib=0x2, next=0x20
[0607/160612:ERROR:gl_surface_glx.cc(613)] glXChooseFBConfig failed.
[0607/160612:ERROR:gpu_info_collector.cc(27)] gfx::GLContext::CreateOffscreenGLSurface failed
[0607/160612:ERROR:gpu_info_collector.cc(89)] Could not create surface for info collection.
[0607/160612:ERROR:gpu_main.cc(402)] gpu::CollectGraphicsInfo failed (fatal).
[0607/160612:ERROR:sandbox_linux.cc(308)] InitializeSandbox() called with multiple threads in process gpu-process
IsTimeToCheckForNewEditor: Update time 0 current 1465308378
Disabling VirtualBox 3D acceleration solves this problem.
It does look that way. The offending error messages look like they’re coming from inside CEF - do you get the same error if you launch with -projectPath or -createProject ?
I get somewhat different error with -projectPath or -createProject:
Desktop is 1920 x 1080 @ 60 Hz
OpenGL Warning: glXChooseVisual: ignoring attribute 0x22
OpenGL Warning: glXChooseVisual: bad attrib=0x186a1, ignoring
OpenGL Warning: glXChooseVisual: bad attrib=0x186a0, ignoring
No valid fbconfig found
OpenGL Warning: XGetVisualInfo returned 0 visuals for 0000000000000000
but the editor still hangs.
I also tried running ‘glmark2’ utility, and it fails with simulator error messages. I guess VirtualBox 3D acceleration is broken.
I just tried disabling 3D acceleration like he said and Unity opened right up. Unfortunately the Scene view is black. Interestingly, the game view works, you just can’t do anything with it because the scene view doesn’t work. Everything else seems to function normally though
I hope you can figure this out, this is the first time I’ve seen Unity running in Linux and it just looks so right!