Community Q&A

Welcome to Audiokinetic’s community-driven Q&A forum. This is the place where Wwise and Strata users help each other out. For direct help from our team, please use the Support Tickets page. To report a bug, use the Bug Report option in the Audiokinetic Launcher. (Note that Bug Reports submitted to the Q&A forum will be rejected. Using our dedicated Bug Report system ensures your report is seen by the right people and has the best chance of being fixed.)

To get the best answers quickly, follow these tips when posting a question:

  • Be Specific: What are you trying to achieve, or what specific issue are you running into?
  • Include Key Details: Include details like your Wwise and game engine versions, operating system, etc.
  • Explain What You've Tried: Let others know what troubleshooting steps you've already taken.
  • Focus on the Facts: Describe the technical facts of your issue. Focusing on the problem helps others find a solution quickly.

+1 vote
Hey, I'm attempting to enable Multi Process Cook. I consistently get crashes when attempting that kind of cook with Wwise assets. Single process always works. I have read the known issues here (https://www.audiokinetic.com/en/public-library/2024.1.4_8780/?source=UE4&id=using_knownissues.html), I have tested both versions 2024.1.3 and 2024.1.4. I have used the WwisePackagingSettings bPackageAsBulkData set to true. The below crash happens regardless. I can translate the non-english part, it says that the file cannot be accessed by the process, because it is used by another process. I'm using UE 5.5.

Has anyone got it to work? I was wondering why are the *.wem files created with the option turned on, since the option comment says it should be using uasset files.

[CookWorker 1]: Runnable thread Background Worker #1 crashed.
[CookWorker 1]: begin: stack for UAT
[CookWorker 1]: === Critical error: ===
[CookWorker 1]: Fatal error: [File:Engine\Source\Editor\UnrealEd\Private\Cooker\LooseCookedPackageWriter.cpp] [Line: 451]
[CookWorker 1]: SavePackage Async write Saved/Cooked/Windows/Content/579868A34425CECF8F0574B90A134D37_en.wem failed: Proces nie może uzyskać dostępu do pliku, ponieważ jest on używany przez inny proces.

[Callstack] 0x00007ffdc68d34bb UnrealEditor-UnrealEd.dll!WriteToFile()
[Callstack] 0x00007ffdc688103d UnrealEditor-UnrealEd.dll!FLooseCookedPackageWriter::FWriteFileData::HashAndWrite()
[Callstack] 0x00007ffdc6823170 UnrealEditor-UnrealEd.dll!`FLooseCookedPackageWriter::AsyncSaveOutputFiles'::`2'::<lambda_1>::operator()()
[Callstack] 0x00007ffdc6866255 UnrealEditor-UnrealEd.dll!UE::Tasks::Private::TExecutableTaskBase<`FLooseCookedPackageWriter::AsyncSaveOutputFiles'::`2'::<lambda_1>,void,void>::ExecuteTask()
[Callstack] 0x00007ffdc6425b40 UnrealEditor-UnrealEd.dll!UE::Tasks::Private::FTaskBase::TryExecuteTask()
[Callstack] 0x00007ffdc63dc2e4 UnrealEditor-UnrealEd.dll!LowLevelTasks::TTaskDelegate<LowLevelTasks::FTask * __cdecl(bool),48>::TTaskDelegateImpl<`LowLevelTasks::FTask::Init<`UE::Tasks::Private::FTaskBase::Init'::`2'::<lambda_1> >'::`13'::<lambda_1>,0>::CallAndMove()
[Callstack] 0x00007ffdcf380115 UnrealEditor-Core.dll!LowLevelTasks::FTask::ExecuteTask()
[Callstack] 0x00007ffdcf37ffde UnrealEditor-Core.dll!LowLevelTasks::FScheduler::ExecuteTask()
[Callstack] 0x00007ffdcf3a6aad UnrealEditor-Core.dll!LowLevelTasks::FScheduler::WorkerLoop()
[Callstack] 0x00007ffdcf36d0c6 UnrealEditor-Core.dll!`LowLevelTasks::FScheduler::CreateWorker'::`2'::<lambda_1>::operator()()
[Callstack] 0x00007ffdcf577f03 UnrealEditor-Core.dll!FThreadImpl::Run()
[Callstack] 0x00007ffdcf9ca78d UnrealEditor-Core.dll!FRunnableThreadWin::Run()
[Callstack] 0x00007ffdcf9c1baf UnrealEditor-Core.dll!FRunnableThreadWin::GuardedRun()
[Callstack] 0x00007ffec738e8d7 KERNEL32.DLL!UnknownFunction []

[CookWorker 1]: Crash in runnable thread Background Worker #1
[CookWorker 1]: end: stack for UAT
in General Discussion by Arkadiusz Filip (110 points)
I can add more info, there are 2 ways this is caused. The below are relevant parts of the log in chronological order. One is:

LogWwiseFileHandler: Display: Wwise: Adding file 164054554A4456D7B62DD3B885FC3F0A_en.wem [36332 bytes] from 164054554A4456D7B62DD3B885FC3F0A_en.wem
LogWwiseFileHandler: Display: [CookWorker 0]: Wwise: Adding file 164054554A4456D7B62DD3B885FC3F0A_en.wem [36332 bytes] from 164054554A4456D7B62DD3B885FC3F0A_en.wem
LogWwiseFileHandler: Display: [CookWorker 1]: Wwise: Adding file 164054554A4456D7B62DD3B885FC3F0A_en.wem [36332 bytes] from 164054554A4456D7B62DD3B885FC3F0A_en.wem
LogWwiseFileHandler: Display: [CookWorker 2]: Wwise: Adding file 164054554A4456D7B62DD3B885FC3F0A_en.wem [36332 bytes] from 164054554A4456D7B62DD3B885FC3F0A_en.wem
LogWindows: Error: [CookWorker 2]: SavePackage Async write Saved/Cooked/Windows/Content/164054554A4456D7B62DD3B885FC3F0A_en.wem failed: The process cannot access the file because it is being used by another process.

So write when other processes hold the file read-open, and two:

LogWwiseFileHandler: Display: Wwise: Adding file 002897CF431531EA6393A49F74D03C5F_en.wem [40753 bytes] from 002897CF431531EA6393A49F74D03C5F_en.wem
LogWwiseFileHandler: Display: [CookWorker 0]: Wwise: Adding file 002897CF431531EA6393A49F74D03C5F_en.wem [40753 bytes] from 002897CF431531EA6393A49F74D03C5F_en.wem
LogWwiseFileHandler: Display: [CookWorker 1]: Wwise: Adding file 002897CF431531EA6393A49F74D03C5F_en.wem [40753 bytes] from 002897CF431531EA6393A49F74D03C5F_en.wem
LogWwiseFileHandler: Display: [CookWorker 2]: Wwise: Adding file 002897CF431531EA6393A49F74D03C5F_en.wem [40753 bytes] from 002897CF431531EA6393A49F74D03C5F_en.wem
LogFileManager: Warning: [CookWorker 2]: Error deleting file: Saved/Cooked/Windows/Content/002897CF431531EA6393A49F74D03C5F_en.wem (Error Code 32)

Which is an attempt to delete the file held by other process (error code 32 means other process uses the file)
We are having the exact same issue still in 2024.1.8 latest version of wwise, any help would be greatly appreciated

Please sign-in or register to answer this question.

...