HTML5 missing function: pthread_create
Runs perfectly in editor and starts browser. Fails probably when an http request is made
Answer by CountExtreme · Feb 16, 2016 at 06:02 AM
You're trying to use threading in a WebGL app. System.Threading isn't supported because there is no threading support in JavaScript.
Answer by REGATTA · May 04, 2016 at 07:11 PM
@Moana Actually, you may be using something that uses threading. I did encounter this problem; for me it was because of System.Xml.Serialization.XmlSerializer.
As you can see in the class file, it handles a given threshold over which the generation is done in background. The easiest way to fix this was to give the related environment variable a higher value than the default one ("50"), or no threshold at all :
System.Environment.SetEnvironmentVariable("MONO_XMLSERIALIZER_THS", "no");
Of course, the issue can come from some other class entirely, that is also using System.Threading.ThreadPool.QueueUserWorkItem.
Your answer
Follow this Question
Related Questions
How to export game from Unity 5.6.0 32Bit to HTML5?? 1 Answer
How can I make my lighting from HTML5 match my .exe? 0 Answers
WebGL: disable scrolling 1 Answer
Make game for Telegram App With unity? 0 Answers
Text Disappears on WEBGL Build 0 Answers