0.35 Linux: segfault on ubuntu 11.04

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

Moderators: XnTriq, helmut, xnview, Dreamer

rmtk
Posts: 174
Joined: Tue Dec 07, 2010 2:04 am

0.35 Linux: segfault on ubuntu 11.04

Post by rmtk »

Just updated ubuntu from 10.10 to 11.04, but xnviewmp failed to start.
I use 32bit version on my 64bit system, since 64bit xnviewmp is buggy: http://newsgroup.xnview.com/viewtopic.php?f=62&t=22347
Look forward for help.

treminal log:

(<unknown>:3004): Gtk-WARNING **: /usr/lib/gtk-2.0/2.10.0/immodules/im-ibus.so: wrong ELF class: ELFCLASS64

(<unknown>:3004): Gtk-WARNING **: Loading IM context type 'ibus' failed

(<unknown>:3004): Gtk-WARNING **: /usr/lib/gtk-2.0/2.10.0/immodules/im-ibus.so: wrong ELF class: ELFCLASS64

(<unknown>:3004): Gtk-WARNING **: Loading IM context type 'ibus' failed

(<unknown>:3004): Gtk-WARNING **: /usr/lib/gtk-2.0/2.10.0/immodules/im-ibus.so: wrong ELF class: ELFCLASS64

(<unknown>:3004): Gtk-WARNING **: Loading IM context type 'ibus' failed
XNVIEW restoreGeometry before : 640 480
XNVIEW restoreGeometry after : 1278 725
w.init
XNVIEW SIZE 1278 725


########### BrowserWindow :: BrowserWindow

