Skip to content
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

Crashes in FVideoCallbackHandler::SampleCB when stopping the game #2

Open
fungiboletus opened this issue Jul 20, 2017 · 0 comments
Open

Comments

@fungiboletus
Copy link

fungiboletus commented Jul 20, 2017

Hei,

I'm using your plugin with Unreal 4.15 and it works very well most of the time. Sometimes it crashes after I stop the game from the editor, and the call stack says it comes from the ENQUEUE_UNIQUE_RENDER_COMMAND_ONEPARAMETER block in FVideoCallbackHandler::SampleCB.

My guess is that this block is sometimes executed after the games stops, and the code is accessing deallocated memory. Could you suggest a small fix ?

Access violation - code c0000005 (first/second chance not available)

UE4Editor_Webcamera!FTexture2DResource::GetTexture2DRHI() [c:\program files\epic games\ue_4.15\engine\source\runtime\engine\public\textureresource.h:276]
UE4Editor_Webcamera!`FVideoCallbackHandler::SampleCB'::`8'::EURCMacro_UpdateTextureRegionsData::DoTask() [v:\project\plugins\webcamera\source\private\videocallbackhandler.cpp:74]
UE4Editor_Webcamera!TGraphTask<`FVideoCallbackHandler::SampleCB'::`8'::EURCMacro_UpdateTextureRegionsData>::ExecuteTask() [c:\program files\epic games\ue_4.15\engine\source\runtime\core\public\async\taskgraphinterfaces.h:883]
UE4Editor_Core
UE4Editor_Core
UE4Editor_Engine
UE4Editor
UE4Editor
UE4Editor
UE4Editor
UE4Editor
kernel32
ntdll
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant