ZestKit icon indicating copy to clipboard operation
ZestKit copied to clipboard

Critical bug!

Open yonoslaw opened this issue 8 years ago • 5 comments

Hi! I found this critical bug. Just get the project and run "Test" scene. It should produce "MissingReferenceException: The object of type 'RectTransform' has been destroyed but you are still trying to access it." after few seconds. Tested on 5.5 and 5.6.

https://www.dropbox.com/s/quxnctb1yoe7ctd/ZestBug.zip?dl=0

yonoslaw avatar May 10 '17 13:05 yonoslaw

This is another example. Observe how the items randomly freeze with localScale set to something weird.

https://www.dropbox.com/s/fdzwedme6kjhiqz/ZestBugv2.zip?dl=0

yonoslaw avatar May 10 '17 14:05 yonoslaw

can you add a short description of what it is that you are doing? are you switching scenes? are you destroying objects while you are tweening them?

OranShuster avatar May 15 '17 15:05 OranShuster

Oh sorry! I was doing some cleanup on my dropbox and did forget that the files are there for you. Here is the new upload's link.

https://www.dropbox.com/s/q8dml2xxgspuno6/ZestBugv2.zip?dl=0

yonoslaw avatar May 21 '17 19:05 yonoslaw

Switching off the QuickCache did solve the problem. It seems that when the cache is able to serve one cached instance to multiple tweens. This is the scenario.

  • 5 game objects are tweened (scale tween in a three times ping pong loop)
  • tweens finish and are moved back to cache.
  • one of the game objects gets destroyed (there are NO active tweens right now!!!)(I destroy the middle one)
  • 4 game objects that are still there are repeating the tween sequence (by creating new tweens)
  • the sequence is a disaster. Some of the go are not animated, some are animated 2x faster, sometimes reference to transform is null and zestkit fails.

yonoslaw avatar May 25 '17 11:05 yonoslaw

I also have this kind of similar problem, is there a solution?

787786815 avatar Oct 22 '20 12:10 787786815