WebGL not working (603257)

I just started a new project to test WebGL + Multiplayer capabilities. In my first build try I got erros, here is my browser’s log:

My Unity is 5.2.2p1.

does it work if you disable “Strip Engine Code” in the Player Settings ?

This worked but not in the first build try. Console still shows some exceptions though:

that might not be related. Could you please submit a bug report with your project ?

Here it is 740293

Thanks for the bug report. I am able repro the bug and I can tell you that this seems already fixed in 5.3

For the time being you can disable “Strip Engine Code”.

1 Like

Hi.
I get the same messages as IntDev.
I use Unity 5.3.5f1 and Firefox 47.0. I checked Development Build.

Successfully compiled asm.js code (total compilation time 6237ms; stored in cache) /
run() called, but dependencies remain, so not running UnityLoader.js:3386:2

pre-main prep time: 165 ms UnityLoader.js:3386:2

PlayerConnection initialized from  (debug = 0) UnityLoader.js:3382:3
PlayerConnection disabled  - listening mode not supported UnityLoader.js:3382:3
La API de pantalla completa con prefijo está desaprobada. Use la API de pantalla completa sin prefijo. Para más ayuda vea https://developer.mozilla.org/en-US/docs/Web/API/Fullscreen_API /:6104:8
Initialize engine version: 5.3.5f1 (960ebf59018a) UnityLoader.js:3382:3
Creating WebGL 1.0 context. UnityLoader.js:3382:3
Renderer: Mozilla UnityLoader.js:3382:3
Vendor:   Mozilla UnityLoader.js:3382:3
Version:  WebGL 1.0 UnityLoader.js:3382:3
GLES:     0 UnityLoader.js:3382:3
ANGLE_instanced_arrays GL_ANGLE_instanced_arrays EXT_blend_minmax GL_EXT_blend_minmax EXT_color_buffer_half_float GL_EXT_color_buffer_half_float EXT_frag_depth GL_EXT_frag_depth EXT_shader_texture_lod GL_EXT_shader_texture_lod EXT_texture_filter_anisotropic GL_EXT_texture_filter_anisotropic OES_element_index_uint GL_OES_element_index_uint OES_standard_derivatives GL_OES_standard_derivatives OES_texture_float GL_OES_texture_float OES_texture_float_linear GL_OES_texture_float_linear OES_texture_half_float GL_OES_texture_half_float OES_texture_half_float_linear GL_OES_texture_half_float_linear OES_vertex_array_object GL_OES_vertex_array_object WEBGL_color_buffer_float GL_WEBGL_color_buffer_float WEBGL_compressed_texture_etc1 GL_WEBGL_compressed_texture_etc1 WEBGL_compressed_texture_s3tc GL_WEBGL_compressed_texture_s3tc WEBGL_depth_texture GL_WEBGL_depth_texture WEBGL_draw_buffers GL_WEBGL_draw_buffers WEBGL_lose_context GL_WEBGL_lose_context MOZ_WEBGL_lose_context GL_MOZ_WEBGL_lose_context MOZ_WEBGL_compressed_ UnityLoader.js:3382:3
texture_s3tc GL_MOZ_WEBGL_compressed_texture_s3tc MOZ_WEBGL_depth_texture GL_MOZ_WEBGL_depth_texture UnityLoader.js:3382:3
OPENGL LOG: Creating OpenGL ES 2.0 graphics device UnityLoader.js:3382:3
UnloadTime: 0.720000 ms UnityLoader.js:3382:3
Invalid function pointer called with signature 'iii'. Perhaps this is an invalid value (e.g. caused by calling a virtual method on a NULL pointer)? Or calling a function with an incorrect type, which will fail? (it is worth building your source files with -Werror (warnings are errors), as warnings can indicate undefined behavior which can cause this) UnityLoader.js:3386:2

Build with ASSERTIONS=2 for more info. UnityLoader.js:3386:2

