Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by ThibaultUrien · Nov 12, 2018 at 03:03 PM · buildwebglexceptionwebassembly

WebGl build throw numbers (maybe assembly pointers)

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  <OpenGL ES 3.0> ; 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.

Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

0 Replies

· Add your reply
  • Sort: 

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

106 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

WebGL shadows problem 1 Answer

when build to webGL 0 Answers

Lighting doesn't work properly in WebGL build 0 Answers

WebGl: RuntimeError: indirect call signature mismatch 0 Answers

Host on the web a game without WebGL, is it possible? 0 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges