[Qgis-developer] postgres getFeatures segfault in pyqgis not in console

Richard Duivenvoorde rdmailings at duif.net
Wed Feb 4 08:35:54 PST 2015


On 04-02-15 17:23, Martin Dobias wrote:

> Looks like QApplication instance was not created, so all places where
> events are needed will fail (e.g. for postgres there is a connection
> pool which releases connections after some time). Something like this
> should be added to the top:
> 
> import sys
> app = QApplication(sys.argv)

Hi Martin,

Thanks for your answer.

the actual script I was testing was this one (which has this stuff):

http://pastebin.com/MWdMzmTW

I now managed to create a stacktrace myself via

gdb --args /usr/bin/python test2.py

you can see the full output here (on the bottom the bt)

http://pastebin.com/F8f5ZJAf

Regards,

Richard



More information about the Qgis-developer mailing list