SKIF Crashing On Startup

So I posted about this in another thread, but SKIF is crashing on startup. I’ve got all the Visual C++ Runtimes installed, and I’ve tried closing Steam, f.lux, NVIDIA RTX Voice, Discord, MSI Afterburner, Razer Synapse, and NVIDIA GeForce Experience, all to no avail. I’ve got it running from C:\Users\Me\Documents\My Mods\SpecialK, I don’t have any other version of Special K running.

I don’t really know what the problem could be, but here’s the Windows Debugger output:

WinDbg Output

Microsoft (R) Windows Debugger Version 10.0.19041.1 AMD64
Copyright (c) Microsoft Corporation. All rights reserved.

CommandLine: "C:\Users\Me\Documents\My Mods\SpecialK\SKIF.exe"

************* Path validation summary **************
Response                         Time (ms)     Location
Deferred                                       srv*
Symbol search path is: srv*
Executable search path is: 
ModLoad: 00000001`40000000 00000001`40220000   SKIF.exe
ModLoad: 00007ff8`f8430000 00007ff8`f8624000   ntdll.dll
ModLoad: 00007ff8`f7b00000 00007ff8`f7bbd000   C:\WINDOWS\System32\KERNEL32.DLL
ModLoad: 00007ff8`f5ea0000 00007ff8`f6167000   C:\WINDOWS\System32\KERNELBASE.dll
ModLoad: 00007ff8`f7760000 00007ff8`f7900000   C:\WINDOWS\System32\USER32.dll
ModLoad: 00007ff8`f6330000 00007ff8`f6352000   C:\WINDOWS\System32\win32u.dll
ModLoad: 00007ff8`f6d70000 00007ff8`f6d9a000   C:\WINDOWS\System32\GDI32.dll
ModLoad: 00007ff8`f6360000 00007ff8`f646a000   C:\WINDOWS\System32\gdi32full.dll
ModLoad: 00007ff8`f5e00000 00007ff8`f5e9d000   C:\WINDOWS\System32\msvcp_win.dll
ModLoad: 00007ff8`f5c00000 00007ff8`f5d00000   C:\WINDOWS\System32\ucrtbase.dll
ModLoad: 00007ff8`f7c90000 00007ff8`f7d3a000   C:\WINDOWS\System32\ADVAPI32.dll
ModLoad: 00007ff8`f8350000 00007ff8`f83ee000   C:\WINDOWS\System32\msvcrt.dll
ModLoad: 00007ff8`f7a40000 00007ff8`f7adb000   C:\WINDOWS\System32\sechost.dll
ModLoad: 00007ff8`f7910000 00007ff8`f7a33000   C:\WINDOWS\System32\RPCRT4.dll
ModLoad: 00007ff8`f6630000 00007ff8`f6d65000   C:\WINDOWS\System32\SHELL32.dll
ModLoad: 00007ff8`f8220000 00007ff8`f8349000   C:\WINDOWS\System32\ole32.dll
ModLoad: 00007ff8`f7ec0000 00007ff8`f8213000   C:\WINDOWS\System32\combase.dll
ModLoad: 00007ff8`f6e80000 00007ff8`f6ed5000   C:\WINDOWS\System32\SHLWAPI.dll
ModLoad: 00007ff8`f41e0000 00007ff8`f4443000   C:\WINDOWS\SYSTEM32\d3d11.dll
ModLoad: 00007ff8`f6550000 00007ff8`f6580000   C:\WINDOWS\System32\IMM32.dll
ModLoad: 00007ff8`f44c0000 00007ff8`f45b3000   C:\WINDOWS\SYSTEM32\dxgi.dll
ModLoad: 00007ff8`f00b0000 00007ff8`f00ba000   C:\WINDOWS\SYSTEM32\VERSION.dll
ModLoad: 00007ff8`ec300000 00007ff8`ec327000   C:\WINDOWS\SYSTEM32\WINMM.dll
ModLoad: 00007ff8`cb500000 00007ff8`cb9da000   C:\WINDOWS\SYSTEM32\WININET.dll
(3f8.27d8): Break instruction exception - code 80000003 (first chance)
ntdll!LdrpDoDebuggerBreak+0x30:
00007ff8`f84ff780 cc              int     3
0:000> sxe bpe; g
ModLoad: 00007ff8`f47e0000 00007ff8`f47f3000   C:\WINDOWS\SYSTEM32\kernel.appcore.dll
ModLoad: 00007ff8`f5b80000 00007ff8`f5bff000   C:\WINDOWS\System32\bcryptPrimitives.dll
ModLoad: 00007ff8`e3f40000 00007ff8`e41ee000   C:\WINDOWS\SYSTEM32\iertutil.dll
ModLoad: 00007ff8`f64a0000 00007ff8`f654e000   C:\WINDOWS\System32\shcore.dll
ModLoad: 00007ff8`f5a70000 00007ff8`f5aa1000   C:\WINDOWS\SYSTEM32\SspiCli.dll
ModLoad: 00007ff8`f3180000 00007ff8`f390f000   C:\WINDOWS\SYSTEM32\windows.storage.dll
ModLoad: 00007ff8`f5600000 00007ff8`f562b000   C:\WINDOWS\SYSTEM32\Wldp.dll
ModLoad: 00007ff8`f5ac0000 00007ff8`f5adf000   C:\WINDOWS\SYSTEM32\profapi.dll
ModLoad: 00007ff8`f7bc0000 00007ff8`f7c2b000   C:\WINDOWS\System32\WS2_32.dll
ModLoad: 00007ff8`f2180000 00007ff8`f2197000   C:\WINDOWS\SYSTEM32\ondemandconnroutehelper.dll
ModLoad: 00007ff8`ea7f0000 00007ff8`ea8f0000   C:\WINDOWS\SYSTEM32\winhttp.dll
ModLoad: 00007ff8`f52b0000 00007ff8`f531a000   C:\WINDOWS\system32\mswsock.dll
ModLoad: 00007ff8`f4fa0000 00007ff8`f4fdb000   C:\WINDOWS\SYSTEM32\IPHLPAPI.DLL
ModLoad: 00007ff8`f7680000 00007ff8`f774d000   C:\WINDOWS\System32\OLEAUT32.dll
ModLoad: 00007ff8`f18d0000 00007ff8`f18db000   C:\WINDOWS\SYSTEM32\WINNSI.DLL
ModLoad: 00007ff8`f7900000 00007ff8`f7909000   C:\WINDOWS\System32\NSI.dll
ModLoad: 00007ff8`e3c10000 00007ff8`e3dfd000   C:\WINDOWS\SYSTEM32\urlmon.dll
ModLoad: 00007ff8`f4fe0000 00007ff8`f50aa000   C:\WINDOWS\SYSTEM32\DNSAPI.dll
ModLoad: 00007ff8`e8d80000 00007ff8`e8d8a000   C:\Windows\System32\rasadhlp.dll
ModLoad: 00007ff8`e9090000 00007ff8`e910f000   C:\WINDOWS\System32\fwpuclnt.dll
ModLoad: 00007ff8`f6470000 00007ff8`f6497000   C:\WINDOWS\System32\bcrypt.dll
ModLoad: 00007ff8`f5a40000 00007ff8`f5a6e000   C:\WINDOWS\SYSTEM32\USERENV.dll
ModLoad: 00007ff8`f2780000 00007ff8`f281f000   C:\WINDOWS\system32\uxtheme.dll
ModLoad: 00007ff8`f7da0000 00007ff8`f7eb5000   C:\WINDOWS\System32\MSCTF.dll
ModLoad: 00007ff8`efe90000 00007ff8`eff8c000   C:\WINDOWS\SYSTEM32\textinputframework.dll
ModLoad: 00007ff8`f0c70000 00007ff8`f0fca000   C:\WINDOWS\SYSTEM32\CoreUIComponents.dll
ModLoad: 00007ff8`f0fd0000 00007ff8`f10c2000   C:\WINDOWS\SYSTEM32\CoreMessaging.dll
ModLoad: 00007ff8`f4a00000 00007ff8`f4a33000   C:\WINDOWS\SYSTEM32\ntmarta.dll
ModLoad: 00007ff8`f2020000 00007ff8`f2176000   C:\WINDOWS\SYSTEM32\wintypes.dll
ModLoad: 00000000`032d0000 00000000`03426000   C:\WINDOWS\SYSTEM32\wintypes.dll
ModLoad: 00007ff8`f2940000 00007ff8`f2954000   C:\WINDOWS\SYSTEM32\resourcepolicyclient.dll
ModLoad: 00007ff8`edea0000 00007ff8`edfa2000   C:\WINDOWS\System32\DriverStore\FileRepository\nvpcdi.inf_amd64_491a90af018cd022\nvldumdx.dll
ModLoad: 00007ff8`f6170000 00007ff8`f62cd000   C:\WINDOWS\System32\crypt32.dll
ModLoad: 00007ff8`f0070000 00007ff8`f00a1000   C:\WINDOWS\SYSTEM32\cryptnet.dll
ModLoad: 00007ff8`f54a0000 00007ff8`f54ac000   C:\WINDOWS\SYSTEM32\cryptbase.dll
ModLoad: 00007ff8`f62d0000 00007ff8`f6330000   C:\WINDOWS\System32\WINTRUST.DLL
ModLoad: 00007ff8`f5780000 00007ff8`f5792000   C:\WINDOWS\SYSTEM32\MSASN1.dll
ModLoad: 00007ff8`f7ae0000 00007ff8`f7afd000   C:\WINDOWS\System32\imagehlp.dll
ModLoad: 00007ff8`f5480000 00007ff8`f5498000   C:\WINDOWS\SYSTEM32\CRYPTSP.dll
ModLoad: 00007ff8`f4c40000 00007ff8`f4c74000   C:\WINDOWS\system32\rsaenh.dll
ModLoad: 00007ff8`ac6c0000 00007ff8`af09b000   C:\WINDOWS\System32\DriverStore\FileRepository\nvpcdi.inf_amd64_491a90af018cd022\nvwgf2umx.dll
ModLoad: 00007ff8`c74a0000 00007ff8`c753e000   C:\Program Files\NVIDIA Corporation\Ansel\NvCameraWhitelisting64.dll
ModLoad: 00007ff8`ba170000 00007ff8`ba41e000   C:\WINDOWS\system32\nvspcap64.dll
ModLoad: 00007ff8`f18f0000 00007ff8`f192b000   C:\WINDOWS\SYSTEM32\dxcore.dll
ModLoad: 00007ff8`f5d00000 00007ff8`f5d4d000   C:\WINDOWS\System32\cfgmgr32.dll
ModLoad: 00007ff8`f05d0000 00007ff8`f07b5000   C:\WINDOWS\SYSTEM32\dcomp.dll
ModLoad: 00007ff8`f2a30000 00007ff8`f2a5e000   C:\WINDOWS\SYSTEM32\dwmapi.dll
ModLoad: 00007ff8`d7210000 00007ff8`d7221000   C:\WINDOWS\SYSTEM32\XInput1_4.dll
ModLoad: 00007ff8`f5940000 00007ff8`f596c000   C:\WINDOWS\SYSTEM32\DEVOBJ.dll
ModLoad: 00007ff8`ee2a0000 00007ff8`ee3f2000   C:\WINDOWS\SYSTEM32\inputhost.dll
ModLoad: 00007ff8`f1e90000 00007ff8`f1f85000   C:\WINDOWS\SYSTEM32\PROPSYS.dll
(3f8.27d8): Security check failure or stack buffer overrun - code c0000409 (!!! second chance !!!)
*** WARNING: Unable to verify checksum for SKIF.exe
SKIF+0x8f13c:
00000001`4008f13c cd29            int     29h
0:000> !analyze -v
*******************************************************************************
*                                                                             *
*                        Exception Analysis                                   *
*                                                                             *
*******************************************************************************


