question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

WebGL run fails with failed thread creation

See original GitHub issue

I’ve built from UnityGLTF from master, added the GLTFComponentto a scene to load a remote GLTF and disabled multithreading. When I built to WebGL I get the following error. I’ve found that the 1.0.0 release builds and runs in webgl.

Related: #138

SystemException: Thread creation failed.
UnityLoader.js:1043   at System.Threading.Thread.StartInternal (System.Security.Principal.IPrincipal principal, System.Threading.StackCrawlMark& stackMark) [0x00000] in <00000000000000000000000000000000>:0 
UnityLoader.js:1043 Rethrow as TypeInitializationException: The type initializer for 'System.Threading.Timer.Scheduler' threw an exception.
UnityLoader.js:1043 
UnityLoader.js:1043 Rethrow as TypeInitializationException: The type initializer for 'System.Threading.Timer' threw an exception.
UnityLoader.js:1043   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x00000] in <00000000000000000000000000000000>:0 
UnityLoader.js:1043 --- End of stack trace from previous location where exception was thrown ---
UnityLoader.js:1043   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x00000] in <00000000000000000000000000000000>:0 
UnityLoader.js:1043 --- End of stack trace from previous location where exception was thrown ---
UnityLoader.js:1043   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x00000] in <00000000000000000000000000000000>:0 
UnityLoader.js:1043 --- End of stack trace from previous location where exception was thrown ---
UnityLoader.js:1043   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x00000] in <00000000000000000000000000000000>:0 
UnityLoader.js:1043 --- End of stack trace from previous location where exception was thrown ---
UnityLoader.js:1043   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x00000] in <00000000000000000000000000000000>:0 

Issue Analytics

  • State:open
  • Created 5 years ago
  • Comments:22 (2 by maintainers)

github_iconTop GitHub Comments

4reactions
edumlauercommented, Feb 14, 2019

We have a slightly modified version of the app running on WebGL.

You can try this:

3reactions
kolodicommented, Feb 15, 2019

So I have included 2 shaders in the graphics settings

  1. PbrMetallicRoughness
  2. PbrSpecularGlossiness Then I was waiting for like 3 hours for building, then I realize that it repeats “compiling shader variants” infinitely:
Read more comments on GitHub >

github_iconTop Results From Across the Web

Unity WebGL issue : Fails to create thread
Code: Select all. SystemException: Thread creation failed. at System.Threading.Thread.Start () [0x00000] in <filename unknown>:0 at Sfs2X.
Read more >
System Threading Error using Kii Authentication with Unity ...
I'm creating a WebGL application using Unity written in C#. I have a function that logs the user in based on an authentication...
Read more >
Bug - WebGL Build Error
No errors are showing up in the console while running in editor, but as soon as I try to build to WebGL, I...
Read more >
"Thread was being aborted" error when generating WebGL ...
Problem You get the following error when using the Create Renditions In Batch command to generate 3D or 2D WebGL viewer files: Thread...
Read more >
Error when building WebGl build on linux : r/Unity3D
I'm using Unity on Linux and try to create a WebGl build for my game, but I get the following error message each...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found