DurtyFree / durty-cloth-tool

Durty Cloth Tool easily generates addon cloth resources for GTA 5 Singleplayer and MP mods like alt:V, FiveM or RageMP with just a couple of clicks.
https://gta.clothing
116 stars 58 forks source link

The calling thread must be STA, because many UI components require this. #335

Closed DrMxrcy closed 1 month ago

DrMxrcy commented 1 month ago

I have the following error:

System.InvalidOperationException: The calling thread must be STA, because many UI components require this.
   at System.Windows.Input.InputManager..ctor()
   at System.Windows.Input.InputManager.GetCurrentInputManagerImpl()
   at System.Windows.Input.KeyboardNavigation..ctor()
   at System.Windows.FrameworkElement.FrameworkServices..ctor()
   at System.Windows.FrameworkElement.EnsureFrameworkServices()
   at System.Windows.FrameworkElement..ctor()
   at System.Windows.Controls.Control..ctor()
   at System.Windows.Controls.HeaderedContentControl..ctor()
   at Telerik.Windows.Controls.WindowBase..ctor()
   at Telerik.Windows.Controls.RadWindow..ctor()
   at DurtyClothTool.App.Views.ConfirmationDialogWindow..ctor(String  , String  , String  , String  , String  , PackIconFontAwesomeKind  )
   at yXwxZK5dVY38GJmAFqH.XetIN45lItS8qERcxif.P1w5SpRcWv(Object  , Object  , String  , String  , String  , PackIconFontAwesomeKind  )
   at cCSXhJSC1xSb5mKrB0j.aJ72WuSqclbySWheSuW.okR9f4k5oG(String  , Byte[]  , String  , Boolean  , Func`2  )
   at cCSXhJSC1xSb5mKrB0j.aJ72WuSqclbySWheSuW.JaI9yPZelx(List`1  , Boolean  )
   at cCSXhJSC1xSb5mKrB0j.aJ72WuSqclbySWheSuW.<>c__DisplayClass41_0.pQwERxmhOIQ()
   at System.Threading.Tasks.Task`1.InnerInvoke()
   at System.Threading.Tasks.Task.<>c.<.cctor>b__272_0(Object obj)
   at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state)
--- End of stack trace from previous location ---
   at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread)
--- End of stack trace from previous location ---
   at cCSXhJSC1xSb5mKrB0j.aJ72WuSqclbySWheSuW.N5T9coABTy(Nullable`1  , String[]  )
   at cCSXhJSC1xSb5mKrB0j.aJ72WuSqclbySWheSuW.nyo908H5U2(PedGender  )
   at hO5wuXBIhlsYd7vvbDE.KruLmDB11prT9Jt44XP.TuDBibxuKq(Object  , RoutedEventArgs  )
   at System.Threading.Tasks.Task.<>c.<ThrowAsync>b__128_0(Object state)
   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)

App Version: 3.0.0.0 Project targets: FiveM DLC name: civeup Collection name: civeup // Project path: D:\Auspire-RP\Development\Auspire FiveM - Server 1\resources[ARP_Assets][Models][Addon EUP]_EUP-Projects\civeup_project\clothproject_civeup Output path: D:\Auspire-RP\Development\Auspire FiveM - Server 1\resources[ARP_Assets][Models][Addon EUP]_EUP-Projects\civeup_project Disable Extra Ymt Creation: False Create Subfolder For Cloth Drawable Types: False Replace settings enabled: False // DLC: NoDlc Save File Version: 5



Cloth files:
`[Please provide cloth files (ydd, ytd), cloth project and any other related files here + describe reproduction steps]`
DurtyFree commented 1 month ago

Please get latest version from here: https://github.com/DurtyFree/durty-cloth-tool/releases/tag/3.0.0.0