Giter Club home page Giter Club logo

latios-framework's People

Contributors

dreaming381 avatar gabrieldechichi avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

latios-framework's Issues

Compiler Errors with Entities 1.0.0-pre.15

I am upgrading my project to Entities 1.0.0-pre.15. Unfortunately Latios Framework has a bunch of compiler errors. This is weird, because the way I understand it Entities 1.0.0-pre.15 should be supported since Latios Framework version 0.6.1.

I am using Unity 2022.2.2f1 and added Latios through the Package Manager via git URL: https://github.com/Dreaming381/Latios-Framework.git
This installed version 0.6.4.

These are the errors I get:

Library\PackageCache\com.latios.latiosframework@65ad140350\Core\Systems\Transforms\ExtremeHierarchy\ExtremeLocalToParentSystem.cs(18,25): error CS0246: The type or namespace name 'TRSToLocalToParentSystem' could not be found (are you missing a using directive or an assembly reference?)
Library\PackageCache\com.latios.latiosframework@65ad140350\Core\Systems\Transforms\ExtremeHierarchy\ExtremeLocalToParentSystem.cs(19,25): error CS0246: The type or namespace name 'TRSToLocalToWorldSystem' could not be found (are you missing a using directive or an assembly reference?)
Library\PackageCache\com.latios.latiosframework@65ad140350\Core\Systems\Transforms\ExtremeHierarchy\ExtremeLocalToParentSystem.cs(20,26): error CS0246: The type or namespace name 'LocalToParentSystem' could not be found (are you missing a using directive or an assembly reference?)
Library\PackageCache\com.latios.latiosframework@65ad140350\Core\Systems\Transforms\ImprovedTransforms\ImprovedLocalToParentSystem.cs(20,25): error CS0246: The type or namespace name 'TRSToLocalToParentSystem' could not be found (are you missing a using directive or an assembly reference?)
Library\PackageCache\com.latios.latiosframework@65ad140350\Core\Systems\Transforms\ImprovedTransforms\ImprovedLocalToParentSystem.cs(21,25): error CS0246: The type or namespace name 'TRSToLocalToWorldSystem' could not be found (are you missing a using directive or an assembly reference?)
Library\PackageCache\com.latios.latiosframework@65ad140350\Core\Systems\Transforms\ImprovedTransforms\ImprovedLocalToParentSystem.cs(22,26): error CS0246: The type or namespace name 'LocalToParentSystem' could not be found (are you missing a using directive or an assembly reference?)
Library\PackageCache\com.latios.latiosframework@65ad140350\Core\Systems\Transforms\ExtremeHierarchy\ExtremeLocalToParentSystem.cs(36,29): error CS0246: The type or namespace name 'LocalToParent' could not be found (are you missing a using directive or an assembly reference?)
Library\PackageCache\com.latios.latiosframework@65ad140350\Core\Systems\Transforms\ImprovedTransforms\ImprovedLocalToParentSystem.cs(175,40): error CS0246: The type or namespace name 'LocalToParent' could not be found (are you missing a using directive or an assembly reference?)
Library\PackageCache\com.latios.latiosframework@65ad140350\Core\Systems\Transforms\ExtremeHierarchy\ExtremeLocalToParentSystem.cs(155,40): error CS0246: The type or namespace name 'LocalToParent' could not be found (are you missing a using directive or an assembly reference?)
Library\PackageCache\com.latios.latiosframework@65ad140350\Core\Systems\Transforms\ImprovedTransforms\ImprovedLocalToParentSystem.cs(37,47): error CS0246: The type or namespace name 'LocalToParent' could not be found (are you missing a using directive or an assembly reference?)
Library\PackageCache\com.latios.latiosframework@65ad140350\Core\Systems\Transforms\ExtremeHierarchy\ExtremeLocalToParentSystem.cs(284,51): error CS0246: The type or namespace name 'LocalToParent' could not be found (are you missing a using directive or an assembly reference?)
Library\PackageCache\com.latios.latiosframework@65ad140350\Core\Systems\Transforms\ExtremeHierarchy\ExtremeLocalToParentSystem.cs(344,51): error CS0246: The type or namespace name 'LocalToParent' could not be found (are you missing a using directive or an assembly reference?)
Library\PackageCache\com.latios.latiosframework@65ad140350\Core\Systems\Transforms\ExtremeHierarchy\ExtremeLocalToParentSystem.cs(382,47): error CS0246: The type or namespace name 'LocalToParent' could not be found (are you missing a using directive or an assembly reference?)

As far as I can tell the referenced types TRSToLocalToParentSystem, TRSToLocalToWorldSystem, LocalToParentSystem and LocalToParent do indeed not exist in Entities 1.0.0-pre.15 anymore.

Kinemations throws exception if GameObject is edited inside a subscene

When editing a GameObject with an Animator inside a Subscene, the following exception occurs every time the object changes:

