- Home /
WWW class appears to cause NaCl to crash
Using a project I made recently I decided I wanted to try it out using the Native Chrome plugin and I found that it crashed immediately. After setting the environment variables to get log information from the start page to using NaCL I was able to track the issue down to a WWW call.
I then loaded up a project that didn't have any WWW calls and found that it worked fine in the plugin. I then simply added a simple WWW call to that project and now that project crashes immediately.
public void Start()
{
var www = new WWW("http://docs.unity3d.com/Documentation/Manual/nacl-gettingstarted.html");
}
Do I need to be doing something different when I create a WWW class in the NaCl plugin? According to what I've read I should be able to use the WWW class, did that change recently? Before you ask, yes I have configured my webserver to return the "Access-Control-Allow-Origin" header.
Thanks for any help in advance.
I don't care what they taught you in school, you don't put salt in your computer. You're just gonna run into more problems down the road. Use Pb+J ins$$anonymous$$d for best results.
:V
Lol, nice. I'll take that advice and put that pb and j in the blu ray drive.
Answer by Schubkraft · Jun 11, 2013 at 09:48 AM
Hello!
That issue has been fixed and will be deployed with a future version of Unity. Can't say which one exactly though, sorry.
Cheers!
It's definitely not been fixed in 4.1.5 since I still get it crashing on the first use of WWW.
The std_err log shows:
[SRPC:NACL:-1,4278071424:12:52:10.405160] RpcCheckingClosureRun: response(channel=0xfefe3108, rpc_number=0, rpc_name="service_discovery", result=256, string="No error") ter$$anonymous$$ate called after throwing an instance of 'std::logic_error' what(): basic_string::_S_construct NULL not valid
4.1.5 is the current version. @Schubkraft said a future version.
Your answer
![](https://koobas.hobune.stream/wayback/20220613095333im_/https://answers.unity.com/themes/thub/images/avi.jpg)