RC1 - Trying to add Button from rebuild list in a rebuild loop. This is not supported...

Hello all,

Hoping someone from Unity can chime in. I’m on 4.6 RC1 on OSX.

I posted another thread about the Ui sometimes vanishing after hitting stop but I’m not sure this is related because I keep getting theses errors in the log only sometimes. The behaviour is erratic to say the least.

Basically, I have a Canvas that has a Panel inside. Inside the Panel there are Buttons.

So basically its Canvas → Panel ->Button. How much more simple can you get ?

But after pressing some of my buttons randomly with the mouse (in Play mode) and hitting stop, Unity sometimes gives me 49 errors some of which you see in the screenshot provided…

Trying to add Button_Continue (Unity Engine.UI.Image) From rebuild list while we are already inside a rebuild loop. This is not supported.
Trying to remove Button_Continue (Unity Engine.UI.Image) From rebuild list while we are already inside a rebuild loop. This is not supported.
etc… yada yada.

Its just random. It might have a connection with the Ui disappearing but unsure at the moment…

I’m just astonished why simple buttons gives these errors after 21 Betas and no one spotted this… Hoping its just something I’m doing wrong on my side, but the project is empty and only has UI…

Thanks!
Alf

If you could would you be able to submit a bug report on this? I’ve tried created a simple case (on both mac and windows) of just Canvas->Panel->Button and after entering play clicking around on the buttons hitting stop, i’ve not been able to get the same error messages.

Thank you for your reply.

I realized that my buttons were using Raycast Mask script from here http://forum.unity3d.com/threads/scripts-useful-4-6-scripts-collection.264161/ (because they are round). I think its the culprit actually… The script works but If I do certain steps It gives those errors.

I’m not sure if its the script’s fault or Unity’s. Would you like a repo anyway ?

If you file and we determine its the scripts fault we will just close it, but i think its better to be safe then to miss a bug.

Hello Phil. I agree.

I filed the bug. Case 647217

Hello Phil,

The bug was acknowledge last week but the RC2 is out… so any chance the bug will be fixed in RC3 4.6 ?

Its driving crazy as my Ui keeps disappearing…I guess you guys think its not an urgent bug since it doesn’t make it crash.

Should I refile with RC2 or no chance to see a fix for it ?

Thanks.

Ok apparently it is fixed in the upcoming patch 1. Thanks guys!

Will try again when it’s out. Can’t wait !

https://docs.unity3d.com/Packages/com.unity.ugui@1.0/api/UnityEngine.UI.CanvasUpdateRegistry.html

CanvasUpdateRegistry.IsRebuildingGraphics()
CanvasUpdateRegistry.IsRebuildingLayout()

Articles are nissing.

I ve updated post