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. Dismiss Notice

Bug Subscene failed to load properly at Android build

Discussion in 'Entity Component System' started by optimise, Nov 14, 2021.

  1. optimise

    optimise

    Joined:
    Jan 22, 2014
    Posts:
    2,029
    It seems like until now Subscene feature at Entities still does not work properly yet. Currently when I try to move some of component, system and authoring to become package it will failed to work properly at real Android build. Editor still working properly. Does this issue fully fixed at future Entities release? Any idea why it's like that?

    NullReferenceException: Object reference not set to an instance of an object.
    Unity.Entities.Serialization.DotsSerializationReader.ReadData (Unity.Entities.Serialization.DotsSerializationReader+NodeHandle nodeHandle, System.Byte* buffer, System.Int64 startingOffset, System.Int64 readSize) (at <00000000000000000000000000000000>:0)
    Unity.Entities.Serialization.StringTableReaderHandle..ctor (Unity.Entities.Serialization.DotsSerializationReader+NodeHandle stringTableNode) (at <00000000000000000000000000000000>:0)
    Unity.Entities.Serialization.DotsSerializationHelpers.OpenStringTableNode (Unity.Entities.Serialization.DotsSerializationReader reader, Unity.Entities.Serialization.DotsSerializationReader+NodeHandle stringTableNode) (at <00000000000000000000000000000000>:0)
    Unity.Entities.Serialization.SerializeUtility.<ReadTypeArray>g_GetTypeName|8_0 (System.UInt64 stableHash, Unity.Collections.FixedString512& name, Unity.Entities.Serialization.SerializeUtility+<>c_DisplayClass8_0& ) (at <00000000000000000000000000000000>:0)
    Unity.Entities.Serialization.SerializeUtility.ReadTypeArray (Unity.Entities.Serialization.BinaryReader reader, Unity.Entities.Serialization.DotsSerializationReader dotsReader) (at <00000000000000000000000000000000>:0)
    Unity.Entities.Serialization.SerializeUtility.EndDeserializeWorld (Unity.Entities.ExclusiveEntityTransaction manager, Unity.Entities.Serialization.DotsSerializationReader dotsReader, Unity.Entities.Serialization.SerializeUtility+WorldDeserializationStatus status, System.Object[] unityObjects) (at <00000000000000000000000000000000>:0)
    Unity.Scenes.AsyncLoadSceneOperation+AsyncLoadSceneJob.Execute () (at <00000000000000000000000000000000>:0)
    Unity.Jobs.IJobExtensions+JobStruct`1+ExecuteJobFunction[T].Invoke (T& data, System.IntPtr additionalPtr, System.IntPtr bufferRangePatchData, Unity.Jobs.LowLevel.Unsafe.JobRanges& ranges, System.Int32 jobIndex) (at <00000000000000000000000000000000>:0)
    Unity.Scenes.SceneSectionStreamingSystem:UpdateLoadOperation(AsyncLoadSceneOperation, World, Entity, Boolean)
    Unity.Scenes.SceneSectionStreamingSystem:processActiveStreams()
    Unity.Scenes.SceneSectionStreamingSystem:OnUpdate()
    Unity.Entities.SystemBase:Update()
    Unity.Entities.ComponentSystemGroup:UpdateAllSystems()
    Unity.Entities.ComponentSystem:Update()
    Unity.Entities.ComponentSystemGroup:UpdateAllSystems()
    Unity.Entities.ComponentSystem:Update()
    Unity.Entities.ComponentSystemGroup:UpdateAllSystems()
    Unity.Entities.ComponentSystem:Update()
    Unity.Entities.ComponentSystemGroup:UpdateAllSystems()
    Unity.Entities.ComponentSystem:Update()
    UnityEngine.LowLevel.UpdateFunction:Invoke()


    Error when processing 'AsyncLoadSceneJob(jar:file:///data/app/~~Yb8aEvgnE5EVvXnxvBz6Zw==/com.xx.xx-xx-xx==/base.apk!/assets/EntityScenes/839b829ef2a7ee9449ddb5065462ef59.0.entities)': Object reference not set to an instance of an object.
    Unity.Scenes.SceneSectionStreamingSystem:UpdateLoadOperation(AsyncLoadSceneOperation, World, Entity, Boolean)
    Unity.Scenes.SceneSectionStreamingSystem:processActiveStreams()
    Unity.Scenes.SceneSectionStreamingSystem:OnUpdate()
    Unity.Entities.SystemBase:Update()
    Unity.Entities.ComponentSystemGroup:UpdateAllSystems()
    Unity.Entities.ComponentSystem:Update()
    Unity.Entities.ComponentSystemGroup:UpdateAllSystems()
    Unity.Entities.ComponentSystem:Update()
    Unity.Entities.ComponentSystemGroup:UpdateAllSystems()
    Unity.Entities.ComponentSystem:Update()
    Unity.Entities.ComponentSystemGroup:UpdateAllSystems()
    Unity.Entities.ComponentSystem:Update()
    UnityEngine.LowLevel.UpdateFunction:Invoke()
     
  2. programmer119

    programmer119

    Joined:
    Sep 27, 2021
    Posts:
    94
    If situation is cant see object in android that maybe build issue. You can use buildconfiguration