pj1234678 / MagickaFix

Quality of life/Magicka Multiplayer Fixes.
191 stars 6 forks source link

The Stars are Left crash on Startup (Multiplayer) #13

Open klockeph opened 10 months ago

klockeph commented 10 months ago

When I join a as "The Stars are Left" multiplier game as client, the game crashes immediately on start.

I attached the corresponding crash log:

Version: 1.10.4.2   Thread: RenderThread

System.ObjectDisposedException: Cannot access a disposed object.
Object name: 'Texture2D'.
   at Microsoft.Xna.Framework.Helpers.CheckDisposed(Object obj, IntPtr pComPtr)
   at Microsoft.Xna.Framework.Graphics.EffectParameter.SetValue(Texture value)
   at PolygonHead.Effects.GUIBasicEffect.set_OverlayTexture(Texture2D value)
   at Magicka.GameLogic.GameStates.Menu.Main.SubMenuCharacterSelect.DrawAvatar(Texture2D iTexture, Boolean iCustom, Vector3 pColor, Vector2& iPos, Single iScale)
   at Magicka.GameLogic.GameStates.Menu.Main.SubMenuCharacterSelect.Draw(Viewport iLeftSide, Viewport iRightSide)
   at Magicka.GameLogic.GameStates.Menu.Main.SubMenuCutscene.DrawNewAndOld(SubMenu iPreviousMenu, Viewport iCurrentLeftSide, Viewport iCurrentRightSide, Viewport iPreviousLeftSide, Viewport iPreviousRightSide)
   at Magicka.GameLogic.UI.Tome.TomeState.Draw(GUIBasicEffect iEffect, Tome iOwner, SubMenu iMenu)
   at Magicka.GameLogic.UI.Tome.RenderData.PreRenderUpdate(DataChannel iDataChannel, Single iDeltaTime, Matrix& iViewProjectionMatrix, Vector3& iCameraPosition, Vector3& iCameraDirection)
   at PolygonHead.Scene.UpdatePreRenderRenderers(DataChannel iDataChannel, Single iDeltaTime, Matrix& iViewProjectionMatrix, Vector3& iCameraPosition, Vector3& iCameraDirection)
   at PolygonHead.RenderManager.RenderScene(Scene currentScene, DataChannel iDataChannel, Single iDeltaTime, Scene iPersistentScene)
   at PolygonHead.RenderManager.RenderScene(Scene currentScene, DataChannel iDataChannel, GameTime& iGameTime, Scene iPersistentScene)
   at Magicka.Game.Draw(GameTime gameTime)
   at Microsoft.Xna.Framework.Game.DrawFrame()
   at Microsoft.Xna.Framework.Game.Tick()
   at Microsoft.Xna.Framework.Game.HostIdle(Object sender, EventArgs e)
   at Microsoft.Xna.Framework.GameHost.OnIdle()
   at Microsoft.Xna.Framework.WindowsGameHost.ApplicationIdle(Object sender, EventArgs e)
   at System.Windows.Forms.Application.ThreadContext.System.Windows.Forms.UnsafeNativeMethods.IMsoComponent.FDoIdle(Int32 grfidlef)
   at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(Int32 dwComponentID, Int32 reason, Int32 pvLoopData)
   at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
   at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
   at System.Windows.Forms.Application.Run(Form mainForm)
   at Microsoft.Xna.Framework.WindowsGameHost.Run()
   at Microsoft.Xna.Framework.Game.Run()
   at Magicka.Program.Main(String[] args)

[LoaderThread]0x0060 Magicka.exe->Magicka.Game.LoaderFunction
[LoaderThread]0x0000 Magicka.exe->Magicka.Misc.TrackedThread.StartThread
[LoaderThread]0x003b CommonLanguageRuntimeLibrary->System.Threading.ThreadHelper.ThreadStart_Context
[LoaderThread]0x005f CommonLanguageRuntimeLibrary->System.Threading.ExecutionContext.Run
[LoaderThread]0x002a CommonLanguageRuntimeLibrary->System.Threading.ThreadHelper.ThreadStart

[LogicThread]0x0080 Magicka.exe->Magicka.Game.ThreadedUpdate
[LogicThread]0x0000 Magicka.exe->Magicka.Misc.TrackedThread.StartThread
[LogicThread]0x003b CommonLanguageRuntimeLibrary->System.Threading.ThreadHelper.ThreadStart_Context
[LogicThread]0x005f CommonLanguageRuntimeLibrary->System.Threading.ExecutionContext.Run
[LogicThread]0x002a CommonLanguageRuntimeLibrary->System.Threading.ThreadHelper.ThreadStart