On Sat, Apr 25, 2009 at 9:53 AM, Adam Ginsburg <adam.ginsburg@colorado.edu> wrote:
Yep, I'm running on a 64 bit machine.  I've been dealing with larger
than 4GB data files in IDL, but I'd rather use python/numpy/matplotlib
if possible.

Here's the gdb session.  The error didn't happen in imshow, only when
I specified show(); I guess that means I must have had ioff() set
although I don't think that was my default choice last time I used
matplotlib.


milkyway /data/glimpseii $ gdb /usr/local/python/bin/python
GNU gdb Red Hat Linux (6.3.0.0-1.159.el4rh)
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "x86_64-redhat-linux-gnu"...Using host
libthread_db library "/lib64/tls/libthread_db.so.1".

(gdb) run
Starting program: /usr/local/python/bin/python
[Thread debugging using libthread_db enabled]
[New Thread 182900715072 (LWP 18039)]
Python 2.5 (r25:51908, Dec 22 2006, 16:08:43)
[GCC 3.4.6 20060404 (Red Hat 3.4.6-3)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import matplotlib,scipy,numpy,pyfits
>>> from pylab import *
>>> f = pyfits.open('GLM_00600+0000_mosaic_I3.fits')
>>> imshow(f[0].data)
<matplotlib.image.AxesImage object at 0x2aa3f45890>
>>> show()

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 182900715072 (LWP 18039)]
0x0000002aa3170ab5 in _image_module::fromarray (this=Variable "this"
is not available.
) at src/image.cpp:872
872     src/image.cpp: No such file or directory.
        in src/image.cpp
Current language:  auto; currently c++
(gdb)


Could you try and create an image using random data that is the same dimensions and datatype as the fits data you are using htat replicates the segfault, so we can try and reproduce the error as well as add it to our test suite?

Thanks
JDH