tModLoader

tModLoader

Catalyst Mod
This topic has been locked
JosEffigy 31 Jul, 2022 @ 7:25am
FNA3d Error
System.Threading.ThreadStateException: FNA3D graphics functions must be called on the main thread
at Microsoft.Xna.Framework.Graphics.FNA3D.CheckThread() in D:\a\tModLoader\tModLoader\FNA\src\Graphics\FNA3D_SafeAccess.cs:line 26
at Microsoft.Xna.Framework.Graphics.FNA3D.FNA3D_GetTextureData2D(IntPtr device, IntPtr texture, Int32 x, Int32 y, Int32 w, Int32 h, Int32 level, IntPtr data, Int32 dataLength) in D:\a\tModLoader\tModLoader\FNA\src\Graphics\FNA3D_SafeAccess.cs:line 116
at Microsoft.Xna.Framework.Graphics.Texture2D.GetData[T](Int32 level, Nullable`1 rect, T[] data, Int32 startIndex, Int32 elementCount) in D:\a\tModLoader\tModLoader\FNA\src\Graphics\Texture2D.cs:line 306
at CatalystMod.CatalystHelpers.Get2DArrayOfColors(Texture2D texture) in CatalystMod\CatalystHelpers.cs:line 404
at CatalystMod.Common.Utilities.PixelPerfectChecker.InternalSetupGrid(Texture2D texture) in CatalystMod\Common\Utilities\PixelPerfectChecker.cs:line 82
at CatalystMod.Tiles.MusicBoxes.Astrageldon1MusicBox.SetStaticDefaults() in CatalystMod\Tiles\MusicBoxes\Astrageldon1MusicBox.cs:line 32
at Terraria.ModLoader.ModTile.SetupContent() in tModLoader\Terraria\ModLoader\ModTile.cs:line 125
at Terraria.ModLoader.Core.LoaderUtils.ForEachAndAggregateExceptions[T](IEnumerable`1 enumerable, Action`1 action) in tModLoader\Terraria\ModLoader\Core\LoaderUtils.cs:line 49
at Terraria.ModLoader.Mod.SetupContent() in tModLoader\Terraria\ModLoader\Mod.Internals.cs:line 26
at Terraria.ModLoader.ModContent.<>c.<Load>b__41_1(Mod mod) in tModLoader\Terraria\ModLoader\ModContent.cs:line 322
at Terraria.ModLoader.ModContent.LoadModContent(CancellationToken token, Action`1 loadAction) in tModLoader\Terraria\ModLoader\ModContent.cs:line 371
at Terraria.ModLoader.ModContent.Load(CancellationToken token) in tModLoader\Terraria\ModLoader\ModContent.cs:line 321
at Terraria.ModLoader.ModLoader.Load(CancellationToken token) in tModLoader\Terraria\ModLoader\ModLoader.cs:line 122
at Terraria.ModLoader.ModLoader.<>c__DisplayClass47_0.<BeginLoad>b__0() in tModLoader\Terraria\ModLoader\ModLoader.cs:line 104
at System.Threading.Tasks.Task.InnerInvoke()
at System.Threading.Tasks.Task.<>c.<.cctor>b__271_0(Object obj)
at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread)
at System.Threading.Tasks.Task.ExecuteEntryUnsafe(Thread threadPoolThread)
at System.Threading.ThreadPoolWorkQueue.Dispatch()
at System.Threading.PortableThreadPool.WorkerThread.WorkerThreadStart()
at System.Threading.Thread.StartCallback()
[21:44:19] [.NET ThreadPool Worker/WARN] [tML]: Silently Caught Exception:
System.Threading.ThreadStateException: FNA3D graphics functions must be called on the main thread
at Microsoft.Xna.Framework.Graphics.FNA3D.CheckThread() in D:\a\tModLoader\tModLoader\FNA\src\Graphics\FNA3D_SafeAccess.cs:line 26
at Microsoft.Xna.Framework.Graphics.FNA3D.FNA3D_GetTextureData2D(IntPtr device, IntPtr texture, Int32 x, Int32 y, Int32 w, Int32 h, Int32 level, IntPtr data, Int32 dataLength) in D:\a\tModLoader\tModLoader\FNA\src\Graphics\FNA3D_SafeAccess.cs:line 116
at Microsoft.Xna.Framework.Graphics.Texture2D.GetData[T](Int32 level, Nullable`1 rect, T[] data, Int32 startIndex, Int32 elementCount) in D:\a\tModLoader\tModLoader\FNA\src\Graphics\Texture2D.cs:line 306
at CatalystMod.CatalystHelpers.Get2DArrayOfColors(Texture2D texture) in CatalystMod\CatalystHelpers.cs:line 404
at CatalystMod.Common.Utilities.PixelPerfectChecker.InternalSetupGrid(Texture2D texture) in CatalystMod\Common\Utilities\PixelPerfectChecker.cs:line 82
at CatalystMod.Tiles.MusicBoxes.AstrageldonMenuMusicBox.SetStaticDefaults() in CatalystMod\Tiles\MusicBoxes\AstrageldonMenuMusicBox.cs:line 32
at Terraria.ModLoader.ModTile.SetupContent() in tModLoader\Terraria\ModLoader\ModTile.cs:line 125
at Terraria.ModLoader.Core.LoaderUtils.ForEachAndAggregateExceptions[T](IEnumerable`1 enumerable, Action`1 action) in tModLoader\Terraria\ModLoader\Core\LoaderUtils.cs:line 49
at Terraria.ModLoader.Mod.SetupContent() in tModLoader\Terraria\ModLoader\Mod.Internals.cs:line 26
at Terraria.ModLoader.ModContent.<>c.<Load>b__41_1(Mod mod) in tModLoader\Terraria\ModLoader\ModContent.cs:line 322
at Terraria.ModLoader.ModContent.LoadModContent(CancellationToken token, Action`1 loadAction) in tModLoader\Terraria\ModLoader\ModContent.cs:line 371
at Terraria.ModLoader.ModContent.Load(CancellationToken token) in tModLoader\Terraria\ModLoader\ModContent.cs:line 321
at Terraria.ModLoader.ModLoader.Load(CancellationToken token) in tModLoader\Terraria\ModLoader\ModLoader.cs:line 122
at Terraria.ModLoader.ModLoader.<>c__DisplayClass47_0.<BeginLoad>b__0() in tModLoader\Terraria\ModLoader\ModLoader.cs:line 104
at System.Threading.Tasks.Task.InnerInvoke()
at System.Threading.Tasks.Task.<>c.<.cctor>b__271_0(Object obj)
at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread)
at System.Threading.Tasks.Task.ExecuteEntryUnsafe(Thread threadPoolThread)
at System.Threading.ThreadPoolWorkQueue.Dispatch()
at System.Threading.PortableThreadPool.WorkerThread.WorkerThreadStart()
at System.Threading.Thread.StartCallback()
< >
Showing 1-2 of 2 comments
JosEffigy 31 Jul, 2022 @ 7:27am 
I've heard that Catalyst causes graphical issues with ArmamentDIsplay so this might provide insight into whats causing this
apotofkoolaid  [developer] 10 Aug, 2022 @ 2:25pm 
Since we haven't gotten any other reports on this issue, we will assume this is not a Catalyst bug for the time being
This discussion has now been locked
< >
Showing 1-2 of 2 comments
Per page: 1530 50