XnView crashing after using shell context menu?

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

Moderators: XnTriq, helmut, xnview

Post Reply
User avatar
foxyshadis
Posts: 390
Joined: Sat Nov 18, 2006 8:57 am

XnView crashing after using shell context menu?

Post by foxyshadis »

I've been experiencing a fair number of XnView crashes lately, and for a while had no idea why, since they were fairly random. But I realized that something I always did shortly before the crash was use the control-rightclick explorer context menu. Never right away, but it seems like 5 minutes or so after I use it for something, xnview wil just mysteriously crash. But not always, so maybe I'm on the wrong track, but I'd just like to ask others for their experiences first. It's the only think I can think of that most of the crashes have in common.
User avatar
Clo
XnThusiast
Posts: 4441
Joined: Sun Oct 17, 2004 4:57 am
Location: Bordeaux, France
Contact:

Nothing here…

Post by Clo »

—> foxyshadis

:) Hello !

• Hm… I tested on this moment, I :

• Opened XnView with an image,
• Kept it open,
• In Total Commander, right-clicked on a file in a list of images…
• Waited for > 5 minutes, nothing occured…

- I did again, same except that XnView was not open prior to test, all is OK. :?:

• Maybe some other Shell extension is putting a mess, this is not rare…
- So -I guess you know- you would have to track it using a tool like ShellExView or so,
disable all other extensions one by one till the crash no longer happens {the newest added first, indeed ;)}…

:mrgreen: KR
Claude
Clo
Old user ON SELECTIVE STRIKE till further notice
User avatar
foxyshadis
Posts: 390
Joined: Sat Nov 18, 2006 8:57 am

Post by foxyshadis »

Well, I don't mean just waiting 5 minutes, sorry. But rather, after a few minutes of doing other things in xnview (browsing, viewing, converting, etc). The more often I do it, the greater the likelyhood of a crash - once in a while, it happens as soon as I select an action, but usually it takes a few minutes to "work its way down". Now that I've started really pushing it, I can make it reliably crash by pushing it, doing nothing but rightclick, ctrl-rightclick, scrollwheel, and changing folders. (Not actually viewing anything.)

These are the tricky and nasty bugs that come from subtle corruptions caused by deallocating too early, deallocating the wrong pointer, using memory something else deallocated, race conditions, etc. Unfortunately, that makes them hard to find, also.

It could be a badly behaved shell extension, I'll test.

Results: Disabled every extension, reopened, still crashed. So it's not that. (The context menu looks forlorn with so little in it.)

Normally it's very stable, because I rarely need the shell context menu. I've just been working on a project lately where I need to use one of the items, so xnview's been crashing a lot more. Without using it, I can't get it to crash after 10-15 minutes of heavy use, but when randomly clicking and ctrl-rightclicking around trying to force a crash, I can make it happen in 10-15 seconds. Something's off here!

Sometimes I know I've corrupted it because all the thumbs will suddenly be replaced by a notepad, until you scroll around and they get replaced. It's guaranteed to crash on changing folders then.

Hope this helps.
marsh
XnThusiast
Posts: 2443
Joined: Sun May 15, 2005 6:31 am

Post by marsh »

Without the shell extension, I can get it to crash often by using <crtl + rmb> on a PDF file, then selecting explorer's open with to select another application. The windows application listing would shown, then program would end.

A similar crash can occur with the following steps:
1. use the <crtl + rmb> combination a dozen times without doing anything.
2. press <F12>.
3. Move option highlight to say "system integration" or "associations". The program ends as soon as the focus is placed on these items.

I suppose this confirms what foxyshadis described previously (I think it can be seen without the shell extension though).
User avatar
XnTriq
Moderator & Librarian
Posts: 6336
Joined: Sun Sep 25, 2005 3:00 am
Location: Ref Desk

Post by XnTriq »

Hi everyone :)

Shame on me! I had no idea that you can use CTRL + RMB to bring up the explorer/shell context menu inside XnView's browser.
After playing with this feature for a while now, I can confirm that this obviously provokes “delayed” crashes.
On my system exif_en.lng shows up in every corresponding entry of drwtsn32.log:

Code: Select all