InvalidOperationException: You cannot call AddToConvert() during Filter()
Latios.Authoring.Systems.SmartBlobberConversionSystem`4[TBlobType,TManagedInputType,TUnmanagedConversionType,TContextType].AddToConvert (UnityEngine.GameObject gameObject, TManagedInputType& input) (at Packages/Latios-Framework/Core/Core/Authoring/SmartBlobberConversionSystem.cs:244)
Full stack trace
Latios.Authoring.Systems.SmartBlobberConversionSystem`4[TBlobType,TManagedInputType,TUnmanagedConversionType,TContextType].AddToConvert (UnityEngine.GameObject gameObject, TManagedInputType& input) (at Packages/Latios-Framework/Core/Core/Authoring/SmartBlobberConversionSystem.cs:244)
Latios.Kinemation.Authoring.Systems.MeshSkinningSmartBlobberSystem+<>c__DisplayClass2_0.<GatherInputs>b__0 (Latios.Kinemation.Authoring.SkinnedMeshConversionContext context) (at Packages/Latios-Framework/Kinemation/Authoring/ConversionSystems/MeshSkinningSmartBlobberSystem.cs:50)
Unity.Entities.EntityQueryBuilder.ForEach[T0] (Unity.Entities.EntityQueryBuilder+F_C`1[T0] action) (at Library/PackageCache/[email protected]/Unity.Entities/EntityQueryBuilder_ForEach.gen.cs:230)
Latios.Kinemation.Authoring.Systems.MeshSkinningSmartBlobberSystem.GatherInputs () (at Packages/Latios-Framework/Kinemation/Authoring/ConversionSystems/MeshSkinningSmartBlobberSystem.cs:36)
Latios.Authoring.Systems.SmartBlobberConversionSystem`4[TBlobType,TManagedInputType,TUnmanagedConversionType,TContextType].OnUpdate () (at Packages/Latios-Framework/Core/Core/Authoring/SmartBlobberConversionSystemImpl.cs:379)
Unity.Entities.ComponentSystem.Update () (at Library/PackageCache/[email protected]/Unity.Entities/ComponentSystem.cs:114)
Unity.Entities.ComponentSystemGroup.UpdateAllSystems () (at Library/PackageCache/[email protected]/Unity.Entities/ComponentSystemGroup.cs:583)
UnityEngine.DebugLogHandler:LogException(Exception, Object)
Unity.Entities.Conversion.JournalingUnityLogger:LogException(Exception, Object) (at Library/PackageCache/[email protected]/Unity.Entities.Hybrid/GameObjectConversion/JournalingUnityLogger.cs:50)
UnityEngine.Debug:LogException(Exception)
Unity.Debug:LogException(Exception) (at Library/PackageCache/[email protected]/Unity.Entities/Stubs/Unity/Debug.cs:19)
Unity.Entities.ComponentSystemGroup:UpdateAllSystems() (at Library/PackageCache/[email protected]/Unity.Entities/ComponentSystemGroup.cs:588)
Unity.Entities.ComponentSystemGroup:OnUpdate() (at Library/PackageCache/[email protected]/Unity.Entities/ComponentSystemGroup.cs:523)
Unity.Entities.ComponentSystem:Update() (at Library/PackageCache/[email protected]/Unity.Entities/ComponentSystem.cs:114)
Unity.Entities.ComponentSystemGroup:UpdateAllSystems() (at Library/PackageCache/[email protected]/Unity.Entities/ComponentSystemGroup.cs:583)
Unity.Entities.ComponentSystemGroup:OnUpdate() (at Library/PackageCache/[email protected]/Unity.Entities/ComponentSystemGroup.cs:523)
Unity.Entities.ComponentSystem:Update() (at Library/PackageCache/[email protected]/Unity.Entities/ComponentSystem.cs:114)
Unity.Entities.GameObjectConversionUtility:FinishConvertIncremental(World, Conversion) (at Library/PackageCache/[email protected]/Unity.Entities.Hybrid/GameObjectConversion/GameObjectConversionUtility.cs:194)
Unity.Entities.GameObjectConversionUtility:ConvertIncremental(World, ConversionFlags, IncrementalConversionBatch&) (at Library/PackageCache/[email protected]/Unity.Entities.Hybrid/GameObjectConversion/GameObjectConversionUtility.cs:186)
Unity.Scenes.Editor.LiveConversionDiffGenerator:Convert(ConversionFlags) (at Library/PackageCache/[email protected]/Unity.Scenes.Editor/LiveConversionDiffGenerator.cs:181)
Unity.Scenes.Editor.LiveConversionDiffGenerator:UpdateLiveConversion(Scene, Hash128, LiveConversionDiffGenerator&, LiveConversionMode, GUID, BuildConfiguration) (at Library/PackageCache/[email protected]/Unity.Scenes.Editor/LiveConversionDiffGenerator.cs:395)
Unity.Scenes.Editor.LiveConversionConnection:AddLiveConversionChangeSet(LiveConversionDiffGenerator&, Hash128, List`1, LiveConversionMode) (at Library/PackageCache/[email protected]/Unity.Scenes.Editor/LiveConversionConnection.cs:406)
Unity.Scenes.Editor.LiveConversionConnection:Update(List`1, NativeList`1, NativeList`1, LiveConversionMode) (at Library/PackageCache/[email protected]/Unity.Scenes.Editor/LiveConversionConnection.cs:371)
Unity.Scenes.Editor.EditorSubSceneLiveConversionSystem:OnUpdate() (at Library/PackageCache/[email protected]/Unity.Scenes.Editor/EditorSubSceneLiveConversionSystem.cs:51)
Unity.Entities.ComponentSystem:Update() (at Library/PackageCache/[email protected]/Unity.Entities/ComponentSystem.cs:114)
Unity.Entities.ComponentSystemGroup:UpdateAllSystems() (at Library/PackageCache/[email protected]/Unity.Entities/ComponentSystemGroup.cs:583)
Unity.Entities.ComponentSystemGroup:OnUpdate() (at Library/PackageCache/[email protected]/Unity.Entities/ComponentSystemGroup.cs:523)
Unity.Entities.ComponentSystem:Update() (at Library/PackageCache/[email protected]/Unity.Entities/ComponentSystem.cs:114)
Unity.Entities.ComponentSystemGroup:UpdateAllSystems() (at Library/PackageCache/[email protected]/Unity.Entities/ComponentSystemGroup.cs:583)
Unity.Entities.ComponentSystemGroup:OnUpdate() (at Library/PackageCache/[email protected]/Unity.Entities/ComponentSystemGroup.cs:523)
Unity.Entities.InitializationSystemGroup:OnUpdate() (at Library/PackageCache/[email protected]/Unity.Entities/DefaultWorld.cs:28)
Unity.Entities.ComponentSystem:Update() (at Library/PackageCache/[email protected]/Unity.Entities/ComponentSystem.cs:114)
Unity.Entities.DummyDelegateWrapper:TriggerUpdate() (at Library/PackageCache/[email protected]/Unity.Entities/ScriptBehaviourUpdateOrder.cs:426)

Having AddToConvert return a default SmartBlobberHandle, and the caller checking if the handle is valid gets rid of the exception, and seems to work (at least in edit mode). I didn't submit a PR for this because it still breaks if the GameObject is edited in Play Mode, and I don't fully understand if there are other reasons for this exception.

[Question] Kinemation Lost support for exposed bones. Bug or by design?

DMotion has an example for attached objects. It's done in the following way:

  • Expose the right hand bone in an optimized skeleton
  • Parent a sword object to the exposed bone in the scene

This stopped working on Latios 0.6.3. Now the sword gets moved to the root position and doesn't move with the hand.

It does work if the entire skeleton is not optimized though. So not sure if it breaking now is a bug, or if what I did was never supported in the first place.

Here's a video:

2022-12-21.11-36-25.mp4

Android Build Crash on Startup Error : Unable to load plugin `AclUnity`

Was trying to test Latios-Framework with DMotion on Android device.
Crashes on startup with error: Unable to load plugin AclUnity

08-31 20:44:21.511: E/Unity(7372): Unable to load plugin AclUnity
08-31 20:44:21.511: E/Unity(7372): Unity.Burst.BurstCompilerHelper:IsCompiledByBurst(Delegate)
08-31 20:44:21.511: E/Unity(7372): Unity.Burst.BurstCompilerHelper:.cctor()
08-31 20:44:21.511: E/Unity(7372): Unity.Burst.BurstCompiler:Compile(Object, MethodInfo, Boolean, Boolean)
08-31 20:44:21.511: E/Unity(7372): Unity.Burst.BurstCompiler:CompileILPPMethod2(RuntimeMethodHandle)
08-31 20:44:21.511: E/Unity(7372): Unity.Collections.Try_00000A44$BurstDirectCall:Constructor()
08-31 20:44:21.511: E/Unity(7372): $BurstDirectCallInitializer:Initialize()

Edit: I'm looking into compiling the ACL plugin for android platform I'll update if this fixes the problem.

Kinemation: No full support for subscenes

In general, Kinemation (or perhaps the SmartBlobber workflow) doesn't seem to support subscenes at all. Specifically, if I place a GameObject with an Animator in a subscene, the following happens:

  • The object disappears if Conversion Settings is Runtime State in Scene View
  • An exception is thrown if editing the object inside a subscene (#15)
  • A different exception is thrown if editing the object inside a subscene during PlayMode

Setting Conversion Settings to Authoring State in Scene View and avoiding changing the object in Play Mode are possible workarounds, but not ideal.

[Kinemation Error] ArgumentException: AsyncGPUReadback cannot use Temp memory as input since the result may only become available at an unspecified point in the future.

Platform: Unity 2022.3.2f1
Packages:
{
"dependencies": {
"com.unity.2d.sprite": "1.0.0",
"com.unity.2d.tilemap": "1.0.0",
"com.unity.ads": "4.4.2",
"com.unity.ai.navigation": "1.1.3",
"com.unity.analytics": "3.8.1",
"com.unity.audio.dspgraph": "0.1.0-preview.22",
"com.unity.collab-proxy": "2.0.4",
"com.unity.entities": "1.0.10",
"com.unity.entities.graphics": "1.0.10",
"com.unity.ide.rider": "3.0.21",
"com.unity.ide.visualstudio": "2.0.18",
"com.unity.ide.vscode": "1.2.5",
"com.unity.physics": "1.0.10",
"com.unity.purchasing": "4.8.0",
"com.unity.render-pipelines.universal": "14.0.8",
"com.unity.test-framework": "1.1.33",
"com.unity.textmeshpro": "3.0.6",
"com.unity.timeline": "1.7.5",
"com.unity.ugui": "1.0.0",
"com.unity.visualeffectgraph": "14.0.8",
"com.unity.visualscripting": "1.8.0",
"com.unity.xr.legacyinputhelpers": "2.1.10",
"com.unity.modules.ai": "1.0.0",
"com.unity.modules.androidjni": "1.0.0",
"com.unity.modules.animation": "1.0.0",
"com.unity.modules.assetbundle": "1.0.0",
"com.unity.modules.audio": "1.0.0",
"com.unity.modules.cloth": "1.0.0",
"com.unity.modules.director": "1.0.0",
"com.unity.modules.imageconversion": "1.0.0",
"com.unity.modules.imgui": "1.0.0",
"com.unity.modules.jsonserialize": "1.0.0",
"com.unity.modules.particlesystem": "1.0.0",
"com.unity.modules.physics": "1.0.0",
"com.unity.modules.physics2d": "1.0.0",
"com.unity.modules.screencapture": "1.0.0",
"com.unity.modules.terrain": "1.0.0",
"com.unity.modules.terrainphysics": "1.0.0",
"com.unity.modules.tilemap": "1.0.0",
"com.unity.modules.ui": "1.0.0",
"com.unity.modules.uielements": "1.0.0",
"com.unity.modules.umbra": "1.0.0",
"com.unity.modules.unityanalytics": "1.0.0",
"com.unity.modules.unitywebrequest": "1.0.0",
"com.unity.modules.unitywebrequestassetbundle": "1.0.0",
"com.unity.modules.unitywebrequestaudio": "1.0.0",
"com.unity.modules.unitywebrequesttexture": "1.0.0",
"com.unity.modules.unitywebrequestwww": "1.0.0",
"com.unity.modules.vehicles": "1.0.0",
"com.unity.modules.video": "1.0.0",
"com.unity.modules.vr": "1.0.0",
"com.unity.modules.wind": "1.0.0",
"com.unity.modules.xr": "1.0.0"
}
}

Error:

ArgumentException: AsyncGPUReadback cannot use Temp memory as input since the result may only become available at an unspecified point in the future. UnityEngine.Rendering.AsyncRequestNativeArrayData.CreateAndCheckAccess[T] (Unity.Collections.NativeArray1[T] array) (at :0)
UnityEngine.Rendering.AsyncGPUReadback.RequestIntoNativeArray[T] (Unity.Collections.NativeArray1[T]& output, UnityEngine.GraphicsBuffer src, System.Action1[T] callback) (at :0)
Latios.Kinemation.Authoring.Systems.MeshDeformDataSmartBlobberSystem.OnUpdate () (at ./Packages/com.latios.latiosframework/Kinemation/Authoring/BakingSystems/MeshDeformDataSmartBlobberSystem.cs:156)
Unity.Entities.SystemBase.Update () (at ./Library/PackageCache/[email protected]/Unity.Entities/SystemBase.cs:418)
Unity.Entities.ComponentSystemGroup.UpdateAllSystems () (at ./Library/PackageCache/[email protected]/Unity.Entities/ComponentSystemGroup.cs:735)
UnityEngine.Debug:LogException(Exception)
Unity.Debug:LogException(Exception) (at ./Library/PackageCache/[email protected]/Unity.Entities/Stubs/Unity/Debug.cs:19)
Unity.Entities.ComponentSystemGroup:UpdateAllSystems() (at ./Library/PackageCache/[email protected]/Unity.Entities/ComponentSystemGroup.cs:740)
Unity.Entities.ComponentSystemGroup:OnUpdate() (at ./Library/PackageCache/[email protected]/Unity.Entities/ComponentSystemGroup.cs:693)
Unity.Entities.SystemBase:Update() (at ./Library/PackageCache/[email protected]/Unity.Entities/SystemBase.cs:418)
Unity.Entities.ComponentSystemGroup:UpdateAllSystems() (at ./Library/PackageCache/[email protected]/Unity.Entities/ComponentSystemGroup.cs:735)
Unity.Entities.ComponentSystemGroup:OnUpdate() (at ./Library/PackageCache/[email protected]/Unity.Entities/ComponentSystemGroup.cs:693)
Unity.Entities.SystemBase:Update() (at ./Library/PackageCache/[email protected]/Unity.Entities/SystemBase.cs:418)
Unity.Entities.ComponentSystemGroup:UpdateAllSystems() (at ./Library/PackageCache/[email protected]/Unity.Entities/ComponentSystemGroup.cs:735)
Unity.Entities.ComponentSystemGroup:OnUpdate() (at ./Library/PackageCache/[email protected]/Unity.Entities/ComponentSystemGroup.cs:693)
Unity.Entities.SystemBase:Update() (at ./Library/PackageCache/[email protected]/Unity.Entities/SystemBase.cs:418)
Unity.Entities.BakingUtility:PostprocessBake(World, BakingSettings, BakingSystem) (at ./Library/PackageCache/[email protected]/Unity.Entities.Hybrid/Baking/BakingUtility.cs:148)
Unity.Entities.BakingUtility:BakeScene(World, Scene, BakingSettings, Boolean, IncrementalBakingChangeTracker) (at ./Library/PackageCache/[email protected]/Unity.Entities.Hybrid/Baking/BakingUtility.cs:85)
Unity.Scenes.Editor.LiveConversionDiffGenerator:Bake(BakingFlags) (at ./Library/PackageCache/[email protected]/Unity.Scenes.Editor/LiveConversion/LiveConversionDiffGenerator.cs:214)
Unity.Scenes.Editor.LiveConversionDiffGenerator:UpdateLiveConversion(Scene, Hash128, LiveConversionDiffGenerator&, LiveConversionMode, UInt64, GUID, IEntitiesPlayerSettings, LiveConversionChangeSet&) (at ./Library/PackageCache/[email protected]/Unity.Scenes.Editor/LiveConversion/LiveConversionDiffGenerator.cs:447)
Unity.Scenes.Editor.LiveConversionConnection:AddLiveConversionChangeSet(LiveConversionDiffGenerator&, Hash128, List1, UInt64, LiveConversionMode) (at ./Library/PackageCache/[email protected]/Unity.Scenes.Editor/LiveConversion/LiveConversionConnection.cs:417) Unity.Scenes.Editor.LiveConversionConnection:Update(List1, NativeList1, NativeList1, LiveConversionMode) (at ./Library/PackageCache/[email protected]/Unity.Scenes.Editor/LiveConversion/LiveConversionConnection.cs:382)
Unity.Scenes.Editor.EditorSubSceneLiveConversionSystem:OnUpdate() (at ./Library/PackageCache/[email protected]/Unity.Scenes.Editor/EditorSubSceneLiveConversionSystem.cs:64)
Unity.Entities.SystemBase:Update() (at ./Library/PackageCache/[email protected]/Unity.Entities/SystemBase.cs:418)
Unity.Entities.ComponentSystemGroup:UpdateAllSystems() (at ./Library/PackageCache/[email protected]/Unity.Entities/ComponentSystemGroup.cs:735)
Unity.Entities.ComponentSystemGroup:OnUpdate() (at ./Library/PackageCache/[email protected]/Unity.Entities/ComponentSystemGroup.cs:693)
Unity.Scenes.Editor.LiveConversionEditorSystemGroup:OnUpdate() (at ./Library/PackageCache/[email protected]/Unity.Scenes.Editor/LiveConversion/LiveConversionEditorSystemGroup.cs:15)
Unity.Entities.SystemBase:Update() (at ./Library/PackageCache/[email protected]/Unity.Entities/SystemBase.cs:418)
Latios.SuperSystem:UpdateManagedSystem(LatiosWorldUnmanagedImpl*, ComponentSystemBase) (at ./Packages/com.latios.latiosframework/Core/Framework/SuperSystem.cs:292)
Latios.SuperSystem:UpdateAllSystems(ComponentSystemGroup, SystemSortingTracker&) (at ./Packages/com.latios.latiosframework/Core/Framework/SuperSystem.cs:330)
Latios.Systems.LatiosInitializationSystemGroupManager:ShouldGroupUpdate(ComponentSystemGroup) (at ./Packages/com.latios.latiosframework/Core/Systems/_Essentials/LatiosWorldSystemGroups.cs:78)
Unity.Entities.ComponentSystemGroup:OnUpdate() (at ./Library/PackageCache/[email protected]/Unity.Entities/ComponentSystemGroup.cs:697)
Unity.Entities.InitializationSystemGroup:OnUpdate() (at ./Library/PackageCache/[email protected]/Unity.Entities/DefaultWorld.cs:169)
Unity.Entities.SystemBase:Update() (at ./Library/PackageCache/[email protected]/Unity.Entities/SystemBase.cs:418)
Unity.Entities.DummyDelegateWrapper:TriggerUpdate() (at ./Library/PackageCache/[email protected]/Unity.Entities/ScriptBehaviourUpdateOrder.cs:526)`

After going through the Kinemation setup i have come across this roadblock. I also loaded my project in a 2021 version of Unity and the error still persists. Any ideas?

This issue is triggered @ (at ./Packages/com.latios.latiosframework/Kinemation/Authoring/BakingSystems/MeshDeformDataSmartBlobberSystem.cs:156)

Mixed/broken results with SkinnedMeshes and Kinemation

Hi! First of all I'd like to say that I really appreciate what you've built here.

I was very excited to try Kinemation, and I'm currently past Part 2 of Getting Started. With several mixed and broken results.

Here's the repro steps:

  1. Create a new project with Unity 2020.3.30f1 (with entities, hybrid renderer and URP)
  2. Import Latios framework via git url
  3. Right Click -> Create -> Latios -> Bootstrap -> Minimal Injection World
  4. Add Kinemation.InstallKinemation to 1LatiosBootstrap.Initialize`

` public unsafe bool Initialize(string defaultWorldName)
{
var world = new LatiosWorld(defaultWorldName);
World.DefaultGameObjectInjectionWorld = world;

    var systems = new List<Type>(DefaultWorldInitialization.GetAllSystems(WorldSystemFilterFlags.Default));
    BootstrapTools.InjectSystems(systems, world, world.simulationSystemGroup);
    KinemationBootstrap.InstallKinemation(world);//add this line

`
5. Create a implementation for ICustomConversionBootstrap

[UnityEngine.Scripting.Preserve]
public class LatioConversionBootstrap : ICustomConversionBootstrap
{
    public bool InitializeConversion(World conversionWorldWithGroupsAndMappingSystems, CustomConversionSettings settings,
        ref List<Type> filteredSystems)
    {
        KinemationConversionBootstrap.InstallKinemationConversion(conversionWorldWithGroupsAndMappingSystems);
        return false;
    }
}
  1. Follow the guide on Getting Started - Part 2 to setup the model

Results are the following:

  • When using the Mannequin from Unity's Starter Assets. I get the following result (for either Humanoid or Generic)

image

  • If I check Optimize Game Objects, it works. (with a slight change of root positioning)

  • When using the X Bot from Mixamo, it is just totally broken. This character is peculiar in the sense that is has 2 skinned meshes on the same level of the hierarchy, so I totally get if this is not supported,
    image

I will try to continue the Getting Started tutorial with Unity's Mannequin + Optimized Game Objects and see how it goes, and update this post tomorrow.

FYI Compound Colliders broke in Entities 0.17

Compound collider generation seems broken with the new validation rules for Blob Assets in Entities 0.17

I don't need them, so I just commented it out :-P

Assets/Scripts/Latios/Physics/Physics/Authoring/LatiosColliderConversionSystem.cs(298,17): error ConstructBlobWithRefTypeViolation: You may not build a type CompoundColliderBlob with Construct as CompoundColliderBlob.colliders[].m_blobRef.m_data.m_Ptr is a reference or pointer. Only non-reference types are allowed in Blobs.

Related-ish:
https://forum.unity.com/threads/entities-0-17-changelog.1020202/page-2#post-6757510

Invalid memory pointer and possible memory leak

This error occurs when running as APK on Android but not when running as executable on Windows.

In our game there are about 10 entities that have an AudioSource (5 voices) attached. All play the same audio clip.

2022/11/11 15:27:00.532 31079 31102 Error Unity Invalid memory pointer was detected in ThreadsafeLinearAllocator::Deallocate!
2022/11/11 15:27:00.532 31079 31102 Error Unity Latios.Systems.SyncPointPlaybackSystem:OnUpdate()
2022/11/11 15:27:00.532 31079 31102 Error Unity Latios.SubSystemBase:OnUpdate()
2022/11/11 15:27:00.532 31079 31102 Error Unity Unity.Entities.SystemBase:Update()
2022/11/11 15:27:00.532 31079 31102 Error Unity Latios.SuperSystem:UpdateManagedSystem(ComponentSystemBase, Boolean)
2022/11/11 15:27:00.532 31079 31102 Error Unity Latios.SuperSystem:UpdateAllSystems(ComponentSystemGroup, SystemSortingTracker&)
2022/11/11 15:27:00.532 31079 31102 Error Unity Unity.Entities.ComponentSystem:Update()
2022/11/11 15:27:00.532 31079 31102 Error Unity 
2022/11/11 15:27:00.532 31079 31102 Error Unity [./Runtime/Allocator/ThreadsafeLinearAllocator.cpp line 1796587144]
2022/11/11 15:27:00.532 31079 31102 Error Unity 
2022/11/11 15:27:00.560 31079 31102 Error Unity Invalid memory pointer was detected in ThreadsafeLinearAllocator::Deallocate!
2022/11/11 15:27:00.560 31079 31102 Error Unity Latios.Systems.SyncPointPlaybackSystem:OnUpdate()
2022/11/11 15:27:00.560 31079 31102 Error Unity Latios.SubSystemBase:OnUpdate()
2022/11/11 15:27:00.560 31079 31102 Error Unity Unity.Entities.SystemBase:Update()
2022/11/11 15:27:00.560 31079 31102 Error Unity Latios.SuperSystem:UpdateManagedSystem(ComponentSystemBase, Boolean)
2022/11/11 15:27:00.560 31079 31102 Error Unity Latios.SuperSystem:UpdateAllSystems(ComponentSystemGroup, SystemSortingTracker&)
2022/11/11 15:27:00.560 31079 31102 Error Unity Unity.Entities.ComponentSystem:Update()
2022/11/11 15:27:00.560 31079 31102 Error Unity 
2022/11/11 15:27:00.560 31079 31102 Error Unity [./Runtime/Allocator/ThreadsafeLinearAllocator.cpp line 1796587144]
2022/11/11 15:27:00.560 31079 31102 Error Unity 
2022/11/11 15:27:00.588 31079 31344 Error Unity Invalid memory pointer was detected in ThreadsafeLinearAllocator::Deallocate!
2022/11/11 15:27:00.671 31079 31102 Warn Unity Internal: JobTempAlloc has allocations that are more than 4 frames old - this is not allowed and likely a leak

After some time the game freezes or crashes with the following output:

2022/11/11 15:27:01.268 31079 31401 Info Choreographer Skipped 66 frames!  The application may be doing too much work on its main thread.
2022/11/11 15:27:01.273 31079 31395 Info VrApi FPS=38/72,Prd=53ms,Tear=0,Early=0,Stale=43,VSnc=0,Lat=-1,Fov=0,CPU4/GPU=4/3,1478/490MHz,OC=FF,TA=0/0/0,SP=N/N/N,Mem=1353MHz,Free=2679MB,PLS=0,Temp=33.5C/0.0C,TW=1.20ms,App=20.68ms,GD=0.00ms,CPU&GPU=40.36ms,LCnt=1(DR72,LM0),GPU%=0.87,CPU%=0.35(W0.36),DSF=1.00,CFL=19.92/21.69
2022/11/11 15:27:01.286 31079 31102 Error CRASH *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
2022/11/11 15:27:01.286 31079 31102 Error CRASH Version '2021.3.12f1 (8af3c3e441b1)', Build type 'Development', Scripting Backend 'il2cpp', CPU 'arm64-v8a'
2022/11/11 15:27:01.286 31079 31102 Error CRASH Build fingerprint: 'oculus/hollywood/hollywood:10/QQ3A.200805.001/47421700667400000:user/release-keys'
2022/11/11 15:27:01.286 31079 31102 Error CRASH Revision: '0'
2022/11/11 15:27:01.286 31079 31102 Error CRASH ABI: 'arm64'
2022/11/11 15:27:01.286 31079 31102 Error CRASH Timestamp: 2022-11-11 15:27:01+0100
2022/11/11 15:27:01.286 31079 31102 Error CRASH pid: 31079, tid: 31102, name: UnityMain  >>> com.DefaultCompany.Scribble <<<
2022/11/11 15:27:01.286 31079 31102 Error CRASH uid: 10174
2022/11/11 15:27:01.286 31079 31102 Error CRASH signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x0
2022/11/11 15:27:01.286 31079 31102 Error CRASH Cause: null pointer dereference
2022/11/11 15:27:01.286 31079 31102 Error CRASH     x0  00000073f012e700  x1  0000000000000000  x2  00000073f012e680  x3  00000073f012e6b0
2022/11/11 15:27:01.286 31079 31102 Error CRASH     x4  00000000ffffffff  x5  000000746f030aa1  x6  0000000000000079  x7  0000000000000004
2022/11/11 15:27:01.286 31079 31102 Error CRASH     x8  0000000000000000  x9  0000007337e42000  x10 0000000000000001  x11 ffffffffffffff95
2022/11/11 15:27:01.286 31079 31102 Error CRASH     x12 00000000000864f1  x13 0000000000000000  x14 00000000000864f0  x15 00000073c668403f
2022/11/11 15:27:01.287 31079 31102 Error CRASH     x16 0000007337e59638  x17 0000007337dc7454  x18 0000000000000000  x19 00000073f012e700
2022/11/11 15:27:01.287 31079 31102 Error CRASH     x20 0000000000000000  x21 0000007337e5c4a8  x22 0000000000000006  x23 0000007337e5c440
2022/11/11 15:27:01.287 31079 31102 Error CRASH     x24 0000007337da9640  x25 000000746f517f40  x26 0000000000000001  x27 00000073808b1090
2022/11/11 15:27:01.287 31079 31102 Error CRASH     x28 0000007380136f90  x29 0000000000000000
2022/11/11 15:27:01.287 31079 31102 Error CRASH     sp  000000746b15c160  lr  0000007337da9648  pc  0000007337dc74bc
2022/11/11 15:27:01.287 31079 31102 Error CRASH 
2022/11/11 15:27:01.287 31079 31102 Error CRASH backtrace:
2022/11/11 15:27:01.287 31079 31102 Error CRASH       #00 pc 00000000001434bc  /data/app/com.DefaultCompany.Scribble-uyZtY-HCcVH_bckR0IFYTA==/lib/arm64/lib_burst_generated.so (Unity.Collections.LowLevel.Unsafe.UnsafeStream.Deallocate(Unity.Collections.LowLevel.Unsafe.UnsafeStream* this) -> void_af0ee2df0b1e2158fa5c6d394d81afa0+104) (BuildId: 6e9ac66e064c2a6475e0be037dc3c5ca69f27070)
2022/11/11 15:27:01.287 31079 31102 Error CRASH       #01 pc 0000000000125644  /data/app/com.DefaultCompany.Scribble-uyZtY-HCcVH_bckR0IFYTA==/lib/arm64/lib_burst_generated.so (ca60ab232d19a9f4380a530fa0d222cf+4) (BuildId: 6e9ac66e064c2a6475e0be037dc3c5ca69f27070)
2022/11/11 15:27:01.287 31079 31102 Error CRASH       #02 pc 00000000002cfcd4  /data/app/com.DefaultCompany.Scribble-uyZtY-HCcVH_bckR0IFYTA==/lib/arm64/libunity.so (BuildId: 21f0d69495d9b3b1ed5f8dca1a07c87f95823f9c)
2022/11/11 15:27:01.287 31079 31102 Error CRASH       #03 pc 00000000002cf004  /data/app/com.DefaultCompany.Scribble-uyZtY-HCcVH_bckR0IFYTA==/lib/arm64/libunity.so (BuildId: 21f0d69495d9b3b1ed5f8dca1a07c87f95823f9c)
2022/11/11 15:27:01.287 31079 31102 Error CRASH       #04 pc 00000000002d0d98  /data/app/com.DefaultCompany.Scribble-uyZtY-HCcVH_bckR0IFYTA==/lib/arm64/libunity.so (JobQueue::Exec(JobInfo*, long long, int, bool)+104) (BuildId: 21f0d69495d9b3b1ed5f8dca1a07c87f95823f9c)
2022/11/11 15:27:01.287 31079 31102 Error CRASH       #05 pc 00000000002d2350  /data/app/com.DefaultCompany.Scribble-uyZtY-HCcVH_bckR0IFYTA==/lib/arm64/libunity.so (JobQueue::WaitForJobGroupID(JobGroupID, JobQueue::JobQueueWorkStealMode)+632) (BuildId: 21f0d69495d9b3b1ed5f8dca1a07c87f95823f9c)
2022/11/11 15:27:01.287 31079 31102 Error CRASH       #06 pc 00000000001331b8  /data/app/com.DefaultCompany.Scribble-uyZtY-HCcVH_bckR0IFYTA==/lib/arm64/libunity.so (JobHandle_CUSTOM_ScheduleBatchedJobsAndCompleteAll(void*, int)+64) (BuildId: 21f0d69495d9b3b1ed5f8dca1a07c87f95823f9c)
2022/11/11 15:27:01.287 31079 31102 Error CRASH       #07 pc 000000000104b8a0  /data/app/com.DefaultCompany.Scribble-uyZtY-HCcVH_bckR0IFYTA==/lib/arm64/libil2cpp.so (BuildId: 34963795884e7ce488bba82eea7243048c3c1900)
2022/11/11 15:27:01.287 31079 31102 Error CRASH       #08 pc 000000000102e058  /data/app/com.DefaultCompany.Scribble-uyZtY-HCcVH_bckR0IFYTA==/lib/arm64/libil2cpp.so (BuildId: 34963795884e7ce488bba82eea7243048c3c1900)
2022/11/11 15:27:01.287 31079 31102 Error CRASH       #09 pc 00000000017170f8  /data/app/com.DefaultCompany.Scribble-uyZtY-HCcVH_bckR0IFYTA==/lib/arm64/libil2cpp.so (BuildId: 34963795884e7ce488bba82eea7243048c3c1900)
2022/11/11 15:27:01.287 31079 31102 Error CRASH       #10 pc 000000000102eac8  /data/app/com.DefaultCompany.Scribble-uyZtY-HCcVH_bckR0IFYTA==/lib/arm64/libil2cpp.so (BuildId: 34963795884e7ce488bba82eea7243048c3c1900)
2022/11/11 15:27:01.287 31079 31102 Error CRASH       #11 pc 000000000102ed50  /data/app/com.DefaultCompany.Scribble-uyZtY-HCcVH_bckR0IFYTA==/lib/arm64/libil2cpp.so (BuildId: 34963795884e7ce488bba82eea7243048c3c1900)
2022/11/11 15:27:01.287 31079 31102 Error CRASH       #12 pc 0000000001668e5c  /data/app/com.DefaultCompany.Scribble-uyZtY-HCcVH_bckR0IFYTA==/lib/arm64/libil2cpp.so (BuildId: 34963795884e7ce488bba82eea7243048c3c1900)
2022/11/11 15:27:01.287 31079 31102 Error CRASH       #13 pc 0000000000b7e4a4  /data/app/com.DefaultCompany.Scribble-uyZtY-HCcVH_bckR0IFYTA==/lib/arm64/libil2cpp.so (BuildId: 34963795884e7ce488bba82eea7243048c3c1900)
2022/11/11 15:27:01.287 31079 31102 Error CRASH       #14 pc 0000000000b7e318  /data/app/com.DefaultCompany.Scribble-uyZtY-HCcVH_bckR0IFYTA==/lib/arm64/libil2cpp.so (BuildId: 34963795884e7ce488bba82eea7243048c3c1900)
2022/11/11 15:27:01.287 31079 31102 Error CRASH       #15 pc 000000000045fdb4  /data/app/com.DefaultCompany.Scribble-uyZtY-HCcVH_bckR0IFYTA==/lib/arm64/libunity.so (scripting_method_invoke(ScriptingMethodPtr, ScriptingObjectPtr, ScriptingArguments&, ScriptingExceptionPtr*, bool)+164) (BuildId: 21f0d69495d9b3b1ed5f8dca1a07c87f95823f9c)
2022/11/11 15:27:01.287 31079 31102 Error CRASH       #16 pc 0000000000471e10  /data/app/com.DefaultCompany.Scribble-uyZtY-HCcVH_bckR0IFYTA==/lib/arm64/libunity.so (ScriptingInvocation::Invoke(ScriptingExceptionPtr*, bool)+156) (BuildId: 21f0d69495d9b3b1ed5f8dca1a07c87f95823f9c)
2022/11/11 15:27:01.287 31079 31102 Error CRASH       #17 pc 00000000002ed3bc  /data/app/com.DefaultCompany.Scribble-uyZtY-HCcVH_bckR0IFYTA==/lib/arm64/libunity.so (ExecutePlayerLoop(NativePlayerLoopSystem*)+276) (BuildId: 21f0d69495d9b3b1ed5f8dca1a07c87f95823f9c)
2022/11/11 15:27:01.287 31079 31102 Error CRASH       #18 pc 00000000002ed344  /data/app/com.DefaultCompany.Scribble-uyZtY-HCcVH_bckR0IFYTA==/lib/arm64/libunity.so (ExecutePlayerLoop(NativePlayerLoopSystem*)+156) (BuildId: 21f0d69495d9b3b1ed5f8dca1a07c87f95823f9c)
2022/11/11 15:27:01.287 31079 31102 Error CRASH       #19 pc 00000000002ed5e4  /data/app/com.DefaultCompany.Scribble-uyZtY-HCcVH_bckR0IFYTA==/lib/arm64/libunity.so (PlayerLoop()+312) (BuildId: 21f0d69495d9b3b1ed5f8dca1a07c87f95823f9c)
2022/11/11 15:27:01.287 31079 31102 Error CRASH       #20 pc 00000000005060ac  /data/app/com.DefaultCompany.Scribble-uyZtY-HCcVH_bckR0IFYTA==/lib/arm64/libunity.so (UnityPlayerLoop()+824) (BuildId: 21f0d69495d9b3b1ed5f8dca1a07c87f95823f9c)
2022/11/11 15:27:01.287 31079 31102 Error CRASH       #21 pc 0000000000538598  /data/app/com.DefaultCompany.Scribble-uyZtY-HCcVH_bckR0IFYTA==/lib/arm64/libunity.so (nativeRender(_JNIEnv*, _jobject*)+72) (BuildId: 21f0d69495d9b3b1ed5f8dca1a07c87f95823f9c)
2022/11/11 15:27:01.287 31079 31102 Error CRASH       #22 pc 0000000000142950  /apex/com.android.runtime/lib64/libart.so (art_quick_alloc_array_resolved_region_tlab+112) (BuildId: 21503a17cc72c012bec3947a961f2d93)
2022/11/11 15:27:01.408 31079 31102 Error CRASH Tombstone written to: /storage/emulated/0/Android/data/com.DefaultCompany.Scribble/files/tombstone_00
0001/01/01 00:00:00.000 -1 -1 Info  --------- beginning of crash
2022/11/11 15:27:01.409 31079 31102 Error AndroidRuntime FATAL EXCEPTION: UnityMain
2022/11/11 15:27:01.409 31079 31102 Error AndroidRuntime Process: com.DefaultCompany.Scribble, PID: 31079
2022/11/11 15:27:01.409 31079 31102 Error AndroidRuntime java.lang.Error: *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
2022/11/11 15:27:01.409 31079 31102 Error AndroidRuntime Version '2021.3.12f1 (8af3c3e441b1)', Build type 'Development', Scripting Backend 'il2cpp', CPU 'arm64-v8a'
2022/11/11 15:27:01.409 31079 31102 Error AndroidRuntime Build fingerprint: 'oculus/hollywood/hollywood:10/QQ3A.200805.001/47421700667400000:user/release-keys'
2022/11/11 15:27:01.409 31079 31102 Error AndroidRuntime Revision: '0'
2022/11/11 15:27:01.409 31079 31102 Error AndroidRuntime ABI: 'arm64'
2022/11/11 15:27:01.409 31079 31102 Error AndroidRuntime Timestamp: 2022-11-11 15:27:01+0100
2022/11/11 15:27:01.409 31079 31102 Error AndroidRuntime pid: 31079, tid: 31102, name: UnityMain  >>> com.DefaultCompany.Scribble <<<
2022/11/11 15:27:01.409 31079 31102 Error AndroidRuntime uid: 10174
2022/11/11 15:27:01.409 31079 31102 Error AndroidRuntime signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x0
2022/11/11 15:27:01.409 31079 31102 Error AndroidRuntime Cause: null pointer dereference
2022/11/11 15:27:01.409 31079 31102 Error AndroidRuntime     x0  00000073f012e700  x1  0000000000000000  x2  00000073f012e680  x3  00000073f012e6b0
2022/11/11 15:27:01.409 31079 31102 Error AndroidRuntime     x4  00000000ffffffff  x5  000000746f030aa1  x6  0000000000000079  x7  0000000000000004
2022/11/11 15:27:01.409 31079 31102 Error AndroidRuntime     x8  0000000000000000  x9  0000007337e42000  x10 0000000000000001  x11 ffffffffffffff95
2022/11/11 15:27:01.409 31079 31102 Error AndroidRuntime     x12 00000000000864f1  x13 0000000000000000  x14 00000000000864f0  x15 00000073c668403f
2022/11/11 15:27:01.409 31079 31102 Error AndroidRuntime     x16 0000007337e59638  x17 0000007337dc7454  x18 0000000000000000  x19 00000073f012e700
2022/11/11 15:27:01.409 31079 31102 Error AndroidRuntime     x20 0000000000000000  x21 0000007337e5c4a8  x22 0000000000000006  x23 0000007337e5c440
2022/11/11 15:27:01.409 31079 31102 Error AndroidRuntime     x24 0000007337da9640  x25 000000746f517f40  x26 0000000000000001  x27 00000073808b1090
2022/11/11 15:27:01.409 31079 31102 Error AndroidRuntime     x28 0000007380136f90  x29 0000000000000000
2022/11/11 15:27:01.409 31079 31102 Error AndroidRuntime     sp  000000746b15c160  lr  0000007337da9648  pc  0000007337dc74bc
2022/11/11 15:27:01.409 31079 31102 Error AndroidRuntime 
2022/11/11 15:27:01.409 31079 31102 Error AndroidRuntime backtrace:
2022/11/11 15:27:01.409 31079 31102 Error AndroidRuntime       #00 pc 00000000001434bc  /data/app/com.DefaultCompany.Scribble-uyZtY-HCcVH_bckR0IFYTA==/lib/arm64/lib_burst_generated.so (Unity.Collections.LowLevel.Unsafe.UnsafeStream.Deallocate(Unity.Collections.LowLevel.Unsafe.UnsafeStream* this) -> void_af0ee2df0b1e2158fa5c6d394d81afa0+104) (BuildId: 6e9ac66e064c2a6475e0be037dc3c5ca69f27070)
2022/11/11 15:27:01.409 31079 31102 Error AndroidRuntime       #01 pc 0000000000125644  /data/app/com.DefaultCompany.Scribble-uyZtY-HCcVH_bckR0IFYTA==/lib/arm64/lib_burst_generated.so (ca60ab232d19a9f4380a530fa0d222cf+4) (BuildId: 6e9ac66e064c2a6475e0be037dc3c5ca69f27070)
2022/11/11 15:27:01.409 31079 31102 Error AndroidRuntime       #02 pc 00000000002cfcd4  /data/app/com.DefaultCompany.Scribble-uyZtY-HCcVH_bckR0IFYTA==/lib/arm64/libunity.so (BuildId: 21f0d69495d9b3b1ed5f8dca1a07c87f95823f9c)
2022/11/11 15:27:01.409 31079 31102 Error AndroidRuntime       #03 pc 00000000002cf004  /data/app/com.DefaultCompany.Scribble-uyZtY-HCcVH_bckR0IFYTA==/lib/arm64/libunity.so (BuildId: 21f0d69495d9b3b1ed5f8dca1a07c87f95823f9c)
2022/11/11 15:27:01.409 31079 31102 Error AndroidRuntime       #04 pc 00000000002d0d98  /data/app/com.DefaultCompany.Scribble-uyZtY-HCcVH_bckR0IFYTA==/lib/arm64/libunity.so (JobQueue::Exec(JobInfo*, long long, int, bool)+104) (BuildId: 21f0d69495d9b3b1ed5f8dca1a07c87f95823f9c)
2022/11/11 15:27:01.409 31079 31102 Error AndroidRuntime       #05 pc 00000000002d2350  /data/app/com.DefaultCompany.Scribble-uyZtY-HCcVH_bckR0IFYTA==/lib/arm64/libunity.so (JobQueue::WaitForJobGroupID(JobGroupID, JobQueue::JobQueueWorkStealMode)+632) (BuildId: 21f0d69495d9b3b1ed5f8dca1a07c87f95823f9c)
2022/11/11 15:27:01.409 31079 31102 Error AndroidRuntime       #06 pc 00000000001331b8  /data/app/com.DefaultCompany.Scribble-uyZtY-HCcVH_bckR0IFYTA==/lib/arm64/libunity.so (JobHandle_CUSTOM_ScheduleBatchedJobsAndCompleteAll(void*, int)+64) (BuildId: 21f0d69495d9b3b1ed5f8dca1a07c87f95823f9c)
2022/11/11 15:27:01.409 31079 31102 Error AndroidRuntime       #07 pc 000000000104b8a0  /data/app/com.DefaultCompany.Scribble-uyZtY-HCcVH_bckR0IFYTA==/lib/arm64/libil2cpp.so (BuildId: 34963795884e7ce488bba82eea7243048c3c1900)
2022/11/11 15:27:01.409 31079 31102 Error AndroidRuntime       #08 pc 000000000102e058  /data/app/com.DefaultCompany.Scribble-uyZtY-HCcVH_bckR0IFYTA==/lib/arm64/libil2cpp.so (BuildId: 34963795884e7ce488bba82eea7243048c3c1900)
2022/11/11 15:27:01.409 31079 31102 Error AndroidRuntime       #09 pc 00000000017170f8  /data/app/com.DefaultCompany.Scribble-uyZtY-HCcVH_bckR0IFYTA==/lib/arm64/libil2cpp.so (BuildId: 34963795884e7ce488bba82eea7243048c3c1900)
2022/11/11 15:27:01.409 31079 31102 Error AndroidRuntime       #10 pc 000000000102eac8  /data/app/com.DefaultCompany.Scribble-uyZtY-HCcVH_bckR0IFYTA==/lib/arm64/libil2cpp.so (BuildId: 34963795884e7ce488bba82eea7243048c3c1900)
2022/11/11 15:27:01.409 31079 31102 Error AndroidRuntime       #11 pc 000000000102ed50  /data/app/com.DefaultCompany.Scribble-uyZtY-HCcVH_bckR0IFYTA==/lib/arm64/libil2cpp.so (BuildId: 34963795884e7ce488bba82eea7243048c3c1900)
2022/11/11 15:27:01.409 31079 31102 Error AndroidRuntime       #12 pc 0000000001668e5c  /data/app/com.DefaultCompany.Scribble-uyZtY-HCcVH_bckR0IFYTA==/lib/arm64/libil2cpp.so (BuildId: 34963795884e7ce488bba82eea7243048c3c1900)
2022/11/11 15:27:01.409 31079 31102 Error AndroidRuntime       #13 pc 0000000000b7e4a4  /data/app/com.DefaultCompany.Scribble-uyZtY-HCcVH_bckR0IFYTA==/lib/arm64/libil2cpp.so (BuildId: 34963795884e7ce488bba82eea7243048c3c1900)
2022/11/11 15:27:01.409 31079 31102 Error AndroidRuntime       #14 pc 0000000000b7e318  /data/app/com.DefaultCompany.Scribble-uyZtY-HCcVH_bckR0IFYTA==/lib/arm64/libil2cpp.so (BuildId: 34963795884e7ce488bba82eea7243048c3c1900)
2022/11/11 15:27:01.409 31079 31102 Error AndroidRuntime       #15 pc 000000000045fdb4  /data/app/com.DefaultCompany.Scribble-uyZtY-HCcVH_bckR0IFYTA==/lib/arm64/libunity.so (scripting_method_invoke(ScriptingMethodPtr, ScriptingObjectPtr, ScriptingArguments&, ScriptingExceptionPtr*, bool)+164) (BuildId: 21f0d69495d9b3b1ed5f8dca1a07c87f95823f9c)
2022/11/11 15:27:01.409 31079 31102 Error AndroidRuntime       #16 pc 0000000000471e10  /data/app/com.DefaultCompany.Scribble-uyZtY-HCcVH_bckR0IFYTA==/lib/arm64/libunity.so (ScriptingInvocation::Invoke(ScriptingExceptionPtr*, bool)+156) (BuildId: 21f0d69495d9b3b1ed5f8dca1a07c87f95823f9c)
2022/11/11 15:27:01.409 31079 31102 Error AndroidRuntime       #17 pc 00000000002ed3bc  /data/app/com.DefaultCompany.Scribble-uyZtY-HCcVH_bckR0IFYTA==/lib/arm64/libunity.so (ExecutePlayerLoop(NativePlayerLoopSystem*)+276) (BuildId: 21f0d69495d9b3b1ed5f8dca1a07c87f95823f9c)
2022/11/11 15:27:01.409 31079 31102 Error AndroidRuntime       #18 pc 00000000002ed344  /data/app/com.DefaultCompany.Scribble-uyZtY-HCcVH_bckR0IFYTA==/lib/arm64/libunity.so (ExecutePlayerLoop(NativePlayerLoopSystem*)+156) (BuildId: 21f0d69495d9b3b1ed5f8dca1a07c87f95823f9c)
2022/11/11 15:27:01.409 31079 31102 Error AndroidRuntime       #19 pc 00000000002ed5e4  /data/app/com.DefaultCompany.Scribble-uyZtY-HCcVH_bckR0IFYTA==/lib/arm64/libunity.so (PlayerLoop()+312) (BuildId: 21f0d69495d9b3b1ed5f8dca1a07c87f95823f9c)
2022/11/11 15:27:01.409 31079 31102 Error AndroidRuntime       #20 pc 00000000005060ac  /data/app/com.DefaultCompany.Scribble-uyZtY-HCcVH_bckR0IFYTA==/lib/arm64/libunity.so (UnityPlayerLoop()+824) (BuildId: 21f0d69495d9b3b1ed5f8dca1a07c87f95823f9c)
2022/11/11 15:27:01.409 31079 31102 Error AndroidRuntime       #21 pc 0000000000538598  /data/app/com.DefaultCompany.Scribble-uyZtY-HCcVH_bckR0IFYTA==/lib/arm64/libunity.so (nativeRender(_JNIEnv*, _jobject*)+72) (BuildId: 21f0d69495d9b3b1ed5f8dca1a07c87f95823f9c)
2022/11/11 15:27:01.409 31079 31102 Error AndroidRuntime       #22 pc 0000000000142950  /apex/com.android.runtime/lib64/libart.so (art_quick_alloc_array_resolved_region_tlab+112) (BuildId: 21503a17cc72c012bec3947a961f2d93)
2022/11/11 15:27:01.409 31079 31102 Error AndroidRuntime 
2022/11/11 15:27:01.409 31079 31102 Error AndroidRuntime 	at lib_burst_generated.Unity.Collections.LowLevel.Unsafe.UnsafeStream.Deallocate(Unity.Collections.LowLevel.Unsafe.UnsafeStream* this) -> void_af0ee2df0b1e2158fa5c6d394d81afa0(Unity.Collections.LowLevel.Unsafe.UnsafeStream.Deallocate:104)
2022/11/11 15:27:01.409 31079 31102 Error AndroidRuntime 	at lib_burst_generated.ca60ab232d19a9f4380a530fa0d222cf(ca60ab232d19a9f4380a530fa0d222cf:4)
2022/11/11 15:27:01.409 31079 31102 Error AndroidRuntime 	at libunity.0x2cfcd4(Native Method)
2022/11/11 15:27:01.409 31079 31102 Error AndroidRuntime 	at libunity.0x2cf004(Native Method)
2022/11/11 15:27:01.409 31079 31102 Error AndroidRuntime 	at libunity.JobQueue::Exec(JobInfo*, long long, int, bool)(Exec:104)
2022/11/11 15:27:01.409 31079 31102 Error AndroidRuntime 	at libunity.JobQueue::WaitForJobGroupID(JobGroupID, JobQueue::JobQueueWorkStealMode)(WaitForJobGroupID:632)
2022/11/11 15:27:01.409 31079 31102 Error AndroidRuntime 	at libunity.JobHandle_CUSTOM_ScheduleBatchedJobsAndCompleteAll(void*, int)(JobHandle_CUSTOM_ScheduleBatchedJobsAndCompleteAll:64)
2022/11/11 15:27:01.409 31079 31102 Error AndroidRuntime 	at libil2cpp.0x104b8a0(Native Method)
2022/11/11 15:27:01.409 31079 31102 Error AndroidRuntime 	at libil2cpp.0x102e058(Native Method)
2022/11/11 15:27:01.409 31079 31102 Error AndroidRuntime 	at libil2cpp.0x17170f8(Native Method)
2022/11/11 15:27:01.409 31079 31102 Error AndroidRuntime 	at libil2cpp.0x102eac8(Native Method)
2022/11/11 15:27:01.409 31079 31102 Error AndroidRuntime 	at libil2cpp.0x102ed50(Native Method)
2022/11/11 15:27:01.409 31079 31102 Error AndroidRuntime 	at libil2cpp.0x1668e5c(Native Method)
2022/11/11 15:27:01.409 31079 31102 Error AndroidRuntime 	at libil2cpp.0xb7e4a4(Native Method)
2022/11/11 15:27:01.409 31079 31102 Error AndroidRuntime 	at libil2cpp.0xb7e318(Native Method)
2022/11/11 15:27:01.409 31079 31102 Error AndroidRuntime 	at libunity.scripting_method_invoke(ScriptingMethodPtr, ScriptingObjectPtr, ScriptingArguments&, ScriptingExceptionPtr*, bool)(scripting_method_invoke:164)
2022/11/11 15:27:01.409 31079 31102 Error AndroidRuntime 	at libunity.ScriptingInvocation::Invoke(ScriptingExceptionPtr*, bool)(Invoke:156)
2022/11/11 15:27:01.409 31079 31102 Error AndroidRuntime 	at libunity.ExecutePlayerLoop(NativePlayerLoopSystem*)(ExecutePlayerLoop:276)
2022/11/11 15:27:01.409 31079 31102 Error AndroidRuntime 	at libunity.ExecutePlayerLoop(NativePlayerLoopSystem*)(ExecutePlayerLoop:156)
2022/11/11 15:27:01.409 31079 31102 Error AndroidRuntime 	at libunity.PlayerLoop()(PlayerLoop:312)
2022/11/11 15:27:01.409 31079 31102 Error AndroidRuntime 	at libunity.UnityPlayerLoop()(UnityPlayerLoop:824)
2022/11/11 15:27:01.409 31079 31102 Error AndroidRuntime 	at libunity.nativeRender(_JNIEnv*, _jobject*)(nativeRender:72)
2022/11/11 15:27:01.409 31079 31102 Error AndroidRuntime 	at libart.art_quick_alloc_array_resolved_region_tlab(art_quick_alloc_array_resolved_region_tlab:112)
2022/11/11 15:27:01.430 31079 31079 Debug ActivityLifecycleListener onActivityPaused
2022/11/11 15:27:01.431 31079 31079 Info OpenXR nativeOnActivityPaused
2022/11/11 15:27:01.432 31079 31079 Info Unity onPause
2022/11/11 15:27:01.479 31079 31102 Info Process Sending signal. PID: 31079 SIG: 9

We digged into SyncPointPlaybackSystem:OnUpdate(), but we couldn't spot the cause.

  • Unity 2021.3.12f1
  • Entities 0.51.1-preview.21
  • Latios 0.5.8 (embedded, without Kinemation)

BatchEditorRenderData could not be found

I'm trying to get Latios up and running on 2022.2.9f1 and I'm getting 4 errors about 'BatchEditorRenderData' could not be found. Searching the Unity docs doesn't yield anything pertaining to that. What am I missing?

World/Scene "ScopedEntity"

Re: Feedback Request: I am looking for a better term than โ€œglobalโ€ to describe these entities. โ€œWorldโ€ + โ€œGlobalโ€ sounds redundant and simultaneously confusing when the โ€œSceneโ€ variant comes into play.

What is common in LOB software development (At least in the .NET world) is for IoC containers to have scopes such as:

  • SingletonScope
  • ContainerScope
  • RequestScope
  • TransientScope

So you could potentially rename that.

P.B. wasn't sure where you'd prefer the feedback, her or unity forums. Feel free to comment + close!

[Critical - 0.6.3]: Having more than 1 skinned mesh of the same type in a Subscene breaks Kinemation and leads to memory leak

When converting DMotion to 0.6.3, I encountered the following bug. Here are the repro steps:

  • Setup: Kinemation systems injected via LatiosBootstrap, SkinnedMesh set up for Kinemation
  • Create an empty subscene
  • Drag the skinned mesh with an Animator to the subscene.
  • Go into play mode - nothing breaks
  • Drag another of the same skinned mesh to the subscene
  • Go into play mode - skinning is broken, multiple exceptions are thrown
  • Exit play mode - Memory leak related exceptions while still in edit mode, requiring engine restart
2022-12-21.11-02-46.mp4
Initial error
Skinned Mesh Entity Unity.Entities.Entity has incompatible MeshSkinningBlob and MeshBindingPathsBlob. The following should be equal: Bindposes: 39, Paths: 29
0x00007ff66763e58a (Unity) DefaultBurstRuntimeLogCallback
0x00007ff666d317ba (Unity) BurstCompilerService_CUSTOM_RuntimeLog
0x00007fffca270e59 (b82a3adace99d58aed9d6965941cd48) Latios.Kinemation.Systems.SkeletonMeshBindingReactiveSystem/FindNewMeshesJob::Latios.Kinemation.Systems.SkeletonMeshBindingReactiveSystem.FindNewMeshesJob.Execute (at D:/dev/src/github.com/gabrieldechichi/DMotionSandbox2022/Packages/Latios-Framework/Kinemation/Systems/SyncPoint/SkeletonMeshBindingReactiveSystem.cs:717)
0x00007fffca2733c1 (b82a3adace99d58aed9d6965941cd48) Unity.Entities.JobChunkExtensions.JobChunkProducer`1<Latios.Kinemation.Systems.SkeletonMeshBindingReactiveSystem.FindNewMeshesJob>.ExecuteInternal (at D:/dev/src/github.com/gabrieldechichi/DMotionSandbox2022/Library/PackageCache/[email protected]/Unity.Entities/IJobChunk.cs:397)
0x00007fffca26e131 (b82a3adace99d58aed9d6965941cd48) 34ef909325dbf956d9c434ffcfe62d0f
0x00007ff66791a620 (Unity) ExecuteJob
0x00007ff66791a984 (Unity) ExecuteJobCopyData
0x00007ff66791b6bf (Unity) ForwardJobForEachToManaged
0x00007ff66791817a (Unity) ujob_execute_job
0x00007ff6679179c7 (Unity) lane_guts
0x00007ff667919874 (Unity) worker_thread_routine
0x00007ff667b30d97 (Unity) Thread::RunThreadWrapper
0x00007ff84bab55a0 (KERNEL32) BaseThreadInitThunk
0x00007ff84dc2485b (ntdll) RtlUserThreadStart
Following errors
InvalidOperationException: The BlobAssetReference is not valid. Likely it has already been unloaded or released.
Unity.Entities.BlobAssetReferenceData.ValidateNonBurst () (at Library/PackageCache/[email protected]/Unity.Entities/Blobs.cs:260)
Unity.Entities.BlobAssetReferenceData.ValidateNotNull () (at Library/PackageCache/[email protected]/Unity.Entities/Blobs.cs:277)
Unity.Entities.BlobAssetReferenceData.Dispose () (at Library/PackageCache/[email protected]/Unity.Entities/Blobs.cs:301)
Unity.Entities.BlobAssetStore.ResetCache (System.Boolean disposeAllBlobAssetReference) (at Library/PackageCache/[email protected]/Unity.Entities.Hybrid/GameObjectConversion/BlobAssetStore.cs:78)
Unity.Entities.BlobAssetStore.Dispose () (at Library/PackageCache/[email protected]/Unity.Entities.Hybrid/GameObjectConversion/BlobAssetStore.cs:477)
Unity.Scenes.Editor.LiveConversionDiffGenerator.Dispose () (at Library/PackageCache/[email protected]/Unity.Scenes.Editor/LiveConversion/LiveConversionDiffGenerator.cs:153)
Unity.Scenes.Editor.LiveConversionConnection.Dispose () (at Library/PackageCache/[email protected]/Unity.Scenes.Editor/LiveConversion/LiveConversionConnection.cs:76)
Unity.Scenes.Editor.EditorSubSceneLiveConversionSystem.OnDestroy () (at Library/PackageCache/[email protected]/Unity.Scenes.Editor/EditorSubSceneLiveConversionSystem.cs:156)
Unity.Entities.ComponentSystemBase.OnDestroy_Internal () (at Library/PackageCache/[email protected]/Unity.Entities/ComponentSystemBase.cs:306)
Unity.Entities.World.DestroyAllSystemsAndLogException () (at Library/PackageCache/[email protected]/Unity.Entities/World.cs:1007)
UnityEngine.Debug:LogException(Exception)
Unity.Debug:LogException(Exception) (at Library/PackageCache/[email protected]/Unity.Entities/Stubs/Unity/Debug.cs:19)
Unity.Entities.World:DestroyAllSystemsAndLogException() (at Library/PackageCache/[email protected]/Unity.Entities/World.cs:1019)
Unity.Entities.World:Dispose() (at Library/PackageCache/[email protected]/Unity.Entities/World.cs:306)
Unity.Entities.World:DisposeAllWorlds() (at Library/PackageCache/[email protected]/Unity.Entities/World.cs:332)
Unity.Entities.DefaultWorldInitialization:DomainUnloadOrPlayModeChangeShutdown() (at Library/PackageCache/[email protected]/Unity.Entities/DefaultWorldInitialization.cs:101)
Unity.Entities.DefaultWorldInitializationProxy:OnDisable() (at Library/PackageCache/[email protected]/Unity.Entities/DefaultWorldInitializationProxy.cs:29)
InvalidOperationException: EntityQuery cannot be disposed. Note that queries created with GetEntityQuery() should not be manually disposed; they are owned by the system, and will be destroyed along with the system itself.
Unity.Entities.EntityQueryImpl.Dispose () (at Library/PackageCache/[email protected]/Unity.Entities/Iterators/EntityQuery.cs:521)
Unity.Entities.EntityDataAccess.Dispose () (at Library/PackageCache/[email protected]/Unity.Entities/EntityDataAccess.cs:317)
Unity.Entities.EntityManager.DestroyInstance () (at Library/PackageCache/[email protected]/Unity.Entities/EntityManager.cs:280)
Unity.Entities.WorldUnmanagedImpl.Dispose () (at Library/PackageCache/[email protected]/Unity.Entities/WorldUnmanaged.cs:307)
Unity.Entities.WorldUnmanaged.Dispose () (at Library/PackageCache/[email protected]/Unity.Entities/WorldUnmanaged.cs:1025)
Unity.Entities.World.Dispose () (at Library/PackageCache/[email protected]/Unity.Entities/World.cs:320)
Unity.Entities.World.DisposeAllWorlds () (at Library/PackageCache/[email protected]/Unity.Entities/World.cs:332)
Unity.Entities.DefaultWorldInitialization.DomainUnloadOrPlayModeChangeShutdown () (at Library/PackageCache/[email protected]/Unity.Entities/DefaultWorldInitialization.cs:101)
Unity.Entities.DefaultWorldInitializationProxy.OnDisable () (at Library/PackageCache/[email protected]/Unity.Entities/DefaultWorldInitializationProxy.cs:29)
IndexOutOfRangeException: Index -1 must be positive.
Unity.Collections.CollectionHelper.CheckIndexInRange (System.Int32 index, System.Int32 length) (at Library/PackageCache/[email protected]/Unity.Collections/CollectionHelper.cs:258)
Unity.Collections.LowLevel.Unsafe.UnsafeList`1[T].ElementAt (System.Int32 index) (at Library/PackageCache/[email protected]/Unity.Collections/UnsafeList.cs:145)
Unity.Rendering.ThreadLocalAllocator.ThreadAllocator (System.Int32 threadIndex) (at Library/PackageCache/[email protected]/Unity.Entities.Graphics/DrawCommandGeneration.cs:199)
Unity.Rendering.ThreadLocalAllocator.get_GeneralAllocator () (at Library/PackageCache/[email protected]/Unity.Entities.Graphics/DrawCommandGeneration.cs:204)
Latios.Kinemation.Systems.LatiosEntitiesGraphicsSystem.OnPerformCulling (UnityEngine.Rendering.BatchRendererGroup rendererGroup, UnityEngine.Rendering.BatchCullingContext batchCullingContext, UnityEngine.Rendering.BatchCullingOutput cullingOutput, System.IntPtr userContext) (at Packages/Latios-Framework/Kinemation/Systems/LatiosEntitiesGraphicsSystem.cs:505)
UnityEngine.Rendering.BatchRendererGroup.InvokeOnPerformCulling (UnityEngine.Rendering.BatchRendererGroup group, UnityEngine.Rendering.BatchRendererCullingOutput& context, UnityEngine.Rendering.LODParameters& lodParameters, System.IntPtr userContext) (at <07b4fb2b5af74e479c2c24afaabbcaa4>:0)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr, Boolean&)

How to destory child entity in valid? Error "Child entity not in parent " thorw when I destory child Entity.

code

  var childs = GetBuffer<Child>(e);
  var viewEntity = childs[0].Value;
  //childs.RemoveAt(0); 
  ecbSysEnd.DestroyEntity(viewEntity);

error

[Exception] InvalidOperationException: Child entity not in parent
(wrapper native-to-managed) Latios.Systems.ImprovedParentSystem.__codegen__OnUpdate(intptr,intptr)
(wrapper native-to-managed) Unity.Entities.SystemBase.UnmanagedUpdate(intptr,Unity.Entities.SystemDependencySafetyUtility/SafetyErrorDetails&)
ImprovedParentSystem.FindChildIndex() at E:/github/Latios-Framework/Core/Core/Systems/Transforms/ImprovedTransforms/ImprovedParentSystem.cs:36

ImprovedParentSystem.RemoveChildFromParent() at E:/github/Latios-Framework/Core/Core/Systems/Transforms/ImprovedTransforms/ImprovedParentSystem.cs:45

ImprovedParentSystem.UpdateRemoveParents() at E:/github/Latios-Framework/Core/Core/Systems/Transforms/ImprovedTransforms/ImprovedParentSystem.cs:301

ImprovedParentSystem.OnUpdate() at E:/github/Latios-Framework/Core/Core/Systems/Transforms/ImprovedTransforms/ImprovedParentSystem.cs:451

ImprovedParentSystem.__codegen__OnUpdate$BurstManaged() at <c9de3a9a1c834ee08413bf62ec1580bd>:0

ImprovedParentSystem+__codegen__OnUpdate_00000411$BurstDirectCall.Invoke() at <c9de3a9a1c834ee08413bf62ec1580bd>:0

ImprovedParentSystem.__codegen__OnUpdate()

SystemBaseRegistry.ForwardToManaged() at Library/PackageCache/[email protected]/Unity.Entities/SystemBaseRegistry.cs:336

SystemBaseRegistry.CallForwardingFunction() at Library/PackageCache/[email protected]/Unity.Entities/SystemBaseRegistry.cs:327

SystemBaseRegistry.CallOnUpdate() at Library/PackageCache/[email protected]/Unity.Entities/SystemBaseRegistry.cs:348

SystemBase.UnmanagedUpdate$BurstManaged() at Library/PackageCache/[email protected]/Unity.Entities/SystemBase.cs:449

SystemBase+UnmanagedUpdate_0000109C$BurstDirectCall.Invoke() at <4a002ede4dd84a19bcbb6a634d0dccce>:0

SystemBase.UnmanagedUpdate() at Library/PackageCache/[email protected]/Unity.Entities/SystemBase.cs:430

ComponentSystemGroup.UpdateSystem() at Library/PackageCache/[email protected]/Unity.Entities/ComponentSystemGroup.cs:541

ComponentSystemGroup.UpdateAllSystems() at Library/PackageCache/[email protected]/Unity.Entities/ComponentSystemGroup.cs:577

Debug.LogException()

Debug.LogException() at Library/PackageCache/[email protected]/Unity.Entities/Stubs/Unity/Debug.cs:19

ComponentSystemGroup.UpdateAllSystems() at Library/PackageCache/[email protected]/Unity.Entities/ComponentSystemGroup.cs:588

ComponentSystemGroup.OnUpdate() at Library/PackageCache/[email protected]/Unity.Entities/ComponentSystemGroup.cs:523

ComponentSystem.Update() at Library/PackageCache/[email protected]/Unity.Entities/ComponentSystem.cs:114

SuperSystem.UpdateManagedSystem() at E:/github/Latios-Framework/Core/Core/Framework/SuperSystem.cs:243

SuperSystem.UpdateAllSystems() at E:/github/Latios-Framework/Core/Core/Framework/SuperSystem.cs:284

SuperSystem.DoSuperSystemUpdate() at E:/github/Latios-Framework/Core/Core/Framework/SuperSystem.cs:318

LatiosSimulationSystemGroup.OnUpdate() at E:/github/Latios-Framework/Core/Core/Framework/LatiosWorld.cs:386

ComponentSystem.Update() at Library/PackageCache/[email protected]/Unity.Entities/ComponentSystem.cs:114

Unity.Entities.DummyDelegateWrapper.TriggerUpdate() at Library/PackageCache/[email protected]/Unity.Entities/ScriptBehaviourUpdateOrder.cs:426

Question: Can the framework be used in conjunction with Unity Dots Physics/Havok?

I have been following the development of this framework for a while, and I finally got the time to start seeing the innards of the framework :).

