Tuesday, 19 April 2016

Fatal error! The file 'MemoryStream' is corrupted! (Unity 5.3.2 on OSX 10.10.5)

Logged on to my MacBook Pro (OS X 10.10.5), connected to iPad Mini (iOS 9.3.1) with Unity Remote 4 running, started Unity (5.3.2f1), opened the same project as previous "2D/3D rotation by touch on iPad Mini" post, clicked Play, and as shown below, I get this strange message: "Fatal error! The file 'MemoryStream' is corrupted! Remove it and launch unity again! [Position out of bounds!]"


Tried shutdown and restart Unity a few times, same problem.

Searched everywhere in that project folders but couldn't anything called "MemoryStream". Searched the net and someone mentioned about removing the whole "Library" sub-folder to fix the problem... Sounds a bit dangerous to me....

Then found a simpler solution - unplug the iPad Mini, click "Play" - which worked for some reason. Then stop it, plug in the iPad Mini again, and then everything worked... Strange.

May be you are not supposed to connect to iOS device with Unity Remote 4 running before starting up Unity??

No comments:

Post a Comment