KEY_VALUES_STRING: 1

    Key  : Analysis.CPU.Sec
    Value: 0

    Key  : Analysis.DebugAnalysisProvider.CPP
    Value: Create: 8007007e on ALL_OF_THE_YES

    Key  : Analysis.DebugData
    Value: CreateObject

    Key  : Analysis.DebugModel
    Value: CreateObject

    Key  : Analysis.Elapsed.Sec
    Value: 6

    Key  : Analysis.Memory.CommitPeak.Mb
    Value: 86

    Key  : Analysis.System
    Value: CreateObject

    Key  : Timeline.OS.Boot.DeltaSec
    Value: 435203

    Key  : Timeline.Process.Start.DeltaSec
    Value: 85


NTGLOBALFLAG:  70

PROCESS_BAM_CURRENT_THROTTLED: 0

PROCESS_BAM_PREVIOUS_THROTTLED: 0

APPLICATION_VERIFIER_FLAGS:  0

EXCEPTION_RECORD:  (.exr -1)
ExceptionAddress: 000000014008f13c (SKIF+0x000000000008f13c)
   ExceptionCode: c0000409 (Security check failure or stack buffer overrun)
  ExceptionFlags: 00000001
NumberParameters: 1
   Parameter[0]: 0000000000000005
Subcode: 0x5 FAST_FAIL_INVALID_ARG

