[Qgis-user] QGIS Segmentation fault

Blumentrath, Stefan Stefan.Blumentrath at nina.no
Thu Nov 19 01:24:09 PST 2015


Hi again,

I actually deleted the build directory before I built again with Debug.

Now I freshly cloned the code, created build directory

git clone -b release-2_12 --single-branch https://github.com/qgis/QGIS.git QGIS_2_12
cd QGIS_2_12
mkdir qgis-2.12
cd qgis-2.12/
ccmake .. #There in the CMAKE_BUILD_TYPE line I entered "Debug"
make
gdb ./output/bin/qgis

Result is the same as before: "No stack"
Any ideas?

Cheers
Stefan

-----Original Message-----
From: Matthias Kuhn [mailto:matthias at opengis.ch] 
Sent: 19. november 2015 09:22
To: Blumentrath, Stefan <Stefan.Blumentrath at nina.no>; qgis-user at lists.osgeo.org
Subject: Re: [Qgis-user] QGIS Segmentation fault

In cmake gui is the right choice, the env variable is ignored.
Maybe you have to "make clean" before running "make" again? It seems that there are no debug symbols available yet.
And once they are available, it seems that there's still an issue with X of which I am not sure if it brings the application to its knees even before it arrives at the point where the crash we are interested in is.

Cheers
Matthias

On 11/19/2015 09:05 AM, Blumentrath, Stefan wrote:
> Yes I did. Now I also tried
>
> export CMAKE_BUILD_TYPE=Debug
>
> Befor running (earlier I specified Debug in the cmake gui):
> ccmake ..
> make
> gdb ./output/bin/qgis
>
> Cheers
> Stefan
>
> -----Original Message-----
> From: Qgis-user [mailto:qgis-user-bounces at lists.osgeo.org] On Behalf 
> Of Matthias Kuhn
> Sent: 19. november 2015 08:05
> To: qgis-user at lists.osgeo.org
> Subject: Re: [Qgis-user] QGIS Segmentation fault
>
> Did you make after cmake with buld type Debug and before running? Sorry, I forgot to write that...
>
> On 11/19/2015 07:05 AM, Blumentrath, Stefan wrote:
>> He, he, thanks for the hint...
>>
>> Running QGIS through gdb ("gdb ./output/bin/qgis") and then calling "bt" gave "No stack".
>>
>> However, when I ran  just "./output/bin/qgis" I got:
>>
>> src/app/main.cpp: 428: (main) [0ms] Starting qgis main No protocol 
>> specified
>> Warning: qgis: cannot connect to X server :4 Stacktrace (piped 
>> through
>> c++filt):
>> ./output/bin/qgis[0x40573d]
>> ./output/bin/qgis[0x405923]
>> /usr/lib/x86_64-linux-gnu/libQtCore.so.4(qt_message_output(QtMsgType,
>> char const*)+0x21)[0x7f5a2f8eabb1]
>> /usr/lib/x86_64-linux-gnu/libQtCore.so.4(+0x70ff9)[0x7f5a2f8eaff9]
>> /usr/lib/x86_64-linux-gnu/libQtCore.so.4(qWarning(char const*, 
>> ...)+0x94)[0x7f5a2f8eb244] 
>> /usr/lib/x86_64-linux-gnu/libQtGui.so.4(+0x23db42)[0x7f5a2ee04b42]
>> /usr/lib/x86_64-linux-gnu/libQtGui.so.4(QApplicationPrivate::construc
>> t (_XDisplay*, unsigned long, unsigned long)+0xc8)[0x7f5a2ed94a78] 
>> /usr/lib/x86_64-linux-gnu/libQtGui.so.4(QApplication::QApplication(in
>> t &, char**, bool, int)+0x69)[0x7f5a2ed94e19] 
>> /data/src/QGIS/qgis-2.12/output/lib/libqgis_core.so.2.12.0(QgsApplica
>> t ion::QgsApplication(int&, char**, bool, QString 
>> const&)+0x3c)[0x7f5a3094ab70] ./output/bin/qgis[0x4072ea]
>> /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf5)[0x7f5a2e309ec
>> 5
>> ]
>> ./output/bin/qgis[0x405179]
>> src/core/qgsmessagelog.cpp: 45: (logMessage) [60ms]
>> 2015-11-19T06:56:36 Qt[1] qgis: cannot connect to X server :4
>>
>> I am running QGIS through VNC (which X Server :4 refers to). Yet, maybe the issue is due to missing restart after kernel update?
>>
>> Cheers,
>> Sefan
>>
>> -----Original Message-----
>> From: Qgis-user [mailto:qgis-user-bounces at lists.osgeo.org] On Behalf 
>> Of Jürgen E. Fischer
>> Sent: 19. november 2015 00:52
>> To: qgis-user at lists.osgeo.org
>> Subject: Re: [Qgis-user] QGIS Segmentation fault
>>
>> On Wed, 18. Nov 2015 at 23:26:25 +0000, Blumentrath, Stefan wrote:
>>> Thanks for the instruction. Here is my backtrace:
>>>
>>> pdb ./output/bin/qgis
>> gdb not pdb.
>>
>>> From: Matthias Kuhn [mailto:matthias at opengis.ch]
>>>
>>> cd build
>>> gdb ./output/bin/qgis
>>> run
>>> ... wait for the crash
>>> bt
>>> ... copy paste
>> Jürgen
>>
> --
> Matthias Kuhn
> OPENGIS.ch - https://www.opengis.ch
> Spatial • (Q)GIS • PostGIS • Open Source
>
> _______________________________________________
> Qgis-user mailing list
> Qgis-user at lists.osgeo.org
> List info: http://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-user

--
Matthias Kuhn
OPENGIS.ch - https://www.opengis.ch
Spatial • (Q)GIS • PostGIS • Open Source



More information about the Qgis-user mailing list