FFMediaToolkit icon indicating copy to clipboard operation
FFMediaToolkit copied to clipboard

Visual Studio Debugger :MediaFile.Open causes app to crash with code 1080890248

Open No1e opened this issue 1 year ago • 3 comments

Hi folks,

I just created simple console app to test FFMediaToolKit. The application simply loads video, gets frame and saves it as JPEG.

I am using the following versions: FFMediaToolKit: 4.5.1 ffmpeg: ffmpeg-n6.1-latest-win64-gpl-shared-6.1 (https://github.com/BtbN/FFmpeg-Builds/releases) - Autobuild from today.

If I run application out of Visual Studio it works. If I try do debug, it crashes at the following line of code: MediaFile file = MediaFile.Open(videoPath)

I tried both .Net Framework 4.8 and .NET 8.

In windows event logs, I was able to find the following: Faulting application name: VideoFrame.exe, version: 1.0.0.0, time stamp: 0x65410000 Faulting module name: KERNELBASE.dll, version: 10.0.22621.3958, time stamp: 0xfbc3a4f6 Exception code: 0x406d1388 Fault offset: 0x000000000005fabc Faulting process id: 0x0x1860 Faulting application start time: 0x0x1DAFADBC2BB50C4 Faulting application path: E:\PoC\VideoFrame\VideoFrame\bin\x64\Debug\net8.0-windows7.0\VideoFrame.exe Faulting module path: C:\WINDOWS\System32\KERNELBASE.dll Report Id: 2dc83f13-c0b4-4a03-a83a-412799d4e28a Faulting package full name: Faulting package-relative application ID:

Any suggestions?

Best regards, Nole

No1e avatar Aug 30 '24 13:08 No1e

Hello, @No1e

I have encountered same issue. Using different build from different source helped:

https://www.gyan.dev/ffmpeg/builds/packages/ffmpeg-6.1.1-full_build-shared.7z

erig312 avatar Sep 05 '24 15:09 erig312

Hi @erig312,

thank you so much. It works perfectly

No1e avatar Sep 07 '24 14:09 No1e

I also had this issue! I was using a build from BtbN. The build from GyanD seems to work instead.

harper-rhett avatar Feb 12 '25 00:02 harper-rhett

Fixed in v4.6.0

radek-k avatar Jul 31 '25 14:07 radek-k