FAULTING_THREAD:  000027d8

PROCESS_NAME:  SKIF.exe

ERROR_CODE: (NTSTATUS) 0xc0000409 - The system detected an overrun of a stack-based buffer in this application. This overrun could potentially allow a malicious user to gain control of this application.

EXCEPTION_CODE_STR:  c0000409

EXCEPTION_PARAMETER1:  0000000000000005

STACK_TEXT:  
00000000`0014e0e0 00000001`4008f0d1 : 00000000`00000000 00000000`00000000 00000000`00000003 00000001`400ab02f : SKIF+0x8f13c
00000000`0014e110 00000001`4008f0ed : 00000000`00000000 00000000`0014e1e0 00000000`077b1e30 00000000`077b1e30 : SKIF+0x8f0d1
00000000`0014e150 00000001`400a6adf : 00000000`0014e2f0 00000000`00000000 00000000`00000000 00000001`400a1b15 : SKIF+0x8f0ed
00000000`0014e190 00000001`4006ba9a : 00000001`4013df00 00000000`00000000 00000000`077b1e30 00000000`00000034 : SKIF+0xa6adf
00000000`0014e1f0 00000001`40079e8c : 00000000`000ee75a 00000000`00000000 00000001`401da3a0 00000000`00473600 : SKIF+0x6ba9a
00000000`0014eb50 00000001`4005ef5b : 00000000`0785cd00 00000000`0785e600 00000000`0014fcb0 00000000`00100000 : SKIF+0x79e8c
00000000`0014fbb0 00000001`4008900e : 00000000`0000000a 00000000`00000000 00000000`00000000 00000000`00000000 : SKIF+0x5ef5b
00000000`0014fef0 00007ff8`f7b16fd4 : 00000000`00000000 00000000`00000000 00000000`00000000 00000000`00000000 : SKIF+0x8900e
00000000`0014ff30 00007ff8`f847cec1 : 00000000`00000000 00000000`00000000 00000000`00000000 00000000`00000000 : KERNEL32!BaseThreadInitThunk+0x14
00000000`0014ff60 00000000`00000000 : 00000000`00000000 00000000`00000000 00000000`00000000 00000000`00000000 : ntdll!RtlUserThreadStart+0x21


