XnView MP 0.21 Linux- crash on link start

*** Please report new bugs here! ***

Moderators: XnTriq, helmut, xnview, Dreamer

BariD42
Posts: 7
Joined: Fri Oct 03, 2008 3:46 pm
Location: Boyertown

XnView MP 0.21 Linux- crash on link start

Post by BariD42 »

Pierre. First, a massive 'merci' for XnView in general. I use the latest non-MP version as my windows image viewer, and I'll have nothing else. Simply stated, nothing else comes close.

At home, I use Ubuntu GNU/Linux, so I was as happy as a lark when I heard about the MP version in the works. Good luck, and thank you for thinking about the OS minority.

Now that pleasantries are through, I ran into a significant problem with the latest MP 0.21b.

Upon downloading, I unpacked the XnViewMP folder into my home directory, and created a link to run the .sh script from my desktop. Double-clicking the script from within the program folder worked fine. However, trying to run the script from the desktop, my system locked up from all of the RAM being used. I managed to get to my system monitor, and found a LARGE number of xnview instances running. It seems that running from a link causes xnview to respawn over and over, locking up the computer.

System details: HP dv5 laptop running Ubuntu 9.04 Jaunty 64-bit with all updates. I can provide any other package details you may want.

Cheers,

Dave
*************************************
To think the universe came to be of its own accord, without some design or intervention, lies somewhere in the border between lunacy and ignorance.
User avatar
xnview
Author of XnView
Posts: 44920
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: XnView MP 0.21 Linux- crash on link start

Post by xnview »

Ok, use this xnview.sh

Code: Select all

#!/bin/sh
dirname=`dirname $0`
LD_LIBRARY_PATH=$dirname
export LD_LIBRARY_PATH
QT_PLUGIN_PATH=$dirname
export QT_PLUGIN_PATH
$dirname/xnview $@
Pierre.
BariD42
Posts: 7
Joined: Fri Oct 03, 2008 3:46 pm
Location: Boyertown

Re: XnView MP 0.21 Linux- crash on link start

Post by BariD42 »

Pierre,

Same result. New script runs fine from program folder, crashes on multiple instances when linked from desktop.

Dave.
*************************************
To think the universe came to be of its own accord, without some design or intervention, lies somewhere in the border between lunacy and ignorance.
User avatar
xnview
Author of XnView
Posts: 44920
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: XnView MP 0.21 Linux- crash on link start

Post by xnview »

I've tried on ubuntu, and have not multiple instance
Pierre.
BariD42
Posts: 7
Joined: Fri Oct 03, 2008 3:46 pm
Location: Boyertown

Re: XnView MP 0.21 Linux- crash on link start

Post by BariD42 »

Pierre,

What is your process for making a link on the desktop. Perhaps I am doing something wrong.

Dave
*************************************
To think the universe came to be of its own accord, without some design or intervention, lies somewhere in the border between lunacy and ignorance.
User avatar
xnview
Author of XnView
Posts: 44920
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: XnView MP 0.21 Linux- crash on link start

Post by xnview »

BariD42 wrote: What is your process for making a link on the desktop. Perhaps I am doing something wrong.
I use "create launcher"
Pierre.
BariD42
Posts: 7
Joined: Fri Oct 03, 2008 3:46 pm
Location: Boyertown

Re: XnView MP 0.21 Linux- crash on link start

Post by BariD42 »

Pierre,

Aha! I had been making things too difficult. I had been using Nautilus, right-clicking on the script and making a link. Then I moved the link to the desktop. Creating a launcher works just fine.

Perhaps it would be good to figure out why my way blew up?

Thank you very much. Merci beaucoup.

Dave.
*************************************
To think the universe came to be of its own accord, without some design or intervention, lies somewhere in the border between lunacy and ignorance.
marsh
XnThusiast
Posts: 2443
Joined: Sun May 15, 2005 6:31 am

Re: XnView MP 0.21 Linux- crash on link start

Post by marsh »

BariD42 wrote: Perhaps it would be good to figure out why my way blew up?
Your way will work on older version of Xfce desktop. No crashes here with newer version and 32bit OS, but it also needs 'create launcher'.
User avatar
rra
Posts: 192
Joined: Thu May 11, 2006 1:46 pm
Location: The Netherlands

Re: XnView MP 0.21 Linux- crash on link start

Post by rra »

I am totally new to linux,
just playing with Ubuntu 9.10 for a while.

I managed to install XnView MP 0.21 on the system, and I am able to start Xnview,
but only when directly double clicking xnview.sh from the directory where the program has been installed.
When I "create a launcher" double clicking the desktop-icon gives me the popup to select what to do:

run in teminal, display , cancel or run: when I choose run,nothing seems to happen.

Obviously I am doing something wrong.
Who can give me some advice ?

Rene (don't know where the accent-aigu is at a laptop-keyboard)
marsh
XnThusiast
Posts: 2443
Joined: Sun May 15, 2005 6:31 am

Re: XnView MP 0.21 Linux- crash on link start

Post by marsh »

Greetings, I don't have your OS installed, but I noticed this with Debian testing and xfce:
Don't name launcher/desktop item same as the "scriptname.sh" (as it will be rejected by desktop manager).
Perhaps other desktops reject without notice? Just a guess, of course. Hopefully fellow Ub.9.1 users will discover more.
User avatar
rra
Posts: 192
Joined: Thu May 11, 2006 1:46 pm
Location: The Netherlands

Re: XnView MP 0.21 Linux- crash on link start

Post by rra »

Thanks Marsch, but that doesn't help;
my launcher's content is this:

Code: Select all

#!/usr/bin/env xdg-open

[Desktop Entry]
Encoding=UTF-8
Version=1.0
Type=Link
Icon[C]=gnome-panel-launcher
Name[C]=xnv
Exec=/home/ubuntu/XnViewMP/xnview.sh
Name=xnv
Icon=gnome-panel-launcher
when creating the launcher I have chosen the type-option "location" in stead of "application"

Rene
marsh
XnThusiast
Posts: 2443
Joined: Sun May 15, 2005 6:31 am

Re: XnView MP 0.21 Linux- crash on link start

Post by marsh »

rra wrote: when creating the launcher I have chosen the type-option "location" in stead of "application"
Type=Application is needed according to this reference about ".desktop" files.