Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

System.IO.FileNotFoundException on Startup #175

Closed
asd417 opened this issue Jul 31, 2022 · 7 comments
Closed

System.IO.FileNotFoundException on Startup #175

asd417 opened this issue Jul 31, 2022 · 7 comments
Labels

Comments

@asd417
Copy link

asd417 commented Jul 31, 2022

Describe the bug
Compilepal immediately crashes on startup.

Steps to reproduce
not sure what caused this suddenly because I was using it just 3 minutes ago.

Expected behavior
It should just open without crashing.

Debug.log
An exception was caught by the ExceptionHandler: System.IO.FileNotFoundException: 'C:\Program Files (x86)\Steam\steamapps\common\Counter-Strike Global Offensive\bin\GameConfig.txt' 파일을 찾을 수 없습니다. 파일 이름: 'C:\Program Files (x86)\Steam\steamapps\common\Counter-Strike Global Offensive\bin\GameConfig.txt' 위치: System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) 위치: System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost) 위치: System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost) 위치: System.IO.StreamReader..ctor(String path, Encoding encoding, Boolean detectEncodingFromByteOrderMarks, Int32 bufferSize, Boolean checkHost) 위치: System.IO.StreamReader..ctor(String path, Encoding encoding) 위치: System.IO.File.InternalReadAllLines(String path, Encoding encoding) 위치: System.IO.File.ReadAllLines(String path) 위치: CompilePalX.GameConfigurationParser.Parse(String filename) 파일 C:\Users\10zil\OneDrive\Documents\Projects\C Sharp\CompilePal\CompilePalX\GameConfiguration\GameConfigurationParser.cs:줄 146 위치: CompilePalX.LaunchWindow..ctor() 파일 C:\Users\10zil\OneDrive\Documents\Projects\C Sharp\CompilePal\CompilePalX\GameConfiguration\LaunchWindow.xaml.cs:줄 62 An exception was caught by the ExceptionHandler: System.NullReferenceException: 개체 참조가 개체의 인스턴스로 설정되지 않았습니다. 위치: CompilePalX.ProgressManager.ErrorProgress() 파일 C:\Users\10zil\OneDrive\Documents\Projects\C Sharp\CompilePal\CompilePalX\Compiling\ProgressManager.cs:줄 74 위치: CompilePalX.ExceptionHandler.<LogException>d__0.MoveNext() 파일 C:\Users\10zil\OneDrive\Documents\Projects\C Sharp\CompilePal\CompilePalX\ExceptionHandler.cs:줄 35 --- 예외가 throw된 이전 위치의 스택 추적 끝 --- 위치: System.Runtime.CompilerServices.AsyncMethodBuilderCore.<>c.<ThrowAsync>b__6_0(Object state) 위치: System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs) 위치: System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler) An exception was caught by the ExceptionHandler: System.NullReferenceException: 개체 참조가 개체의 인스턴스로 설정되지 않았습니다. 위치: CompilePalX.ProgressManager.ErrorProgress() 파일 C:\Users\10zil\OneDrive\Documents\Projects\C Sharp\CompilePal\CompilePalX\Compiling\ProgressManager.cs:줄 74 위치: CompilePalX.ExceptionHandler.<LogException>d__0.MoveNext() 파일 C:\Users\10zil\OneDrive\Documents\Projects\C Sharp\CompilePal\CompilePalX\ExceptionHandler.cs:줄 35 --- 예외가 throw된 이전 위치의 스택 추적 끝 --- 위치: System.Runtime.CompilerServices.AsyncMethodBuilderCore.<>c.<ThrowAsync>b__6_0(Object state) 위치: System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs) 위치: System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler) 위치: System.Windows.Threading.DispatcherOperation.InvokeImpl() 위치: System.Windows.Threading.DispatcherOperation.InvokeInSecurityContext(Object state) 위치: System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) 위치: System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) 위치: System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state) 위치: MS.Internal.CulturePreservingExecutionContext.Run(CulturePreservingExecutionContext executionContext, ContextCallback callback, Object state) 위치: System.Windows.Threading.DispatcherOperation.Invoke() 위치: System.Windows.Threading.Dispatcher.ProcessQueue() 위치: System.Windows.Threading.Dispatcher.WndProcHook(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled) 위치: MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled) 위치: MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o) 위치: System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs) 위치: System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler) 위치: System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs) 위치: MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam) 위치: MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg) 위치: System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame) 위치: System.Windows.Threading.Dispatcher.PushFrame(DispatcherFrame frame) 위치: System.Windows.Application.RunDispatcher(Object ignore) 위치: System.Windows.Application.RunInternal(Window window) 위치: System.Windows.Application.Run(Window window) 위치: CompilePalX.App.Main()