STACK_COMMAND:  ~0s ; .cxr ; kb

SYMBOL_NAME:  SKIF+8f13c

MODULE_NAME: SKIF

IMAGE_NAME:  SKIF.exe

FAILURE_BUCKET_ID:  FAIL_FAST_INVALID_ARG_c0000409_SKIF.exe!Unknown

OS_VERSION:  10.0.19041.1

BUILDLAB_STR:  vb_release

OSPLATFORM_TYPE:  x64

OSNAME:  Windows 10

FAILURE_ID_HASH:  {8e59ba96-499d-5378-a89a-3506eeb81363}

Followup:     MachineOwner
---------

I can send a crash dump, too, if that’s helpful.

Same here (updated runtimes, and closed background programs), it stays on the taskbar for few seconds, then closes.
The strange thing is, older version (v 0.6.9.1) still opens the window, but dont have the compatibility that i want (hzd).
Tried another versions v0.6.9.2, v0.6.9.3, v0.7.0.1 and v0.7.0.2. All these crash on start.

I assume WinDbg can load debug symbols and produce a more helpful output than that?

SKIF_Debug.7z (2.1 MB)

Here’s a copy of SKIF with debug symbols included. I can’t make heads or tails of where the stack overflow is occurring given the logs you showed.

Alright, it took a bit of doing, but I think I got it working:

Exception Analysis and Stack Trace
0:000> !analyze -v
*******************************************************************************
*                                                                             *
*                        Exception Analysis                                   *
*                                                                             *
*******************************************************************************


KEY_VALUES_STRING: 1

    Key  : Analysis.CPU.Sec
    Value: 0

    Key  : Analysis.DebugAnalysisProvider.CPP
    Value: Create: 8007007e on ALL_OF_THE_YES

    Key  : Analysis.DebugData
    Value: CreateObject

    Key  : Analysis.DebugModel
    Value: CreateObject

    Key  : Analysis.Elapsed.Sec
    Value: 5

    Key  : Analysis.Memory.CommitPeak.Mb
    Value: 135

    Key  : Analysis.System
    Value: CreateObject

    Key  : Timeline.OS.Boot.DeltaSec
    Value: 443585

    Key  : Timeline.Process.Start.DeltaSec
    Value: 360


