Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Errors after assembly reload #2

Closed
korchoon opened this issue Jul 28, 2016 · 4 comments
Closed

Errors after assembly reload #2

korchoon opened this issue Jul 28, 2016 · 4 comments

Comments

@korchoon
Copy link

Hi! First of all let me thank you for solving such a pain as unity's Undo system.
But I've got errors after assembly reload.
How to reproduce:

  1. Window->SerializableActionTest
  2. Create some actions
  3. Create script in the project view (to force assembly reload). Got about 52 errors after deserializing.

Regards,
Mikhail

@Seneral
Copy link
Owner

Seneral commented Jul 29, 2016

Hi! I answered you on the forums because I saw it there first. Best to continue to discuss this problem here though:)
For the record, it seems to be platform specific, for me it works fine using 5.3.6 f1 on Windows 7 and Build target Standalone.
Seneral

@Seneral
Copy link
Owner

Seneral commented Jul 29, 2016

Ok, just tested in new 5.4, I indeed get these errors you mentioned there. I'm onto it:)

@Seneral
Copy link
Owner

Seneral commented Jul 29, 2016

Apparently it is caused by an overreaction of unity again. Basically they have decided do throw an error when an object's state is checked outside of the main thread, because it is not save. And the Callback OnAfterDesierialize seems to run on a seperate thread.
That means I can't check if a Unity object is null when I'm deserializing. That's garbage.

I'm trying to look for a solution, but checking for null is such a basic operation you should not be forced to try finding a workaround for:/

@Seneral
Copy link
Owner

Seneral commented May 10, 2017

Just came back to check 5.6, actually I got different errors now that are more like what you described. Can't tell anymore what errors I was getting back then, but the current ones were actually easy to fix:)
So it should work in newer versions now, too.

@Seneral Seneral closed this as completed May 10, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants