voxeet / comms-sdk-unreal

Dolby.io Virtual Worlds plugin for Unreal Engine
http://api-references.dolby.io/comms-sdk-unreal/
MIT License
27 stars 7 forks source link

Rendered video is sometimes blank #72

Closed kubaau closed 1 year ago

kubaau commented 1 year ago

Sometimes the texture which is supposed to contain remote video ends up being completely white and the following log may be displayed (sometimes the texture is white without this log):

[2023.02.03-11.55.05:367][203]LogOutputDevice: Error: === Handled ensure: ===
[2023.02.03-11.55.05:368][203]LogOutputDevice: Error:
[2023.02.03-11.55.05:369][203]LogOutputDevice: Error: Ensure condition failed: oldValue == newValue [File:D:\build\++UE5\Sync\Engine\Source\Runtime\Core\Private\HAL\ThreadingBase.cpp] [Line: 300]
[2023.02.03-11.55.05:369][203]LogOutputDevice: Error: oldValue(1) newValue(0) If this check fails make sure that there is a FTaskTagScope(ETaskTag::EParallelRenderingThread) as deep as possible on the current callstack, you can see the current value in ActiveNamedThreads(1), GRenderingThread(393f26c0), GIsRenderingThreadSuspended(0)
[2023.02.03-11.55.05:369][203]LogOutputDevice: Error: Stack:
[2023.02.03-11.55.05:369][203]LogOutputDevice: Error: [Callstack] 0x00007ff63e6c9b5c ReleaseTest50.exe!IsInParallelRenderingThread() []
[2023.02.03-11.55.05:370][203]LogOutputDevice: Error: [Callstack] 0x00007ff643fe1aa9 ReleaseTest50.exe!UTexture::GetResource() []
[2023.02.03-11.55.05:370][203]LogOutputDevice: Error: [Callstack] 0x00007ff643fe309e ReleaseTest50.exe!UTexture::HasPendingRenderResourceInitialization() []
[2023.02.03-11.55.05:370][203]LogOutputDevice: Error: [Callstack] 0x00007ff643f3d74c ReleaseTest50.exe!UStreamableRenderAsset::HasPendingInitOrStreaming() []
[2023.02.03-11.55.05:371][203]LogOutputDevice: Error: [Callstack] 0x00007ff643f52448 ReleaseTest50.exe!UStreamableRenderAsset::WaitForPendingInitOrStreaming() []
[2023.02.03-11.55.05:371][203]LogOutputDevice: Error: [Callstack] 0x00007ff643ff2924 ReleaseTest50.exe!UTexture2D::UpdateResource() []
[2023.02.03-11.55.05:371][203]LogOutputDevice: Error: [Callstack] 0x00007ff63d207e13 ReleaseTest50.exe!DolbyIO::FVideoSink::handle_frame() [C:\Users\kuba\Documents\Unreal Projects\ReleaseTest50\Plugins\DolbyIO_UnrealPlugin_5.0_windows64\Source\Private\DolbyIOVideoSink.cpp:118]
[2023.02.03-11.55.05:371][203]LogOutputDevice: Error: [Callstack] 0x00007ffa8027def5 dolbyio_comms_media.dll!UnknownFunction []
[2023.02.03-11.55.05:371][203]LogOutputDevice: Error: [Callstack] 0x00007ffa7f577294 dolbyio_comms_media.dll!UnknownFunction []
[2023.02.03-11.55.05:372][203]LogOutputDevice: Error: [Callstack] 0x00007ffa7f8837fb dolbyio_comms_media.dll!UnknownFunction []
[2023.02.03-11.55.05:372][203]LogOutputDevice: Error: [Callstack] 0x00007ffa7f9b11c6 dolbyio_comms_media.dll!UnknownFunction []
[2023.02.03-11.55.05:372][203]LogOutputDevice: Error: [Callstack] 0x00007ffa7fad225b dolbyio_comms_media.dll!UnknownFunction []
[2023.02.03-11.55.05:372][203]LogOutputDevice: Error: [Callstack] 0x00007ffa7f7086c6 dolbyio_comms_media.dll!UnknownFunction []
[2023.02.03-11.55.05:372][203]LogOutputDevice: Error: [Callstack] 0x00007ffa7f56aa6b dolbyio_comms_media.dll!UnknownFunction []
[2023.02.03-11.55.05:373][203]LogOutputDevice: Error: [Callstack] 0x00007ffb068926bd KERNEL32.DLL!UnknownFunction []
[2023.02.03-11.55.05:373][203]LogOutputDevice: Error: [Callstack] 0x00007ffb075edfb8 ntdll.dll!UnknownFunction []
[2023.02.03-11.55.05:373][203]LogOutputDevice: Error:
[2023.02.03-11.55.05:373][203]LogStats:                SubmitErrorReport -  0.000 s
[2023.02.03-11.55.05:437][208]LogRHI: Error: Breadcrumbs 'RHIThread'

Reproduction rate is low in Editor but high in packaged games (perhaps slightly higher in UE5).

Tested on Windows, macOS not tested yet (probably same issue though, with perhaps different reproduction rate).

kubaau commented 1 year ago

Should be fixed by #80.