NTGLOBALFLAG:  70

PROCESS_BAM_CURRENT_THROTTLED: 0

PROCESS_BAM_PREVIOUS_THROTTLED: 0

APPLICATION_VERIFIER_FLAGS:  0

EXCEPTION_RECORD:  (.exr -1)
ExceptionAddress: 000000014008f13c (SKIF!?A0xa1509eb1::Norm+0x000000000000003b)
   ExceptionCode: c0000409 (Security check failure or stack buffer overrun)
  ExceptionFlags: 00000001
NumberParameters: 1
   Parameter[0]: 0000000000000005
Subcode: 0x5 FAST_FAIL_INVALID_ARG

FAULTING_THREAD:  0000213c

PROCESS_NAME:  SKIF.exe

ERROR_CODE: (NTSTATUS) 0xc0000409 - The system detected an overrun of a stack-based buffer in this application. This overrun could potentially allow a malicious user to gain control of this application.

EXCEPTION_CODE_STR:  c0000409

EXCEPTION_PARAMETER1:  0000000000000005

STACK_TEXT:  
00000000`0014e0e0 00000001`4008f0d1 : 00000000`00000000 00000000`00000000 00000000`00000003 00000001`400ab02f : SKIF!`anonymous namespace'::D3DX_BC6H::AssignIndices+0xfc
00000000`0014e110 00000001`4008f0ed : 00000000`00000000 00000000`0014e1e0 00000000`09b6d260 00000000`09b6d260 : SKIF!`anonymous namespace'::D3DX_BC6H::AssignIndices+0x91
00000000`0014e150 00000001`400a6adf : 00000000`0014e2f0 00000000`00000000 00000000`00000000 00000001`400a1b15 : SKIF!`anonymous namespace'::D3DX_BC6H::AssignIndices+0xad
00000000`0014e190 00000001`4006ba9a : 00000001`4013df00 00000000`00000000 00000000`09b6d260 00000000`00000034 : SKIF!`SK_UseManifestToGetInstallDir'::`1'::dtor$3+0x2f
00000000`0014e1f0 00000001`40079e8c : 00000000`000ee75a 00000000`00000000 00000001`401da3a0 00000000`004b35b0 : SKIF!skValveDataFile::getAppInfo+0xd5a
00000000`0014eb50 00000001`4005ef5b : 00000000`09ab8500 00000000`09abb300 00000000`0014fcb0 00000000`00100000 : SKIF!<lambda_136fb4ebd51842333ae4184c4afd4331>::operator()+0x9ec
00000000`0014fbb0 00000001`4008900e : 00000000`0000000a 00000000`00000000 00000000`00000000 00000000`00000000 : SKIF!std::basic_filebuf<wchar_t,std::char_traits<wchar_t> >::overflow+0xfb
00000000`0014fef0 00007ff8`f7b16fd4 : 00000000`00000000 00000000`00000000 00000000`00000000 00000000`00000000 : SKIF!`anonymous namespace'::D3DX_BC7::EmitBlock+0x3de
00000000`0014ff30 00007ff8`f847cec1 : 00000000`00000000 00000000`00000000 00000000`00000000 00000000`00000000 : KERNEL32!BaseThreadInitThunk+0x14
00000000`0014ff60 00000000`00000000 : 00000000`00000000 00000000`00000000 00000000`00000000 00000000`00000000 : ntdll!RtlUserThreadStart+0x21


STACK_COMMAND:  ~0s ; .cxr ; kb

FAULTING_SOURCE_LINE:  C:\Users\amcol\Source\Repos\SKIF\DirectXTex\BC6HBC7.cpp

FAULTING_SOURCE_FILE:  C:\Users\amcol\Source\Repos\SKIF\DirectXTex\BC6HBC7.cpp

FAULTING_SOURCE_LINE_NUMBER:  2257

SYMBOL_NAME:  SKIF!`anonymous namespace'::D3DX_BC6H::AssignIndices+fc

MODULE_NAME: SKIF

IMAGE_NAME:  SKIF.exe

FAILURE_BUCKET_ID:  FAIL_FAST_INVALID_ARG_c0000409_SKIF.exe!_anonymous_namespace_::D3DX_BC6H::AssignIndices

OS_VERSION:  10.0.19041.1

BUILDLAB_STR:  vb_release

OSPLATFORM_TYPE:  x64

OSNAME:  Windows 10

FAILURE_ID_HASH:  {302bcf45-8d82-aaf1-9cf9-9341a4b9a5e6}

