[Qgis-developer] QGIS crash during testing of my plugin

Salvatore Larosa lrssvtml at gmail.com
Wed Oct 15 01:04:31 PDT 2014


Ciao Luca,

On Wed, Oct 15, 2014 at 9:25 AM, Luca Delucchi <lucadeluge at gmail.com> wrote:
> On 14 October 2014 14:15, Salvatore Larosa <lrssvtml at gmail.com> wrote:
>> On Tue, Oct 14, 2014 at 1:49 PM, Luca Delucchi <lucadeluge at gmail.com> wrote:
>>> On 14 October 2014 13:28, Salvatore Larosa <lrssvtml at gmail.com> wrote:
>>>
>>>>
>>>> Did you install the python-dbg package?
>>>>
>>>
>>> yes sure
>>
>> and python2.7-dbg?
>>
>
> yes
>
>> I don't know whether getting stacktrace by python helps here, but that
>> should be a big hint in order to try to track down the source of the
>> problem with your plugin.
>>
>
> ok, how do you usually use py-bt with gdb? how do you run gdb ("gdb
> qgis" or something different)?

Usually, it is enough to type:

# gdb qgis
(gdb) r
.................... <- crash
(gdb) py-bt
.................... -> python stacktrace

but there are other useful options [0]

also look at this link [1], you could be in the same situation

Saluti!

[0] - https://docs.python.org/devguide/gdb.html
[1] - http://stackoverflow.com/questions/22931774/how-to-use-gdb-python-debugging-extension-inside-virtualenv

-- 
Salvatore Larosa
linkedIn: http://linkedin.com/in/larosasalvatore
twitter: @lrssvt
skype: s.larosa
IRC: lrssvt on freenode


More information about the Qgis-developer mailing list