why do you try to do this endless IEnumerator in start?
simply put your message-handling in the update() and get rid of this while(true) constructā¦
my guess is that since the coroutine you fork off in start never finishes unity never gets over the initialization phase, so youāve basically halted in an endless loop before you even get to the main event loop
This appears to have broken in unity 5.1.2. Surprised more people havenāt run into it.
I donāt use the unitypackage in question, however I have the same issue. Essentially, Marshal.FreeHGlobal is crashing. Unfortunately I donāt know of a good fix, other than to not release the memory in question. Hopefully this is fixed with a patch soon.
Iām not sure why though, and am pretty annoyed that a breaking change like this was introduced without notice in what appeared to be a small update (between 5.1.1 to 5.1.2 should only really be for bugfixes imoā¦)