Since I’m literally on the same problem right now, with 5.5 and the newest Wwise plugin I’m afraid there is no workaround. From their side, we should use bPackageAsBulkData set to true and it works. Well, it doesn’t. From what I know some projects work, while others don’t. Just for reference, there are 2 paths this happens:
One is write when other processes hold the file read-open:
`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.`
And two is an attempt to delete the file held by other process (error code 32 means other process uses the file):
`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)`
This is the callstack:
`[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`
If you do make those changes, I will gladly test them out as well, giving a bit bigger sample pool to verify. Alternatively if that’s not likely to happen due to your other priorities or will take more time, just hint where and how it should be done, I guess I could work from there.