Crash logs
System.IO.FileNotFoundException: 'C:\Program Files (x86)\Steam\steamapps\common\Counter-Strike Global Offensive\bin\GameConfig.txt' 파일을 찾을 수 없습니다. 파일 이름: 'C:\Program Files (x86)\Steam\steamapps\common\Counter-Strike Global Offensive\bin\GameConfig.txt' 위치: System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) 위치: System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost) 위치: System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost) 위치: System.IO.StreamReader..ctor(String path, Encoding encoding, Boolean detectEncodingFromByteOrderMarks, Int32 bufferSize, Boolean checkHost) 위치: System.IO.StreamReader..ctor(String path, Encoding encoding) 위치: System.IO.File.InternalReadAllLines(String path, Encoding encoding) 위치: System.IO.File.ReadAllLines(String path) 위치: CompilePalX.GameConfigurationParser.Parse(String filename) 파일 C:\Users\10zil\OneDrive\Documents\Projects\C Sharp\CompilePal\CompilePalX\GameConfiguration\GameConfigurationParser.cs:줄 146 위치: CompilePalX.LaunchWindow..ctor() 파일 C:\Users\10zil\OneDrive\Documents\Projects\C Sharp\CompilePal\CompilePalX\GameConfiguration\LaunchWindow.xaml.cs:줄 62

Additional context
This was not a problem 2 mins ago but I was using it and I suddenly got a message System.IO.FileNotFoundException: 'C:\Program Files (x86)\Steam\steamapps\common\Counter-Strike Global Offensive\bin\GameConfig.txt' 파일을 찾을 수 없습니다. and crashed. I cant run it after this crash happened. I have csgo installed for h++ but it's weird that compilepal just randomly decided to check this game because I dont use it.
I'm on windows 11

@asd417 asd417 added the bug label Jul 31, 2022
@Exactol
Copy link
Collaborator

Exactol commented Aug 1, 2022

This is a known issue with Hammer++, it does not generate a gameconfig.txt file. Try running normal Hammer and launching Compile Pal

@karl-police
Copy link

karl-police commented Aug 9, 2022

I have the same issue here.

Fixes though when I run hammer. But annoying is that I would have to run it on every game that I have installed but I am not even trying to use CompilePal with.

@Exactol
Copy link
Collaborator

Exactol commented Aug 9, 2022

I have the same issue here.

Fixes though when I run hammer. But annoying is that I would have to run it on every game that I have installed but I am not even trying to use CompilePal with.

Are you using Hammer++?

@karl-police
Copy link

I have the same issue here.
Fixes though when I run hammer. But annoying is that I would have to run it on every game that I have installed but I am not even trying to use CompilePal with.

Are you using Hammer++?

I am using regular Hammer.

@Fennecai
Copy link

I cant self fix this by simply running normal hammer; because I only have csgo set up with hammer++ and not it's normal hammer (which I'd have to pay for and sign agreements for and stuff iirc) and I don't even play csgo, I only have it for assets and hammer++ portal 2 compatibility.

I could try copying from another game's hammer though

@Exactol
Copy link
Collaborator

Exactol commented Aug 19, 2022

@Exactol
Copy link
Collaborator

Exactol commented Jan 28, 2023

This issue should be fixed in the latest prerelease, forgot to close the issue

@Exactol Exactol closed this as completed Jan 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants