BV 4.0.1 error

Questions about BrainVisa usage and installation

Moderators: denghien, riviere

Post Reply
joost
Posts: 86
Joined: Tue Feb 05, 2008 1:56 pm

BV 4.0.1 error

Post by joost »

Hi,

downloaded and installed: brainvisa-Fedora-4-i686-4.0.1-2010_07_29.tar.gz
stamp: Linux neuro2 2.6.27.24-170.2.68.fc10.x86_64 #1 SMP Wed May 20 22:47:23 EDT 2009 x86_64 x86_64 x86_64 GNU/Linux

problem: brainvisa starts up, tells me to go directly to "Prefences" because i have not created a Database. I do so, click on "open" to select a dir as Database. after clicking "open" brainvisa shuts down instantly, error on screen:
>/usr/local/brainvisa/bin/commands-links/python: symbol lookup error: /usr/lib64/libpangocairo-1.0.so.0: undefined symbol: cairo_has_current_point

FYI:
ldd /usr/lib64/libpangocairo-1.0.so.0
linux-vdso.so.1 => (0x00007fff275a2000)
libpango-1.0.so.0 => /usr/lib64/libpango-1.0.so.0 (0x0000003805600000)
libgobject-2.0.so.0 => /lib64/libgobject-2.0.so.0 (0x00000037ffa00000)
libgmodule-2.0.so.0 => /lib64/libgmodule-2.0.so.0 (0x00000037ffe00000)
libglib-2.0.so.0 => /lib64/libglib-2.0.so.0 (0x00000037ff200000)
libcairo.so.2 => /usr/local/brainvisa/lib/libcairo.so.2 (0x00007f0e3a2f0000)
libm.so.6 => /lib64/libm.so.6 (0x00000037fde00000)
libpangoft2-1.0.so.0 => /usr/lib64/libpangoft2-1.0.so.0 (0x0000003805a00000)
libfreetype.so.6 => /usr/lib64/libfreetype.so.6 (0x0000003802600000)
libfontconfig.so.1 => /usr/local/brainvisa/lib/libfontconfig.so.1
(0x00007f0e3a0bb000)
libc.so.6 => /lib64/libc.so.6 (0x00000037fda00000)
libdl.so.2 => /lib64/libdl.so.2 (0x00000037fe200000)
libz.so.1 => /lib64/libz.so.1 (0x00000037fea00000)
libpng12.so.0 => /usr/lib64/libpng12.so.0 (0x0000003802e00000)
libXrender.so.1 => /usr/lib64/libXrender.so.1 (0x0000003803e00000)
libX11.so.6 => /usr/lib64/libX11.so.6 (0x0000003800a00000)
libxml2.so.2 => /usr/lib64/libxml2.so.2 (0x0000003807800000)
/lib64/ld-linux-x86-64.so.2 (0x00000037fc600000)
libxcb-xlib.so.0 => /usr/lib64/libxcb-xlib.so.0 (0x0000003800600000)
libxcb.so.1 => /usr/lib64/libxcb.so.1 (0x0000003801200000)
libXau.so.6 => /usr/lib64/libXau.so.6 (0x0000003800200000)
libXdmcp.so.6 => /usr/lib64/libXdmcp.so.6 (0x0000003801600000)

what am i doing wrong?
merci,
-joost
User avatar
Yann Cointepas
Posts: 316
Joined: Tue Jan 20, 2004 2:56 pm
Location: Neurospin, Saint Aubin, France
Contact:

Re: BV 4.0.1 error

Post by Yann Cointepas »

Hi,

I suppose that a module or library from your 64 bit system is imported from the 32 bits Python provided with BrainVISA pack. This module must involve a link to libpangocairo-1.0.so.0. It seems that pangocairo is related to the GTK graphical library that we do not use because we use Qt. With the behavior you describe, I believe that Qt is able to ask to the system (you must be using Gnome desktop) to open a file (or directory) selection window. This assumption is enforced by the fact that when I try to open a file with BrainVISA on my Ubuntu with Gnome desktop, I see a GTK file selector instead of a Qt one. So we have to investigate this to find a way to ask Qt to use its own file selector. In the meantime, you may try to use BrainVISA from a KDE session. Since KDE is using Qt and Qt is included in our pack, it should work.

Yann
joost
Posts: 86
Joined: Tue Feb 05, 2008 1:56 pm

Re: BV 4.0.1 error

Post by joost »

Hi,

