Quantcast
Channel: Questions in topic: "build"
Viewing all articles
Browse latest Browse all 4084

WebGl build throw numbers (maybe assembly pointers)

$
0
0
Hello, I'm working on a 3d webGl project with unity 2018.1.7f1 but for the moment, while the project build successfully and run fine in the editor, it do not work in the browser (I tried mozilla and chrome). I did a bit of research to see if it happened to someonelse but didn't found anything. I admit it's hard for me to precisely phrase what is happening. I do not manage to get any useful information from the error log so I have no idea where to start investigate in order to find the reason of this bug. Just before the end of the loading time I get the following dialogue: An error occurred running the Unity content on this page. See your browser JavaScript console for more info. The error was: uncaught exception: 92169912 If I go to check the console, I see the following : PlayerConnection initialized from (debug = 0) 7cef7073-5e0a-4d54-9e4a-b58796026e29:10251:3 PlayerConnection disabled - listening mode not supported 7cef7073-5e0a-4d54-9e4a-b58796026e29:10251:3 Started listening to [0.0.0.0:0] 7cef7073-5e0a-4d54-9e4a-b58796026e29:10251:3 PlayerConnection already initialized - listening to [0.0.0.0:0] 7cef7073-5e0a-4d54-9e4a-b58796026e29:10251:3 Loading player data from data.unity3d 7cef7073-5e0a-4d54-9e4a-b58796026e29:10251:3 Initialize engine version: 2018.1.7f1 (4cb482063d12) 7cef7073-5e0a-4d54-9e4a-b58796026e29:10251:3 Creating WebGL 2.0 context. UnityLoader.js:1074:37 Renderer: Mozilla 7cef7073-5e0a-4d54-9e4a-b58796026e29:10251:3 Vendor: Mozilla 7cef7073-5e0a-4d54-9e4a-b58796026e29:10251:3 Version: OpenGL ES 3.0 (WebGL 2.0) 7cef7073-5e0a-4d54-9e4a-b58796026e29:10251:3 GLES: 3 7cef7073-5e0a-4d54-9e4a-b58796026e29:10251:3 EXT_color_buffer_float GL_EXT_color_buffer_float EXT_texture_filter_anisotropic GL_EXT_texture_filter_anisotropic OES_texture_float_linear GL_OES_texture_float_linear WEBGL_compressed_texture_s3tc GL_WEBGL_compressed_texture_s3tc WEBGL_compressed_texture_s3tc_srgb GL_WEBGL_compressed_texture_s3tc_srgb WEBGL_debug_renderer_info GL_WEBGL_debug_renderer_info WEBGL_debug_shaders GL_WEBGL_debug_shaders WEBGL_lose_context GL_WEBGL_lose_context 7cef7073-5e0a-4d54-9e4a-b58796026e29:10251:3 OPENGL LOG: Creating OpenGL ES 3.0 graphics device ; Context level ; Context handle 1 7cef7073-5e0a-4d54-9e4a-b58796026e29:10251:3 Invoking error handler due to uncaught exception: 92546064 I have already set my project to show full stack trace of all exceptions. When I tried a bit to use browser debugger to see what is happening, I noticed is that the application is really throwing this number instead of using a proper Error object. That why no stack information show along the error in the console. The reason why the application throw this number is still unknow to me. I also noticed that the number change when I rebuild the project. **Edit :** Own experimentation confirmed by this old topic : https://forum.unity.com/threads/webgl-build-only-working-if-exception-is-enabled.320334/ showed me that throwing seemingly meaningless number is actually a normal beahvior of unity webgl build. For what I understand those are pointers for web assembly, and three methode in the file run.asm.framework.unityweb may throw them : ___resumeException, ___cxa_throw and ___cxa_rethrow. In my case it look like a bit more about the error can be learned by placing a breakpoint or console.trace() int the methode ___cxa_throw. Here is the trace I get when doing so : console.trace() 2d479dfd-2f1d-4623-85fb-1d3302b3fec0:12728:2 ___cxa_throw blob:http://localhost:8000/2d479dfd-2f1d-4623-85fb-1d3302b3fec0:12728:2 __ZN6il2cpp2vm9Exception5RaiseEP15Il2CppExceptionP19Il2CppSequencePointP10MethodInfo blob:http://localhost:8000/1d6d8910-747a-48ab-b299-5bb190143653:3630243:2 dynCall_viii blob:http://localhost:8000/1d6d8910-747a-48ab-b299-5bb190143653:4183138:32 invoke_viii blob:http://localhost:8000/2d479dfd-2f1d-4623-85fb-1d3302b3fec0:17314:3 __ZN6il2cpp2vm12GenericClass8GetClassEP18Il2CppGenericClass blob:http://localhost:8000/1d6d8910-747a-48ab-b299-5bb190143653:1923925:5 __ZN6il2cpp2vm5Class14FromIl2CppTypeEPK10Il2CppType blob:http://localhost:8000/1d6d8910-747a-48ab-b299-5bb190143653:2604936:9 _il2cpp_class_from_type blob:http://localhost:8000/1d6d8910-747a-48ab-b299-5bb190143653:4193562:9 __Z25scripting_class_from_type16ScriptingTypePtr blob:http://localhost:8000/1d6d8910-747a-48ab-b299-5bb190143653:4189374:9 __Z33BuildSerializationCommandQueueForRK34BuildSerializationCommandQueueArgsR32SerializationCommandQueueBuilderRP20AllowNameConversionsbPK18TransferField_Info blob:http://localhost:8000/1d6d8910-747a-48ab-b299-5bb190143653:1250201:22 __Z39WriteQueueForTransferSignatureIntoCacheRK31TransferFunctionScriptingTraitsRK24TransferRequestSignature17ScriptingClassPtrR23CachedSerializationDataRb blob:http://localhost:8000/1d6d8910-747a-48ab-b299-5bb190143653:2589995:2 __Z26BuildSerializationCacheFor17ScriptingClassPtrRb blob:http://localhost:8000/1d6d8910-747a-48ab-b299-5bb190143653:2538961:2 __Z19FindCommandsInCachePK15MonoScriptCacheRK24TransferRequestSignatureRb blob:http://localhost:8000/1d6d8910-747a-48ab-b299-5bb190143653:3266485:8 __Z23TransferScriptingObjectI18StreamedBinaryReadILb0EEEvRT_18ScriptingObjectPtr17ScriptingClassPtrPK15MonoScriptCache blob:http://localhost:8000/1d6d8910-747a-48ab-b299-5bb190143653:2673121:7 __ZN13MonoBehaviour25TransferEngineAndInstanceI18StreamedBinaryReadILb0EEEEvRT_ blob:http://localhost:8000/1d6d8910-747a-48ab-b299-5bb190143653:3005910:2 __ZN13MonoBehaviour23VirtualRedirectTransferER18StreamedBinaryReadILb0EE blob:http://localhost:8000/1d6d8910-747a-48ab-b299-5bb190143653:3938936:2 __ZN14SerializedFile10ReadObjectEx18ObjectCreationModebPPK8TypeTreePbR6Object blob:http://localhost:8000/1d6d8910-747a-48ab-b299-5bb190143653:1509871:70 __ZN17PersistentManager29ReadAndActivateObjectThreadedEiRK26SerializedObjectIdentifierP14SerializedFilebbNS_9LockFlagsE blob:http://localhost:8000/1d6d8910-747a-48ab-b299-5bb190143653:2910141:4 __ZN17PersistentManager26LoadFileCompletelyThreadedERKN4core12basic_stringIcNS0_20StringStorageDefaultIcEEEEPxPiiNS_9LoadFlagsER12LoadProgressNS_9LockFlagsE blob:http://localhost:8000/1d6d8910-747a-48ab-b299-5bb190143653:1468426:13 __ZN18LoadSceneOperation7PerformEv blob:http://localhost:8000/1d6d8910-747a-48ab-b299-5bb190143653:762888:2 __ZN14PreloadManager22ProcessSingleOperationEv blob:http://localhost:8000/1d6d8910-747a-48ab-b299-5bb190143653:3220346:67 __ZN14PreloadManager26UpdatePreloadingSingleStepENS_21UpdatePreloadingFlagsEi blob:http://localhost:8000/1d6d8910-747a-48ab-b299-5bb190143653:2029005:3 __ZN14PreloadManager35WaitForAllAsyncOperationsToCompleteEv blob:http://localhost:8000/1d6d8910-747a-48ab-b299-5bb190143653:2801163:3 __ZN19RuntimeSceneManager9LoadSceneERKN4core12basic_stringIcNS0_20StringStorageDefaultIcEEEES6_S6_RK9UnityGUIDiNS_11LoadingModeE blob:http://localhost:8000/1d6d8910-747a-48ab-b299-5bb190143653:3373768:2 __Z21PlayerStartFirstSceneb blob:http://localhost:8000/1d6d8910-747a-48ab-b299-5bb190143653:2020172:3 __Z20PlayerLoadFirstSceneb blob:http://localhost:8000/1d6d8910-747a-48ab-b299-5bb190143653:2769346:28 _main blob:http://localhost:8000/1d6d8910-747a-48ab-b299-5bb190143653:1613967:3 UnityLoader.fd575ac7da7e0f46fd8a89988676e872/asm._main blob:http://localhost:8000/2d479dfd-2f1d-4623-85fb-1d3302b3fec0:19281:9 callMain blob:http://localhost:8000/2d479dfd-2f1d-4623-85fb-1d3302b3fec0:21158:13 doRun blob:http://localhost:8000/2d479dfd-2f1d-4623-85fb-1d3302b3fec0:21196:40 run blob:http://localhost:8000/2d479dfd-2f1d-4623-85fb-1d3302b3fec0:21208:3 runCaller blob:http://localhost:8000/2d479dfd-2f1d-4623-85fb-1d3302b3fec0:21135:28 removeRunDependency blob:http://localhost:8000/2d479dfd-2f1d-4623-85fb-1d3302b3fec0:1495:4 processDataJob http://localhost:8000/Build/UnityLoader.js:931:5 schedule/job.callback My bet is that someting is going wrong when I try to deserialize a file in a MonoBehavior. But from this, it's hard tell.

Viewing all articles
Browse latest Browse all 4084

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>