[SciPy-User] Strange Crash with SmoothBivariateSpline

Sloan Lindsey sloan.lindsey@gmail....
Fri Sep 9 07:41:10 CDT 2011


Greetings, I've run into a weird error, can somebody point me into the right
direction for solving this?
-Sloan

A spline approximation was done with SmoothBivariateSpline (kx=ky=3). The
result looks resonable, and the knots are

tx, ty =  [ 71.          71.          71.          71.          74.14423984
 77.68639778  79.67385522  81.08860568  83.07147709  85.07543132
 85.63465634  86.22832447  86.59870818  87.23262262  87.99800451
 88.21344492  88.45654654  88.71633794  88.91968993  89.16798449
 89.36585818  89.54486934  89.73526206  89.9         89.9         89.9
 89.9       ]
[ 65.125       65.125       65.125       65.125       66.87453837
 67.63985122  68.52433262  69.74994527  71.37307164  72.33426696
 73.44560154  74.7343376   75.93928617  77.15502731  78.38831199
 79.63896841  80.84707006  82.01251733  83.22576965  84.75783772
 86.11389394  86.88393959  87.5448275   88.07140257  88.44564406
 88.86952368  88.98030123  89.32480252  89.43357252  89.875       89.875
 89.875       89.875     ]

Passing tx[3:-3], ty[3:-3] and the same data to LSQBivariateSpline results
in the following error messages

First run: Somewhat reasonable result, but the following error message:

Speicherzugriffsfehler      (translated: memory access error)

Second run:

 tx=   89.433572518132280        89.875000000000000 89.875000000000000
 71.000000000000000        89.875000000000000       77.686397784215103
 79.673855219130786 81.088605679238157        83.071477093858547
 85.075431324216481       85.634656338424136        86.228324469401485
86.598708176557935        87.232622619809860        87.998004509544614
88.213444918140937        88.456546535788149 88.716337942127396
 88.919689928696613        89.167984493833089       89.365858177406778
 89.544869340967082 89.735262064678111        90.352355637621670
 89.900000000000006       89.900000000000006        89.900000000000006
89.324802520411396       -2.7101082581252207       -2.7101082581252207
 -2.7101082581252207       -2.7101082581252207 66.874538371357332
/usr/lib/python2.6/dist-packag
es/scipy/interpolate/fitpack2.py:498: UserWarning:
Error on entry, no approximation returned. The following conditions
must hold:
xb<=x[i]<=xe, yb<=y[i]<=ye, w[i]>0, i=0..m-1
If iopt==-1, then
 xb<tx[kx+1]<tx[kx+2]<...<tx[nx-kx-2]<xe
 yb<ty[ky+1]<ty[ky+2]<...<ty[ny-ky-2]<ye
 warnings.warn(message)

and then at a sys.exit() statement:

*** glibc detected *** python: munmap_chunk(): invalid pointer:
0x0000000008335d30 ***
======= Backtrace: =========
/lib/libc.so.6(+0x775b6)[0x7f73b96675b6]
/usr/lib/python2.6/dist-packages/numpy/core/multiarray.so(+0x3c93c)[0x7f73b936693c]
python[0x46a50d]
python[0x44fc53]
python[0x46d327]
python[0x535d13]
python[0x4d0f13]
python[0x4d0f23]
python[0x4c889e]
python[0x4c8e75]
python(PyRun_SimpleFileExFlags+0x1e0)[0x4c9d30]
python(Py_Main+0x9ef)[0x41a7ff]
/lib/libc.so.6(__libc_start_main+0xfd)[0x7f73b960ec4d]
python[0x4199f9]
======= Memory map: ========
00400000-0061c000 r-xp 00000000 08:05 5071850  /usr/bin/python2.6
0081b000-0081c000 r--p 0021b000 08:05 5071850  /usr/bin/python2.6
0081c000-0087e000 rw-p 0021c000 08:05 5071850  /usr/bin/python2.6
0087e000-0088d000 rw-p 00000000 00:00 0
00da0000-0854a000 rw-p 00000000 00:00 0  [heap]
7f7392be9000-7f7392c49000 rw-s 00000000 00:04 198705177  /SYSV00000000
(deleted)
7f7392c49000-7f7392e89000 r-xp 00000000 08:05 1351692
 /usr/lib/dri/swrast_dri.so
