Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

Bug Assertion failed on expression: 'prefabInstance.GetPrefabModification().m_TransformParent.IsValid()'

Discussion in 'Windows' started by tonyoakden2, Jul 29, 2023.

  1. tonyoakden2

    tonyoakden2

    Joined:
    Oct 14, 2016
    Posts:
    15
    I upgraded our project from Unity 2021.3.25 to unty 2022.2.2 to try and solve some issues (IL2CCP compiler errors) when building for the switch. After upgrading the project now won't build for the PC or Switch now. these are the errors:

    Assertion failed on expression: 'prefabInstance.GetPrefabModification().m_TransformParent.IsValid()'

    and

    Assertion failed on expression: 'm_DirectReadCommands.status == AsyncReadCommand::kCompleted || m_DirectReadCommands.status == AsyncReadCommand::kNotUsed'

    Has anyone encountered these before and knows how to solve them? The game runs in the editor so I'm assuming it's some sort of dependency error in one of the scenes or scripts which only shows up when the entire project is exported. There doesn't seem to be any useful information in the editor log as to what scenes and objects the error refers to.

    Thank you

    kind regards,


    Tony
     
    jul14n4rn0ld likes this.
  2. whj_pwrd

    whj_pwrd

    Joined:
    Oct 27, 2021
    Posts:
    2
    I encountered the same problem, changing Prefab to a Prefab variant resulted in this error
     
    jul14n4rn0ld likes this.
  3. jul14n4rn0ld

    jul14n4rn0ld

    Joined:
    Feb 27, 2019
    Posts:
    2
    I get the same error, but while loading the scene in editor, and objects are getting randomly unparented (using IL2CPP and Unity 2022.1.13f)
     
  4. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,517
    Can we get a bug report on this? I am having trouble reaching the area owners due to summer vacations, but assertion failures like these almost always mean bugs in the engine and we'd like to look at them closer.
     
  5. johanolofsson

    johanolofsson

    Joined:
    Nov 21, 2018
    Posts:
    94
    Hello, any progress on this?

    I have a similar issue. If I insert a new prefab variant in the chain by dragging the root from the prefab hierarchy to the project I get this error. All prefab variants "deriving" from this new node are now corrupt and their children disappear randomly. This is beyond frustrating since this causes any prefab management/refactoring to be close to impossible. I use 2023.1.
     
  6. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,517
    I am not sure if we ever received a bug report. Can you report one? We need a repro project in order to investigate it.
     
  7. johanolofsson

    johanolofsson

    Joined:
    Nov 21, 2018
    Posts:
    94
    No, I've lost faith in the unity bug reporting system.

    I recently spent weeks tracking down some severe issues which were confirmed by unity to be an issue in core unity. Resolved by unity as "Won't fix" without explanation.

    It is not reasonable that we should do your job. Considering the amount of bugs and issues in unity that we have to fight daily I think it would be good if unity staffed up on QA ppl who were on their feet and could vacuum the forum for issues like this instead of putting the responsibility of any progress on the paying customers.
     
    AADProductions likes this.
  8. shekalo

    shekalo

    Joined:
    Dec 21, 2017
    Posts:
    11
    Hey guys I've submitted a bug report for this - Case IN-60953

    I wouldn't be surprised if this was a tough one to figure out. Thanks @Tautvydas-Zilys and team