Search Unity

  1. Curious about what's going to be in 2020.1? Have a look at the 2020.1 beta blog post.
    Dismiss Notice

Build crashing at startup when trying to grab mesh to render

Discussion in 'Data Oriented Technology Stack' started by DMeville, Mar 20, 2019.

  1. DMeville

    DMeville

    Joined:
    May 5, 2013
    Posts:
    400
    I'm trying to learn about the ECS, and have looked at the examples and decided to try and create a small demo where I just instantiate lots of meshes through straight code using pure ECS and is stupidly straightforward and obvious as what's happening. Many of the tutorials are out of date on youtube, so it's been going slowly. Everything works great in the editor, however when I build a windows player it crashes at the Unity splash screen with the error at the bottom of this post.

    Seems the crash is caused by trying to access meshFilter.mesh, as removing it allows the build to run without crashing (but of course no objects are rendered because they don't have a mesh!)

    Still very new to this and have been slowly stumbling forward, andI'm probably doing something terribly wrong, but I just want to pass in a mesh and render it a bunch. Is this not the correct way to do this? I know there's the entity conversion stuff, but how would I access the entity that's created from a prefab in the code below?

    Thanks! btw, very impressed with how it runs in the editor

    Code (CSharp):
    1. using System.Collections;
    2. using System.Collections.Generic;
    3. using UnityEngine;
    4.  
    5. using Unity.Entities;
    6. using Unity.Transforms;
    7. using Unity.Rendering;
    8. using Unity.Mathematics;
    9. using Unity.Collections;
    10.  
    11. public class Bootstrap:MonoBehaviour {
    12.  
    13.     private static EntityManager entityManager;
    14.     private static RenderMesh entityRenderer;
    15.     private static EntityArchetype entityArchtype;
    16.  
    17.     [RuntimeInitializeOnLoadMethod(RuntimeInitializeLoadType.BeforeSceneLoad)]
    18.     public static void Initialize() {
    19.         entityManager = World.Active.GetOrCreateManager<EntityManager>();
    20.         entityArchtype = entityManager.CreateArchetype(typeof(Translation), typeof(Rotation), typeof(RenderMesh), typeof(LocalToWorld));
    21.     }
    22.  
    23.     [RuntimeInitializeOnLoadMethod(RuntimeInitializeLoadType.AfterSceneLoad)]
    24.     public static void SceneStartup() {
    25.         entityRenderer = new RenderMesh();
    26.         MeshFilter f = GameObject.FindObjectOfType<MeshFilter>();
    27.         Mesh mesh = null;
    28.  
    29.         mesh =  f.mesh; // <---- this is the line that causes the crash in the build.
    30.    
    31.         entityRenderer.mesh = mesh;
    32.  
    33.         entityRenderer.material = GameObject.FindObjectOfType<MeshRenderer>().material;
    34.         entityRenderer.receiveShadows = true;
    35.         entityRenderer.castShadows = UnityEngine.Rendering.ShadowCastingMode.On;
    36.  
    37.  
    38.         for(int c = 0; c < 50000; c++) {
    39.             Entity e = entityManager.CreateEntity(entityArchtype);
    40.             float r = 50f;
    41.             float3 v = new float3(UnityEngine.Random.Range(-r, r), UnityEngine.Random.Range(-r, r), UnityEngine.Random.Range(-r, r));
    42.  
    43.             entityManager.SetComponentData<Translation>(e, new Translation { Value = v });
    44.             entityManager.SetComponentData<Rotation>(e, new Rotation { Value = UnityEngine.Random.rotation });
    45.        
    46.             entityManager.SetSharedComponentData<RenderMesh>(e, entityRenderer);
    47.         }
    48.     }
    49. }
    50.  
    Code (CSharp):
    1. Mono path[0] = 'M:/Unity/Tests/ECSLearning/Builds/ECSLearning_Data/Managed'
    2. Mono config path = 'M:/Unity/Tests/ECSLearning/Builds/MonoBleedingEdge/etc'
    3. PlayerConnection initialized from M:/Unity/Tests/ECSLearning/Builds/ECSLearning_Data (debug = 0)
    4. PlayerConnection initialized network socket : 0.0.0.0 55433
    5. Multi-casting "[IP] 172.20.10.2 [Port] 55433 [Flags] 2 [Guid] 2403743796 [EditorId] 1912364186 [Version] 1048832 [Id] WindowsPlayer(DESKTOP-4QDQA0H) [Debug] 0 [PackageName] WindowsPlayer" to [225.0.0.222:54997]...
    6. Started listening to [0.0.0.0:55433]
    7. PlayerConnection already initialized - listening to [0.0.0.0:55433]
    8. Initialize engine version: 2019.1.0b5 (9899a5bd7e43)
    9. GfxDevice: creating device client; threaded=1
    10. Direct3D:
    11.     Version:  Direct3D 11.0 [level 11.1]
    12.     Renderer: NVIDIA GeForce GTX 1080 (ID=0x1b80)
    13.     Vendor:
    14.     VRAM:     8079 MB
    15.     Driver:   25.21.14.1735
    16. Begin MonoManager ReloadAssembly
    17. - Completed reload, in  1.654 seconds
    18. <RI> Initializing input.
    19.  
    20. <RI> Input initialized.
    21.  
    22. <RI> Initialized touch support.
    23.  
    24. WARNING: Shader Unsupported: 'Legacy Shaders/Diffuse' - Pass 'Meta' has no vertex shader
    25. WARNING: Shader Unsupported: 'Custom/Bread' - Pass 'Meta' has no vertex shader
    26. UnloadTime: 0.619560 ms
    27. Crash!!!
    28. SymInit: Symbol-SearchPath: '.;M:\Unity\Tests\ECSLearning;M:\Unity\Tests\ECSLearning\Builds;C:\WINDOWS;C:\WINDOWS\system32;SRV*C:\websymbols*http://msdl.microsoft.com/download/symbols;', symOptions: 534, UserName: 'Dylan'
    29. OS-Version: 10.0.0
    30. M:\Unity\Tests\ECSLearning\Builds\ECSLearning.exe:ECSLearning.exe (00007FF66A4A0000), size: 667648 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 2019.1.0.39333
    31. C:\WINDOWS\SYSTEM32\ntdll.dll:ntdll.dll (00007FF8A9500000), size: 1970176 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.17134.556
    32. C:\WINDOWS\System32\KERNEL32.DLL:KERNEL32.DLL (00007FF8A9120000), size: 729088 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.17134.648
    33. C:\WINDOWS\System32\KERNELBASE.dll:KERNELBASE.dll (00007FF8A60C0000), size: 2568192 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.17134.556
    34. M:\Unity\Tests\ECSLearning\Builds\UnityPlayer.dll:UnityPlayer.dll (00007FF82D050000), size: 41938944 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 2019.1.0.39333
    35. C:\WINDOWS\System32\USER32.dll:USER32.dll (00007FF8A6A20000), size: 1638400 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.17134.376
    36. C:\WINDOWS\System32\win32u.dll:win32u.dll (00007FF8A6340000), size: 131072 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.17134.1
    37. C:\WINDOWS\System32\GDI32.dll:GDI32.dll (00007FF8A69F0000), size: 163840 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.17134.285
    38. C:\WINDOWS\System32\gdi32full.dll:gdi32full.dll (00007FF8A6460000), size: 1646592 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.17134.590
    39. C:\WINDOWS\System32\msvcp_win.dll:msvcp_win.dll (00007FF8A67F0000), size: 651264 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.17134.619
    40. C:\WINDOWS\System32\ucrtbase.dll:ucrtbase.dll (00007FF8A6360000), size: 1015808 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.17134.619
    41. C:\WINDOWS\System32\ole32.dll:ole32.dll (00007FF8A6CE0000), size: 1380352 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.17134.407
    42. C:\WINDOWS\System32\combase.dll:combase.dll (00007FF8A89C0000), size: 3284992 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.17134.619
    43. C:\WINDOWS\System32\RPCRT4.dll:RPCRT4.dll (00007FF8A6BB0000), size: 1196032 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.17134.648
    44. C:\WINDOWS\SYSTEM32\VERSION.dll:VERSION.dll (00007FF8A06A0000), size: 40960 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.17134.1
    45. C:\WINDOWS\System32\bcryptPrimitives.dll:bcryptPrimitives.dll (00007FF8A5FE0000), size: 499712 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.17134.1
    46. C:\WINDOWS\System32\msvcrt.dll:msvcrt.dll (00007FF8A9430000), size: 647168 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 7.0.17134.1
    47. C:\WINDOWS\System32\sechost.dll:sechost.dll (00007FF8A6F90000), size: 372736 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.17134.319
    48. C:\WINDOWS\System32\SHLWAPI.dll:SHLWAPI.dll (00007FF8A6990000), size: 331776 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.17134.1
    49. C:\WINDOWS\System32\SETUPAPI.dll:SETUPAPI.dll (00007FF8A70C0000), size: 4501504 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.17134.1
    50. C:\WINDOWS\System32\cfgmgr32.dll:cfgmgr32.dll (00007FF8A6890000), size: 299008 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.17134.1
    51. C:\WINDOWS\System32\ADVAPI32.dll:ADVAPI32.dll (00007FF8A8D30000), size: 659456 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.17134.471
    52. C:\WINDOWS\System32\SHELL32.dll:SHELL32.dll (00007FF8A7580000), size: 21233664 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.17134.441
    53. C:\WINDOWS\System32\shcore.dll:shcore.dll (00007FF8A8FE0000), size: 692224 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.17134.112
    54. C:\WINDOWS\System32\windows.storage.dll:windows.storage.dll (00007FF8A58D0000), size: 7393280 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.17134.556
    55. C:\WINDOWS\System32\kernel.appcore.dll:kernel.appcore.dll (00007FF8A5870000), size: 69632 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.17134.112
    56. C:\WINDOWS\System32\profapi.dll:profapi.dll (00007FF8A58B0000), size: 126976 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.17134.1
    57. C:\WINDOWS\System32\powrprof.dll:powrprof.dll (00007FF8A5810000), size: 311296 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.17134.1
    58. C:\WINDOWS\System32\FLTLIB.DLL:FLTLIB.DLL (00007FF8A5860000), size: 40960 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.17134.1
    59. C:\WINDOWS\System32\WS2_32.dll:WS2_32.dll (00007FF8A7510000), size: 442368 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.17134.1
    60. C:\WINDOWS\System32\OLEAUT32.dll:OLEAUT32.dll (00007FF8A6FF0000), size: 798720 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.17134.556
    61. C:\WINDOWS\System32\IMM32.dll:IMM32.dll (00007FF8A8D00000), size: 184320 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.17134.1
    62. C:\WINDOWS\SYSTEM32\OPENGL32.dll:OPENGL32.dll (00007FF858360000), size: 1179648 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.17134.1
    63. C:\WINDOWS\System32\CRYPT32.dll:CRYPT32.dll (00007FF8A6600000), size: 1974272 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.17134.1
    64. C:\WINDOWS\SYSTEM32\WINMM.dll:WINMM.dll (00007FF8A1220000), size: 143360 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.17134.1
    65. C:\WINDOWS\System32\MSASN1.dll:MSASN1.dll (00007FF8A5890000), size: 73728 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.17134.1
    66. C:\WINDOWS\SYSTEM32\IPHLPAPI.DLL:IPHLPAPI.DLL (00007FF8A4E10000), size: 229376 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.17134.1
    67. C:\WINDOWS\SYSTEM32\WINHTTP.dll:WINHTTP.dll (00007FF89D660000), size: 905216 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.17134.590
    68. C:\WINDOWS\SYSTEM32\bcrypt.dll:bcrypt.dll (00007FF8A5370000), size: 151552 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.17134.112
    69. C:\WINDOWS\SYSTEM32\HID.DLL:HID.DLL (00007FF8A4540000), size: 49152 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.17134.1
    70. C:\WINDOWS\SYSTEM32\GLU32.dll:GLU32.dll (00007FF881F70000), size: 180224 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.17134.1
    71. C:\WINDOWS\SYSTEM32\WINMMBASE.dll:WINMMBASE.dll (00007FF8A1030000), size: 172032 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.17134.1
    72. C:\WINDOWS\SYSTEM32\WindowsCodecs.dll:WindowsCodecs.dll (00007FF8A0120000), size: 1761280 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.17134.345
    73. C:\WINDOWS\SYSTEM32\dwmapi.dll:dwmapi.dll (00007FF8A3C70000), size: 167936 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.17134.1
    74. C:\WINDOWS\SYSTEM32\WSOCK32.dll:WSOCK32.dll (00007FF861030000), size: 36864 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.17134.1
    75. M:\Unity\Tests\ECSLearning\Builds\WinPixEventRuntime.dll:WinPixEventRuntime.dll (00007FF882DA0000), size: 45056 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 1.0.1812.6001
    76. C:\WINDOWS\SYSTEM32\MSVCP140.dll:MSVCP140.dll (00007FF891070000), size: 634880 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 14.15.26706.0
    77. C:\WINDOWS\SYSTEM32\VCRUNTIME140.dll:VCRUNTIME140.dll (00007FF891110000), size: 90112 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 14.15.26706.0
    78. C:\WINDOWS\system32\uxtheme.dll:uxtheme.dll (00007FF8A3890000), size: 622592 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.17134.1
    79. C:\Program Files (x86)\LastPass\lastapphook_x64.dll:lastapphook_x64.dll (00007FF85CEB0000), size: 3084288 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 1.0.0.1
    80. C:\WINDOWS\System32\PSAPI.DLL:PSAPI.DLL (00007FF8A9090000), size: 32768 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.17134.1
    81. C:\WINDOWS\SYSTEM32\MSIMG32.dll:MSIMG32.dll (00007FF89E340000), size: 28672 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.17134.1
    82. C:\WINDOWS\SYSTEM32\WINSPOOL.DRV:WINSPOOL.DRV (00007FF89CBC0000), size: 544768 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.17134.648
    83. C:\WINDOWS\SYSTEM32\OLEACC.dll:OLEACC.dll (00007FF89CB50000), size: 438272 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 7.2.17134.1
    84. C:\WINDOWS\WinSxS\amd64_microsoft.windows.gdiplus_6595b64144ccf1df_1.1.17134.648_none_2c3093ce8af520a0\gdiplus.dll:gdiplus.dll (00007FF89CD00000), size: 1683456 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.17134.648
    85. C:\WINDOWS\SYSTEM32\PROPSYS.dll:PROPSYS.dll (00007FF8A4110000), size: 1785856 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 7.0.17134.619
    86. C:\WINDOWS\SYSTEM32\SspiCli.dll:SspiCli.dll (00007FF8A5740000), size: 196608 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.17134.376
    87. M:\Unity\Tests\ECSLearning\Builds\MonoBleedingEdge\EmbedRuntime\mono-2.0-bdwgc.dll:mono-2.0-bdwgc.dll (00007FF86DBA0000), size: 7761920 (result: 0), SymType: '-deferred-', PDB: ''
    88. C:\WINDOWS\SYSTEM32\MSWSOCK.dll:MSWSOCK.dll (00007FF8A5090000), size: 417792 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.17134.1
    89. C:\WINDOWS\SYSTEM32\CRYPTBASE.DLL:CRYPTBASE.DLL (00007FF8A5260000), size: 45056 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.17134.1
    90. C:\WINDOWS\System32\NSI.dll:NSI.dll (00007FF8A8CF0000), size: 32768 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.17134.1
    91. C:\WINDOWS\SYSTEM32\dhcpcsvc6.DLL:dhcpcsvc6.DLL (00007FF8A04B0000), size: 90112 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.17134.1
    92. C:\WINDOWS\SYSTEM32\dhcpcsvc.DLL:dhcpcsvc.DLL (00007FF8A0470000), size: 106496 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.17134.1
    93. C:\WINDOWS\system32\napinsp.dll:napinsp.dll (00007FF8917F0000), size: 90112 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.17134.1
    94. C:\WINDOWS\system32\pnrpnsp.dll:pnrpnsp.dll (00007FF8917D0000), size: 106496 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.17134.1
    95. C:\WINDOWS\system32\NLAapi.dll:NLAapi.dll (00007FF8A1FF0000), size: 102400 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.17134.1
    96. C:\WINDOWS\SYSTEM32\DNSAPI.dll:DNSAPI.dll (00007FF8A4E50000), size: 778240 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.17134.441
    97. C:\WINDOWS\System32\winrnr.dll:winrnr.dll (00007FF891760000), size: 57344 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.17134.1
    98. C:\WINDOWS\System32\wshbth.dll:wshbth.dll (00007FF8A06D0000), size: 86016 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.17134.1
    99. C:\WINDOWS\System32\MSCTF.dll:MSCTF.dll (00007FF8A8DE0000), size: 1519616 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.17134.619
    100. C:\WINDOWS\SYSTEM32\d3d11.dll:d3d11.dll (00007FF8A27A0000), size: 3190784 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.17134.441
    101. C:\WINDOWS\SYSTEM32\dxgi.dll:dxgi.dll (00007FF8A45D0000), size: 765952 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.17134.112
    102. C:\WINDOWS\System32\DriverStore\FileRepository\nv_dispi.inf_amd64_e7b3660b4830c245\nvldumdx.dll:nvldumdx.dll (00007FF89E5A0000), size: 974848 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 25.21.14.1735
    103. C:\WINDOWS\System32\WINTRUST.DLL:WINTRUST.DLL (00007FF8A6060000), size: 356352 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.17134.556
    104. C:\WINDOWS\System32\imagehlp.dll:imagehlp.dll (00007FF8A90A0000), size: 118784 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.17134.1
    105. C:\WINDOWS\SYSTEM32\CRYPTSP.dll:CRYPTSP.dll (00007FF8A5240000), size: 94208 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.17134.1
    106. C:\WINDOWS\system32\rsaenh.dll:rsaenh.dll (00007FF8A4C70000), size: 208896 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.17134.254
    107. C:\WINDOWS\System32\DriverStore\FileRepository\nv_dispi.inf_amd64_e7b3660b4830c245\nvwgf2umx.dll:nvwgf2umx.dll (00007FF86A710000), size: 37629952 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 25.21.14.1735
    108. C:\WINDOWS\system32\nvspcap64.dll:nvspcap64.dll (00007FF861390000), size: 2908160 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 3.16.0.140
    109. C:\WINDOWS\SYSTEM32\ntmarta.dll:ntmarta.dll (00007FF8A4900000), size: 200704 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.17134.1
    110. C:\WINDOWS\System32\clbcatq.dll:clbcatq.dll (00007FF8A91E0000), size: 655360 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 2001.12.10941.16384
    111. C:\WINDOWS\system32\wbem\wbemprox.dll:wbemprox.dll (00007FF891040000), size: 69632 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.17134.1
    112. C:\WINDOWS\SYSTEM32\wbemcomn.dll:wbemcomn.dll (00007FF892F30000), size: 536576 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.17134.1
    113. C:\WINDOWS\system32\wbem\wbemsvc.dll:wbemsvc.dll (00007FF88EFF0000), size: 81920 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.17134.1
    114. C:\WINDOWS\system32\wbem\fastprox.dll:fastprox.dll (00007FF88F140000), size: 991232 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.17134.1
    115. C:\WINDOWS\System32\MMDevApi.dll:MMDevApi.dll (00007FF89E3C0000), size: 483328 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.17134.1
    116. C:\WINDOWS\System32\DEVOBJ.dll:DEVOBJ.dll (00007FF8A5620000), size: 159744 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.17134.1
    117. C:\WINDOWS\SYSTEM32\AUDIOSES.DLL:AUDIOSES.DLL (00007FF883CA0000), size: 1228800 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.17134.619
    118. C:\WINDOWS\SYSTEM32\wintypes.dll:wintypes.dll (00007FF8A18A0000), size: 1363968 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.17134.523
    119. C:\WINDOWS\SYSTEM32\AVRT.dll:AVRT.dll (00007FF8A0690000), size: 40960 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.17134.1
    120. C:\WINDOWS\WinSxS\amd64_microsoft.windows.common-controls_6595b64144ccf1df_6.0.17134.648_none_fb45a0e93062a6d2\comctl32.dll:comctl32.dll (00007FF89B920000), size: 2527232 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 6.10.17134.648
    121. C:\WINDOWS\SYSTEM32\TextInputFramework.dll:TextInputFramework.dll (00007FF894B40000), size: 614400 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.17134.376
    122. C:\WINDOWS\SYSTEM32\CoreUIComponents.dll:CoreUIComponents.dll (00007FF89EF30000), size: 3268608 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.17134.376
    123. C:\WINDOWS\SYSTEM32\CoreMessaging.dll:CoreMessaging.dll (00007FF8A3560000), size: 892928 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.17134.471
    124. C:\WINDOWS\SYSTEM32\xinput1_3.dll:xinput1_3.dll (0000000000400000), size: 122880 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 9.18.944.0
    125. C:\WINDOWS\SYSTEM32\dcomp.dll:dcomp.dll (00007FF8A3080000), size: 1687552 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.17134.1
    126. C:\WINDOWS\SYSTEM32\dbghelp.dll:dbghelp.dll (00007FF893820000), size: 1871872 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.17134.1
    127.  
    128. ========== OUTPUTTING STACK TRACE ==================
    129.  
    130. 0x00007FF82DD36BCE (UnityPlayer) UnityMain
    131. 0x00007FF82DD40C26 (UnityPlayer) UnityMain
    132. 0x00007FF82DD45D54 (UnityPlayer) UnityMain
    133. 0x00007FF82DD45DE5 (UnityPlayer) UnityMain
    134. 0x00007FF82E24BE16 (UnityPlayer) UnityMain
    135. 0x00000157CBFB73E3 (Mono JIT Code) (wrapper managed-to-native) UnityEngine.MeshFilter:get_mesh (UnityEngine.MeshFilter)
    136. 0x00000157CBFB7103 (Mono JIT Code) [M:\Unity\Tests\ECSLearning\Assets\Bootstrap.cs:47] Bootstrap:SceneStartup ()
    137. 0x00000157CBF9FB6D (Mono JIT Code) (wrapper runtime-invoke) object:runtime_invoke_void (object,intptr,intptr,intptr)
    138. 0x00007FF86DCCBFBB (mono-2.0-bdwgc) mono_get_runtime_build_info
    139. 0x00007FF86DC51F52 (mono-2.0-bdwgc) mono_perfcounters_init
    140. 0x00007FF86DC5AF5F (mono-2.0-bdwgc) mono_runtime_invoke
    141. 0x00007FF82E177E2D (UnityPlayer) UnityMain
    142. 0x00007FF82E174B81 (UnityPlayer) UnityMain
    143. 0x00007FF82DE49B20 (UnityPlayer) UnityMain
    144. 0x00007FF82DE49C8B (UnityPlayer) UnityMain
    145. 0x00007FF82DE72E97 (UnityPlayer) UnityMain
    146. 0x00007FF82DE7555B (UnityPlayer) UnityMain
    147. 0x00007FF82DE75877 (UnityPlayer) UnityMain
    148. 0x00007FF82D7AA936 (UnityPlayer) PAL_Memory_Free
    149. 0x00007FF82D7A90CA (UnityPlayer) PAL_Memory_Free
    150. 0x00007FF82D7AD809 (UnityPlayer) PAL_Memory_Free
    151. 0x00007FF82D7AF48B (UnityPlayer) UnityMain
    152.   ERROR: SymGetSymFromAddr64, GetLastError: 'Attempt to access invalid address.' (Address: 00007FF66A4A11F2)
    153. 0x00007FF66A4A11F2 (ECSLearning) (function-name not available)
    154. 0x00007FF8A9133DC4 (KERNEL32) BaseThreadInitThunk
    155. 0x00007FF8A9573691 (ntdll) RtlUserThreadStart
    156.  
    157. ========== END OF STACKTRACE ===========
    158.  
    159. A crash has been intercepted by the crash handler. For call stack and other details, see the latest crash report generated in:
    160. * C:/Users/Dylan/AppData/Local/Temp/DefaultCompany/ECSLearning/Crashes
    161.  
     
  2. NoDumbQuestion

    NoDumbQuestion

    Joined:
    Nov 10, 2017
    Posts:
    174
    it suppose to be sharedmesh?
    MeshFilter.mesh create new mesh reference?
    upload_2019-3-20_9-12-1.png
     
    Deleted User and DMeville like this.
  3. DMeville

    DMeville

    Joined:
    May 5, 2013
    Posts:
    400
    I guess it was one of those days. I feel dumb. That works perfectly, thanks so much!
     
    NoDumbQuestion likes this.
  4. Joachim_Ante

    Joachim_Ante

    Unity Technologies

    Joined:
    Mar 16, 2005
    Posts:
    4,880
    I recommend using the new scene conversion workflow instead. It makes all of this significantly cleaner.
     
    DMeville likes this.
  5. DMeville

    DMeville

    Joined:
    May 5, 2013
    Posts:
    400
    Thanks! Yes, I'm going to start digging into that very soon as it seems much nicer. I just wanted to explore the ECS in small straightforward bits to understand each piece and not confuse myself with too many new things at once!

    https://github.com/DMeville/Learning-ECS
     
    Last edited: Mar 21, 2019
unityunity