Re: [Matplotlib-users] Matplotlib crashes on mouse event

2010-05-16 Thread Fabrice Silva
FIY, with the help of Sylvestre Ledru (debian atlas maintainer), the
problem was solved installing libatlas3g-sse*.



--

___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Matplotlib crashes on mouse event

2010-05-15 Thread Fabrice Silva
I notice that the illegal instruction does not occur when the figure
does not contain any axes.

Fabrice


--

___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Matplotlib crashes on mouse event

2010-05-14 Thread Fabrice Silva
Le vendredi 14 mai 2010 à 10:06 -0400, Michael Droettboom a écrit : 
> Can you get a gdb backtrace?
> 
> (Run "gdb python", then "run name_of_script.py", cause it to crash, and 
> type "bt" in gdb console...)

Here is the backtrace:
(gdb) run test_plt.py 
Starting program: /usr/bin/python test_plt.py
[Thread debugging using libthread_db enabled]
/usr/lib/pymodules/python2.5/matplotlib/backends/backend_gtk.py:621: 
DeprecationWarning: Use the new widget gtk.Tooltip
  self.tooltips = gtk.Tooltips()

Program received signal SIGILL, Illegal instruction.
0xb767b638 in ATL_diamax_xp1yp0aXbX ()
from /usr/lib/libblas.so.3gf
(gdb) bt
#0  0xb767b638 in ATL_diamax_xp1yp0aXbX ()
from /usr/lib/libblas.so.3gf
#1  0x in ?? ()
(gdb)

Surprisingly, the troubles come from libblas. In fact, I daily update my
debian and, on wednesday, the package libatlas3gf-base has been updated
from 3.8.3-21 to 3.8.3-22. It seems that it had some side-effect on
matplotlib behaviour...
But why does the interpreter crash only when the pointer enters the
figure canvas??


-- 
Fabrice Silva 
LMA UPR CNRS 7051


--

___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Matplotlib crashes on mouse event

2010-05-14 Thread Michael Droettboom
Can you get a gdb backtrace?

(Run "gdb python", then "run name_of_script.py", cause it to crash, and 
type "bt" in gdb console...)

Mike

Fabrice Silva wrote:
> hi folks,
> even on simple script, matplotlib crashes : 
> fab:$ python
> Python 2.5.5 (r255:77872, Apr 21 2010, 08:44:16) 
> [GCC 4.4.3] on linux2 
> Type "help", "copyright", "credits" or "license" for more information.
> >>> import matplotlib.pyplot as plt
> >>> plt.plot([4,2,8])
> /usr/lib/pymodules/python2.5/matplotlib/backends/backend_gtk.py:621: 
> DeprecationWarning: Use the new widget gtk.Tooltip 
>   self.tooltips = gtk.Tooltips()
> []
> >>> plt.show()
> Instruction non permise
>
> The crash occurs when the mouse enters (if previously outside) and moves
> (if previously inside) in the figure.
> I am using debian unstable package (0.99.1-1) and admit I have try to
> manually modify the gtk backend to resolve the ginput bug (due to
> changes in stop_event signature, solved by r8531 but not in debian
> package). Since then the crash occurs automatically. Even a complete
> remove/purge/install of the package does not solve the problem.
>
> Any idea? Matplotlib's developers? Sandro (Debian maintainer) ?
>
>   

-- 
Michael Droettboom
Science Software Branch
Operations and Engineering Division
Space Telescope Science Institute
Operated by AURA for NASA


--

___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Matplotlib crashes on mouse event

2010-05-14 Thread Fabrice Silva
Some additional details
$ python
Python 2.5.5 (r255:77872, Apr 21 2010, 08:44:16) [GCC 4.4.3] on linux2
>>> import numpy, matplotlib
>>> numpy.__version__, matplotlib.__version__
('1.3.0', '0.99.1.1')

