-
Notifications
You must be signed in to change notification settings - Fork 106
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] - Fatal error with VideoInputRenderTarget when restart the level and waited for a while #388
Comments
Thank you for reporting the issue! It is a bug on the UE side, we are tracking it internally as RTCP-7877 for fixing in 5.6. |
A fix for this has been submitted to the plugin but unfortunately it wont be released until 5.6 since it does not meet the requirements for a hotfix. However like the previous fix I can list you the changes that have been made so you can implement the fix yourself.
At the top of the constructor, add this line.
And at the bottom of the destructor, add this.
Remove the
Change the
Change the
Change the
And that should cover it. The issue is that we submit things to another thread that call into this class but sometimes the connection gets destroyed while work is still in the thread queue with no way to remove it. To prevent calling into a deleted object we use a weak pointer that becomes invalid when our class gets deleted and if that's the case the submitted work just aborts and averts a crash. Hopefully that should fix the related issues. |
Frontend Version:
E.g. UE5.2
Problem component
E.g. Pixel Streaming C++ plugin
Description
The issue happened on the team project and was reproduced in the empty project as well. We made a blueprint with SceneCaptureComponent2D, PixelStreamerComponent, and fed the render target by setting up the VideoInput for the streamer. When the application is running, it shows the correct view from the render target through the browser. However, when we try to call the Open Level node with key press, the application crashes with showing a fatal error message.
Related Issue:
#281
The previous issue was responded by @mcottontensor , I applied that and found new occurs with new issue when I call "RestartLevel " from the command console and wait for 30 sec - 1mins:
The text was updated successfully, but these errors were encountered: