gtreshchev / RuntimeAudioImporter

Runtime Audio Importer plugin for Unreal Engine. Importing audio of various formats at runtime.
MIT License
308 stars 67 forks source link

The execution function "ImportAudioFromFile" sometimes crashes #48

Closed Tibony closed 11 months ago

Tibony commented 11 months ago

Script Stack (0 frames) :

[2023.08.08-06.52.36:325][459]LogWindows: Error: appError called: Assertion failed: GObjUnhashUnreachableIsInProgress || GObjIncrementalPurgeIsInProgress || !IsGarbageCollectingAndLockingUObjectHashTables() [File:D:\build++UE5\Sync\Engine\Source\Runtime\CoreUObject\Private\Misc\GCObjectReferencer.cpp] [Line: 79]

[2023.08.08-06.52.36:325][459]LogWindows: Windows GetLastError: 操作成功完成。 (0) [2023.08.08-06.52.45:400][459]LogRHI: Error: Breadcrumbs 'RenderingThread' Context 1/2 00 Scene 01 Translucency

[2023.08.08-06.52.45:400][459]LogWindows: Could not start crash report client using ../../../Engine/Binaries/Win64/CrashReportClient-Win64-Debug.exe [2023.08.08-06.52.45:400][459]LogMemory: Platform Memory Stats for Windows [2023.08.08-06.52.45:400][459]LogMemory: Process Physical Memory: 1786.21 MB used, 5452.82 MB peak [2023.08.08-06.52.45:400][459]LogMemory: Process Virtual Memory: 9336.41 MB used, 15879.79 MB peak [2023.08.08-06.52.45:400][459]LogMemory: Physical Memory: 11028.38 MB used, 21553.05 MB free, 32581.43 MB total [2023.08.08-06.52.45:400][459]LogMemory: Virtual Memory: 24784.66 MB used, 9844.77 MB free, 34629.43 MB total [2023.08.08-06.52.45:400][459]Message dialog closed, result: Ok, title: The UE-VirtualHuman Game has crashed and will close, text: Assertion failed: GObjUnhashUnreachableIsInProgress || GObjIncrementalPurgeIsInProgress || !IsGarbageCollectingAndLockingUObjectHashTables() [File:D:\build++UE5\Sync\Engine\Source\Runtime\CoreUObject\Private\Misc\GCObjectReferencer.cpp] [Line: 79]