MENU install : 8bce318
### ThumbLoaderThread :: stop()
QLayout: Attempting to add QLayout "" to QWidget "", which already has a layout
QLayout: Attempting to add QLayout "" to QWidget "", which already has a layout
QLayout: Attempting to add QLayout "" to QWidget "", which already has a layout
########### BrowserWindow :: ok create (640 480)
BrowserWindow :: changeVisibility()
BrowserWindow :: updateMenu()
BrowserWindow :: changeVisibility()
BrowserWindow :: updateMenu()
BrowserWindow :: changeVisibility()
BrowserWindow :: updateMenu()
########### BrowserWindow :: restoreState (1278 725)
XNVIEW resize : 1278 725
## MyTabWidget :: resizeEvent : 1278 725
## RESIZE: 981 558
### MyBitmapView (8c7b570) :: resizeEvent 389 157
### MyBitmapView (8c7b570) :: resizeEvent 507 157
## RESIZE: 1278 692
### BrowserWindow :: onStart
BrowserWindow :: onStart 2
setPathname </home/rm/ALL/Documents/Pictures/??/>
## OPEN FOLDER
## OPEN FOLDER ok
## updateLabels
## updateLabels ok
### ThumbLoaderThread :: stop()
### ThumbLoaderThread :: stop()
### ThumbLoaderThread :: setFileList()
### ThumbLoaderThread :: setFileList() wait
######ThumbLoaderThread :: run : 8c0d9d0
######ThumbLoaderThread :: forever : 8c0d9d0
### ThumbLoaderThread :: setFileList() ok
### ThumbLoaderThread :: stop()
######ThumbLoaderThread :: start : 24
ThumbLoaderThread => 0 (-1 -1)
DB (7285) : 4096 4096
ThumbLoaderThread - LOADED from DB (7285)
ThumbLoaderThread - loadThumb from DB (7285 - BNU)
QFileSystemWatcher: failed to add paths: /home/rm/ALL/Documents/Pictures/照片/
BrowserWindow :: updateMenu()
ThumbLoaderThread => 1 (-1 -1)
DB (8805) : 4096 4096
ThumbLoaderThread - LOADED from DB (8805)
ThumbLoaderThread - loadThumb from DB (8805 - ECNU)
ThumbLoaderThread => 2 (-1 -1)
DB (1) : 4096 4096
ThumbLoaderThread - LOADED from DB (1)
ThumbLoaderThread - loadThumb from DB (1 - SJTU)
ThumbLoaderThread => 3 (-1 -1)
DB (2) : 12288 12288
ThumbLoaderThread - LOADED from DB (2)
ThumbLoaderThread - loadThumb from DB (2 - ???)
ThumbLoaderThread => 4 (-1 -1)
DB (3) : 12288 12288
ThumbLoaderThread - LOADED from DB (3)
ThumbLoaderThread - loadThumb from DB (3 - ???)
ThumbLoaderThread => 5 (-1 -1)
DB (12255) : 12288 12288
ThumbLoaderThread - LOADED from DB (12255)
ThumbLoaderThread - loadThumb from DB (12255 - ???)
ThumbLoaderThread => 6 (-1 -1)
DB (15889) : 4096 4096
ThumbLoaderThread - LOADED from DB (15889)
ThumbLoaderThread - loadThumb from DB (15889 - ??)
ThumbLoaderThread => 7 (-1 -1)
DB (4) : 4096 4096
ThumbLoaderThread - LOADED from DB (4)
ThumbLoaderThread - loadThumb from DB (4 - ??)
ThumbLoaderThread => 8 (-1 -1)
DB (12256) : 12288 12288
ThumbLoaderThread - LOADED from DB (12256)
ThumbLoaderThread - loadThumb from DB (12256 - ??)
MyDirModelThread :: run
ThumbLoaderThread => 9 (-1 -1)
DB (7101) : 4096 4096
ThumbLoaderThread - LOADED from DB (7101)
ThumbLoaderThread - loadThumb from DB (7101 - ??)
ThumbLoaderThread => 10 (-1 -1)
DB (13347) : 4096 4096
ThumbLoaderThread - LOADED from DB (13347)
ThumbLoaderThread - loadThumb from DB (13347 - ??)
ThumbLoaderThread => 11 (-1 -1)
DB (13348) : 20480 20480
ThumbLoaderThread - LOADED from DB (13348)
ThumbLoaderThread - loadThumb from DB (13348 - ??)
ThumbLoaderThread => 12 (-1 -1)
DB (5) : 4096 4096
ThumbLoaderThread - LOADED from DB (5)
ThumbLoaderThread - loadThumb from DB (5 - ???)
ThumbLoaderThread => 13 (-1 -1)
DB (6) : 20480 20480
ThumbLoaderThread - LOADED from DB (6)
ThumbLoaderThread - loadThumb from DB (6 - ?????)
ThumbLoaderThread => 14 (-1 -1)
DB (7) : 4096 4096
ThumbLoaderThread - LOADED from DB (7)
ThumbLoaderThread - loadThumb from DB (7 - ????)
ThumbLoaderThread => 15 (-1 -1)
DB (8) : 4096 4096
ThumbLoaderThread - LOADED from DB (8)
ThumbLoaderThread - loadThumb from DB (8 - ????)
ThumbLoaderThread => 16 (-1 -1)
DB (9) : 20480 20480
ThumbLoaderThread - LOADED from DB (9)
ThumbLoaderThread - loadThumb from DB (9 - ???)
ThumbLoaderThread => 17 (-1 -1)
DB (15890) : 4096 4096
ThumbLoaderThread - LOADED from DB (15890)
ThumbLoaderThread - loadThumb from DB (15890 - ??)
ThumbLoaderThread => 18 (-1 -1)
DB (9496) : 4096 4096
ThumbLoaderThread - LOADED from DB (9496)
ThumbLoaderThread - loadThumb from DB (9496 - ??)
ThumbLoaderThread => 19 (-1 -1)
DB (11) : 4096 4096
ThumbLoaderThread - LOADED from DB (11)
ThumbLoaderThread - loadThumb from DB (11 - ??)
ThumbLoaderThread => 20 (-1 -1)
DB (12) : 4096 4096
ThumbLoaderThread - LOADED from DB (12)
ThumbLoaderThread - loadThumb from DB (12 - ??)
ThumbLoaderThread => 21 (-1 -1)
DB (13) : 36864 36864
ThumbLoaderThread - LOADED from DB (13)
ThumbLoaderThread - loadThumb from DB (13 - ??)
ThumbLoaderThread => 22 (-1 -1)
DB (10781) : 12288 12288
ThumbLoaderThread - LOADED from DB (10781)
ThumbLoaderThread - loadThumb from DB (10781 - ?????)
ThumbLoaderThread => 23 (-1 -1)
DB (8775) : 4096 4096
ThumbLoaderThread - LOADED from DB (8775)
ThumbLoaderThread - loadThumb from DB (8775 - ??)
######ThumbLoaderThread :: forever : 8c0d9d0
/usr/lib/gio/modules/libgvfsdbus.so: wrong ELF class: ELFCLASS64
Failed to load module: /usr/lib/gio/modules/libgvfsdbus.so