an old thread but nevertheless: has this been fixed? the reason for asking: i'm using Anatomist included in BrainVisa 4.1 under Gnome in Ubuntu 10.10. all works fine except when i try to save any file, Anatomist crashes with on screen output:

>anatomist: symbol lookup error: /usr/lib/libpangocairo-1.0.so.0: undefined symbol: cairo_has_current_point

i would really like to use BrainVisa under Gnome.

merci,
-joost
User avatar
riviere
Site Admin
Posts: 1361
Joined: Tue Jan 06, 2004 12:21 pm
Location: CEA NeuroSpin, Saint Aubin, France
Contact:

Re: BV 4.0.1 error

Post by riviere »

Hi,
Well, we thought we had solved this problem by forcing the Qt style for files dialogs in Bv 4.1, but apprently it still exists. Gosh...
Have you tried the 64 bit version (the one built on Mandriva 2008-x86_64) ?
Denis
joost
Posts: 86
Joined: Tue Feb 05, 2008 1:56 pm

Re: BV 4.0.1 error

Post by joost »

Hi,

i'm currently using brainvisa-Mandriva-2008.0-x86_64-4.1.0-2011_05_16 as my build-stamp is:

Linux joost-laptop 2.6.35-28-generic #49-Ubuntu SMP Tue Mar 1 14:39:03 UTC 2011 x86_64 GNU/Linux

merci,
-joost
User avatar
riviere
Site Admin
Posts: 1361
Joined: Tue Jan 06, 2004 12:21 pm
Location: CEA NeuroSpin, Saint Aubin, France
Contact:

Re: BV 4.0.1 error

Post by riviere »

Hi,
Could you try to remove (well, move somewhere else) the libcairo.so* files from the lib/ subdirectory of brainvisa ? It could be an incompatibility between this libcairo from the BV package and the libpangocairo from your system. On some (more recent) systems, removing these files will solve the problem I guess, and on other (older) it will probably cause problems somewhere else.
Denis
User avatar
riviere
Site Admin
Posts: 1361
Joined: Tue Jan 06, 2004 12:21 pm
Location: CEA NeuroSpin, Saint Aubin, France
Contact:

Re: BV 4.0.1 error

Post by riviere »

Removing these libcairo files has worked for someone else, so hope it will also work for you.

Denis
joost
Posts: 86
Joined: Tue Feb 05, 2008 1:56 pm

Re: BV 4.0.1 error

Post by joost »

Hi,

it worked.

merci,
-joost
Manik
Posts: 99
Joined: Fri Mar 05, 2004 1:00 pm
Location: INSERM U836, Grenoble

Re: BV 4.0.1 error

Post by Manik »

I got the same problem on Ubuntu 12.04 64bits with Brainvisa 4.2.1 64bits.
Removing libcairo* from Brainvisa did not work (it even caused X to use 100% CPU, I had to go to the console to kill python to go back to a usable mouse/screen).
I installed KDE and switched the default Ubuntu session to KDE/KWin/Plasma and of course, it works.
Still no fix to force the Qt File dialog instead of GTK/Pangocairo ?
Manik Bhattacharjee
INSERM U836
User avatar
riviere
Site Admin
Posts: 1361
Joined: Tue Jan 06, 2004 12:21 pm
Location: CEA NeuroSpin, Saint Aubin, France
Contact:

Re: BV 4.0.1 error

Post by riviere »

Hi,

The plugins problem seems to be in Qt itself: we tried very hard to make it *not* load plugins from the system, but it seems that there are some hard-coded paths which look for them, even if they are not specified in the config file.
For now you can force the style: look here. We are still trying some tricks to avoid the gtk plugin to load and mess up libraries.

Denis
User avatar
Yann Cointepas
Posts: 316
Joined: Tue Jan 20, 2004 2:56 pm
Location: Neurospin, Saint Aubin, France
Contact:

Re: BV 4.0.1 error

Post by Yann Cointepas »

Hi Manik,

You can try to change the Qt style of the appliaction. See the following post:

http://brainvisa.info/forum/viewtopic.p ... 6070#p6070

Best,

Yann
Manik
Posts: 99
Joined: Fri Mar 05, 2004 1:00 pm
Location: INSERM U836, Grenoble

Re: BV 4.0.1 error

Post by Manik »

Thanks !
I hope this will be also useful to others because I will keep KDE anyway !
Manik Bhattacharjee
INSERM U836
Post Reply