I’m trying to run a linux standalone on an aws ec2 instance.
I created an ec2 instance on amazon of type small with ubuntu 14.04. I added ubuntu desktop and tightvncserver.
I opened the vnc port on the ec2 instance.
I also installed nvidia drivers on the ec2 instance although it has no real graphics card.
I also installed the mesa opengl software – supposed to run opengl without a graphics card.
I created a unity linux project that simply writes a file to the streamingAssets folder. I set the build settings for headless. This seemed to work and the file was written and no errors occured in the log.
‘/home/ubuntu/Desktop/unitytests/writefile/writefile.x86_64’ -nographics -logfile log.txt
My actual unity project called “aws” runs fine on an ubuntu vmware vm running in vmware fusion on my mac. It also uses CoherentUI. On aws it gives many errors in the log. Could someone help me troubleshoot these errors? I’m confused as to which ones are related to vnc problems or unity problems, or possibly coherentui problems. If possible I’d like to run it so I could also see the graphics.
Here is the display info and below that is the log file
ubuntu@ip-172-31-9-169:~ lshw -C video
WARNING: you should run this program as super-user.
*-display UNCLAIMED
description: VGA compatible controller
product: GD 5446
vendor: Cirrus Logic
physical id: 2
bus info: pci@0000:00:02.0
version: 00
width: 32 bits
clock: 33MHz
capabilities: vga_controller bus_master
configuration: latency=0
resources: memory:f0000000-f1ffffff memory:f3000000-f3000fff
WARNING: output may be incomplete or inaccurate, you should run this program as super-user.
ubuntu@ip-172-31-9-169:~ glxinfo
name of display: :1
Error: couldn’t find RGB GLX visual or fbconfig
Error: couldn’t find RGB GLX visual or fbconfig
Xlib: extension “XInputExtension” missing on display “:1”.
Xlib: extension “XInputExtension” missing on display “:1”.
Xlib: extension “RANDR” missing on display “:1”.
Xlib: extension “XInputExtension” missing on display “:1”.
Xlib: extension “XInputExtension” missing on display “:1”.
[2696:2696:INFO:UIContentClient.cpp(74)] GPU info collected in gpu-process process:
[2696:2696:INFO:UIContentClient.cpp(79)] Main GPU vendor 4115 device 184
[2696:2696:ERROR:gl_surface_glx.cc(354)] glxQueryVersion failed
[2696:2696:ERROR:gl_surface_x11.cc(57)] GLSurfaceGLX::InitializeOneOff failed.
[2696:2696:ERROR:gpu_child_thread.cc(185)] Exiting GPU process due to errors during initialization
op/robot8_Data/Managed/UnityEngine.dll into Unity Child Domain
Platform assembly: /home/ubuntu/Desktop/robot8_Data/Managed/Assembly-CSharp-firstpass.dll (this message is harmless)
Loading /home/ubuntu/Desktop/robot8_Data/Managed/Assembly-CSharp-firstpass.dll into Unity Child Domain
Platform assembly: /home/ubuntu/Desktop/robot8_Data/Managed/Assembly-CSharp.dll (this message is harmless)
Loading /home/ubuntu/Desktop/robot8_Data/Managed/Assembly-CSharp.dll into Unity Child Domain
Platform assembly: /home/ubuntu/Desktop/robot8_Data/Managed/Assembly-UnityScript.dll (this message is harmless)
Loading /home/ubuntu/Desktop/robot8_Data/Managed/Assembly-UnityScript.dll into Unity Child Domain
Platform assembly: /home/ubuntu/Desktop/robot8_Data/Managed/UnityEngine.UI.dll (this message is harmless)
Loading /home/ubuntu/Desktop/robot8_Data/Managed/UnityEngine.UI.dll into Unity Child Domain
Platform assembly: /home/ubuntu/Desktop/robot8_Data/Managed/UnityEngine.Networking.dll (this message is harmless)
Loading /home/ubuntu/Desktop/robot8_Data/Managed/UnityEngine.Networking.dll into Unity Child Domain
Platform assembly: /home/ubuntu/Desktop/robot8_Data/Managed/CoherentUINet.dll (this message is harmless)
Loading /home/ubuntu/Desktop/robot8_Data/Managed/CoherentUINet.dll into Unity Child Domain
Platform assembly: /home/ubuntu/Desktop/robot8_Data/Managed/ICSharpCode.SharpZipLib.dll (this message is harmless)
Loading /home/ubuntu/Desktop/robot8_Data/Managed/ICSharpCode.SharpZipLib.dll into Unity Child Domain
Platform assembly: /home/ubuntu/Desktop/robot8_Data/Managed/InputSimulator.dll (this message is harmless)
Loading /home/ubuntu/Desktop/robot8_Data/Managed/InputSimulator.dll into Unity Child Domain
Platform assembly: /home/ubuntu/Desktop/robot8_Data/Managed/CoherentUICommon.dll (this message is harmless)
Loading /home/ubuntu/Desktop/robot8_Data/Managed/CoherentUICommon.dll into Unity Child Domain
- Completed reload, in 0.038 seconds
Platform assembly: /home/ubuntu/Desktop/robot8_Data/Managed/System.Core.dll (this message is harmless)
Platform assembly: /home/ubuntu/Desktop/robot8_Data/Managed/System.dll (this message is harmless)
The referenced script on this Behaviour (Game Object ‘placewindow’) is missing!
(Filename: Line: 1655)
UnloadTime: 0.756000 ms
[Coherent Browser] (Info) Initializing Coherent UI ver. 2.6.2.0
(Filename: /home/builduser/buildslave/unity/build/artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.cpp Line: 37)
Coherent Browser system initialized…
(Filename: /home/builduser/buildslave/unity/build/artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.cpp Line: 37)
[Coherent Browser] (Error) Unsupported Unity3D renderer
(Filename: /home/builduser/buildslave/unity/build/artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.cpp Line: 37)
Platform assembly: /home/ubuntu/Desktop/robot8_Data/Managed/Boo.Lang.dll (this message is harmless)
Platform assembly: /home/ubuntu/Desktop/robot8_Data/Managed/UnityScript.Lang.dll (this message is harmless)
unity start
(Filename: /home/builduser/buildslave/unity/build/artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.cpp Line: 37)
IndexOutOfRangeException: Array index is out of range.
at cgi+$Start$30+$.MoveNext () [0x00000] in :0
(Filename: Line: -1)
[Coherent Browser] (Info) PID: 2676 | 2676 17:42:22.088166 Staring Coherent UI Host ver. 2.6.2.0
(Filename: /home/builduser/buildslave/unity/build/artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.cpp Line: 37)
[Coherent Browser] (Info) PID: 2676 | 2676 17:42:22.088209 Detected OS: Linux 3.13.0-74-generic
(Filename: /home/builduser/buildslave/unity/build/artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.cpp Line: 37)
[Coherent Browser] (Warning) PID: 2676 | 2676 17:42:22.089225 [2676:2676:ERROR:browser_main_loop.cc(164)] Running without the SUID sandbox! See chromium - An open-source project to help move the web forward. - Monorail for more information on developing with the sandbox on.
(Filename: /home/builduser/buildslave/unity/build/artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.cpp Line: 37)
[Coherent Browser] (Info) PID: 2676 | 2676 17:42:22.100840 [2676:2676:INFO:audio_manager_pulse.cc(258)] Failed to connect to the context. Error: Connection refused
(Filename: /home/builduser/buildslave/unity/build/artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.cpp Line: 37)
[Coherent Browser] (Info) PID: 2676 | 2676 17:42:22.121693 [2676:2676:INFO:UIContentClient.cpp(74)] GPU info collected in host process:
(Filename: /home/builduser/buildslave/unity/build/artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.cpp Line: 37)
[Coherent Browser] (Info) PID: 2676 | 2676 17:42:22.121704 [2676:2676:INFO:UIContentClient.cpp(79)] Main GPU vendor 4115 device 184
(Filename: /home/builduser/buildslave/unity/build/artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.cpp Line: 37)
[Coherent Browser] (Info) Coherent UI context initialized successfully
(Filename: /home/builduser/buildslave/unity/build/artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.cpp Line: 37)
[Coherent Browser] (Warning) PID: 2676 | 2676 17:42:22.178273 Requesting resource read for file:////home/ubuntu/.config/unity3d/DefaultCompany/Robot7/cookies.dat with internal id 0 reported FAIL
(Filename: /home/builduser/buildslave/unity/build/artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.cpp Line: 37)
[Coherent Browser] (Error) Trying to create Unity3D texture renderer with invalid type = -1. If you have changed the renderer type in Unity, please restart the Editor
(Filename: /home/builduser/buildslave/unity/build/artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.cpp Line: 37)
[Coherent Browser] (Error) Trying to create Unity3D texture renderer with invalid type = -1. If you have changed the renderer type in Unity, please restart the Editor
(Filename: /home/builduser/buildslave/unity/build/artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.cpp Line: 37)
[Coherent Browser] (Warning) PID: 2676 | 2694 17:42:22.228730 [2676:2694:WARNING:proxy_service.cc(899)] PAC support disabled because there is no system implementation
(Filename: /home/builduser/buildslave/unity/build/artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.cpp Line: 37)
[Coherent Browser] (Info) View creation failed because no valid surface was provided by the client
(Filename: /home/builduser/buildslave/unity/build/artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.cpp Line: 37)