*----> Raw Stack Dump <----*
0012fd84  8f 69 e0 77 d8 fd 12 00 - 00 00 00 00 00 00 00 00  .i.w............
0012fd94  00 00 00 00 d7 d4 e1 77 - 00 00 00 00 17 7d e1 77  .......w.....}.w
0012fda4  b8 01 3d 00 6b ef 4e 00 - d8 fd 12 00 00 00 00 00  ..=.k.N.........
0012fdb4  00 00 00 00 00 00 00 00 - 00 00 00 00 00 00 00 00  ................
0012fdc4  c0 ff 12 00 00 f0 fd 7f - 00 00 00 00 00 00 00 00  ................
0012fdd4  00 00 00 00 58 03 17 00 - 13 01 00 00 2b 00 00 00  ....X.......+...
0012fde4  00 00 00 00 56 de 45 01 - 82 00 00 00 67 01 00 00  ....V.E.....g...
0012fdf4  58 6e 56 69 65 77 00 00 - 78 03 bd 00 0a 00 00 00  XnView..x.......
0012fe04  02 00 00 00 00 04 bd 00 - 00 04 bd 00 06 32 88 77  .............2.w
0012fe14  00 00 e7 77 00 00 00 00 - f0 fe 12 00 8a 8d 88 77  ...w...........w
0012fe24  00 00 e7 77 8a fe 12 00 - 00 fe 12 00 cc fe 12 00  ...w............
0012fe34  43 3a 5c 50 72 6f 67 72 - 61 6d 20 46 69 6c 65 73  C:\Program Files
0012fe44  5c 58 6e 56 69 65 77 5c - 6c 61 6e 67 75 61 67 65  \XnView\language
0012fe54  5c 65 78 69 66 5f 65 6e - 2e 6c 6e 67 00 00 00 00  \exif_en.lng....
0012fe64  00 00 bd 00 30 40 13 00 - 40 40 13 00 00 27 bd 00  ....0@..@@...'..
0012fe74  88 fe 12 00 11 5c 00 00 - 08 36 bd 00 08 36 bd 00  .....\...6...6..
0012fe84  10 36 bd 00 b0 00 00 00 - c8 00 00 00 f0 fc 12 00  .6..............
0012fe94  b0 ff 12 00 f4 fe 12 00 - 55 1f 88 77 a0 60 88 77  ........U..w.`.w
0012fea4  ff ff ff ff a4 cc 8c 77 - a4 cc 8c 77 00 00 bd 00  .......w...w....
0012feb4  08 36 bd 00 00 00 00 00 - d8 12 69 00 0c ff 12 00  .6........i.....
I'm running XnView 1.90.3 on Windows 2000 SP4. Besides the XnView shell extension I have a few others installed: 7-Zip, FmView, Ninotech Path Copy, Ontrack PowerDesk Pro, Properties Plus, WinRAR, WinZip. Also, I've got a couple of programs like Paint Shop Pro and Photoshop in the Open With submenu of XnView's own context menu.
martin10018
Posts: 48
Joined: Tue Jun 14, 2005 10:23 am

Post by martin10018 »

Some versions of Nero 7 made big problems with the context menu handler. Could that be the culprit? If yes, the latest update for Nero seems to fix the problem.
User avatar
xnview
Author of XnView
Posts: 43327
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Post by xnview »

Do you have always the crash with contextual menu in xnview's browser??
I can't reproduce...
Pierre.
User avatar
XnTriq
Moderator & Librarian
Posts: 6336
Joined: Sun Sep 25, 2005 3:00 am
Location: Ref Desk

Post by XnTriq »

This problem seems to have gotten worse in XnView v1.92 (Windows 2000 SP4). :(
  1. In Browser mode, select one or more files.
  2. Press & hold the Ctrl key, then RMB-click the file(s).
  3. In the shell context menu, go to Send To » Desktop (create shortcut).
  4. XnView crashes immediately or upon exiting.
User avatar
xnview
Author of XnView
Posts: 43327
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Post by xnview »

XnTriq wrote:This problem seems to have gotten worse in XnView v1.92 (Windows 2000 SP4). :(
  1. In Browser mode, select one or more files.
  2. Press & hold the Ctrl key, then RMB-click the file(s).
  3. In the shell context menu, go to Send To » Desktop (create shortcut).
  4. XnView crashes immediately or upon exiting.
I can't confirm on W2K
Pierre.
Guest

Post by Guest »

XnTriq wrote:This problem seems to have gotten worse in XnView v1.92 (Windows 2000 SP4). :(
  1. In Browser mode, select one or more files.
  2. Press & hold the Ctrl key, then RMB-click the file(s).
  3. In the shell context menu, go to Send To » Desktop (create shortcut).
  4. XnView crashes immediately or upon exiting.
Confirm on WinXP+SP2 :(
Post Reply