167 UnityLoader.js:3382:3
167 UnityLoader.js:3386:2

warning: a problem occurred in builtin C++ name demangling; build with  -s DEMANGLE_SUPPORT=1  to link in libcxxabi demangling UnityLoader.js:3386:2

Invoking error handler due to
uncaught exception: abort(167) at jsStackTrace@blob:null/68fcd2db-e6dd-42b4-a98d-2b38f18e4e3c:1270:13
stackTrace@blob:null/68fcd2db-e6dd-42b4-a98d-2b38f18e4e3c:1287:22
abort@blob:null/68fcd2db-e6dd-42b4-a98d-2b38f18e4e3c:3667938:44
nullFunc_iii@blob:null/68fcd2db-e6dd-42b4-a98d-2b38f18e4e3c:15957:466
b167@blob:null/68fcd2db-e6dd-42b4-a98d-2b38f18e4e3c:3662715:1
__ZN16VirtFuncInvoker0IP22ByteU5BU5D_t3835026402E6InvokeEjPv [void undefined<undefined?n?>?o? VirtFuncInvoker0<ByteU5BU5D_t3835026402?*, undefined?6?>?k()]@blob:null/68fcd2db-e6dd-42b4-a98d-2b38f18e4e3c:3532424:1
_DownloadHandler_get_data_m1999087808@blob:null/68fcd2db-e6dd-42b4-a98d-2b38f18e4e3c:3321015:1
_U3CDownloadU3Ec__Iterator6_MoveNext_m2812850875@blob:null/68fcd2db-e6dd-42b4-a98d-2b38f18e4e3c:2260364:1
__Z34RuntimeInvoker_Boolean_t3143194569PK10MethodInfoPvPS2_ [RuntimeInvoker_Boolean_t3143194569?2(void**, undefined?S?*)]@blob:null/68fcd2db-e6dd-42b4-a98d-2b38f18e4e3c:3481095:1
dynCall_iiii@blob:null/68fcd2db-e6dd-42b4-a98d-2b38f18e4e3c:3662106:1
invoke_iiii@blob:null/68fcd2db-e6dd-42b4-a98d-2b38f18e4e3c:18068:12
__ZN6il2cpp2vm7Runtime6InvokeEPK10MethodInfoPvPS5_PP15Il2CppException [il2cpp::vm::Runtime::Invoke?5(void**, undefined?S?*)]@blob:null/68fcd2db-e6dd-42b4-a98d-2b38f18e4e3c:91908:1
_il2cpp_runtime_invoke@blob:null/68fcd2db-e6dd-42b4-a98d-2b38f18e4e3c:34856:1
__Z20il2cpp_invoke_method21ScriptingMethodIl2CppP15ScriptingObjectP18ScriptingArgumentsPP18ScriptingExceptionb [il2cpp_invoke_method?2()]@blob:null/68fcd2db-e6dd-42b4-a98d-2b38f18e4e3c:753275:1
__ZN19ScriptingInvocation6InvokeEPP18ScriptingExceptionb [ScriptingInvocation::Invoke(bool**)]@blob:null/68fcd2db-e6dd-42b4-a98d-2b38f18e4e3c:868794:1
__ZN19ScriptingInvocation6InvokeIbEET_PP18ScriptingExceptionb [undefined ScriptingInvocation::Invoke<bool>?T()]@blob:null/68fcd2db-e6dd-42b4-a98d-2b38f18e4e3c:868690:1
__ZN9Coroutine3RunEv [Coroutine::Run()]@blob:null/68fcd2db-e6dd-42b4-a98d-2b38f18e4e3c:854973:1
__ZN9Coroutine17ContinueCoroutineEP6ObjectPv [Coroutine::ContinueCoroutine(void**)]@blob:null/68fcd2db-e6dd-42b4-a98d-2b38f18e4e3c:854921:1
__ZN14AsyncOperation15InvokeCoroutineEv [AsyncOperation::InvokeCoroutine()]@blob:null/68fcd2db-e6dd-42b4-a98d-2b38f18e4e3c:824953:1
__ZN20UnityWebRequestProtoI19TransportJavaScript5Mutex16AtomicRefCounter14RedirectHelper14ResponseHelper15DownloadHandler13UploadHandler12HeaderHelper14AsyncOperation14JobFenceHelper13ManagerHelperE19Job_InvokeCoroutineEPv [undefined?M? UnityWebRequestProto<TransportJavaScript?5?>?u()]@blob:null/68fcd2db-e6dd-42b4-a98d-2b38f18e4e3c:1732820:1
__Z19ScheduleJobInternalR8JobFencePFvPvES1_11JobPriority [ScheduleJobInternal(undefined?F?*&, void, void*)]@blob:null/68fcd2db-e6dd-42b4-a98d-2b38f18e4e3c:670112:1
__ZN14JobFenceHelper11ScheduleJobEPFvPvES0_ [JobFenceHelper::ScheduleJob(undefined?F?*, void, void*)]@blob:null/68fcd2db-e6dd-42b4-a98d-2b38f18e4e3c:1232138:1
__ZN19TransportJavaScript10OnResponseEPviS0_jPc [TransportJavaScript::OnResponse?S(void*, int)]@blob:null/68fcd2db-e6dd-42b4-a98d-2b38f18e4e3c:1232523:1
dynCall_viiiii@blob:null/68fcd2db-e6dd-42b4-a98d-2b38f18e4e3c:3661553:1
Runtime.dynCall@blob:null/68fcd2db-e6dd-42b4-a98d-2b38f18e4e3c:383:14
http_onload@blob:null/68fcd2db-e6dd-42b4-a98d-2b38f18e4e3c:14498:8
UnityLoader.js:3325:9
uncaught exception: abort(167) at jsStackTrace@blob:null/68fcd2db-e6dd-42b4-a98d-2b38f18e4e3c:1270:13
stackTrace@blob:null/68fcd2db-e6dd-42b4-a98d-2b38f18e4e3c:1287:22
abort@blob:null/68fcd2db-e6dd-42b4-a98d-2b38f18e4e3c:3667938:44
nullFunc_iii@blob:null/68fcd2db-e6dd-42b4-a98d-2b38f18e4e3c:15957:466
b167@blob:null/68fcd2db-e6dd-42b4-a98d-2b38f18e4e3c:3662715:1
__ZN16VirtFuncInvoker0IP22ByteU5BU5D_t3835026402E6InvokeEjPv [void undefined<undefined?n?>?o? VirtFuncInvoker0<ByteU5BU5D_t3835026402?*, undefined?6?>?k()]@blob:null/68fcd2db-e6dd-42b4-a98d-2b38f18e4e3c:3532424:1
_DownloadHandler_get_data_m1999087808@blob:null/68fcd2db-e6dd-42b4-a98d-2b38f18e4e3c:3321015:1
_U3CDownloadU3Ec__Iterator6_MoveNext_m2812850875@blob:null/68fcd2db-e6dd-42b4-a98d-2b38f18e4e3c:2260364:1
__Z34RuntimeInvoker_Boolean_t3143194569PK10MethodInfoPvPS2_ [RuntimeInvoker_Boolean_t3143194569?2(void**, undefined?S?*)]@blob:null/68fcd2db-e6dd-42b4-a98d-2b38f18e4e3c:3481095:1
dynCall_iiii@blob:null/68fcd2db-e6dd-42b4-a98d-2b38f18e4e3c:3662106:1
invoke_iiii@blob:null/68fcd2db-e6dd-42b4-a98d-2b38f18e4e3c:18068:12
__ZN6il2cpp2vm7Runtime6InvokeEPK10MethodInfoPvPS5_PP15Il2CppException [il2cpp::vm::Runtime::Invoke?5(void**, undefined?S?*)]@blob:null/68fcd2db-e6dd-42b4-a98d-2b38f18e4e3c:91908:1
_il2cpp_runtime_invoke@blob:null/68fcd2db-e6dd-42b4-a98d-2b38f18e4e3c:34856:1
__Z20il2cpp_invoke_method21ScriptingMethodIl2CppP15ScriptingObjectP18ScriptingArgumentsPP18ScriptingExceptionb [il2cpp_invoke_method?2()]@blob:null/68fcd2db-e6dd-42b4-a98d-2b38f18e4e3c:753275:1
__ZN19ScriptingInvocation6InvokeEPP18ScriptingExceptionb [ScriptingInvocation::Invoke(bool**)]@blob:null/68fcd2db-e6dd-42b4-a98d-2b38f18e4e3c:868794:1
__ZN19ScriptingInvocation6InvokeIbEET_PP18ScriptingExceptionb [undefined ScriptingInvocation::Invoke<bool>?T()]@blob:null/68fcd2db-e6dd-42b4-a98d-2b38f18e4e3c:868690:1
__ZN9Coroutine3RunEv [Coroutine::Run()]@blob:null/68fcd2db-e6dd-42b4-a98d-2b38f18e4e3c:854973:1
__ZN9Coroutine17ContinueCoroutineEP6ObjectPv [Coroutine::ContinueCoroutine(void**)]@blob:null/68fcd2db-e6dd-42b4-a98d-2b38f18e4e3c:854921:1
__ZN14AsyncOperation15InvokeCoroutineEv [AsyncOperation::InvokeCoroutine()]@blob:null/68fcd2db-e6dd-42b4-a98d-2b38f18e4e3c:824953:1
__ZN20UnityWebRequestProtoI19TransportJavaScript5Mutex16AtomicRefCounter14RedirectHelper14ResponseHelper15DownloadHandler13UploadHandler12HeaderHelper14AsyncOperation14JobFenceHelper13ManagerHelperE19Job_InvokeCoroutineEPv [undefined?M? UnityWebRequestProto<TransportJavaScript?5?>?u()]@blob:null/68fcd2db-e6dd-42b4-a98d-2b38f18e4e3c:1732820:1
__Z19ScheduleJobInternalR8JobFencePFvPvES1_11JobPriority [ScheduleJobInternal(undefined?F?*&, void, void*)]@blob:null/68fcd2db-e6dd-42b4-a98d-2b38f18e4e3c:670112:1
__ZN14JobFenceHelper11ScheduleJobEPFvPvES0_ [JobFenceHelper::ScheduleJob(undefined?F?*, void, void*)]@blob:null/68fcd2db-e6dd-42b4-a98d-2b38f18e4e3c:1232138:1
__ZN19TransportJavaScript10OnResponseEPviS0_jPc [TransportJavaScript::OnResponse?S(void*, int)]@blob:null/68fcd2db-e6dd-42b4-a98d-2b38f18e4e3c:1232523:1
dynCall_viiiii@blob:null/68fcd2db-e6dd-42b4-a98d-2b38f18e4e3c:3661553:1
Runtime.dynCall@blob:null/68fcd2db-e6dd-42b4-a98d-2b38f18e4e3c:383:14
http_onload@blob:null/68fcd2db-e6dd-42b4-a98d-2b38f18e4e3c:14498:8

