alexguirre / RAGENativeUI

MIT License
113 stars 36 forks source link

Unhandled Exception in UsingTls.WinFunctions.GetProcessMainThreadId() #167

Open NightYield opened 1 month ago

NightYield commented 1 month ago

A System.InvalidOperationException occurred while using RageNativeUI, the message was: The request cannot be processed because the thread (16416) has exited

RageNativeUI was used as part of my TrafficSuite plugin, but from the StackTrace I doubt that's the problem. The problem was reported to me by a user and I'm not able to reproduce it.

RNUI version: 1.9.2.0

at System.Diagnostics.ProcessManager.OpenThread(Int32 threadId, Int32 access)
at System.Diagnostics.ProcessThread.GetThreadTimes()
at System.Diagnostics.ProcessThread.get_StartTime()
at RAGENativeUI.Internals.UsingTls.WinFunctions.GetProcessMainThreadId()
at RAGENativeUI.Internals.UsingTls.EnsureTlsPointers()
at RAGENativeUI.Internals.UsingTls.Get(Int32 offset)
at RAGENativeUI.Internals.CScaleformMgr.IsMovieRendering(Int32 index)
at RAGENativeUI.Elements.InstructionalButtons.<get_NumberOfRows>g__GetInstructionalButtonsRows|28_0(UInt32 frame)
at RAGENativeUI.Elements.InstructionalButtons.get_NumberOfRows()
at RAGENativeUI.Elements.InstructionalButtons.Draw()
at RAGENativeUI.UIMenu.Draw()
at RAGENativeUI.MenuPool.ProcessMenus()
at NightYield.TrafficSuite.UserInputHost.ProcessMenus()
at NightYield.TrafficSuite.UserInputHost.Process()
at Rage.GameFiber.Main()