My question is , after looking at the new transform system, it seems like this will be 100% incompatible with the Physics System present on Unity.

Rigid body interaction is a big part of one of the projects, and I would love to know if there is a way to get it to work side by side with framework, or do you think the time would be better invested in actually writing one from the ground up? There are some OSS options that one could use as inspiration (rapier from RUST comes to mind for example as base line).

Kinemation: Certain models rendering twice as large

The assets I'm using which I'm running into this issue with are unfortunately paid so I will try to go into detail as much as I can though I'm not sure how this could be replicated without the assets. I downloaded a modular character pack which has many pieces and to test Kinemation I tried rendering them all together, problem is many of them are showing up different sizes than others, it looks very similar to the issue here. This issue is the same when I render the parts individually, some are showing up twice as large as desired.

Error
It's a little bit difficult to see in this picture but you can see little (normal sized) arms sticking out of the leg area and small legs between the large legs.

I'm using the standard bootstrap and all the standard configurations detailed in part one of the tutorial.

I've tried going into blender and applying transform so I'm pretty sure it's not simply an issue of the models being scaled incorrectly. The armature looks nice, doesn't appear to be any errors there, and it all animates nicely in the GameObject workflow. I've scoured this model trying to figure out what might be causing some parts to render twice as large and couldn't find much of note.