7f7392e89000-7f7393088000 ---p 00240000 08:05 1351692
 /usr/lib/dri/swrast_dri.so
7f7393088000-7f739308f000 r--p 0023f000 08:05 1351692
 /usr/lib/dri/swrast_dri.so
7f739308f000-7f7393091000 rw-p 00246000 08:05 1351692
 /usr/lib/dri/swrast_dri.so
7f7393091000-7f73930a1000 rw-p 00000000 00:00 0
7f73930a1000-7f73930a3000 r-xp 00000000 08:05 5155272
 /usr/lib/pango/1.6.0/modules/pango-basic-fc.so
7f73930a3000-7f73932a2000 ---p 00002000 08:05 5155272
 /usr/lib/pango/1.6.0/modules/pango-basic-fc.so
7f73932a2000-7f73932a3000 r--p 00001000 08:05 5155272
 /usr/lib/pango/1.6.0/modules/pango-basic-fc.so
7f73932a3000-7f73932a4000 rw-p 00002000 08:05 5155272
 /usr/lib/pango/1.6.0/modules/pango-basic-fc.so
7f73932a4000-7f739333c000 r--p 00000000 08:05 5242963
 /usr/share/fonts/truetype/ttf-dejavu/DejaVuSans.ttf
7f739333c000-7f7393347000 r-xp 00000000 08:05 2490424  /lib/libudev.so.0.6.1
7f7393347000-7f7393546000 ---p 0000b000 08:05 2490424  /lib/libudev.so.0.6.1
7f7393546000-7f7393547000 r--p 0000a000 08:05 2490424  /lib/libudev.so.0.6.1
7f7393547000-7f7393548000 rw-p 0000b000 08:05 2490424  /lib/libudev.so.0.6.1
7f7393548000-7f7393560000 r-xp 00000000 08:05 5074046
 /usr/lib/libgvfscommon.so.0.0.0
7f7393560000-7f739375f000 ---p 00018000 08:05 5074046
 /usr/lib/libgvfscommon.so.0.0.0
7f739375f000-7f7393760000 r--p 00017000 08:05 5074046
 /usr/lib/libgvfscommon.so.0.0.0
7f7393760000-7f7393761000 rw-p 00018000 08:05 5074046
 /usr/lib/libgvfscommon.so.0.0.0
7f7393761000-7f739378a000 r-xp 00000000 08:05 5120007
 /usr/lib/gio/modules/libgvfsdbus.so
7f739378a000-7f739398a000 ---p 00029000 08:05 5120007
 /usr/lib/gio/modules/libgvfsdbus.so
7f739398a000-7f739398b000 r--p 00029000 08:05 5120007
 /usr/lib/gio/modules/libgvfsdbus.so
7f739398b000-7f739398c000 rw-p 0002a000 08:05 5120007
 /usr/lib/gio/modules/libgvfsdbus.so
7f739398c000-7f73939c9000 r-xp 00000000 08:05 2490371
 /lib/libdbus-1.so.3.4.0
7f73939c9000-7f7393bc9000 ---p 0003d000 08:05 2490371
 /lib/libdbus-1.so.3.4.0
7f7393bc9000-7f7393bca000 r--p 0003d000 08:05 2490371
 /lib/libdbus-1.so.3.4.0
7f7393bca000-7f7393bcb000 rw-p 0003e000 08:05 2490371
 /lib/libdbus-1.so.3.4.0
7f7393bcb000-7f7393c0a000 r-xp 00000000 08:05 5074062
 /usr/lib/libibus.so.1.0.0
7f7393c0a000-7f7393e0a000 ---p 0003f000 08:05 5074062
 /usr/lib/libibus.so.1.0.0