Followup:     MachineOwner
---------

0:000> ~# kP
 # Child-SP          RetAddr           Call Site
00 (Inline Function) --------`-------- SKIF!?A0xa1509eb1::Norm(void)+0x3b [C:\Users\amcol\Source\Repos\SKIF\DirectXTex\BC6HBC7.cpp @ 1155] 
01 00000000`0014e0e0 00000001`4008f0d1 SKIF!`anonymous namespace'::D3DX_BC6H::AssignIndices(
			struct `anonymous-namespace'::D3DX_BC6H::EncodeParams * pEP = <Value unavailable error>, 
			struct `anonymous-namespace'::INTEndPntPair * aEndPts = <Value unavailable error>, 
			unsigned int64 * aIndices = <Value unavailable error>, 
			float * aTotErr = 0x00000000`00000000)+0xfc [C:\Users\amcol\Source\Repos\SKIF\DirectXTex\BC6HBC7.cpp @ 2257] 
02 00000000`0014e110 00000001`4008f0ed SKIF!`anonymous namespace'::D3DX_BC6H::AssignIndices(
			struct `anonymous-namespace'::D3DX_BC6H::EncodeParams * pEP = 0x00000000`0000001f, 
			struct `anonymous-namespace'::INTEndPntPair * aEndPts = 0x00000000`00000000, 
			unsigned int64 * aIndices = 0x00000000`09b7929c, 
			float * aTotErr = 0x00000000`00000000)+0x91 [C:\Users\amcol\Source\Repos\SKIF\DirectXTex\BC6HBC7.cpp @ 2249] 
03 00000000`0014e150 00000001`400a6adf SKIF!`anonymous namespace'::D3DX_BC6H::AssignIndices(
			struct `anonymous-namespace'::D3DX_BC6H::EncodeParams * pEP = 0x00000000`0000001f, 
			struct `anonymous-namespace'::INTEndPntPair * aEndPts = <Value unavailable error>, 
			unsigned int64 * aIndices = <Value unavailable error>, 
			float * aTotErr = 0x00000000`00000000)+0xad [C:\Users\amcol\Source\Repos\SKIF\DirectXTex\BC6HBC7.cpp @ 2254] 
04 00000000`0014e190 00000001`4006ba9a SKIF!`SK_UseManifestToGetInstallDir'::`1'::dtor$3+0x2f
05 00000000`0014e1f0 00000001`40079e8c SKIF!skValveDataFile::getAppInfo(
			unsigned int appid = 0x6f0072)+0xd5a [C:\Users\amcol\source\repos\SKIF\src\stores\Steam\vdf.cpp @ 376] 
06 (Inline Function) --------`-------- SKIF!std::_Deallocate(
			void * _Ptr = 0x00000000`00000001, 
			unsigned int64 _Bytes = <Value unavailable error>)+0x2 [C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.25.28610\include\xmemory @ 190] 
