I’ve been struggling with this issue for nigh on a week now. When trying to activate Unity from the command-line on Ubuntu (have tried 12.04, 14.04, 16.04) with a valid serial I receive an unhandled NULL exception at the activation step.
I am using the following command (and variations on) to launch:
Which results in the following log:
mono profile = ‘/opt/Unity/Editor/Data/Mono/lib/mono/2.0’
Initialize mono
Mono path[0] = ‘/opt/Unity/Editor/Data/Managed’
Mono path[1] = ‘/opt/Unity/Editor/Data/Mono/lib/mono/2.0’
Mono path[2] = ‘/opt/Unity/Editor/Data/UnityScript’
Mono path[3] = ‘/opt/Unity/Editor/Data/Mono/lib/mono/2.0’
Mono config path = ‘/opt/Unity/Editor/Data/Mono/etc’
Using monoOptions --debugger-agent=transport=dt_socket,embedding=1,defer=y,address=0.0.0.0:56092
Selecting FBConfig
GLX_FBCONFIG_ID=86
GLX_BUFFER_SIZE=32
GLX_DOUBLEBUFFER=1
GLX_RED_SIZE=8
GLX_GREEN_SIZE=8
GLX_BLUE_SIZE=8
GLX_ALPHA_SIZE=8
GLX_DEPTH_SIZE=24
GLX_STENCIL_SIZE=8
GLX_SAMPLES_ARB=0
GLX_SAMPLE_BUFFERS_ARB=0
GLX_STEREO=0
GLX_CONFIG_CAVEAT=NONE
CreateDirectory ‘/home/builduser/.cache/unity3d’ failed:
DisplayProgressbar: Unity license
ATTENTION: default value of option force_s3tc_enable overridden by environment.
failed to create drawable
[0130/042702:ERROR:gl_surface_glx.cc(633)] glXCreatePbuffer failed.
[0130/042702:ERROR:gpu_info_collector.cc(27)] gfx::GLContext::CreateOffscreenGLSurface failed
[0130/042702:ERROR:gpu_info_collector.cc(89)] Could not create surface for info collection.
[0130/042702:ERROR:gpu_main.cc(402)] gpu::CollectGraphicsInfo failed (fatal).
[0130/042702:ERROR:sandbox_linux.cc(308)] InitializeSandbox() called with multiple threads in process gpu-process
Receiving unhandled NULL exception
Launching bug reporter
#0 0x007ffdf6e5f740 in funlockfile
#1 0x007ffdf6e5fcd8 in strlen
#2 0x007ffdf6e5fce0 in LicenseManager::AppendSystemInfoXML(std::string&)
#3 0x007ffdf6e5fd40 in LicenseManager::CreateLicenseXMLSegment()
#4 0x007ffdf6e5fd80 in LicenseManager::CreateNewCommandXML()
#5 0x007ffdf6e5fdc0 in LicenseManager::StartNewLicenseFlow()
#6 0x007ffdf6e5fdd0 in LicenseInfo::Tick()
#7 0x007ffdf6e5fe00 in InitializeUnity(void*)
#8 0x007ffdf6e5ff40 in g_source_get_time
#9 0x007ffdf6e5ff60 in g_main_context_dispatch
#10 0x007ffdf6e5fff0 in g_main_context_dispatch
#11 0x007ffdf6e60050 in g_main_loop_run
#12 0x007ffdf6e60080 in gtk_main
#13 0x007ffdf6e60100 in main
#14 0x007ffdf6e604a0 in __libc_start_main
#15 0x007ffdf6e60560 in _start
Aborted (core dumped)
Replacing the -force-opengl option with -nographics results in the same.
I have also tried starting up an xvfb instance with a VNC (this is all on a headless server) and activating using the GUI, however immediately after successfully logging in with the GUI, the whole process crashes.
Strangely, in the past I have been able to use the GUI to activate a personal license successfully, but trying to do so now results in the GUI crashing after logging in.
Edit: When trying to activate using the GUI, the log file looks like so:
mono profile = ‘/opt/Unity/Editor/Data/Mono/lib/mono/2.0’
Initialize mono
Mono path[0] = ‘/opt/Unity/Editor/Data/Managed’
Mono path[1] = ‘/opt/Unity/Editor/Data/Mono/lib/mono/2.0’
Mono path[2] = ‘/opt/Unity/Editor/Data/UnityScript’
Mono path[3] = ‘/opt/Unity/Editor/Data/Mono/lib/mono/2.0’
Mono config path = ‘/opt/Unity/Editor/Data/Mono/etc’
Using monoOptions --debugger-agent=transport=dt_socket,embedding=1,defer=y,address=0.0.0.0:56035
30/01/2017 04:53:34 copy_tiles: allocating first_line at size 61
Desktop is 1920 x 1080 @ 60 Hz
Selecting FBConfig
GLX_FBCONFIG_ID=86
GLX_BUFFER_SIZE=32
GLX_DOUBLEBUFFER=1
GLX_RED_SIZE=8
GLX_GREEN_SIZE=8
GLX_BLUE_SIZE=8
GLX_ALPHA_SIZE=8
GLX_DEPTH_SIZE=24
GLX_STENCIL_SIZE=8
GLX_SAMPLES_ARB=0
GLX_SAMPLE_BUFFERS_ARB=0
GLX_STEREO=0
GLX_CONFIG_CAVEAT=NONE
ATTENTION: default value of option force_s3tc_enable overridden by environment.
[0130/045336:ERROR:sandbox_linux.cc(308)] InitializeSandbox() called with multiple threads in process gpu-process
30/01/2017 04:53:45 created selwin: 0x200041
30/01/2017 04:53:45 called initialize_xfixes()
Receiving unhandled NULL exception
Launching bug reporter
#0 0x007fff6b219180 in funlockfile
#1 0x007fff6b219738 in strlen
#2 0x007fff6b219740 in LicenseManager::AppendSystemInfoXML(std::string&)
#3 0x007fff6b2197a0 in LicenseManager::CreateLicenseXMLSegment()
#4 0x007fff6b2197e0 in LicenseManager::CreateNewCommandXML()
#5 0x007fff6b219820 in LicenseManager::StartNewLicenseFlow()
#6 0x007fff6b219830 in LicenseManager::ProcessLicense(xercesc_3_1: OMDocument**, unsigned char**)
#7 0x007fff6b2198b0 in LicenseManager::Initialize()
#8 0x007fff6b2198d0 in LicenseInfo::InitializeProtection()
#9 0x007fff6b219950 in HomeWindowHandler::LoginSuccessCallback(CefRefPtr, CefRefPtrCefMessageRouterBrowserSide::Callback )
#10 0x007fff6b219aa0 in HomeWindowHandler::OnQuery(CefRefPtr, CefRefPtr, long, CefStringBase const&, CefStringBase const&, CefRefPtr, bool, CefRefPtrCefMessageRouterBrowserSide::Callback )
#11 0x007fff6b219ba0 in (anonymous namespace)::CefMessageRouterBrowserSideImpl::OnProcessMessageReceived(CefRefPtr, cef_process_id_t, CefRefPtr)
#12 0x007fff6b219f30 in WebViewWindowPrivate::OnProcessMessageReceived(CefRefPtr, cef_process_id_t, CefRefPtr)
#13 0x007fff6b219f80 in client_on_process_message_received(_cef_client_t*, _cef_browser_t*, cef_process_id_t, _cef_process_message_t*)
#14 0x007fff6b219fe0 in CefClientCToCpp::OnProcessMessageReceived(CefRefPtr, cef_process_id_t, CefRefPtr)
#15 0x007fff6b21a030 in CefBrowserHostImpl::OnRequest(Cef_Request_Params const&)
#16 0x007fff6b21a0d0 in CefBrowserHostImpl::OnMessageReceived(IPC::Message const&)
#17 0x007fff6b21a360 in content::WebContentsImpl::OnMessageReceived(content::RenderViewHost*, content::RenderFrameHost*, IPC::Message const&) [clone .part.847]
#18 0x007fff6b21a940 in content::RenderViewHostImpl::OnMessageReceived(IPC::Message const&) [clone .part.318]
#19 0x007fff6b21adb0 in content::RenderProcessHostImpl::OnMessageReceived(IPC::Message const&) [clone .part.339]
#20 0x007fff6b21afa0 in IPC::ChannelProxy::Context::OnDispatchMessage(IPC::Message const&)
#21 0x007fff6b21b080 in base::MessageLoop::RunTask(base::PendingTask const&)
#22 0x007fff6b21b220 in base::MessageLoop: eferOrRunPendingTask(base::PendingTask const&)
#23 0x007fff6b21b240 in base::MessageLoop: oWork()
#24 0x007fff6b21b2c0 in base::MessagePumpGlib::Run(base::MessagePump: elegate*)
#25 0x007fff6b21b310 in base::RunLoop::Run()
#26 0x007fff6b21b320 in CefBrowserMessageLoop: oMessageLoopIteration()
#27 0x007fff6b21b360 in MessageWorkerCallback(void*)
#28 0x007fff6b21b370 in g_main_context_dispatch
#29 0x007fff6b21b400 in g_main_context_dispatch
#30 0x007fff6b21b460 in g_main_loop_run
#31 0x007fff6b21b490 in gtk_dialog_run
#32 0x007fff6b21b500 in RunGtkDialog(void*)
#33 0x007fff6b21b520 in NativeWebViewWindowHelper::Run()
#34 0x007fff6b21b530 in HomeWindow::Show(HomeMode)
#35 0x007fff6b21b550 in Application::InitializeProject()
#36 0x007fff6b21bbb0 in InitializeUnity(void*)
#37 0x007fff6b21bcf0 in g_source_get_time
#38 0x007fff6b21bd10 in g_main_context_dispatch
#39 0x007fff6b21bda0 in g_main_context_dispatch
#40 0x007fff6b21be00 in g_main_loop_run
#41 0x007fff6b21be30 in gtk_main
#42 0x007fff6b21beb0 in main
#43 0x007fff6b21c250 in __libc_start_main
#44 0x007fff6b21c310 in _start
Aborted (core dumped)
Tak
February 1, 2017, 3:37pm
2
Hm, it looks like some of the frames are getting inlined and reducing the usefulness of the callstack.
Do you have all of the following environment variables set in the environment where Unity’s running: USER, LC_MESSAGES, LC_ALL, LANG
Can you run with strace and post a log?
Hey Tak, thanks for the response. I don’t have any of those environment vars set at all, but interestingly if I run with sudo then I can login & activate a serial. It just has the unfortunate side-effect of every file being touched by Unity then being owned by root.
I’ve attached the strace output as well as the Unity log from a failed attempt.
2943850–217922–unitylogs.zip (598 KB)
Tak
February 2, 2017, 11:31am
4
Maybe related to CreateDirectory '/home/builduser/.cache/unity3d' failed from your earlier log?
Tak
February 2, 2017, 1:39pm
5
In any case, it seems likely that part of the issue is not having USER set.
We’ll fix this use case, but it seems likely that other stuff will go wrong if it’s not set.