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

NAV error cancelled the compile. System.IO.IOException #204

Open
karlojacmenjak opened this issue Apr 18, 2023 · 4 comments
Open

NAV error cancelled the compile. System.IO.IOException #204

karlojacmenjak opened this issue Apr 18, 2023 · 4 comments
Labels

Comments

@karlojacmenjak
Copy link

Compile Pal Version
Version: 028
Prerelease: 027.35

Describe the bug

When CompilePal starts with the NAV step, the game launches and tries to establish a server (-textmode content), after that, it stops and prints this error
System.IO.IOException: The process cannot access the file 'C:\Program Files (x86)\Steam\steamapps\common\Team Fortress 2\tf\maps\mvm_bandit.bsp' because it is being used by another process.
....
Compile forcefully ended.

Steps to reproduce

Select a map
Enable NAV process
Compile map
Game starts
Error occurs

Expected behavior

The NAV process should generate a .nav file

Debug.log
debug.log

Crash logs
If applicable, please upload crash logs found in the CrashLog folder.

Additional context

The map was compiled for TF2 and was a MvM map

@Exactol
Copy link
Collaborator

Exactol commented Apr 22, 2023

Is the map open in any other program and is TF2 closed when you compiled?

@karlojacmenjak
Copy link
Author

Is the map open in any other program and is TF2 closed when you compiled?

No. I tried restarting my PC to only open CompilePal to test this and it seemed not the be the case since I was still getting that issue.

@Exactol
Copy link
Collaborator

Exactol commented Apr 30, 2023

It looks like the error is actually coming from the pack step. I added a small delay after the NAV step to see if that will fix the issue. Please try this build https://www.dropbox.com/s/27gwbexhqdbwmeq/Compile%20Pal%20028.1.zip?dl=0

@karlojacmenjak
Copy link
Author

It looks like the error is actually coming from the pack step. I added a small delay after the NAV step to see if that will fix the issue. Please try this build https://www.dropbox.com/s/27gwbexhqdbwmeq/Compile%20Pal%20028.1.zip?dl=0

Tried with the build you provided and seems to not have a effect on the outcome:

Reading BSP...
Something broke:
System.IO.IOException: The process cannot access the file 'C:\Program Files (x86)\Steam\steamapps\common\Team Fortress 2\tf\maps\mvm_bandit.bsp' because it is being used by another process.
   at Microsoft.Win32.SafeHandles.SafeFileHandle.CreateFile(String fullPath, FileMode mode, FileAccess access, FileShare share, FileOptions options)
   at Microsoft.Win32.SafeHandles.SafeFileHandle.Open(String fullPath, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize)
   at System.IO.Strategies.OSFileStreamStrategy..ctor(String path, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize)
   at System.IO.Strategies.FileStreamHelpers.ChooseStrategy(FileStream fileStream, String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, Int64 preallocationSize)
   at System.IO.FileStream..ctor(String path, FileMode mode)
   at CompilePalX.Compilers.BSPPack.BSP..ctor(FileInfo file) in C:\Users\10zil\Documents\Projects\C Sharp\CompilePal\CompilePalX\Compilers\BSPPack\BSP.cs:line 68
   at CompilePalX.Compilers.BSPPack.BSPPack.Run(CompileContext context, CancellationToken cancellationToken) in C:\Users\10zil\Documents\Projects\C Sharp\CompilePal\CompilePalX\Compilers\BSPPack\Pack.cs:line 223
An error cancelled the compile.
Compile forcefully ended.


'Fast 3 Thread' compile finished in 00:03:06

Here is the debug.log from that compile:
debug.log

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

2 participants