XCOM 2
Alternative Mod Uploader
Eric Kotato  [developer] 23 Mar, 2023 @ 8:46am
Bug reports
Use this thread for bug reporting and crash logs.
< >
Showing 1-8 of 8 comments
kregano 23 Mar, 2023 @ 12:03pm 
OS: Windows 10 64bit, 22H2

Bug: Alternative Mod Uploader crashes while loading ModPreview.JPG, via Edit Item or Upload a New Version

Windows Event Viewer logs:

Log Name: Application Source: .NET Runtime Date: 3/23/2023 7:59:16 AM Event ID: 1026 Task Category: None Level: Error Keywords: Classic User: N/A Computer: HTPC Description: Application: Firaxis.SteamWorkshop.exe Framework Version: v4.0.30319 Description: The process was terminated due to an unhandled exception. Exception Info: System.Runtime.InteropServices.COMException at System.Runtime.InteropServices.Marshal.ThrowExceptionForHRInternal(Int32, IntPtr) at MS.Win32.WinInet.get_InternetCacheFolder() at System.Windows.Media.Imaging.BitmapDownload.BeginDownload(System.Windows.Media.Imaging.BitmapDecoder, System.Uri, System.Net.Cache.RequestCachePolicy, System.IO.Stream) at System.Windows.Media.Imaging.LateBoundBitmapDecoder..ctor(System.Uri, System.Uri, System.IO.Stream, System.Windows.Media.Imaging.BitmapCreateOptions, System.Windows.Media.Imaging.BitmapCacheOption, System.Net.Cache.RequestCachePolicy) at System.Windows.Media.Imaging.BitmapDecoder.CreateFromUriOrStream(System.Uri, System.Uri, System.IO.Stream, System.Windows.Media.Imaging.BitmapCreateOptions, System.Windows.Media.Imaging.BitmapCacheOption, System.Net.Cache.RequestCachePolicy, Boolean) at System.Windows.Media.Imaging.BitmapImage.FinalizeCreation() at System.Windows.Media.Imaging.BitmapImage.EndInit() at Firaxis.SteamWorkshop.UI.UploadPreviewDataPage+<Page_Loaded>d__4.MoveNext() at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Windows.Threading.ExceptionWrapper.InternalRealCall(System.Delegate, System.Object, Int32) at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(System.Object, System.Delegate, System.Object, Int32, System.Delegate) at System.Windows.Threading.DispatcherOperation.InvokeImpl() at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean) at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean) at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object) at MS.Internal.CulturePreservingExecutionContext.Run(MS.Internal.CulturePreservingExecutionContext, System.Threading.ContextCallback, System.Object) at System.Windows.Threading.DispatcherOperation.Invoke() at System.Windows.Threading.Dispatcher.ProcessQueue() at System.Windows.Threading.Dispatcher.WndProcHook(IntPtr, Int32, IntPtr, IntPtr, Boolean ByRef) at MS.Win32.HwndWrapper.WndProc(IntPtr, Int32, IntPtr, IntPtr, Boolean ByRef) at MS.Win32.HwndSubclass.DispatcherCallbackOperation(System.Object) at System.Windows.Threading.ExceptionWrapper.InternalRealCall(System.Delegate, System.Object, Int32) at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(System.Object, System.Delegate, System.Object, Int32, System.Delegate) at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(System.Windows.Threading.DispatcherPriority, System.TimeSpan, System.Delegate, System.Object, Int32) at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr, Int32, IntPtr, IntPtr) at MS.Win32.UnsafeNativeMethods.DispatchMessage(System.Windows.Interop.MSG ByRef) at System.Windows.Threading.Dispatcher.PushFrameImpl(System.Windows.Threading.DispatcherFrame) at System.Windows.Application.RunDispatcher(System.Object) at System.Windows.Application.RunInternal(System.Windows.Window) at Firaxis.SteamWorkshop.App.Main() Event Xml: <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event"> <System> <Provider Name=".NET Runtime" /> <EventID Qualifiers="0">1026</EventID> <Version>0</Version> <Level>2</Level> <Task>0</Task> <Opcode>0</Opcode> <Keywords>0x80000000000000</Keywords> <TimeCreated SystemTime="2023-03-23T11:59:16.2644770Z" /> <EventRecordID>37956</EventRecordID> <Correlation /> <Execution ProcessID="0" ThreadID="0" /> <Channel>Application</Channel> <Computer>HTPC</Computer> <Security /> </System> <EventData> <Data>Application: Firaxis.SteamWorkshop.exe Framework Version: v4.0.30319 Description: The process was terminated due to an unhandled exception. Exception Info: System.Runtime.InteropServices.COMException at System.Runtime.InteropServices.Marshal.ThrowExceptionForHRInternal(Int32, IntPtr) at MS.Win32.WinInet.get_InternetCacheFolder() at System.Windows.Media.Imaging.BitmapDownload.BeginDownload(System.Windows.Media.Imaging.BitmapDecoder, System.Uri, System.Net.Cache.RequestCachePolicy, System.IO.Stream) at System.Windows.Media.Imaging.LateBoundBitmapDecoder..ctor(System.Uri, System.Uri, System.IO.Stream, System.Windows.Media.Imaging.BitmapCreateOptions, System.Windows.Media.Imaging.BitmapCacheOption, System.Net.Cache.RequestCachePolicy) at System.Windows.Media.Imaging.BitmapDecoder.CreateFromUriOrStream(System.Uri, System.Uri, System.IO.Stream, System.Windows.Media.Imaging.BitmapCreateOptions, System.Windows.Media.Imaging.BitmapCacheOption, System.Net.Cache.RequestCachePolicy, Boolean) at System.Windows.Media.Imaging.BitmapImage.FinalizeCreation() at System.Windows.Media.Imaging.BitmapImage.EndInit() at Firaxis.SteamWorkshop.UI.UploadPreviewDataPage+&lt;Page_Loaded&gt;d__4.MoveNext() at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Windows.Threading.ExceptionWrapper.InternalRealCall(System.Delegate, System.Object, Int32) at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(System.Object, System.Delegate, System.Object, Int32, System.Delegate) at System.Windows.Threading.DispatcherOperation.InvokeImpl() at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean) at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean) at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object) at MS.Internal.CulturePreservingExecutionContext.Run(MS.Internal.CulturePreservingExecutionContext, System.Threading.ContextCallback, System.Object) at System.Windows.Threading.DispatcherOperation.Invoke() at System.Windows.Threading.Dispatcher.ProcessQueue() at System.Windows.Threading.Dispatcher.WndProcHook(IntPtr, Int32, IntPtr, IntPtr, Boolean ByRef) at MS.Win32.HwndWrapper.WndProc(IntPtr, Int32, IntPtr, IntPtr, Boolean ByRef) at MS.Win32.HwndSubclass.DispatcherCallbackOperation(System.Object) at System.Windows.Threading.ExceptionWrapper.InternalRealCall(System.Delegate, System.Object, Int32) at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(System.Object, System.Delegate, System.Object, Int32, System.Delegate) at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(System.Windows.Threading.DispatcherPriority, System.TimeSpan, System.Delegate, System.Object, Int32) at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr, Int32, IntPtr, IntPtr) at MS.Win32.UnsafeNativeMethods.DispatchMessage(System.Windows.Interop.MSG ByRef) at System.Windows.Threading.Dispatcher.PushFrameImpl(System.Windows.Threading.DispatcherFrame) at System.Windows.Application.RunDispatcher(System.Object) at System.Windows.Application.RunInternal(System.Windows.Window) at Firaxis.SteamWorkshop.App.Main() </Data> </EventData> </Event> Faulting application name: Firaxis.SteamWorkshop.exe, version: 1.0.0.0, time stamp: 0x93a28c67 Faulting module name: KERNELBASE.dll, version: 10.0.19041.2728, time stamp: 0xe7e53a4e Exception code: 0xe0434352 Fault offset: 0x000000000002cd29 Faulting process id: 0x6fb4 Faulting application start time: 0x01d95d7edf87389e Faulting application path: D:\SteamLibrary\SteamApps\common\XCOM 2 War of the Chosen SDK\Binaries\Binaries\Firaxis.SteamWorkshop.exe Faulting module path: C:\WINDOWS\System32\KERNELBASE.dll Report Id: 3d735a4f-b6d6-416a-94a2-e8e04bf35813 Faulting package full name: Faulting package-relative application ID:
Eric Kotato  [developer] 23 Mar, 2023 @ 12:21pm 
Originally posted by kregano:
MS.Win32.WinInet.get_InternetCacheFolder()

