crash on movie viewing

Bugs found in XnView Classic. Please report only one bug per topic!

Moderators: helmut, XnTriq, xnview

xnview-fan
Posts: 8
Joined: Sun Nov 04, 2007 3:29 pm

crash on movie viewing

Post by xnview-fan »

Hi friends!

recently I installed version 1.91.6 (Libformat Version 4.83) on two different desktop machines. After a short time I got used to many of the new features as compared to v1.82.4 and started loving them. But I'm facing one big problem, which didn't occur in v1.82.4: XnView crashes everytime I'm reaching a movie (recorded with digicams of different brands and file formats, i.e. Sony .mpg or Canon avi) while browsing folders in full-screen mode. When double-clicking on one of these movie-files in thumbnail mode, there is no such problem, but I can't go on browsing in full-screen after finishing the movie -> XnView crashes. It doesen' t seem to be an hardware or codec problem since I had no problem with v.1.82.4 on my notebook with the same config, but after upgrading to v1.91.6 the problem was there on the notebook, too.
I would be glad if anyone could help me fixing this problem or has an idea for a work-around!

Thanks a lot in advance,
XnView-fan
User avatar
xnview
Author of XnView
Posts: 46238
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: crash on movie viewing

Post by xnview »

xnview-fan wrote:Hi friends!

recently I installed version 1.91.6 (Libformat Version 4.83) on two different desktop machines. After a short time I got used to many of the new features as compared to v1.82.4 and started loving them. But I'm facing one big problem, which didn't occur in v1.82.4: XnView crashes everytime I'm reaching a movie (recorded with digicams of different brands and file formats, i.e. Sony .mpg or Canon avi) while browsing folders in full-screen mode. When double-clicking on one of these movie-files in thumbnail mode, there is no such problem, but I can't go on browsing in full-screen after finishing the movie -> XnView crashes. It doesen' t seem to be an hardware or codec problem since I had no problem with v.1.82.4 on my notebook with the same config, but after upgrading to v1.91.6 the problem was there on the notebook, too.
I would be glad if anyone could help me fixing this problem or has an idea for a work-around!
Could you send me a sample file? Which OS do you use?
Pierre.
xnview-fan
Posts: 8
Joined: Sun Nov 04, 2007 3:29 pm

Post by xnview-fan »

Hi!
The problem occured with both XP professional SP2 and XP home SP2. I just found one quite small .mpg file (4.980 KB) and put it in one folder together with one image file to start browsing in full-screen mode with. When reaching this .mpg either XnView crashes directly or later. If the program crashes later, then first the screen is just black, the movie is not played. When I go back to the image file in full-screen it is also not shown, just the file-info. Sometimes I am able to switch to thumbnail mode but another double ckick on the image file to start full-screen browsing will lead to a crash. I can send this .mpg file to you, but scince I had the same problem with other types of movie files it should not be dependent on one particular file. Where should i sent the file to, if you wish to reproduce the problem with this particular file?

Thanks for answering me,
XnView-fan
User avatar
xnview
Author of XnView
Posts: 46238
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Post by xnview »

xnview-fan wrote:Hi!
The problem occured with both XP professional SP2 and XP home SP2. I just found one quite small .mpg file (4.980 KB) and put it in one folder together with one image file to start browsing in full-screen mode with. When reaching this .mpg either XnView crashes directly or later. If the program crashes later, then first the screen is just black, the movie is not played. When I go back to the image file in full-screen it is also not shown, just the file-info. Sometimes I am able to switch to thumbnail mode but another double ckick on the image file to start full-screen browsing will lead to a crash. I can send this .mpg file to you, but scince I had the same problem with other types of movie files it should not be dependent on one particular file. Where should i sent the file to, if you wish to reproduce the problem with this particular file?

Thanks for answering me,
XnView-fan
You can send to webmaster at xnview dot com
Pierre.
xnview-fan
Posts: 8
Joined: Sun Nov 04, 2007 3:29 pm

Post by xnview-fan »

Hi again,

you can download the file following this link:
http://www.pubmedcentral.nih.gov/picren ... R3D_V3.mpg

