社区问答

欢迎来到 Audiokinetic 社区问答论坛。在此,Wwise 和 Strata 用户可互帮互助。如需我们团队直接提供协助,请前往技术支持申请单页面。若要报告问题,请在 Audiokinetic Launcher 中选择“报告错误”选项(注意,问答论坛并不会接收错误报告)。我们内部设有专门的错误报告系统,会有专人查看报告并设法解决问题。

要想尽快得到满意的解答,请在提问时注意以下几点:

  • 描述尽量具体:比如,想达到什么样的目的,或者具体哪里有问题。
  • 包含关键细节:比如,Wwise 和游戏引擎版本以及所用操作系统等等。
  • 阐明所做努力:阐明自己为了排除故障都采取了哪些措施。
  • 聚焦问题本身:聚焦于问题本身的相关技术细节,以便别人可以快速找到解决方案。

+1 投票
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
分类:General Discussion | 用户: Arkadiusz Filip (110 分)
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.

...