Is there a good way I could go about debugging the generated skeleton and get more info for this issue?

[Minor] 'Latios.Systems.ImprovedLocalToParentSystem' creates a type handle during OnUpdate

'Latios.Systems.ImprovedLocalToParentSystem' creates a type handle during OnUpdate. Please create the type handle in OnCreate instead and use type _MyHandle.Update(ref systemState); in OnUpdate to keep it up to date instead. This is significantly faster.

This warning was added on Entities 1.0.0, doesn't break anything but worth handling.

Stack trace:

'Latios.Systems.ImprovedLocalToParentSystem' creates a type handle during OnUpdate. Please create the type handle in OnCreate instead and use type `_MyHandle.Update(ref systemState);` in OnUpdate to keep it up to date instead. This is significantly faster.
0x00007ff66763e58a (Unity) DefaultBurstRuntimeLogCallback
0x00007ff666d317ba (Unity) BurstCompilerService_CUSTOM_RuntimeLog
0x00007fffcac7d1e8 (a38f7974f3c91a76c310e3be11e7a6d) Unity.Entities.SystemState::Unity.Entities.SystemState.CheckOnUpdate_Handle (at D:/dev/src/github.com/gabrieldechichi/DMotionSandbox2022/Library/PackageCache/[email protected]/Unity.Entities/SystemState.cs:567)
0x00007fffcaca9dca (a38f7974f3c91a76c310e3be11e7a6d) Latios.Systems.ImprovedLocalToParentSystem::Latios.Systems.ImprovedLocalToParentSystem.OnUpdate (at D:/dev/src/github.com/gabrieldechichi/DMotionSandbox2022/Packages/Latios-Framework/Core/Systems/Transforms/ImprovedTransforms/ImprovedLocalToParentSystem.cs:148)
0x00007fffcaca8599 (a38f7974f3c91a76c310e3be11e7a6d) 1dbef86f5c96c44e7e146dcbb34dd61a
0x00007fffca21cf7a (290741341da8dd66092fa93f16364a6) Unity.Entities.WorldUnmanagedImpl.Unity.Entities.UnmanagedUpdate_000014A0$BurstDirectCall.Invoke (at D:/dev/src/github.com/gabrieldechichi/DMotionSandbox2022/unknown/unknown:0)
0x00007fffca21baf9 (290741341da8dd66092fa93f16364a6) 7bf3b3dc1c88cb657fd69b548232391d
0x000002275d78efdd (Mono JIT Code) (wrapper managed-to-native) Unity.Entities.WorldUnmanagedImpl/Unity.Entities.UnmanagedUpdate_000014A0$BurstDirectCall:wrapper_native_indirect_000002279E52C770 (intptr&,void*)
0x000002275d78ebab (Mono JIT Code) Unity.Entities.WorldUnmanagedImpl/Unity.Entities.UnmanagedUpdate_000014A0$BurstDirectCall:Invoke (void*)
0x000002275d78ea7b (Mono JIT Code) Unity.Entities.WorldUnmanagedImpl:UnmanagedUpdate (void*) (at D:/dev/src/github.com/gabrieldechichi/DMotionSandbox2022/Library/PackageCache/[email protected]/Unity.Entities/WorldUnmanaged.cs:810)
0x000002275d78e66b (Mono JIT Code) Unity.Entities.WorldUnmanagedImpl:UpdateSystem (Unity.Entities.SystemHandle) (at D:/dev/src/github.com/gabrieldechichi/DMotionSandbox2022/Library/PackageCache/[email protected]/Unity.Entities/WorldUnmanaged.cs:875)
0x000002275d7905bb (Mono JIT Code) Unity.Entities.ComponentSystemGroup:UpdateAllSystems () (at D:/dev/src/github.com/gabrieldechichi/DMotionSandbox2022/Library/PackageCache/[email protected]/Unity.Entities/ComponentSystemGroup.cs:664)
0x000002275d71fd0b (Mono JIT Code) Unity.Entities.ComponentSystemGroup:OnUpdate () (at D:/dev/src/github.com/gabrieldechichi/DMotionSandbox2022/Library/PackageCache/[email protected]/Unity.Entities/ComponentSystemGroup.cs:628)
0x000002275d779b94 (Mono JIT Code) Unity.Entities.SystemBase:Update () (at D:/dev/src/github.com/gabrieldechichi/DMotionSandbox2022/Library/PackageCache/[email protected]/Unity.Entities/SystemBase.cs:416)
0x000002275d78a715 (Mono JIT Code) Latios.SuperSystem:UpdateManagedSystem (Latios.LatiosWorldUnmanagedImpl*,Unity.Entities.ComponentSystemBase) (at D:/dev/src/github.com/gabrieldechichi/DMotionSandbox2022/Packages/Latios-Framework/Core/Framework/SuperSystem.cs:279)
0x000002275d7888d3 (Mono JIT Code) Latios.SuperSystem:UpdateAllSystems (Unity.Entities.ComponentSystemGroup,Unity.Entities.Exposed.SystemSortingTracker&) (at D:/dev/src/github.com/gabrieldechichi/DMotionSandbox2022/Packages/Latios-Framework/Core/Framework/SuperSystem.cs:317)
0x000002275d787f23 (Mono JIT Code) Latios.SuperSystem:DoSuperSystemUpdate (Unity.Entities.ComponentSystemGroup,Unity.Entities.Exposed.SystemSortingTracker&) (at D:/dev/src/github.com/gabrieldechichi/DMotionSandbox2022/Packages/Latios-Framework/Core/Framework/SuperSystem.cs:345)
0x000002275f91a44b (Mono JIT Code) Latios.Systems.LatiosSimulationSystemGroup:OnUpdate () (at D:/dev/src/github.com/gabrieldechichi/DMotionSandbox2022/Packages/Latios-Framework/Core/Framework/LatiosWorld.cs:234)
0x000002275d779b94 (Mono JIT Code) Unity.Entities.SystemBase:Update () (at D:/dev/src/github.com/gabrieldechichi/DMotionSandbox2022/Library/PackageCache/[email protected]/Unity.Entities/SystemBase.cs:416)
0x000002275d7794c4 (Mono JIT Code) Unity.Entities.ScriptBehaviourUpdateOrder/DummyDelegateWrapper:TriggerUpdate () (at D:/dev/src/github.com/gabrieldechichi/DMotionSandbox2022/Library/PackageCache/[email protected]/Unity.Entities/ScriptBehaviourUpdateOrder.cs:526)
0x00000225b4c4f8e8 (Mono JIT Code) (wrapper runtime-invoke) object:runtime_invoke_void__this__ (object,intptr,intptr,intptr)
0x00007fffc4310394 (mono-2.0-bdwgc) mono_jit_runtime_invoke (at C:/build/output/Unity-Technologies/mono/mono/mini/mini-runtime.c:3445)
0x00007fffc424eb44 (mono-2.0-bdwgc) do_runtime_invoke (at C:/build/output/Unity-Technologies/mono/mono/metadata/object.c:3066)
0x00007fffc424ecdc (mono-2.0-bdwgc) mono_runtime_invoke (at C:/build/output/Unity-Technologies/mono/mono/metadata/object.c:3113)
0x00007ff667cdce64 (Unity) scripting_method_invoke
0x00007ff667cbbc24 (Unity) ScriptingInvocation::Invoke
0x00007ff66796cf85 (Unity) ExecutePlayerLoop
0x00007ff66796cfa3 (Unity) ExecutePlayerLoop
0x00007ff667973305 (Unity) PlayerLoop
0x00007ff668902e0f (Unity) PlayerLoopController::InternalUpdateScene
0x00007ff6688fa963 (Unity) PlayerLoopController::EnterPlayMode
0x00007ff66890a766 (Unity) PlayerLoopController::SetIsPlaying
0x00007ff66890de8b (Unity) Application::TickTimer
0x00007ff668d960ea (Unity) MainMessageLoop
0x00007ff668d9b060 (Unity) WinMain
0x00007ff66a16191e (Unity) __scrt_common_main_seh
0x00007ff84bab55a0 (KERNEL32) BaseThreadInitThunk
0x00007ff84dc2485b (ntdll) RtlUserThreadStart