As you mentioned before I disabled “Strip Engine Code” and I get this message:

run() called, but dependencies remain, so not running UnityLoader.js:3386:2

Successfully compiled asm.js code (total compilation time 7810ms; stored in cache; 1 functions compiled slowly: __ZN13SpeedTreeWind7SParams8TransferI14SafeBinaryReadEEvRT_:2565625 (282ms)) /
pre-main prep time: 273 ms UnityLoader.js:3386:2

PlayerConnection initialized from  (debug = 0) UnityLoader.js:3382:3
PlayerConnection disabled  - listening mode not supported UnityLoader.js:3382:3
Initialize engine version: 5.3.5f1 (960ebf59018a) UnityLoader.js:3382:3
Creating WebGL 1.0 context. UnityLoader.js:3382:3
Renderer: Mozilla UnityLoader.js:3382:3
Vendor:   Mozilla UnityLoader.js:3382:3
Version:  WebGL 1.0 UnityLoader.js:3382:3
GLES:     0 UnityLoader.js:3382:3
ANGLE_instanced_arrays GL_ANGLE_instanced_arrays EXT_blend_minmax GL_EXT_blend_minmax EXT_color_buffer_half_float GL_EXT_color_buffer_half_float EXT_frag_depth GL_EXT_frag_depth EXT_shader_texture_lod GL_EXT_shader_texture_lod EXT_texture_filter_anisotropic GL_EXT_texture_filter_anisotropic OES_element_index_uint GL_OES_element_index_uint OES_standard_derivatives GL_OES_standard_derivatives OES_texture_float GL_OES_texture_float OES_texture_float_linear GL_OES_texture_float_linear OES_texture_half_float GL_OES_texture_half_float OES_texture_half_float_linear GL_OES_texture_half_float_linear OES_vertex_array_object GL_OES_vertex_array_object WEBGL_color_buffer_float GL_WEBGL_color_buffer_float WEBGL_compressed_texture_etc1 GL_WEBGL_compressed_texture_etc1 WEBGL_compressed_texture_s3tc GL_WEBGL_compressed_texture_s3tc WEBGL_depth_texture GL_WEBGL_depth_texture WEBGL_draw_buffers GL_WEBGL_draw_buffers WEBGL_lose_context GL_WEBGL_lose_context MOZ_WEBGL_lose_context GL_MOZ_WEBGL_lose_context MOZ_WEBGL_compressed_ UnityLoader.js:3382:3
texture_s3tc GL_MOZ_WEBGL_compressed_texture_s3tc MOZ_WEBGL_depth_texture GL_MOZ_WEBGL_depth_texture UnityLoader.js:3382:3
OPENGL LOG: Creating OpenGL ES 2.0 graphics device UnityLoader.js:3382:3
UnloadTime: 0.660000 ms UnityLoader.js:3382:3
La API de pantalla completa con prefijo está desaprobada. Use la API de pantalla completa sin prefijo. Para más ayuda vea https://developer.mozilla.org/en-US/docs/Web/API/Fullscreen_API /:6104:8
XmlException: Document element did not appear.  Line 1, position 1.

