§ ¶Data Execution Prevention (DEP) related crashes
A few users have reported to me that they're getting crashes in VirtualDub when opening the video compression dialog or when opening an AVI file, the crash diagnosis is Access Violation, and the highlighted line in the advanced crash view looks like this:
01671710: 8b442408 mov eax, [esp+08] <-- FAULT
At first I thought this was an overclocking related crash, because it's a virtual impossibility for ESP to be invalid and for exception handlers to still fire. It wasn't until I saw this line that I realized what was going on:
Windows 5.1 (Windows XP build 2600) [Service Pack 2]
The crash was occurring because the video codec was attempting to execute dynamically generated code in a memory block that wasn't marked as executable, and crashed due to Data Execution Prevention (DEP) in XPSP2. Both dumps I received implicated PICVideo MJPEG 2.1 (pvmjpg21.dll), but there may be other codecs that have this problem (probably due to "protection" or compression wrappers). Turning DEP off will temporarily work around the problem, but if this is happening to you I highly recommend checking with the vendor for an update. I was not able to reproduce this problem with the latest version of PICVideo MJPEG v3.
I observed this problem recently. I have an avi file that I load into vdub and compress with the divx codec. If I then open the directory in which the compressed avi is saved, explorer crashes.
Initially the error was the DEP one you mention above, so I tried after installing PICVideo MJPEG v3. The system now crashes but with just an explorer error, and not with a DEP window popping up.
I do not run into this problem if I try to compress with one of the other codecs (Indeo or one of the MS ones). Any suggestions? I have DEP turned off for explorer and it does not help.
Chris - 29 06 06 - 11:39
Interesting info here also:
Chris - 29 06 06 - 11:48
i work for a software company and can safely say that pic video is in no way DEP safe. it is the cause of the error. it was actually scratched in the next version of the software because of this problem / conflict with xp. To avoid the problem and still use the codec you can turn off thumbnail view and change to list view..
hellbound - 20 07 06 - 17:28
pic video is crapola in other words. use standard DV or MPEG 1 / 2 encodes.
hellbound - 20 07 06 - 17:33
Just adding confirmation that the PICVideo 2.0 codec will do the same.
And also, that Explorer was crashing in list view for me. (why is it trying to process the files when all I'm wanting to do is list them, I ask? - & can only say MS)
My suggestion is to not use the codec too. Get rid of the .dll (or rename temporeraly if you must). DirectShow should fall back to use it's bulit in MJPEG decompressor (or maybe an other, if one is installed) for playback when it cannot find the PICvideo dll.
* A temporary rename is far far more acceptable than turning DEP on and off in my opinion.
I had no luck removing it through the device Manager. I know that just deleting the file will leave the codec entries in the registry & used a handy free (donate ware) registry cleaner;
(btw. the files it was doing it to on my PC were not even encoded with the PICVideo compressor - I'd used the Morgan multimedia compressor!)
Tom - 02 01 07 - 16:56
When I first upgraded to Windows XP, I was getting this erro on a directory that previously had video files in it and never caused an error before. When I highlighted a video file, I would eventually have the crash occur. At the time, I only had Divx 5.1 on my system. I read where it could be the codec, but I found that it worked properly when encoding and decoding video.
As I tested a few other things, I realized that Windows may be generating the error as it attempts to use the codec to obtain a preview for Explorer. I didn't want to remove the codec at the time, so I found that I could work around this by going to the Folder Options for that window, choosing the General tab, and selecting "Use Windows classis folders". This will remove the preview pane in the window, thus having Windows not attempt to preview the file.
Howard - 23 01 07 - 09:23
Thanks for this thread, I was suffering the same problem managing files in explorer encoded by xvid. PICVideo 2 was the culprit, I was able to disable this in the device manager by selecting the codec, properties, advanced, and then uncheck the enable codec box, Explorer then worked fine.... I have lost the thumbnail preview, so when I get round to it I may try upgrading the CODEC. but it solved my short term problem
bigf - 12 03 07 - 17:07
Ran into this exact same issue, used bigf's fix of going into the device manager, multimedia, video codecs, found the PICVideo one, when into it's properties, advanced and then disabled it via the checkbox (all other methods to find the .dll or remove the codec were failing). once that was done, no more problem!
TrackZero - 06 05 08 - 22:54
Please keep comments on-topic for this entry.
If you have unrelated comments about VirtualDub, the forum is a better place to post them.