Search Unity

Bug Importer(PrefabImporter) generated inconsistent result for asset

Discussion in '2020.2 Beta' started by Hyp-X, Nov 12, 2020.

  1. Hyp-X

    Hyp-X

    Joined:
    Jun 24, 2015
    Posts:
    391
    Testing in 2020.2.0b11

    We have a prefab, where if we modify the Source Image field of an Image component, we get strange behavior:

    1. After I modify the prefab, if I do a reimport on it I get this:

    Code (CSharp):
    1. ConsistencyChecker - guid: 941d82d5a6bf1e54d8d6e349ba693b1a, dependenciesHash.value: a47aedfa7667fe60bddcfb3a3441a18f, artifactid: b192ff0d1c7062ec915fb096f9f4e053, producedFiles[0].extension: , producedFiles[0].contentHash: 375c8c73fd8162601c6cefb435beccab
    2. ConsistencyChecker - guid: 941d82d5a6bf1e54d8d6e349ba693b1a, dependenciesHash.value: a47aedfa7667fe60bddcfb3a3441a18f, artifactid: 027974eefe3ff4e971fc3538a40ee898, producedFiles[0].extension: , producedFiles[0].contentHash: b09e363ac5c3e867ca5644aa7e2d0da4
    3. Importer(PrefabImporter) generated inconsistent result for asset(guid:941d82d5a6bf1e54d8d6e349ba693b1a) "Assets/UI/InGame/Tutorial/MessagePrefab.prefab"
    4.  
    2. After I modify the prefab, I restart Unity I get a crash during opening the project (so far looks >90% repro rate)

    The crash produces the following stack trace:

    Code (CSharp):
    1. Stack trace:
    2. RtlLookupFunctionEntry returned NULL function. Aborting stack walk.
    3. <Missing stacktrace information>
    4.  
    Might this be related to:
    https://forum.unity.com/threads/editor-crashes-when-opening-the-project-case-1280527.979470/
     
  2. Hyp-X

    Hyp-X

    Joined:
    Jun 24, 2015
    Posts:
    391
    In our PS4 and XB1 workspaces I finally managed to import the asset, but when I try to select it in the editor, I get the following crash:

    Code (CSharp):
    1.   at <unknown> <0xffffffff>
    2.   at (wrapper managed-to-native) UnityEditor.Selection.set_instanceIDs (int[]) [0x00007] in <96da5fbbe3f6429982386da09c8521a8>:0
    3.   at UnityEditor.ProjectBrowser.ListAreaItemSelectedCallback (bool) [0x00026] in <96da5fbbe3f6429982386da09c8521a8>:0
    4.   at UnityEditor.ObjectListArea.SetSelection (int[],bool) [0x00025] in <96da5fbbe3f6429982386da09c8521a8>:0
    5.   at UnityEditor.ObjectListArea/LocalGroup.HandleMouseWithDragging (UnityEditorInternal.InternalEditorUtility/AssetReference&,int,UnityEngine.Rect) [0x00412] in <96da5fbbe3f6429982386da09c8521a8>:0
    6.   at UnityEditor.ObjectListArea/LocalGroup.DrawItem (UnityEngine.Rect,UnityEditor.FilteredHierarchy/FilterResult,UnityEditor.BuiltinResource,bool) [0x00dde] in <96da5fbbe3f6429982386da09c8521a8>:0
    7.   at UnityEditor.ObjectListArea/LocalGroup.DrawInternal (int,int,single) [0x00155] in <96da5fbbe3f6429982386da09c8521a8>:0
    8.   at UnityEditor.ObjectListArea/Group.Draw (single,UnityEngine.Vector2,int&) [0x00155] in <96da5fbbe3f6429982386da09c8521a8>:0
    9.   at UnityEditor.ObjectListArea.HandleListArea () [0x0016f] in <96da5fbbe3f6429982386da09c8521a8>:0
    10.   at UnityEditor.ObjectListArea.OnGUI (UnityEngine.Rect,int) [0x00173] in <96da5fbbe3f6429982386da09c8521a8>:0
    11.   at UnityEditor.ProjectBrowser.OnGUI () [0x00203] in <96da5fbbe3f6429982386da09c8521a8>:0
    12.   at UnityEditor.HostView.InvokeOnGUI (UnityEngine.Rect,UnityEngine.Rect) [0x00066] in <96da5fbbe3f6429982386da09c8521a8>:0
    13.   at UnityEditor.DockArea.DrawView (UnityEngine.Rect,UnityEngine.Rect) [0x00004] in <96da5fbbe3f6429982386da09c8521a8>:0
    14.   at UnityEditor.DockArea.OldOnGUI () [0x0019d] in <96da5fbbe3f6429982386da09c8521a8>:0
    15.   at UnityEngine.UIElements.IMGUIContainer.DoOnGUI (UnityEngine.Event,UnityEngine.Matrix4x4,UnityEngine.Rect,bool,UnityEngine.Rect,System.Action,bool) [0x001e1] in <519636828bf44b44aa4c317f8b947afe>:0
    16.   at UnityEngine.UIElements.IMGUIContainer.HandleIMGUIEvent (UnityEngine.Event,UnityEngine.Matrix4x4,UnityEngine.Rect,System.Action,bool) [0x000c8] in <519636828bf44b44aa4c317f8b947afe>:0
    17.   at UnityEngine.UIElements.IMGUIContainer.HandleIMGUIEvent (UnityEngine.Event,System.Action,bool) [0x00025] in <519636828bf44b44aa4c317f8b947afe>:0
    18.   at UnityEngine.UIElements.IMGUIContainer.HandleIMGUIEvent (UnityEngine.Event,bool) [0x0000a] in <519636828bf44b44aa4c317f8b947afe>:0
    19.   at UnityEngine.UIElements.IMGUIContainer.SendEventToIMGUIRaw (UnityEngine.UIElements.EventBase,bool,bool) [0x0002a] in <519636828bf44b44aa4c317f8b947afe>:0
    20.   at UnityEngine.UIElements.IMGUIContainer.SendEventToIMGUI (UnityEngine.UIElements.EventBase,bool,bool) [0x00154] in <519636828bf44b44aa4c317f8b947afe>:0
    21.   at UnityEngine.UIElements.IMGUIContainer.HandleEvent (UnityEngine.UIElements.EventBase) [0x0005d] in <519636828bf44b44aa4c317f8b947afe>:0
    22.   at UnityEngine.UIElements.CallbackEventHandler.HandleEventAtTargetPhase (UnityEngine.UIElements.EventBase) [0x00018] in <519636828bf44b44aa4c317f8b947afe>:0
    23.   at UnityEngine.UIElements.MouseCaptureDispatchingStrategy.DispatchEvent (UnityEngine.UIElements.EventBase,UnityEngine.UIElements.IPanel) [0x0017c] in <519636828bf44b44aa4c317f8b947afe>:0
    24.   at UnityEngine.UIElements.EventDispatcher.ApplyDispatchingStrategies (UnityEngine.UIElements.EventBase,UnityEngine.UIElements.IPanel,bool) [0x00028] in <519636828bf44b44aa4c317f8b947afe>:0
    25.   at UnityEngine.UIElements.EventDispatcher.ProcessEvent (UnityEngine.UIElements.EventBase,UnityEngine.UIElements.IPanel) [0x00047] in <519636828bf44b44aa4c317f8b947afe>:0
    26.   at UnityEngine.UIElements.EventDispatcher.ProcessEventQueue () [0x00039] in <519636828bf44b44aa4c317f8b947afe>:0
    27.   at UnityEngine.UIElements.EventDispatcher.OpenGate () [0x0003c] in <519636828bf44b44aa4c317f8b947afe>:0
    28.   at UnityEngine.UIElements.EventDispatcherGate.Dispose () [0x00007] in <519636828bf44b44aa4c317f8b947afe>:0
    29.   at UnityEngine.UIElements.EventDispatcher.ProcessEvent (UnityEngine.UIElements.EventBase,UnityEngine.UIElements.IPanel) [0x0011a] in <519636828bf44b44aa4c317f8b947afe>:0
    30.   at UnityEngine.UIElements.EventDispatcher.Dispatch (UnityEngine.UIElements.EventBase,UnityEngine.UIElements.IPanel,UnityEngine.UIElements.DispatchMode) [0x00049] in <519636828bf44b44aa4c317f8b947afe>:0
    31.   at UnityEngine.UIElements.BaseVisualElementPanel.SendEvent (UnityEngine.UIElements.EventBase,UnityEngine.UIElements.DispatchMode) [0x0001f] in <519636828bf44b44aa4c317f8b947afe>:0
    32.   at UnityEngine.UIElements.UIElementsUtility.DoDispatch (UnityEngine.UIElements.BaseVisualElementPanel) [0x000e3] in <519636828bf44b44aa4c317f8b947afe>:0
    33.   at UnityEngine.UIElements.UIElementsUtility.UnityEngine.UIElements.IUIElementsUtility.ProcessEvent (int,intptr,bool&) [0x0003f] in <519636828bf44b44aa4c317f8b947afe>:0
    34.   at UnityEngine.UIElements.UIEventRegistration.ProcessEvent (int,intptr) [0x0001f] in <519636828bf44b44aa4c317f8b947afe>:0
    35.   at UnityEngine.UIElements.UIEventRegistration/<>c.<.cctor>b__1_2 (int,intptr) [0x00003] in <519636828bf44b44aa4c317f8b947afe>:0
    36.   at UnityEngine.GUIUtility.ProcessEvent (int,intptr,bool&) [0x00018] in <931b26b61f444e3485195721b0227b20>:0
    37.   at (wrapper runtime-invoke) <Module>.runtime_invoke_void_int_intptr_intptr& (object,intptr,intptr,intptr) [0x0002d] in <931b26b61f444e3485195721b0227b20>:0
    38.  
    This is with beta 10, we are still waiting for the console versions of beta 11.
     
  3. ivaylo5ev

    ivaylo5ev

    Joined:
    Sep 2, 2016
    Posts:
    12
    I recently had the same issue. Sometimes, after version update, Unity might mess up the asset's state that is produced from importing the raw file. Below is what you need to do in such case. Even if you did not upgrade Unity recently, I'd give this a shot:
    1. Close Unity
    2. Delete the Library directory under the project's root folder (you may want to create a backup just in case)
    3. Reopen Unity and wait for the project to import
     
unityunity