-
Notifications
You must be signed in to change notification settings - Fork 79
Object Reference not Set to - Crahs when loading Maps or Models in DSR #469
Description
I try to load DSR MAPS/ Models but Smithbox crashes with those
Smithbox - Version 2.1.2
Object reference not set to an instance of an object.
at StudioCore.Editors.Common.Entity.get_Name() in ./src/Smithbox.Program/Editors/Viewport/Entity/Entity.cs:line 157
at StudioCore.Editors.Common.Entity.BuildReferenceMaps(IEnumerable`1 entities) in ./src/Smithbox.Program/Editors/Viewport/Entity/Entity.cs:line 736
at StudioCore.Editors.ModelEditor.ModelContainer.Load(FLVER2 flver, ModelWrapper wrapper) in ./src/Smithbox.Program/Editors/Model Editor/Data/ModelContainer.cs:line 195
at StudioCore.Editors.ModelEditor.ModelUniverse.LoadModel(ModelWrapper modelWrapper) in ./src/Smithbox.Program/Editors/Model Editor/ModelUniverse.cs:line 82
at System.Threading.Tasks.Task.<>c.b__128_1(Object state)
at System.Threading.ThreadPoolWorkQueue.Dispatch()
at System.Threading.PortableThreadPool.WorkerThread.WorkerThreadStart()
ALSO more logs :
Smithbox - Version 2.1.2
Collection was modified; enumeration operation may not execute.
at System.Collections.Generic.List`1.Enumerator.MoveNext()
at StudioCore.Renderer.MeshRenderableProxy.set_World(Matrix4x4 value) in ./src/Smithbox.Program/Renderer/Scene/Renderable Proxies/MeshRenderableProxy.cs:line 97
at StudioCore.Editors.Common.Entity.UpdateRenderModel() in ./src/Smithbox.Program/Editors/Viewport/Entity/Entity.cs:line 1333
at StudioCore.Editors.Common.MsbEntity.UpdateRenderModel() in ./src/Smithbox.Program/Editors/Viewport/Entity/MsbEntity.cs:line 406
at StudioCore.Editors.Common.Entity.UpdateRenderModel() in ./src/Smithbox.Program/Editors/Viewport/Entity/Entity.cs:line 1340
at StudioCore.Editors.Common.MsbEntity.UpdateRenderModel() in ./src/Smithbox.Program/Editors/Viewport/Entity/MsbEntity.cs:line 406
at StudioCore.Editors.Common.Entity.OnSelected() in ./src/Smithbox.Program/Editors/Viewport/Entity/Entity.cs:line 252
at StudioCore.Editors.Viewport.ViewportSelection.AddSelection(ISelectable selected) in ./src/Smithbox.Program/Editors/Viewport/Framework/ViewportSelection.cs:line 186
at StudioCore.Editors.MapEditor.MapUniverse.LoadMapAsync(String mapid, Boolean selectOnLoad) in ./src/Smithbox.Program/Editors/Map Editor/MapUniverse.cs:line 199
at StudioCore.Editors.MapEditor.MapEditorScreen.Update(Single dt) in ./src/Smithbox.Program/Editors/Map Editor/MapEditorScreen.cs:line 549
at StudioCore.Editors.MapEditor.MapEditorStub.Display(Single dt, String[] commands) in ./src/Smithbox.Program/Editors/Map Editor/MapEditorStub.cs:line 68
at StudioCore.Application.ProjectEntry.Update(Single dt) in ./src/Smithbox.Program/Project/ProjectEntry.cs:line 57
at StudioCore.Application.ProjectOrchestrator.Update(Single dt) in ./src/Smithbox.Program/Project/ProjectOrchestrator.cs:line 59
at StudioCore.Smithbox.Update(Single deltaseconds) in ./src/Smithbox.Program/Smithbox.cs:line 608
at StudioCore.Smithbox.Run() in ./src/Smithbox.Program/Smithbox.cs:line 388
at SmithboxApp.Program.Main(String[] args) in ./src/Smithbox/Program.cs:line 60
Smithbox - Version 2.1.2
Index was outside the bounds of the array.
at Veldrid.Texture.TransitionImageLayout(VkCommandBuffer cb, UInt32 baseMipLevel, UInt32 levelCount, UInt32 baseArrayLayer, UInt32 layerCount, VkImageLayout newLayout) in ./src/Veldrid/Veldrid/Texture.cs:line 346
at Veldrid.GraphicsDevice.TransitionImageLayout(Texture texture, VkImageLayout layout) in ./src/Veldrid/Veldrid/GraphicsDevice.cs:line 2333
at Veldrid.Texture.TransitionIfSampled() in ./src/Veldrid/Veldrid/Texture.cs:line 290
at Veldrid.Texture..ctor(GraphicsDevice gd, TextureDescription& description) in ./src/Veldrid/Veldrid/Texture.cs:line 221
at Veldrid.ResourceFactory.CreateTextureCore(TextureDescription& description) in ./src/Veldrid/Veldrid/ResourceFactory.cs:line 224
at Veldrid.ResourceFactory.CreateTexture(TextureDescription& description) in ./src/Veldrid/Veldrid/ResourceFactory.cs:line 159
at Veldrid.ResourceFactory.CreateTexture(TextureDescription description) in ./src/Veldrid/Veldrid/ResourceFactory.cs:line 150
at StudioCore.Renderer.TexturePool.TextureHandle.FillWithTPF(GraphicsDevice d, CommandList cl, TPFPlatform platform, Texture tex, String name) in ./src/Smithbox.Program/Renderer/Scene/TexturePool.cs:line 568
at StudioCore.Renderer.TextureResource.b__12_0(GraphicsDevice d, CommandList cl) in ./src/Smithbox.Program/Renderer/Resource Types/TextureResource.cs:line 68
at StudioCore.Renderer.SceneRenderer.Frame(CommandList drawCommandList, Boolean backgroundOnly) in ./src/Smithbox.Program/Renderer/Scene/SceneRenderer.cs:line 220
at StudioCore.Renderer.VulkanGraphicsContext.Draw(ProjectOrchestrator projectManager) in ./src/Smithbox.Program/Renderer/Context/VulkanGraphicsContext.cs:line 118
at StudioCore.Smithbox.Run() in ./src/Smithbox.Program/Smithbox.cs:line 398
at SmithboxApp.Program.Main(String[] args) in ./src/Smithbox/Program.cs:line 60