- Home /
Unity crashes when called from script/daemon
I'm using a daemon ftp server. If the user uploads data the demon runs a script that automatically creates an iOS Asset Bundle from the data with Unity.
Everything works fine as long as i run the script from the console. As soon as the demon runs the script Unity crashes with:
terminating with uncaught exception of type std::logic_error: basic_string::_S_construct NULL not valid
Seems Unity needs somehow the console. How can I solve this problem or circumvent it?
Answer by matiasticbits · Mar 29, 2017 at 02:47 PM
I'm running into this problem with Unity 5.5.0f3 when trying to do Unity builds on our CI server. We are using TeamCity as our CI server and Unity builds work as long as the build agent has been started from the console, but if I setup a launch daemon it will fail because of this error. Is this a regression bug?
Edit: I was able to get the CI builds work, by setting up the agent to run as a Launch agent (on OSX) for the user instead of global launch daemon that would run using root.