(<unknown>:3004): Gtk-WARNING **: Error loading theme icon 'window-close' for stock: Unable to load image-loading module: /usr/lib/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-svg.so: /usr/lib/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-svg.so: wrong ELF class: ELFCLASS64

(<unknown>:3004): GLib-GObject-CRITICAL **: g_object_unref: assertion `G_IS_OBJECT (object)' failed

** (<unknown>:3004): CRITICAL **: murrine_style_draw_render_icon: assertion `base_pixbuf != NULL' failed

(<unknown>:3004): Gtk-CRITICAL **: IA__gtk_style_render_icon: assertion `pixbuf != NULL' failed

(<unknown>:3004): GdkPixbuf-CRITICAL **: gdk_pixbuf_get_pixels: assertion `GDK_IS_PIXBUF (pixbuf)' failed

(<unknown>:3004): GdkPixbuf-CRITICAL **: gdk_pixbuf_get_width: assertion `GDK_IS_PIXBUF (pixbuf)' failed

(<unknown>:3004): GdkPixbuf-CRITICAL **: gdk_pixbuf_get_height: assertion `GDK_IS_PIXBUF (pixbuf)' failed
Segmentation fault
User avatar
xnview
Author of XnView
Posts: 44339
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: 0.35 Linux: segfault on ubuntu 11.04

Post by xnview »

Could you try:

Code: Select all

strace ./xnview.sh |& grep -i libqt | grep -v XnViewMP
Pierre.
rmtk
Posts: 174
Joined: Tue Dec 07, 2010 2:04 am

Re: 0.35 Linux: segfault on ubuntu 11.04

Post by rmtk »

xnview wrote:Could you try:

Code: Select all

strace ./xnview.sh |& grep -i libqt | grep -v XnViewMP
xnviewmp started and then crashed, without any log in terminal :(
User avatar
xnview
Author of XnView
Posts: 44339
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: 0.35 Linux: segfault on ubuntu 11.04

Post by xnview »

rmtk wrote:
xnview wrote:Could you try:

Code: Select all

strace ./xnview.sh |& grep -i libqt | grep -v XnViewMP
xnviewmp started and then crashed, without any log in terminal :(
Do you have KDE or QT libs on your ubuntu? Which version of zlib? which version of libxml2?
Pierre.
rmtk
Posts: 174
Joined: Tue Dec 07, 2010 2:04 am

Re: 0.35 Linux: segfault on ubuntu 11.04

Post by rmtk »

qt:4.7.2; zlib:1.2.3.4; libxml2:2.7.8. All are the default version of ubuntu 11.04.
The segfault can be reproduced on a ubuntu 11.04 64bit livecd.
User avatar
xnview
Author of XnView
Posts: 44339
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: 0.35 Linux: segfault on ubuntu 11.04

Post by xnview »

Ok, there is a problem with gdk/gtk libs. In the .sh add /usr/lib32 in LD_LIBRARY_PATH
Pierre.
rmtk
Posts: 174
Joined: Tue Dec 07, 2010 2:04 am

Re: 0.35 Linux: segfault on ubuntu 11.04

Post by rmtk »

You mean "export LD_LIBRARY_PATH="$dirname"/lib:/usr/lib32"? But it doesn't work. :|
User avatar
xnview
Author of XnView
Posts: 44339
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: 0.35 Linux: segfault on ubuntu 11.04

Post by xnview »

rmtk wrote:You mean "export LD_LIBRARY_PATH="$dirname"/lib:/usr/lib32"? But it doesn't work. :|
yes, it works for me :( And could you try XnConvert?
Pierre.
rmtk
Posts: 174
Joined: Tue Dec 07, 2010 2:04 am

Re: 0.35 Linux: segfault on ubuntu 11.04

Post by rmtk »

Just tested on 11.04 livecd again and it did not work either...
xnconvert is ok.
User avatar
xnview
Author of XnView
Posts: 44339
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: 0.35 Linux: segfault on ubuntu 11.04

Post by xnview »

rmtk wrote:Just tested on 11.04 livecd again and it did not work either...
xnconvert is ok.
ok right, i've tested XnConvert not XnViewMP... Gdk try to load some dso, but can't found 32bits version...
Pierre.