OverflowException smart blobbing stereo audio clips

I get an overflow exception running the MyriLooped example scene in Unity 2020.3.34f1 with Unity.Entities 0.51.0-preview.32. Here's the error:

OverflowException
Latios.Authoring.Systems.SmartBlobberConversionSystem`4[TBlobType,TManagedInputType,TUnmanagedConversionType,TContextType].OnUpdate () (at Library/PackageCache/com.latios.latiosframework@150d34a0d6/Core/Core/Authoring/SmartBlobberConversionSystemImpl.cs:470)
Unity.Entities.ComponentSystem.Update () (at Library/PackageCache/[email protected]/Unity.Entities/ComponentSystem.cs:114)
Unity.Entities.ComponentSystemGroup.UpdateAllSystems () (at Library/PackageCache/[email protected]/Unity.Entities/ComponentSystemGroup.cs:583)
UnityEngine.DebugLogHandler:LogException(Exception, Object)
Unity.Entities.Conversion.JournalingUnityLogger:LogException(Exception, Object) (at Library/PackageCache/[email protected]/Unity.Entities.Hybrid/GameObjectConversion/JournalingUnityLogger.cs:50)
UnityEngine.Debug:LogException(Exception)
Unity.Debug:LogException(Exception) (at Library/PackageCache/[email protected]/Unity.Entities/Stubs/Unity/Debug.cs:19)
Unity.Entities.ComponentSystemGroup:UpdateAllSystems() (at Library/PackageCache/[email protected]/Unity.Entities/ComponentSystemGroup.cs:588)
Unity.Entities.ComponentSystemGroup:OnUpdate() (at Library/PackageCache/[email protected]/Unity.Entities/ComponentSystemGroup.cs:523)
Unity.Entities.ComponentSystem:Update() (at Library/PackageCache/[email protected]/Unity.Entities/ComponentSystem.cs:114)
Unity.Entities.ComponentSystemGroup:UpdateAllSystems() (at Library/PackageCache/[email protected]/Unity.Entities/ComponentSystemGroup.cs:583)
Unity.Entities.ComponentSystemGroup:OnUpdate() (at Library/PackageCache/[email protected]/Unity.Entities/ComponentSystemGroup.cs:523)
Unity.Entities.ComponentSystem:Update() (at Library/PackageCache/[email protected]/Unity.Entities/ComponentSystem.cs:114)
Unity.Entities.GameObjectConversionUtility:Convert(World) (at Library/PackageCache/[email protected]/Unity.Entities.Hybrid/GameObjectConversion/GameObjectConversionUtility.cs:144)
Unity.Entities.ConvertToEntitySystem:Convert() (at Library/PackageCache/[email protected]/Unity.Entities.Hybrid/ConvertToEntity.cs:176)
Unity.Entities.ConvertToEntitySystem:OnUpdate() (at Library/PackageCache/[email protected]/Unity.Entities.Hybrid/ConvertToEntity.cs:67)
Unity.Entities.ComponentSystem:Update() (at Library/PackageCache/[email protected]/Unity.Entities/ComponentSystem.cs:114)
Unity.Entities.ComponentSystemGroup:UpdateAllSystems() (at Library/PackageCache/[email protected]/Unity.Entities/ComponentSystemGroup.cs:583)
Unity.Entities.ComponentSystemGroup:OnUpdate() (at Library/PackageCache/[email protected]/Unity.Entities/ComponentSystemGroup.cs:523)
Unity.Entities.InitializationSystemGroup:OnUpdate() (at Library/PackageCache/[email protected]/Unity.Entities/DefaultWorld.cs:28)
Unity.Entities.ComponentSystem:Update() (at Library/PackageCache/[email protected]/Unity.Entities/ComponentSystem.cs:114)
Unity.Entities.DummyDelegateWrapper:TriggerUpdate() (at Library/PackageCache/[email protected]/Unity.Entities/ScriptBehaviourUpdateOrder.cs:426)

Debugging this, it seems like it happens when smart blobbing stereo audio clips. Ticking Force To Mono on the audio clip asset prevents the error.

Exceptions pop up on modification to package. Cleared when editor is restarted.

Hi,

I've cloned the package locally in my Packages folder based on the contents of the repository at the Version 0.5.1 release. It works well and as expected, but if I ever modify the code of the package Unity seems to "discover" several errors all at once. To be clear, these errors do not prevent me from running after a unity restart, and I can always clear them by restarting the editor. It's just getting tedious having to restart every time, so I figured I'd ask if this is something you knew about / had encountered and possibly if you had a workaround.

The errors are all like this
Cannot apply indexing with [] to an expression of type 'ChunkInstanceLodEnabled.<Enabled>e__FixedBuffer'

But happen in various files
Packages\Latios-Framework-master\Kinemation\Systems\Culling\UpdateLODsSystem.cs(156,29): error CS0021: Cannot apply indexing with [] to an expression of type 'ChunkInstanceLodEnabled.<Enabled>e__FixedBuffer'

Packages\Latios-Framework-master\Kinemation\Systems\Culling\FrustumCullUnskinnedEntitiesSystem.cs(70,50): error CS0021: Cannot apply indexing with [] to an expression of type 'ChunkInstanceLodEnabled.<Enabled>e__FixedBuffer'

Packages\Latios-Framework-master\Kinemation\Systems\Culling\FrustumCullSkinnedEntitiesSystem.cs(69,85): error CS0021: Cannot apply indexing with [] to an expression of type 'ChunkInstanceLodEnabled.<Enabled>e__FixedBuffer'
etc....

Have you ran into these at all? I'm on 2020.3.36f1 and DOTS 0.50 preview 2.

prerelease-0.7.0 compilation error

Hey, I checked it out today, and I have this compilation error:

D:\Unity Projects\LatiosTest\Latios-Framework-prerelease-0.7.0\Kinemation\Systems\UnityReplacements\LatiosLightProbeUpdateSystem.cs(172,38): error CS1061: 'SHCoefficients' does not contain a definition for 'Padding' and no accessible extension method 'Padding' accepting a first argument of type 'SHCoefficients' could be found (are you missing a using directive or an assembly reference?)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.