7f7393e0a000-7f7393e0c000 r--p 0003f000 08:05 5074062
 /usr/lib/libibus.so.1.0.0
7f7393e0c000-7f7393e0d000 rw-p 00041000 08:05 5074062
 /usr/lib/libibus.so.1.0.0
7f7393e0d000-7f7393e0e000 rw-p 00000000 00:00 0
7f7393e0e000-7f7393e13000 r-xp 00000000 08:05 5120251
 /usr/lib/gtk-2.0/2.10.0/immodules/im-ibus.so
7f7393e13000-7f7394013000 ---p 00005000 08:05 5120251
 /usr/lib/gtk-2.0/2.10.0/immodules/im-ibus.so
7f7394013000-7f7394014000 r--p 00005000 08:05 5120251
 /usr/lib/gtk-2.0/2.10.0/immodules/im-ibus.so
7f7394014000-7f7394015000 rw-p 00006000 08:05 5120251
 /usr/lib/gtk-2.0/2.10.0/immodules/im-ibus.so
7f7394015000-7f7394084000 r-xp 00000000 08:05 5073460
 /usr/lib/libGLU.so.1.3.070701
7f7394084000-7f7394283000 ---p 0006f000 08:05 5073460
 /usr/lib/libGLU.so.1.3.070701
7f7394283000-7f7394285000 r--p 0006e000 08:05 5073460
 /usr/lib/libGLU.so.1.3.070701
7f7394285000-7f7394286000 rw-p 00070000 08:05 5073460
 /usr/lib/libGLU.so.1.3.070701
7f7394286000-7f7394293000 r-xp 00000000 08:05 5072854
 /usr/lib/libwx_gtk2u_gl-2.8.so.0.6.0
7f7394293000-7f7394493000 ---p 0000d000 08:05 5072854
 /usr/lib/libwx_gtk2u_gl-2.8.so.0.6.0
7f7394493000-7f7394494000 r--p 0000d000 08:05 5072854
 /usr/lib/libwx_gtk2u_gl-2.8.so.0.6.0
7f7394494000-7f7394495000 rw-p 0000e000 08:05 5072854
 /usr/lib/libwx_gtk2u_gl-2.8.so.0.6.0
7f7394495000-7f73944a5000 r-xp 00000000 08:05 5597020
 /usr/lib/python2.6/dist-packages/wx-2.8-gtk2-unicode/wx/_glcanvas.so
7f73944a5000-7f73946a5000 ---p 00010000 08:05 5597020
 /usr/lib/python2.6/dist-packages/wx-2.8-gtk2-unicode/wx/_glcanvas.so
7f73946a5000-7f73946a6000 r--p 00010000 08:05 5597020
 /usr/lib/python2.6/dist-packages/wx-2.8-gtk2-unicode/wx/_glcanvas.so
7f73946a6000-7f73946ab000 rw-p 00011000 08:05 5597020
 /usr/lib/python2.6/dist-packages/wx-2.8-gtk2-unicode/wx/_glcanvas.so
7f73946ab000-7f73946ac000 rw-p 00000000 00:00 0
7f73946ac000-7f73947a8000 r-xp 00000000 08:05 5072861
 /usr/lib/libwx_gtk2u_stc-2.8.so.0.6.0
7f73947a8000-7f73949a7000 ---p 000fc000 08:05 5072861
 /usr/lib/libwx_gtk2u_stc-2.8.so.0.6.0
7f73949a7000-7f73949ac000 r--p 000fb000 08:05 5072861
 /usr/lib/libwx_gtk2u_stc-2.8.so.0.6.0
7f73949ac000-7f73949ad000 rw-p 00100000 08:05 5072861
 /usr/lib/libwx_gtk2u_stc-2.8.so.0.6.0
7f73949ad000-7f73949af000 rw-p 00000000 00:00 0 Abgebrochen
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.scipy.org/pipermail/scipy-user/attachments/20110909/43310800/attachment.html 


More information about the SciPy-User mailing list