- Home /
Running Unity 5.6.4 in headless throws this assert: Assertion failed on expression: 'ms_Instance != NULL'
Hello,
We are running into issues when we run the test suite for our application in headless mode. This is the error output generated:
Cleanup mono
Checking for leaked weakptr:
Found no leaked weakptrs.
Callback unregistration failed. Callback not registered.
(Filename: /Users/builduser/buildslave/unity/build/Runtime/Core/Callbacks/CallbackArray.h Line: 130)
Assertion failed on expression: 'ms_Instance != NULL'
(Filename: /Users/builduser/buildslave/unity/build/Runtime/Network/PlayerCommunicator/ManagedProxy/GeneralConnectionManaged.cpp Line: 118)
##unity-automation:{"messageType":"MemoryLeaks","allocatedMemory":207507,"memoryLabels":[{"Default":1768},{"Permanent":16192},{"Thread":616},{"Manager":2600},{"VertexData":648},{"GfxDevice":23808},{"GfxThread":2880},{"Physics":8},{"Serialization":12704},{"JobScheduler":144},{"GarbageCollector":1048576},{"BaseObject":1408},{"Renderer":9440},{"Terrain":224},{"STL":66304},{"String":23919},{"DynamicArray":4576},{"Utility":-1040384},{"PoolAlloc":-224},{"ScriptManager":3280},{"Sprites":9240},{"VR":11400},{"EditorGui":12},{"EditorUtility":544},{"AssetImporter":24},{"RestService":64},{"License":984},{"UnityConnect":6024},{"Collab":728}]}
Looking around online, it sounds like it may be related to this issue: https://github.com/Unity-Technologies/VolumetricLighting/issues/14
I was wondering if there was more info related to this issue. Thank you for your time.
Answer by RFredW_Exient · Mar 06, 2018 at 04:13 PM
Just encountered this myself: Have a look earlier in your log for the string:-
Test Failed:
(It seems that a unit test failing causes the unit tester to not exit gracefully)
Answer by sramirezynga · Mar 06, 2018 at 04:21 PM
For us, we were seeing all test pass if you opened the editor and ran tests through it. It was only in headless mode where this error came up.
Your answer
![](https://koobas.hobune.stream/wayback/20220612152709im_/https://answers.unity.com/themes/thub/images/avi.jpg)