Then put it in one folder together with one or more image files and start full-screen browsing with the image files till you reach the video file. Then the bug should appear.

Best greetings!
User avatar
foxyshadis
Posts: 395
Joined: Sat Nov 18, 2006 8:57 am

Post by foxyshadis »

Uninstall any codec packs any other codecs you might have. There's a good tool that can help you with this: CCCP Insurgent. Once you have everything sorted out, you can install something like CCCP, K-Lite (NOT K-lite Mega), or simply ffdshow tryouts+haali's media splitter. Update DirectX as well, that'll ensure it's not a Directshow issue.

Once you've done that, all videos should work properly without crashing. The reason they are now is almost certainly because a broken codec is getting initialized during playback. Other players may or may not initialize in the same way, so you might not see crashes with all of them (try WMP 11 and 6.4 for starters).
xnview-fan
Posts: 8
Joined: Sun Nov 04, 2007 3:29 pm

Post by xnview-fan »

I already read some of your comments on codec packs. Since several years I try to minimize the amount of codecs, I just use k-lite basic and so far there was no problem with that. Even if I start a not-installed minimal version of XnView v1.82.4 (the same i used before switching to v1.91.6) in parallel to the now installed v1.91.6 I don't experience a crash with the older version. In the case the reported crash of v1.91.6 should be due to codec issues this would mean that v1.91.6 handles the codecs in a different way than does v1.82.4!? If it does not, the problem should be something else but not the codecs. Am I right?
User avatar
foxyshadis
Posts: 395
Joined: Sat Nov 18, 2006 8:57 am

Post by foxyshadis »

Not sure, other than it works fine here and for many others, though it has definitely changes some of the movie code. Something you might want to do is use a debugger (like windbg, though it's not terribly easy to use) to scan the call stack at the point that it crashes. You can probably also use Process Explorer, much simpler but I don't know if you can access all crashes that way. At the least, you can tell whether it's happening in xnview or in a 3rd party component.
Xnview-fan#4782

Post by Xnview-fan#4782 »

Bonjour tout le monde!

I recently downloaded v1.91.6, my first version of Xnview. I immediately liked the program, but it crashed when parsing my movie files.

I have lots of codecs installed on my system.

I have no idea what difference it made, but on an unrelated jaunt, I installed service pack2. I noticed that this fixed the problem of xnview crashing outright. Maybe some of the many codec installs I've done caused this problem?

Anyway, my system is XP Pro Service pack2

Afterwards, I still had problems with some movie thumbnails coming up 'black' or not staying in the cache. I did the following things:

1. I turned OFF support for mpeg1video content in ffdshow codec. This forced the mpeg system decoder to do the decompressing. This fixed several .mpg files coming up with a black thumbnail.

2. I adjusted my thumbnail size in xnview to the dimensions of my smallest movie, ie. 160x120. It was set on 170x130. This stopped thumbnails from movies 160x120 in size from being cached.

3. I forced video for windows to use my ffdshow vfw codec to do divx and xvid movies. I then turned OFF RGB colourspaces in ffdshow video-for-windows codec "Output" tab. I have no idea why this worked, I was just fiddling. This fixed several .avi files coming up with a black thumbnail. Maybe when xnview uses the video-for-windows interface to extract a thumbnail from an .avi file it prefers the codec not to deliver video in an RGB16/24/32 colourspace? You tell me. I just know it worked and that all but 1 of my movies are working now.

Great program. Thanks.
User avatar
xnview
Author of XnView
Posts: 46238
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Post by xnview »

I've tried your video, but have no crash :-(
Pierre.
xnview-fan
Posts: 8
Joined: Sun Nov 04, 2007 3:29 pm

Post by xnview-fan »

Thanks for your efforts. If the crash would occur on one machine only, i would think it should be depenend on the specific computer and its background. But so far it happened on every computer tested by me. When I have more time, I will try an basic backup image of my pc with no codecs installed, to see if it is dependent on the codecs (which I don't think because the different pcs tested so far.) And maybe I will find time to get used working with debuggers. But for the next time I will just use the older v1.82.4 Minimal version for browsing my pictures and movies. Hopefully future versions will not have this problem on my machine. Thanks a lot!
Guest

Post by Guest »

Hi xnview-fan.

I have the same problem and I think I have found a workaround.

When I go from Browser to Fullscreen mode, and then navigate through pictures, as soon as I encounter any movie (avi, mov, etc.), XnView crashes. This is the same problem you mentioned.

But, when I go from Browser to Viewer, and then navigate through pictures using PgUp PgDown, I can also go to movies without any crash. This is fine, but we want to do this in Fullscreen mode, not Viewer mode, right? :wink:

Now, here is the workaround: when I go from Browser to Viewer to Fullscreen, I can navigate through videos in Fullscreen mode and I have no crash! This is really strange, and for now, this is how I use XnView to be able to use in Fullscreen mode without video crashes.

Like you said, this was not a problem with 1.82.4. This is a problem since 1.9x for me.

I hope it works for you and I hope this bug can be fixed :)

Ramone
User avatar
xnview
Author of XnView
Posts: 46238
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Post by xnview »

Anonymous wrote:Hi xnview-fan.

I have the same problem and I think I have found a workaround.

When I go from Browser to Fullscreen mode, and then navigate through pictures, as soon as I encounter any movie (avi, mov, etc.), XnView crashes. This is the same problem you mentioned.

But, when I go from Browser to Viewer, and then navigate through pictures using PgUp PgDown, I can also go to movies without any crash. This is fine, but we want to do this in Fullscreen mode, not Viewer mode, right? :wink:

Now, here is the workaround: when I go from Browser to Viewer to Fullscreen, I can navigate through videos in Fullscreen mode and I have no crash! This is really strange, and for now, this is how I use XnView to be able to use in Fullscreen mode without video crashes.

Like you said, this was not a problem with 1.82.4. This is a problem since 1.9x for me.

I hope it works for you and I hope this bug can be fixed :)