07 (Inline Function) --------`-------- SKIF!std::allocator<char>::deallocate(
			unsigned int64 _Count = 0)+0x5 [C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.25.28610\include\xmemory @ 780] 
08 (Inline Function) --------`-------- SKIF!std::basic_string<char,std::char_traits<char>,std::allocator<char> >::_Tidy_deallocate(void)+0xf [C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.25.28610\include\xstring @ 4214] 
09 (Inline Function) --------`-------- SKIF!std::basic_string<char,std::char_traits<char>,std::allocator<char> >::{dtor}(void)+0xf [C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.25.28610\include\xstring @ 2629] 
0a 00000000`0014eb50 00000001`4005ef5b SKIF!<lambda_136fb4ebd51842333ae4184c4afd4331>::operator()(
			void * pUser = <Value unavailable error>)+0x9ec [C:\Users\amcol\source\repos\SKIF\src\ui_tasks\manage_games.cpp @ 623] 
0b 00000000`0014fbb0 00000001`4008900e SKIF!std::basic_filebuf<wchar_t,std::char_traits<wchar_t> >::overflow(
			unsigned short _Meta = 0)+0xfb [C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.25.28610\include\fstream @ 431] 
0c 00000000`0014fef0 00007ff8`f7b16fd4 SKIF!`anonymous namespace'::D3DX_BC7::EmitBlock(
			struct `anonymous-namespace'::D3DX_BC7::EncodeParams * pEP = 0x00000000`00000000, 
			unsigned int64 uShape = 0, 
			unsigned int64 uRotation = <Value unavailable error>, 
			unsigned int64 uIndexMode = 0, 
			struct DirectX::LDREndPntPair * aEndPts = 0x00000000`00000000, 
			unsigned int64 * aIndex = 0x00000020`78746341, 
			unsigned int64 * aIndex2 = 0x0000303c`00000001)+0x3de [C:\Users\amcol\Source\Repos\SKIF\DirectXTex\BC6HBC7.cpp @ 3176] 
0d 00000000`0014ff30 00007ff8`f847cec1 KERNEL32!BaseThreadInitThunk+0x14
0e 00000000`0014ff60 00000000`00000000 ntdll!RtlUserThreadStart+0x21

That still does not look quite right, but it suggests there is something corrupted in your appinfo.vdf file.

Could you upload C:\Program Files (x86)\Steam\appcache\appinfo.vdf (or wheverever it’s installed on your system) for me to look at? It’s a cache of all your licensed games, nothing personally identifiable.

Huh, alright. Here it is: appinfo.vdf (4.4 MB)

That’s frustrating, I see nothing wrong with that file. I don’t think the debugger loaded the symbols correctly.

0.7.0.2 was uploaded to the SK update server about an hour ago, here’s a copy of that with debug symbols.

SKIF_Debug.7z (1.9 MB)

There’s a chance that will produce correct debug output.

Yeah, this one seems to have worked better, WinDbg thought that the previous SKIF.pdb was mismatched or something, I’m not that familiar with the program or Windows development in general.

Exception Analysis and Trace
0:000> !analyze -v
*******************************************************************************
*                                                                             *
*                        Exception Analysis                                   *
*                                                                             *
*******************************************************************************

*** WARNING: Unable to verify checksum for SKIF.exe

KEY_VALUES_STRING: 1

    Key  : Analysis.CPU.Sec
    Value: 0

    Key  : Analysis.DebugAnalysisProvider.CPP
    Value: Create: 8007007e on ALL_OF_THE_YES

    Key  : Analysis.DebugData
    Value: CreateObject

    Key  : Analysis.DebugModel
    Value: CreateObject

    Key  : Analysis.Elapsed.Sec
    Value: 3

    Key  : Analysis.Memory.CommitPeak.Mb
    Value: 94

    Key  : Analysis.System
    Value: CreateObject

    Key  : Timeline.OS.Boot.DeltaSec
    Value: 445343

    Key  : Timeline.Process.Start.DeltaSec
    Value: 144


NTGLOBALFLAG:  70

PROCESS_BAM_CURRENT_THROTTLED: 0

PROCESS_BAM_PREVIOUS_THROTTLED: 0

APPLICATION_VERIFIER_FLAGS:  0

EXCEPTION_RECORD:  (.exr -1)
ExceptionAddress: 00007ff8f5c711e8 (ucrtbase!invoke_watson+0x0000000000000018)
   ExceptionCode: c0000409 (Security check failure or stack buffer overrun)
  ExceptionFlags: 00000001
NumberParameters: 1
   Parameter[0]: 0000000000000005
Subcode: 0x5 FAST_FAIL_INVALID_ARG

FAULTING_THREAD:  00002478

PROCESS_NAME:  SKIF.exe

ERROR_CODE: (NTSTATUS) 0xc0000409 - The system detected an overrun of a stack-based buffer in this application. This overrun could potentially allow a malicious user to gain control of this application.

EXCEPTION_CODE_STR:  c0000409

EXCEPTION_PARAMETER1:  0000000000000005

STACK_TEXT:  
00000000`0014e0b0 00007ff8`f5c21e41 : 00000000`00000003 00000000`0014e1a0 00000000`07887260 00007ff8`f5c13431 : ucrtbase!invoke_watson+0x18
00000000`0014e0e0 00007ff8`f5c21d09 : 00000000`00000000 00007ff8`f5c12e46 00000000`00000003 00000000`07887260 : ucrtbase!_invalid_parameter+0x12d
00000000`0014e120 00007ff8`f5c54d66 : 00000000`00000000 00000001`400f75b0 00000000`00000034 00007ff8`f5c0ea0b : ucrtbase!invalid_parameter_noinfo+0x9
00000000`0014e160 00000001`40069b9f : 00000001`400f78e0 00000000`00000000 00000000`07887260 00000000`004c1310 : ucrtbase!fputs+0x3ad36
00000000`0014e1b0 00000001`40077d4f : 00000000`000ee75a 00000000`00000000 00000001`4018fa40 00000000`004235b0 : SKIF!SK_Steam_GetInstalledAppIDs+0x4df
00000000`0014eb10 00000001`4005e237 : 00000000`07886900 00000000`07888300 00000000`0014fc70 41980000`00100000 : SKIF!SKIF_GameManagement_DrawTab+0x47f
00000000`0014fb70 00000001`40084be2 : 00000000`0000000a 00000000`00000000 00000000`00000000 00000000`00000000 : SKIF!wWinMain+0xe77
00000000`0014fef0 00007ff8`f7b16fd4 : 00000000`00000000 00000000`00000000 00000000`00000000 00000000`00000000 : SKIF!__scrt_common_main_seh+0x106
00000000`0014ff30 00007ff8`f847cec1 : 00000000`00000000 00000000`00000000 00000000`00000000 00000000`00000000 : KERNEL32!BaseThreadInitThunk+0x14
00000000`0014ff60 00000000`00000000 : 00000000`00000000 00000000`00000000 00000000`00000000 00000000`00000000 : ntdll!RtlUserThreadStart+0x21


STACK_COMMAND:  ~0s ; .cxr ; kb

SYMBOL_NAME:  ucrtbase!invoke_watson+18

MODULE_NAME: ucrtbase

IMAGE_NAME:  ucrtbase.dll

FAILURE_BUCKET_ID:  FAIL_FAST_INVALID_ARG_c0000409_ucrtbase.dll!invoke_watson

OS_VERSION:  10.0.19041.1

BUILDLAB_STR:  vb_release

OSPLATFORM_TYPE:  x64

OSNAME:  Windows 10

FAILURE_ID_HASH:  {ff968da7-5196-0e9d-7c2c-c6a2c196fc27}

Followup:     MachineOwner
---------

0:000> ~# kP
 # Child-SP          RetAddr           Call Site
00 00000000`0014e0b0 00007ff8`f5c21e41 ucrtbase!invoke_watson+0x18
01 00000000`0014e0e0 00007ff8`f5c21d09 ucrtbase!_invalid_parameter+0x12d
02 00000000`0014e120 00007ff8`f5c54d66 ucrtbase!invalid_parameter_noinfo+0x9
03 00000000`0014e160 00000001`40069b9f ucrtbase!fputs+0x3ad36
04 00000000`0014e1b0 00000001`40077d4f SKIF!SK_Steam_GetInstalledAppIDs(void)+0x4df [C:\Users\amcol\source\repos\SKIF\src\stores\Steam\library.cpp @ 269] 
05 00000000`0014eb10 00000001`4005e237 SKIF!SKIF_GameManagement_DrawTab(void)+0x47f [C:\Users\amcol\source\repos\SKIF\src\ui_tasks\manage_games.cpp @ 405] 
06 00000000`0014fb70 00000001`40084be2 SKIF!wWinMain(
			struct HINSTANCE__ * hInstance = 0x00000000`0000000a, 
			struct HINSTANCE__ * hPrevInstance = 0x00000000`00000000, 
			wchar_t * lpCmdLine = <Value unavailable error>, 
			int nCmdShow = <Value unavailable error>)+0xe77 [C:\Users\amcol\source\repos\SKIF\src\SKIF.cpp @ 1469] 
07 (Inline Function) --------`-------- SKIF!invoke_main(void)+0x21 [d:\agent\_work\4\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl @ 118] 
08 00000000`0014fef0 00007ff8`f7b16fd4 SKIF!__scrt_common_main_seh(void)+0x106 [d:\agent\_work\4\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl @ 288] 
09 00000000`0014ff30 00007ff8`f847cec1 KERNEL32!BaseThreadInitThunk+0x14
0a 00000000`0014ff60 00000000`00000000 ntdll!RtlUserThreadStart+0x21

It’s also a different error from 0.7.0.1, at least Windows Error Reporting reports it differently. For everything I’ve tried since I think 0.6.9.1 the “faulting module” has been SKIF.exe, but now it’s back to being ucrtbase.dll.

Ugh, I am a dumbass :-\

I forgot to check whether a file opened successfully before writing something to it.

This should hopefully fix your problem:

SKIF_Debug.7z (2.0 MB)

1 Like

Yup, works. XD

Why didn’t anyone else encounter this if it was something that simple, though?

It was not something simple, several things had to fail before that file needed to be opened. Then in most cases, the file would open successfully, so it never got full testing.

Alright, thanks for all the help!

It works for me as well. Thanks for the support, man.