modesttree / Projeny

A project and package manager for Unity
MIT License
692 stars 87 forks source link

MemoryStream gets corrupted after trying to update settings at Package Manager at Editor #48

Open brunoleos opened 7 years ago

brunoleos commented 7 years ago

I get a "MemoryStream is corrupted" popup and exception, using Unity 5.4.2f2 and VS 2015. Projeny version is v0.3.6 projeny-memorystream_corrupt I'm trying the sample projects. I open AllMovers-Windows, and try changing packages from Assets to Plugin Folder, and as I click Update Directories I get the exception.

I've also filled two bug reports to Unity about this issue, which may be related to a bug at the Unity Editor.

svermeulen commented 7 years ago

I can't seem to reproduce this one, though I only tested with unity 5.5

brunoleos commented 7 years ago

I checked a clean PrjLog.txt after the exception and have seem nothing unusual. This keeps happening here.

svermeulen commented 7 years ago

It's happening when it's calling AssetDatabase.Refresh which is a unity method. One workaround here would be to just comment this line out, recompile, then refresh manually

svermeulen commented 7 years ago

This might be fixed in 0.3.7