Ramone
So if i understand well, you have the crash only in fullscreen, when you navigate to a movie? And this problem is not here in viewer mode?
Which OS do you have?
Pierre.
ramone
Posts: 6
Joined: Sat Nov 17, 2007 6:30 am

Post by ramone »

I am on win XP sp2. Yes, the crash happens only in fullscreen mode when I navigate through pictures and then encounter a video. But the important thing is that it only crashes if I arrived at Fullscreen directly from the Browser, not the Viewer.

In other words...
- Start in Browser mode --> Go to Fullscreen mode --> Navigate through pictures until you get to a video --> crash
- Start in Browser mode --> Go to Viewer mode --> Go to Fullscreen mode --> Navigate through pictures until you get to a video --> no crash

So, to use XnView without problems...
- I must not use F11 (or right click) to go directly to fullscreen mode
- In Options, I must set my Switching Modes to "Browser > Viewer > Fullscreen" not "Browser > Fullscreen".

I hope this explains it better. Thanks for the quick reply!

Ramone
xnview-fan
Posts: 8
Joined: Sun Nov 04, 2007 3:29 pm

Post by xnview-fan »

Hey Ramone :D

You put it absolutely right! If I follow your instructions, the problem is gone :P
Because I am used to switch directly between browsing mode and fullscreen mode I never tried it this way. So it doesen´t seem to be a codec-associated bug. Meanwhile I did a complete fresh installation of XPSP2 without adding codecs before installing XnView to check for this possibility. To make it short: it was the same problem -> not a codec problem. But my setting for mode switching was: Browser <> Fullscreen!Viewer <> Fullscreen.
By the way: I always missed an extra option to ping-pong between Browser and Fullscreen without having the Viewer in between. O.K., in principle the setting I mentioned above does it similar, but I never really completely understood it.
For future versions it would also be nice to add the option to scale movies in Fullscreen mode (e.g. 2x, 4x etc. and fit to Fullscreen). Because so far the movies do not fit to Fullscreen when browsing a folder in Fullscreen mode.

Thanks for this workaround, Ramone
:D
Post Reply