and the output of lsof just before the pointer enters the canvas
-- 
Fabrice Silva
$ lsof |grep 6352
python6352fab  cwd   DIR8,2 4096  16289 
/home/fab
python6352fab  rtd   DIR8,1 4096  2 /
python6352fab  txt   REG8,1  1159756 160666 
/usr/bin/python2.5
python6352fab  DEL   REG0,4  950294 
/SYSV
python6352fab  DEL   REG0,4  917525 
/SYSV
python6352fab  mem   REG8,1 6760 224327 
/usr/lib/pango/1.6.0/modules/pango-basic-fc.so
python6352fab  mem   REG8,1   622280 271721 
/usr/share/fonts/truetype/ttf-dejavu/DejaVuSans.ttf
python6352fab  mem   REG8,124080 101079 
/var/cache/fontconfig/945677eb7aeaf62f1d50efc3fb3ec7d8-le32d4.cache-3
python6352fab  mem   REG8,1 7256  97170 
/var/cache/fontconfig/b5ea634b0fb353b8ea17632d1f9ef766-le32d4.cache-3
python6352fab  mem   REG8,125672 100858 
/var/cache/fontconfig/6d41288fd70b0be22e8c3a91e032eec0-le32d4.cache-3
python6352fab  mem   REG8,118720 101075 
/var/cache/fontconfig/ce677e824a231659fde4a3a246a10ea3-le32d4.cache-3
python6352fab  mem   REG8,129032 102286 
/var/cache/fontconfig/d52a8644073d54c13679302ca1180695-le32d4.cache-3
python6352fab  mem   REG8,170428  15980 
/lib/libbz2.so.1.0.4
python6352fab  mem   REG8,1  1213276 160523 
/usr/lib/libxml2.so.2.7.7
python6352fab  mem   REG8,1   214812 165330 
/usr/lib/libcroco-0.6.so.3.0.1
python6352fab  mem   REG8,1   223280 160371 
/usr/lib/libgsf-1.so.114.0.18
python6352fab  mem   REG8,1   205748 143520 
/usr/lib/librsvg-2.so.2.26.3
python6352fab  mem   REG8,125680 213165 
/usr/share/matplotlib/mpl-data/fonts/ttf/cmb10.ttf
python6352fab  mem   REG8,130872 100608 
/var/cache/fontconfig/e13b20fdb08344e0e664864cc2ede53d-le32d4.cache-3
python6352fab  mem   REG8,1   142878 163111 
/usr/share/locale/fr/LC_MESSAGES/libc.mo
python6352fab  mem   REG8,1   171652 223675 
/usr/lib/gtk-2.0/2.10.0/engines/libclearlooks.so
python6352fab  mem   REG8,1   139480 213894 
/usr/lib/pyshared/python2.5/matplotlib/backends/_gtkagg.so
python6352fab  mem   REG8,1 6292 213888 
/usr/lib/pyshared/python2.5/matplotlib/backends/_backend_gdk.so
python6352fab  mem   REG8,1   171840 165868 
/usr/share/locale/fr/LC_MESSAGES/gtk20-properties.mo
python6352fab  mem   REG8,1   224680 177615 
/usr/lib/pyshared/python2.5/gtk-2.0/atk.so
python6352fab  mem   REG8,1   125300 177644 
/usr/lib/pyshared/python2.5/gtk-2.0/pango.so
python6352fab  mem   REG8,1   294560 177488 
/usr/lib/pyshared/python2.5/gtk-2.0/gio/_gio.so
python6352fab  mem   REG8,178864 179488 
/usr/lib/pyshared/python2.5/cairo/_cairo.so
python6352fab  mem   REG8,116972 163802 
/usr/lib/libXdmcp.so.6.0.0
python6352fab  mem   REG8,1 7660 165702 
/usr/lib/libXau.so.6.0.0
python6352fab  mem   REG8,1   152768 159787 
/usr/lib/libexpat.so.1.5.2
python6352fab  mem   REG8,1   104276  16432 
/lib/libselinux.so.1
python6352fab  mem   REG8,171432  16151 
/lib/i686/cmov/libresolv-2.10.2.so
python6352fab  mem   REG8,198020 159446 
/usr/lib/libxcb.so.1.1.0
python6352fab  mem   REG8,125848 161644 
/usr/lib/libxcb-render.so.0.0.0
python6352fab  mem   REG8,110144 164698 
/usr/lib/libxcb-render-util.so.0.0.0
python6352fab  mem   REG8,1   364952 160828 
/usr/lib/libpixman-1.so.0.16.4
python6352fab  mem   REG8,133780 159557 
/usr/lib/libXcursor.so.1.0.2
python6352fab  mem   REG8,125684 113686 
/usr/lib/libXrandr.so.2.2.0
python6352fab  mem   REG8,150996 162425 
/usr/lib/libXi.so.6.1.0
python6352fab  mem   REG8,1 6652 163092 
/usr/lib/libXinerama.so.1.0.0
python6352fab  mem   REG8,131468 162496 
/usr/lib/libXrender.so.1.3.0
python6352 

[Matplotlib-users] Matplotlib crashes on mouse event

2010-05-13 Thread Fabrice Silva
hi folks,
even on simple script, matplotlib crashes : 
fab:$ python
Python 2.5.5 (r255:77872, Apr 21 2010, 08:44:16) 
[GCC 4.4.3] on linux2 
Type "help", "copyright", "credits" or "license" for more information.
>>> import matplotlib.pyplot as plt
>>> plt.plot([4,2,8])
/usr/lib/pymodules/python2.5/matplotlib/backends/backend_gtk.py:621: 
DeprecationWarning: Use the new widget gtk.Tooltip 
  self.tooltips = gtk.Tooltips()
[]
>>> plt.show()
Instruction non permise

The crash occurs when the mouse enters (if previously outside) and moves
(if previously inside) in the figure.
I am using debian unstable package (0.99.1-1) and admit I have try to
manually modify the gtk backend to resolve the ginput bug (due to
changes in stop_event signature, solved by r8531 but not in debian
package). Since then the crash occurs automatically. Even a complete
remove/purge/install of the package does not solve the problem.

Any idea? Matplotlib's developers? Sandro (Debian maintainer) ?

-- 
Fabrice Silva
LMA UPR CNRS 7051


--

___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users