Interesting. Looks like it can't find temporary internet files cache folder.

Can you open Regedit and check the following section?
HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders

It should have Cache parameter of type REG_EXPAND_SZ. On my system its value equals to %USERPROFILE%\AppData\Local\Microsoft\Windows\INetCache.
kregano 23 Mar, 2023 @ 12:28pm 
My Cache | REG_EXPAND_SZ is also %USERPROFILE%\AppData\Local\Microsoft\Windows\INetCache.

I'm running the uploader as Administrator, so it should be able to access access the cache, unless something in the recent update broke something.
Eric Kotato  [developer] 23 Mar, 2023 @ 12:31pm 
Does the folder exist? If it's deleted by accident, it probably will not re-create itself.
kregano 23 Mar, 2023 @ 12:49pm 
It exists, but as a hidden, read-only folder for some reason.

Last time it was updated is the same date I installed the March cumulative update:
https://support.microsoft.com/en-us/topic/march-14-2023-kb5023696-os-builds-19042-2728-19044-2728-and-19045-2728-9a6dafce-d387-410d-a1bc-9ff5a9cafdc1
Eric Kotato  [developer] 23 Mar, 2023 @ 12:52pm 
Is it fully read-only? On my system it's partially read-only (filled with square instead of check mark), which probably means that some subfolder are read-only, but it's fine, I guess.
kregano 23 Mar, 2023 @ 12:58pm 
I've got the square as well.
PsyCHo 20 Mar, 2024 @ 11:05am 
Hello, I have an bug report. It appears I cannot upload new preview picture for all voicepacks where I used ModPreview.jpg picture (which in my case would be all until today :D:)

No idea if the issue is file name or me picking it from UDK folder, but below is comparison of upload status.
On left I uploaded the preview picture of the mod where original file was named preview_charactername.jpg and was in my Pictures folder
On right I try to update Batman voicepack with new picture, where originally I used ModPreview.jpg

https://imgur.com/a/g169OXr

As you can notice, Batman's upload is completely skipping the Uploading Preview File phase...
No idea if anything can be done regarding this, but I thought you'd like to know...
< >
Showing 1-8 of 8 comments
Per page: 1530 50