XnViewMP 1.5.x crashes randomly on startup, Linux *and* Windows

Reported bugs that have been closed and/or resolved

Moderators: helmut, XnTriq, xnview, Dreamer

User avatar
winnylinny
Posts: 167
Joined: Fri Apr 17, 2020 5:35 pm

XnViewMP 1.5.x crashes randomly on startup, Linux *and* Windows

Post by winnylinny »

XnViewMP 1.5.x is crashing (segfault) when starting the program.

This happens randomly.

This never happens if the application is opened from an image. (Only when launched directly from a menu, etc.)

This is happening on KDE Linux and Windows 10. (Yes, even Windows exhibits this same bug.)

This never happened with 1.4.5.

:(

I don't know where to begin to troubleshoot this bug, however, it's a continuation from a post in this thread:

viewtopic.php?p=190060#p190060
User avatar
xnview
Author of XnView
Posts: 46235
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: XnViewMP 1.5.x crashes randomly on startup, Linux *and* Windows

Post by xnview »

do you have sent crash log with crash dialog (on windows)?
Pierre.
User avatar
winnylinny
Posts: 167
Joined: Fri Apr 17, 2020 5:35 pm

Re: XnViewMP 1.5.x crashes randomly on startup, Linux *and* Windows

Post by winnylinny »

Here is a dump when it crashes on Windows. (I attached the compressed .zip archive.)

💡 The behavior is the same as with Linux.

💡 It's random. It doesn't happen all the time. I would estimate about 10%-20% of the time it crashes.

💡 It only crashes like this when launching the application directly. It never crashes when opening a file.
Attachments
bde0e03f-3d86-4519-9322-c2944cf1e2c3.zip
(20.89 KiB) Downloaded 76 times
User avatar
xnview
Author of XnView
Posts: 46235
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: XnViewMP 1.5.x crashes randomly on startup, Linux *and* Windows

Post by xnview »

ok i see where, but don't understand why. Some users have this crash...
Always on jpeg file?
Pierre.
User avatar
winnylinny
Posts: 167
Joined: Fri Apr 17, 2020 5:35 pm

Re: XnViewMP 1.5.x crashes randomly on startup, Linux *and* Windows

Post by winnylinny »

xnview wrote: Mon Aug 21, 2023 9:15 am Always on jpeg file?
No. It's when launching the application directly.

If I open a file, it never crashes. The image will open in XnViewMP like normal.

If I launch XnViewMP from the menu directly (just the program, not a file), it will randomly crash like this.

Happens often. Both Linux and Windows.
User avatar
xnview
Author of XnView
Posts: 46235
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: XnViewMP 1.5.x crashes randomly on startup, Linux *and* Windows

Post by xnview »

winnylinny wrote: Mon Aug 21, 2023 1:24 pm If I launch XnViewMP from the menu directly (just the program, not a file), it will randomly crash like this.
So launch in browser mode? no saved tabs?
The last file is selected and displayed in preview?
I send you a PM
Pierre.
User avatar
winnylinny
Posts: 167
Joined: Fri Apr 17, 2020 5:35 pm

Re: XnViewMP 1.5.x crashes randomly on startup, Linux *and* Windows

Post by winnylinny »

*** UPDATE ***

This only happens if XnViewMP starts in "Viewer" mode. (No crashes occur if it starts in "Browser" mode.)

Pierre sent me a test .exe with a potential fix.

This test version appears to fix the bug of random crashes when the program starts in "Viewer" mode. :mrgreen:
xmozg
Posts: 58
Joined: Fri Sep 24, 2021 3:31 pm

Re: XnViewMP 1.5.x crashes randomly on startup, Linux *and* Windows

Post by xmozg »

Well, before you could not say that for some reason your xnview is launched from icon in viewer mode :mrgreen:
User avatar
xnview
Author of XnView
Posts: 46235
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: XnViewMP 1.5.x crashes randomly on startup, Linux *and* Windows

Post by xnview »

winnylinny wrote: Mon Aug 21, 2023 7:35 pm *** UPDATE ***

This only happens if XnViewMP starts in "Viewer" mode. (No crashes occur if it starts in "Browser" mode.)
So you have saved tabs?
Pierre.
User avatar
winnylinny
Posts: 167
Joined: Fri Apr 17, 2020 5:35 pm

Re: XnViewMP 1.5.x crashes randomly on startup, Linux *and* Windows

Post by winnylinny »

xnview wrote: Tue Aug 22, 2023 5:28 am So you have saved tabs?
I don't use saved tabs. (I rarely use the Browser, only Viewer.)

I think this crash (when launching the Viewer, without opening up any files) is fixed, based on your test .exe) :D
User avatar
xnview
Author of XnView
Posts: 46235
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: XnViewMP 1.5.x crashes randomly on startup, Linux *and* Windows

Post by xnview »

winnylinny wrote: Tue Aug 22, 2023 4:44 pm I think this crash (when launching the Viewer, without opening up any files) is fixed, based on your test .exe) :D
But how do you open the viewer without a file??
Pierre.
User avatar
winnylinny
Posts: 167
Joined: Fri Apr 17, 2020 5:35 pm

Re: XnViewMP 1.5.x crashes randomly on startup, Linux *and* Windows

Post by winnylinny »

xnview wrote: Wed Aug 23, 2023 6:20 am But how do you open the viewer without a file??
Launch it from a shortcut. From the start menu or desktop shortcut. Or even joust double-clicking the .exe.

Just like every application in existence...
User avatar
xnview
Author of XnView
Posts: 46235
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: XnViewMP 1.5.x crashes randomly on startup, Linux *and* Windows

Post by xnview »

winnylinny wrote: Wed Aug 23, 2023 5:02 pm
xnview wrote: Wed Aug 23, 2023 6:20 am But how do you open the viewer without a file??
Launch it from a shortcut. From the start menu or desktop shortcut. Or even joust double-clicking the .exe.

Just like every application in existence...
in this case XnView will start in browser not viewer. Could you send me your xnview.ini?
Pierre.
User avatar
winnylinny
Posts: 167
Joined: Fri Apr 17, 2020 5:35 pm

Re: XnViewMP 1.5.x crashes randomly on startup, Linux *and* Windows

Post by winnylinny »

You have an option that let's you choose, Pierre.

Did you forget? :wink:

option-to-choose-how-xnviewmp-launches.png
User avatar
xnview
Author of XnView
Posts: 46235
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: XnViewMP 1.5.x crashes randomly on startup, Linux *and* Windows

Post by xnview »

oh right :)

:bugconfirmed: Thanks to your detailed description I can reproduce the problem.
Pierre.
Post Reply