Search Unity

  1. Unity 2019.2 is now released.
    Dismiss Notice

[BUG][CASE 1149316][BLOCK] Some prefabs are broken in our project.

Discussion in 'Prefabs' started by aurelien-morel-ubiant, Apr 29, 2019.

  1. aurelien-morel-ubiant

    aurelien-morel-ubiant

    Joined:
    Sep 27, 2017
    Posts:
    209
    Hello guys,
    we are facing some "critical" issue in our project .

    Extract from our fogbuz :
    ==========================================
    Save prefab duplicate components

    1. What happened
    If we open and save "MenuMessageEdit" some components are duplicated.

    2. How we can reproduce it using the example you attached
    - Search for "MenuMessageEdit" prefab
    - Open it with the "Open Prefab" button in inspector.
    - Check the content of the "Skinned TextMeshProUGUI" we pointed in our screenshot named "Screenshot_BeforeSave" you can see only 5 components
    - Push save button without changing anything.
    - Right after you can check the console and see 2 error messages. One mentionned a multiple Skinned TM Pro (whereas we had just one)
    - Close the "Edit prefab" mode by pushing top left arrow. If it asks for saving; just save again
    - Open the prefab again.
    - Check the same game object "Skinned TextMeshProUGUI" and you will see the same thing than our second screenshot named "Screenshot_AfterSave" with 9 components whereas we changed nothing.

    It's quite a showstopper for us cause we can't edit this prefab anymore...
    Feel free to ask if you need more information.
    ==========================================

    Due to this, it's impossible to edit some prefab (expect by hand by editing directly the ".prefab" which not viable..

    Any clue, solution, fix would be welcomed.

    I add the screenshots from the fogbuzz report, in this way you can see on the forum what happens.

    P.S : It happens on Unity 2018.3.12 & 2019.1.0f2 too :/
    We didn't test on earlier version with our broken prefab
     

    Attached Files:

    Last edited: Apr 29, 2019
    mcallet likes this.
  2. aurelien-morel-ubiant

    aurelien-morel-ubiant

    Joined:
    Sep 27, 2017
    Posts:
    209
    As we said in the subject, we can bring you more infmormation if you need @LeonhardP / @SteenLund
     
    mcallet likes this.
  3. aurelien-morel-ubiant

    aurelien-morel-ubiant

    Joined:
    Sep 27, 2017
    Posts:
    209
    It seems to be due to game object that have the same name in the hierarchy which is quite odd no ? How same game object naming could generate that kind of issue ?

    We find something interesting but it doesn't help us :

    If you have multiple nested prefab with same name in it, it will be ok but as soon as you put a non nested game object with the same name than a nested one ABOVE the nested it will generate the issue (at least in our prefab "MenuMessageEdit").
    If you move this non nested game object under nested one in the hierarchy the issue doesn't happen anymore.
     
    Last edited: Apr 29, 2019
    mcallet likes this.
  4. aurelien-morel-ubiant

    aurelien-morel-ubiant

    Joined:
    Sep 27, 2017
    Posts:
    209
    @SteenLund have you any news on this issue ?

    We currently find more and more issue (unity 2018.3.12) with nested prefab system.
    But some of them seems to be related to the same issue that we reported in this forum thread.
    And it starts to be quite a showstopper cause when your project that was ok (before) start to crash more and more... Sometimes we open it, save some prefab and it crashs...