PUN + WebGL crash with Unity 5.3.1f1
Options
I recently upgraded from Unity 5.2.3f1 to 5.3.1f1 and rebuilt a project using PUN. As soon as the scene using PUN is started, the browser throws and exception and the game stops:
This is what the javascript console prints:
An error occured running the Unity content on this page. See your browser's JavaScript console for more info. The error was:
Uncaught abort(157) at Error
at jsStackTrace (blob:http%3A//localhost/81467601-459e-4f41-9086-30790833fc7b:1270:13)
at stackTrace (blob:http%3A//localhost/81467601-459e-4f41-9086-30790833fc7b:1287:22)
at abort (blob:http%3A//localhost/81467601-459e-4f41-9086-30790833fc7b:4724456:44)
at nullFunc_ii (blob:http%3A//localhost/81467601-459e-4f41-9086-30790833fc7b:16587:464)
at Array.b157 (blob:http%3A//localhost/81467601-459e-4f41-9086-30790833fc7b:4718125:32)
at __Z24SetPlayerRunInBackgroundb [SetPlayerRunInBackground(bool)] (blob:http%3A//localhost/81467601-459e-4f41-9086-30790833fc7b:892254:36)
at Array.__Z42Application_Set_Custom_PropRunInBackgroundh [Application_Set_Custom_PropRunInBackground(unsigned char)] (blob:http%3A//localhost/81467601-459e-4f41-9086-30790833fc7b:1017064:2)
at _Application_set_runInBackground_m_1961756033_0 (blob:http%3A//localhost/81467601-459e-4f41-9086-30790833fc7b:3845571:30)
at Array._PhotonNetwork__cctor_m339060500_0 (blob:http%3A//localhost/81467601-459e-4f41-9086-30790833fc7b:2642439:2)
at Array.__Z33RuntimeInvoker_Void_t_224166001_0PK10MethodInfoPvPS2_ [RuntimeInvoker_Void_t_224166001_0?2(void**, undefined?S?*)] (blob:http%3A//localhost/81467601-459e-4f41-9086-30790833fc7b:4542841:32)
This is what the javascript console prints:
Invalid function pointer called with signature 'ii'. 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)Module.printErr @ UnityLoader.js:145
UnityLoader.js:145 Build with ASSERTIONS=2 for more info.Module.printErr @ UnityLoader.js:145
Build with ASSERTIONS=2 for more info.Module.printErr @ UnityLoader.js:145
UnityLoader.js:141 157
157Module.printErr @ UnityLoader.js:145
UnityLoader.js:145
warning: a problem occurred in builtin C++ name demangling; build with -s DEMANGLE_SUPPORT=1 to link in libcxxabi demanglingModule.printErr @ UnityLoader.js:145
Invoking error handler due to
Uncaught abort(157) at Error
at jsStackTrace (blob:http%3A//localhost/81467601-459e-4f41-9086-30790833fc7b:1270:13)
at stackTrace (blob:http%3A//localhost/81467601-459e-4f41-9086-30790833fc7b:1287:22)
at abort (blob:http%3A//localhost/81467601-459e-4f41-9086-30790833fc7b:4724456:44)
at nullFunc_ii (blob:http%3A//localhost/81467601-459e-4f41-9086-30790833fc7b:16587:464)
at Array.b157 (blob:http%3A//localhost/81467601-459e-4f41-9086-30790833fc7b:4718125:32)
at __Z24SetPlayerRunInBackgroundb [SetPlayerRunInBackground(bool)] (blob:http%3A//localhost/81467601-459e-4f41-9086-30790833fc7b:892254:36)
at Array.__Z42Application_Set_Custom_PropRunInBackgroundh [Application_Set_Custom_PropRunInBackground(unsigned char)] (blob:http%3A//localhost/81467601-459e-4f41-9086-30790833fc7b:1017064:2)
at _Application_set_runInBackground_m_1961756033_0 (blob:http%3A//localhost/81467601-459e-4f41-9086-30790833fc7b:3845571:30)
at Array._PhotonNetwork__cctor_m339060500_0 (blob:http%3A//localhost/81467601-459e-4f41-9086-30790833fc7b:2642439:2)
at Array.__Z33RuntimeInvoker_Void_t_224166001_0PK10MethodInfoPvPS2_ [RuntimeInvoker_Void_t_224166001_0?2(void**, undefined?S?*)] (blob:http%3A//localhost/81467601-459e-4f41-9086-30790833fc7b:4542841:32)
Uncaught abort(157) at Error
at jsStackTrace (blob:http%3A//localhost/81467601-459e-4f41-9086-30790833fc7b:1270:13)
at stackTrace (blob:http%3A//localhost/81467601-459e-4f41-9086-30790833fc7b:1287:22)
at abort (blob:http%3A//localhost/81467601-459e-4f41-9086-30790833fc7b:4724456:44)
at nullFunc_ii (blob:http%3A//localhost/81467601-459e-4f41-9086-30790833fc7b:16587:464)
at Array.b157 (blob:http%3A//localhost/81467601-459e-4f41-9086-30790833fc7b:4718125:32)
at __Z24SetPlayerRunInBackgroundb [SetPlayerRunInBackground(bool)] (blob:http%3A//localhost/81467601-459e-4f41-9086-30790833fc7b:892254:36)
at Array.__Z42Application_Set_Custom_PropRunInBackgroundh [Application_Set_Custom_PropRunInBackground(unsigned char)] (blob:http%3A//localhost/81467601-459e-4f41-9086-30790833fc7b:1017064:2)
at _Application_set_runInBackground_m_1961756033_0 (blob:http%3A//localhost/81467601-459e-4f41-9086-30790833fc7b:3845571:30)
at Array._PhotonNetwork__cctor_m339060500_0 (blob:http%3A//localhost/81467601-459e-4f41-9086-30790833fc7b:2642439:2)
at Array.__Z33RuntimeInvoker_Void_t_224166001_0PK10MethodInfoPvPS2_ [RuntimeInvoker_Void_t_224166001_0?2(void**, undefined?S?*)] (blob:http%3A//localhost/81467601-459e-4f41-9086-30790833fc7b:4542841:32)
0
Comments
-
BTW I'm using PUN Free v1.65.
Though I purchased PUN+ from the photonengine.com site, I haven't been able to download the PUN+ package.0 -
http://forum.photonengine.com/discussion/comment/26591
Looks like same issue?0 -
Sort of...
Indeed, Application.runInBackground makes the game crash. As I said before, this didn't use to happen with previous versions of Unity.
I've found that unchecking Strip Engine Code fixes the crash, though it will make builds much larger. This bug has been fixed in Unity 5.3.1p2 http://unity3d.com/unity/qa/patch-releases0