[Qgis-developer] QGIS crashes when loading Traits from Python console. [Was: QGIS Processing Framework]

Joona Lehtomäki joona.lehtomaki at cs.helsinki.fi
Tue Jun 28 13:40:35 EDT 2011


Hi,

I can confirm the crash on Fedora 15, QGIS 1.6 and ETS 3.5. However, 
after installing the fresh ETS 4.0 from Github 
(http://code.enthought.com/source/) I can import traits.api (namespace 
'enthought' has been removed in 4.0) through QGIS Python console. Same 
applies to openSUSE 11.4 (64-bit) with QGIS 1.7. Official RPMs seem to 
be available at least for openSUSE.

Cheers,

Joona


On 06/28/2011 06:50 PM, Julien Malik wrote:
> Hello,
>
> Same here on Ubuntu Maverick.
> The package can be imported in a standalone interpreter (python or ipython)
> I start qgis, runs the "Python console", do the "import
> enthought.traits.api" : crash.
>
> Julien
>
>
> Le 28/06/2011 17:41, Camilo Polymeris a écrit :
>>>> On Mon, Jun 27, 2011 at 3:59 PM, Camilo
>>>> Polymeris<cpolymeris at gmail.com> wrote:
>>>>> Given that there are no objections& I have studied the traits docs
>>>>> without finding any reason against it, I'll start migration of the
>>>>> framework.
>>>> Having trouble with that.. QGIS segfaults when I try to load any of
>>>> the modules in enthought.traits, e.g.:
>>>>
>>>> import enthought.traits.api
>>>>
>>>> When running the import through pdb it seems to hang. Can someone
>>>> please confirm?
>>>>
>>>> Thanks,
>>>> Camilo
>>> Confirmed, it crashes with
>>> Loaded symbols
>>> for /usr/lib/python2.7/dist-packages/enthought/traits/ctraits.so
>>> Reading symbols
>>> from
>>> /usr/lib/python2.7/dist-packages/enthought/traits/protocols/_speedups.so...(no
>>> debugging symbols found)...done.
>>> Loaded symbols
>>> for
>>> /usr/lib/python2.7/dist-packages/enthought/traits/protocols/_speedups.so
>>> Core was generated by `/usr/bin/qgis.bin'.
>>> Program terminated with signal 11, Segmentation fault.
>>> #0 0x00007f3bf98764c8 in ?? ()
>>>
>>> from
>>> /usr/lib/python2.7/dist-packages/enthought/traits/protocols/_speedups.so
>>>
>>>
>>> traits from official deb package.
>>> All the best.
>>> --
>>> Paolo Cavallini: http://www.faunalia.it/pc
>>>
>>>
>>
>> Yes. Same here. No idea what those _speedups.so could be... Any ideas?
>> Can't continue if we don't solve this.
>>
>>
>> Regards,
>> Camilo
>>
>> debian, Traits v 3.0.0
>>
>> Program received signal SIGSEGV, Segmentation fault.
>> 0x00007fffd22c56b4 in ?? () from
>> /usr/lib/python2.6/dist-packages/enthought/traits/protocols/_speedups.so
>>
>> bt
>>
>> #0 0x00007fffd22c56b4 in ?? () from
>> /usr/lib/python2.6/dist-packages/enthought/traits/protocols/_speedups.so
>> #1 0x00007fffd22c7e7d in ?? () from
>> /usr/lib/python2.6/dist-packages/enthought/traits/protocols/_speedups.so
>> #2 0x00007fffe1aeaf80 in PyEval_EvalFrameEx () from
>> /usr/lib/libpython2.6.so.1.0
>> #3 0x00007fffe1aeccc0 in PyEval_EvalCodeEx () from
>> /usr/lib/libpython2.6.so.1.0
>> #4 0x00007fffe1aeaffb in PyEval_EvalFrameEx () from
>> /usr/lib/libpython2.6.so.1.0
>> #5 0x00007fffe1aeccc0 in PyEval_EvalCodeEx () from
>> /usr/lib/libpython2.6.so.1.0
>> #6 0x00007fffe1aeaffb in PyEval_EvalFrameEx () from
>> /usr/lib/libpython2.6.so.1.0
>> #7 0x00007fffe1aeccc0 in PyEval_EvalCodeEx () from
>> /usr/lib/libpython2.6.so.1.0
>> #8 0x00007fffe1aecd92 in PyEval_EvalCode () from
>> /usr/lib/libpython2.6.so.1.0
>> #9 0x00007fffe1afe0d2 in PyImport_ExecCodeModuleEx () from
>> /usr/lib/libpython2.6.so.1.0
>> #10 0x00007fffe1b0099e in ?? () from /usr/lib/libpython2.6.so.1.0
>> #11 0x00007fffe1b017df in ?? () from /usr/lib/libpython2.6.so.1.0
>> #12 0x00007fffe1b01a6f in ?? () from /usr/lib/libpython2.6.so.1.0
>> #13 0x00007fffe1b020b0 in ?? () from /usr/lib/libpython2.6.so.1.0
>> #14 0x00007fffe1b02604 in PyImport_ImportModuleLevel () from
>> /usr/lib/libpython2.6.so.1.0
>> #15 0x00007fffe1ae4baf in ?? () from /usr/lib/libpython2.6.so.1.0
>> _______________________________________________
>> Qgis-developer mailing list
>> Qgis-developer at lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/qgis-developer
>>
> _______________________________________________
> Qgis-developer mailing list
> Qgis-developer at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/qgis-developer


More information about the Qgis-developer mailing list