[2023.08.08-06.52.45:400][459]LogThreadingWindows: Error: Runnable thread Background Worker #13 crashed. [2023.08.08-06.52.45:400][459]LogWindows: Error: === Critical error: === [2023.08.08-06.52.45:400][459]LogWindows: Error: [2023.08.08-06.52.45:400][459]LogWindows: Error: Assertion failed: GObjUnhashUnreachableIsInProgress || GObjIncrementalPurgeIsInProgress || !IsGarbageCollectingAndLockingUObjectHashTables() [File:D:\build++UE5\Sync\Engine\Source\Runtime\CoreUObject\Private\Misc\GCObjectReferencer.cpp] [Line: 79] [2023.08.08-06.52.45:400][459]LogWindows: Error: [2023.08.08-06.52.45:400][459]LogWindows: Error: [2023.08.08-06.52.45:400][459]LogWindows: Error: [2023.08.08-06.52.45:400][459]LogWindows: Error: [Callstack] 0x00007ff64186348f VirtualHuman.exe!UGCObjectReferencer::RemoveObject() [] [2023.08.08-06.52.45:400][459]LogWindows: Error: [Callstack] 0x00007ff63f749ac9 VirtualHuman.exe!::operator()() [D:\build\U5M-Marketplace\Sync\LocalBuilds\PluginTemp\HostProject\Plugins\RuntimeAudioImporter\Source\RuntimeAudioImporter\Private\RuntimeAudioImporterLibrary.cpp:72] [2023.08.08-06.52.45:400][459]LogWindows: Error: [Callstack] 0x00007ff641103b91 VirtualHuman.exe!TGraphTask::ExecuteTask() [] [2023.08.08-06.52.45:400][459]LogWindows: Error: [Callstack] 0x00007ff6410f1100 VirtualHuman.exe!::operator()() [] [2023.08.08-06.52.45:400][459]LogWindows: Error: [Callstack] 0x00007ff6410f8293 VirtualHuman.exe!LowLevelTasks::TTaskDelegate<LowLevelTasks::FTask * ptr64 cdecl(bool),48>::TTaskDelegateImpl<,0>::CallAndMove() [] [2023.08.08-06.52.45:400][459]LogWindows: Error: [Callstack] 0x00007ff6411054c5 VirtualHuman.exe!LowLevelTasks::FTask::ExecuteTask() [] [2023.08.08-06.52.45:400][459]LogWindows: Error: [Callstack] 0x00007ff641105372 VirtualHuman.exe!LowLevelTasks::FScheduler::ExecuteTask() [] [2023.08.08-06.52.45:400][459]LogWindows: Error: [Callstack] 0x00007ff6410ebab8 VirtualHuman.exe!LowLevelTasks::FScheduler::TryExecuteTaskFrom<&LowLevelTasks::TLocalQueueRegistry<1024>::TLocalQueue::DequeueGlobal,0>() [] [2023.08.08-06.52.45:400][459]LogWindows: Error: [Callstack] 0x00007ff641125ff2 VirtualHuman.exe!LowLevelTasks::FScheduler::WorkerMain() [] [2023.08.08-06.52.45:400][459]LogWindows: Error: [Callstack] 0x00007ff6410f6f00 VirtualHuman.exe!UE::Core::Private::Function::TFunctionRefCaller<FUniqueBuffer cdecl(unsigned int64),FUniqueBuffer cdecl(unsigned int64)>::Call() [] [2023.08.08-06.52.45:400][459]LogWindows: Error: [Callstack] 0x00007ff641268979 VirtualHuman.exe!FThreadImpl::Run() [] [2023.08.08-06.52.45:400][459]LogWindows: Error: [Callstack] 0x00007ff6417a0502 VirtualHuman.exe!FRunnableThreadWin::Run() [] [2023.08.08-06.52.45:400][459]LogWindows: Error: [Callstack] 0x00007ff641798300 VirtualHuman.exe!FRunnableThreadWin::GuardedRun() [] [2023.08.08-06.52.45:400][459]LogWindows: Error: [Callstack] 0x00007ff81e9b26ad KERNEL32.DLL!UnknownFunction [] [2023.08.08-06.52.45:400][459]LogWindows: Error: [Callstack] 0x00007ff81f26aa68 ntdll.dll!UnknownFunction [] [2023.08.08-06.52.45:400][459]LogWindows: Error: [2023.08.08-06.52.45:400][459]LogWindows: Error: Crash in runnable thread Background Worker #13 [2023.08.08-06.52.45:404][459]LogExit: Executing StaticShutdownAfterError [2023.08.08-06.52.45:405][459]LogWindows: FPlatformMisc::RequestExit(1) [2023.08.08-06.52.45:405][459]LogWindows: FPlatformMisc::RequestExitWithStatus(1, 3) [2023.08.08-06.52.45:405][459]LogCore: Engine exit requested (reason: Win RequestExit)

gtreshchev commented 11 months ago

This is a common issue where developers occasionally forget to add the Runtime Audio Importer or Imported Sound Wave instance as a distinct variable or UPROPERTY, and this omission can result in a crash during garbage collection when attempting to use the object. Please refer to the documentation and make sure your solution resembles the provided example, or use any alternative ways to prevent the created object instances from being prematurely garbage collected: https://github.com/gtreshchev/RuntimeAudioImporter/wiki/1.-Importing-Audio