bakjos / FFMPEGMedia

Unreal FFMPEG Plugin to support more video formats and alpha videos
210 stars 55 forks source link

FFMpegMedia Crash #3

Open dishuman opened 4 years ago

dishuman commented 4 years ago

I am using UE421.

When I switch videos(via blueprint at runtime) few or 10-20times, some times UE will crash. and here is the crash log:

Integer divide-by-zero - code c0000094 (first/second chance not available)

avutil_56 UE4Editor_FFMPEGMedia!FFFMPEGMediaTracks::UploadTexture() [e:\ue4-plugin\ffmpeg\ffmpeg421\plugins\ffmpegmedia\source\ffmpegmedia\private\player\ffmpegmediatracks.cpp:1863] UE4Editor_FFMPEGMedia!FFFMPEGMediaTracks::VideoDisplay() [e:\ue4-plugin\ffmpeg\ffmpeg421\plugins\ffmpegmedia\source\ffmpegmedia\private\player\ffmpegmediatracks.cpp:1951] UE4Editor_FFMPEGMedia!FFFMPEGMediaTracks::VideoRefresh() [e:\ue4-plugin\ffmpeg\ffmpeg421\plugins\ffmpegmedia\source\ffmpegmedia\private\player\ffmpegmediatracks.cpp:2596] UE4Editor_FFMPEGMedia!FFFMPEGMediaTracks::DisplayThread() [e:\ue4-plugin\ffmpeg\ffmpeg421\plugins\ffmpegmedia\source\ffmpegmedia\private\player\ffmpegmediatracks.cpp:2454] UE4Editor_FFMPEGMedia!std::_Func_impl_no_alloc<,void>::_Do_call() [c:\program files (x86)\microsoft visual studio\2017\enterprise\vc\tools\msvc\14.16.27023\include\functional:15732480] UE4Editor_FFMPEGMedia!std::_Func_class::operator()() [c:\program files (x86)\microsoft visual studio\2017\enterprise\vc\tools\msvc\14.16.27023\include\functional:15732480] UE4Editor_FFMPEGMedia!LambdaFunctionRunnable::Run() [e:\ue4-plugin\ffmpeg\ffmpeg421\plugins\ffmpegmedia\source\ffmpegmedia\private\lambdafunctionrunnable.cpp:17] UE4Editor_Core UE4Editor_Core kernel32 ntdll

LukasKastern commented 3 years ago

This is still an issue when switching between videos to quickly. Our workaround is to force a 0.5 seconds delay between closing/opening videos which works fine for our use cases.