November 22, 2009

Win 7 -- Explorer go boom!

In the last two hours I've had Explorer (the shell) crash and restart three times. The last time I grabbed the extended error message. (Interestingly, even though Explorer was halted, the scratch pad still worked.)

Problem signature:
  Problem Event Name: BEX
  Application Name: Explorer.EXE
  Application Version: 6.1.7600.16404
  Application Timestamp: 4a765076
  Fault Module Name: Mpeg2DecFilter.ax_unloaded
  Fault Module Version: 0.0.0.0
  Fault Module Timestamp: 4a9b7207
  Exception Offset: 1531aa20
  Exception Code: c0000005
  Exception Data: 00000008
  OS Version: 6.1.7600.2.0.0.768.3
  Locale ID: 1033
  Additional Information 1: 0a9e
  Additional Information 2: 0a9e372d3b4ad19135b953a78882e789
  Additional Information 3: 0a9e
  Additional Information 4: 0a9e372d3b4ad19135b953a78882e789

All three times I was doing the same thing. I had a DVD in my drive. AnyDVD was removing the encryption. I was running Vidomi, a freeware program for extracting video segments out of DVD VOB files. (I'd link to it, but it doesn't seem to be there any longer.) I'm using its "Select Source Range" popup to scan through the VOB files to find frames for the top rotation.

I also have Thumbs Plus running. It has a mode which will grab anything put into the scratchpad and store it, if you set it up to do so. So when I find an appropriate frame in Vidomi, I use Alt-PrtSrc to grab the window, and Thumbs Plus automatically creates a file of it in my Grabs directory. The result is this:

/images/03444.png

Which is a 3:2 raw frame grab, plus some associated cruft. Downstream from this point, I have a Thumbs Plus batch file which extracts out just the 720*480 screen segment, and then I can use other tools I own (mostly PSP8) to resize and correct the aspect ratio and add labels, and voila! Top rotation pictures.

I've been using this process, or a variation of it, for years now. It worked fine in XP. It worked fine in Vista. This evening it's managed to crash the Win 7 Explorer three times.

What's peculiar is that in all three cases I had been taking frame grabs for quite a while before it died. It's not like it bagged it the very first time I attempted to do anything.

UPDATE: And it just died a fourth time. I think I'm going to try copying all the VOB's onto my HD and see if I can do it from there, so that I'm not using AnyDVD interactively.

UPDATE: And doing that, no problems at all.

I have a sneaking suspicion that the problem is with Explorer trying to create thumbnails for the VOB files on the DVD, with AnyDVD running.

UPDATE: I spoke too soon. Explorer just bagged it again, while I was trying to copy VOB files from the next DVD onto my HD. I think I'm going to turn off the "Details pane" for the time being.

UPDATE: Now I'm sure that's what happened. When it crashed, I had just sweep-highlighted the VOB files I wanted to copy, and the drive access LED started blinking. It ran like that for maybe 30 seconds, and then the Explorer crashed.

After it restarted, I turned off the Details pane (which is where that thumbnail would have been displayed) and after I sweep-highlighted the VOB files, there was no blinking. And the copy ran smoothly.

Posted by: Steven Den Beste in Vista at 07:25 PM | Comments (8) | Add Comment
Post contains 542 words, total size 4 kb.

1 I recently had Explorer on Vista crashing repeatedly, and it was due to it trying to create thumbnails for incomplete video files.  The codec throws an error and takes Explorer with it.

Not the best design, that.

Posted by: Pixy Misa at November 22, 2009 10:05 PM (PiXy!)

2

That seems to have been what happened to me, too, given that it was complaining about "Mpeg2DecFilter".

And yeah, that's poor design.

Posted by: Steven Den Beste at November 22, 2009 10:33 PM (+rSRq)

3

Seems like a good time to use that Windows Found a Program Crashing...Do You Want To Report It popup.

I've seen that popup a few times; usually in situations in which I knew that the information would be of no use to whoever collected the report at Microsoft. In this case, it's definitely something to report to them.

I wonder how the handling of errors in Preview got screwed up. To my knowledge, it's been working right since XP, if not earlier.

Posted by: karrde at November 23, 2009 10:27 AM (BGVHF)

4 I don't remember seeing that popup in this case. I bet it's part of Explorer, and since Explorer itself is what died...

Posted by: Steven Den Beste at November 23, 2009 10:38 AM (+rSRq)

5

I don't remember seeing that popup in this case. I bet it's part of Explorer, and since Explorer itself is what died...

That puts the error into WTF territory.

Posted by: karrde at November 23, 2009 12:58 PM (BGVHF)

6

Mpeg2DecFilter sounds like a third-party handler; probably part with your video player and is what generates the preview thumbnail.

If that threw an error and didn't handle it properly, it would indeed take down Explorer.  Technically it's not Microsoft's fault if that's the case, but they're who gets the blame.

 

Posted by: RickC at November 24, 2009 02:25 PM (/7wGi)

7 Rick, I don't buy that. A user-installed codec shouldn't be able to take Explorer down no matter what it is.

Posted by: Steven Den Beste at November 24, 2009 03:17 PM (+rSRq)

8

I agree.  However, "shouldn't" != "can't."

Remember, we're talking about a DLL that lives in the explorer process.  If it derefs a null pointer or whatever, then yes, the host process is going to die, unless Explorer is prepared to deal with that.  Raymond Chen's blog has discussed this before.

If I had a few hours to research and write some code, I bet you I could write an Explorer extension that crashes on command.

In fact, I'm certain it's possible, as back in the IE4 days, I wrote a browser helper object that rearragned the status bar so that the zone section didn't take up nearly half the width of the window, allowing you to see longer URLs down there.  Trust me, I managed to crash IE while writing it.   The same principal applies.

 

Posted by: RickC at November 25, 2009 12:54 PM (+PBds)

Hide Comments | Add Comment

Enclose all spoilers in spoiler tags:
      [spoiler]your spoiler here[/spoiler]
Spoilers which are not properly tagged will be ruthlessly deleted on sight.
Also, I hate unsolicited suggestions and advice. (Even when you think you're being funny.)

At Chizumatic, we take pride in being incomplete, incorrect, inconsistent, and unfair. We do all of them deliberately.






14kb generated in 0.0187 seconds; 22 queries returned 27 records.
Powered by Minx 1.1.2-pink.