/:8918:6
_JS_Log_Dump() /:8918
__Z40DebugStringToFilePostprocessedStacktracePKcS0_S0_iS0_iiiiPFvRK11CppLogEntryE() /:1000838
__ZN9Scripting12LogExceptionEP18ScriptingExceptioniRKNSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEE() /:921494
__ZN19ScriptingInvocation6InvokeEPP18ScriptingExceptionb() /:915959
__ZN19ScriptingInvocation6InvokeIbEET_PP18ScriptingExceptionb() /:915834
__ZN9Coroutine3RunEv() /:902072
__ZN9Coroutine17ContinueCoroutineEP6ObjectPv() /:902020
__ZN14AsyncOperation15InvokeCoroutineEv() /:871923
__ZN20UnityWebRequestProtoI19TransportJavaScript5Mutex16AtomicRefCounter14RedirectHelper14ResponseHelper15DownloadHandler13UploadHandler12HeaderHelper14AsyncOperation14JobFenceHelper13ManagerHelperE19Job_InvokeCoroutineEPv() /:2161201
__Z19ScheduleJobInternalR8JobFencePFvPvES1_11JobPriority() /:702640
__ZN14JobFenceHelper11ScheduleJobEPFvPvES0_() /:1511769
__ZN19TransportJavaScript10OnResponseEPviS0_jPc() /:1512154
dynCall_viiiii() /:4222331
Runtime.dynCall() /:383
http_onload() /:14581

I don’t fint what causes this.
Any idea?