Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

crash on exit #21421

Closed
qgib opened this issue Sep 16, 2015 · 4 comments
Closed

crash on exit #21421

qgib opened this issue Sep 16, 2015 · 4 comments
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Crash/Data Corruption Map Tools Related to non-digitizing map tools
Milestone

Comments

@qgib
Copy link
Contributor

qgib commented Sep 16, 2015

Author Name: Salvatore Larosa (@slarosa)
Original Redmine Issue: 13369
Affected QGIS version: master
Redmine category:map_tools
Assignee: Matthias Kuhn


With the latest master I am getting a crash when quitting the application

Program received signal SIGSEGV, Segmentation fault.
0x00007ffff2c162e5 in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) ()
   from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
(gdb) bt
#_0  0x00007ffff2c162e5 in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) ()
   from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#_1  0x00007ffff4b3e34d in QgsMapLayer::repaintRequested (this=0x0)
    at /home/sam/pacchetti_gis/QGIS/build-master/src/core/moc_qgsmaplayer.cxx:180
#_2  0x00007ffff4847c92 in QgsMapLayer::triggerRepaint (this=0x0) at /home/sam/pacchetti_gis/QGIS/src/core/qgsmaplayer.cpp:1594
#_3  0x00007ffff3fc6c24 in QgsMapToolCapture::stopCapturing (this=0x15561b0)
    at /home/sam/pacchetti_gis/QGIS/src/gui/qgsmaptoolcapture.cpp:385
#_4  0x00007ffff3fc5820 in QgsMapToolCapture::~QgsMapToolCapture (this=0x15561b0, __in_chrg=<optimized out>)
    at /home/sam/pacchetti_gis/QGIS/src/gui/qgsmaptoolcapture.cpp:69
#_5  0x000000000069b289 in QgsMapToolAddFeature::~QgsMapToolAddFeature (this=0x15561b0, __in_chrg=<optimized out>)
    at /home/sam/pacchetti_gis/QGIS/src/app/qgsmaptooladdfeature.cpp:44
#_6  0x000000000069b2bc in QgsMapToolAddFeature::~QgsMapToolAddFeature (this=0x15561b0, __in_chrg=<optimized out>)
    at /home/sam/pacchetti_gis/QGIS/src/app/qgsmaptooladdfeature.cpp:46
#_7  0x00000000004e6c08 in QgisApp::~QgisApp (this=0x11462a0, __in_chrg=<optimized out>)
    at /home/sam/pacchetti_gis/QGIS/src/app/qgisapp.cpp:1005
#_8  0x00000000004e76c0 in QgisApp::~QgisApp (this=0x11462a0, __in_chrg=<optimized out>)
    at /home/sam/pacchetti_gis/QGIS/src/app/qgisapp.cpp:1064
#_9  0x00000000004dd870 in main (argc=1, argv=0x7fffffffe3f8) at /home/sam/pacchetti_gis/QGIS/src/app/main.cpp:1213

@qgib
Copy link
Contributor Author

qgib commented Sep 16, 2015

Author Name: Salvatore Larosa (@slarosa)


  • assigned_to_id was configured as Matthias Kuhn

@qgib
Copy link
Contributor Author

qgib commented Sep 16, 2015

Author Name: Matthias Kuhn (@m-kuhn)


Hmmm... I cannot reproduce it.
Are you dealing with raster layers? Doing something fancy when exiting like leaving the add feature map tool in an unfinished state?

If you have a second to compile, can you patch src/gui/qgsmaptoolcapture.cpp and add a safety check at line 385:

if ( currentVectorLayer() )
currentVectorLayer()->triggerRepaint();


  • status_id was changed from Open to Feedback

@qgib
Copy link
Contributor Author

qgib commented Sep 16, 2015

Author Name: Salvatore Larosa (@slarosa)


I just start QGIS and then quit it.

Your patch fixes the crash here. Thanks.

@qgib
Copy link
Contributor Author

qgib commented Sep 16, 2015

Author Name: Anónimo (Anónimo)


Fixed in changeset "0826290c8ea84991ed788b97fad31e12c82d6189".


  • status_id was changed from Feedback to Closed

@qgib qgib added Bug Either a bug report, or a bug fix. Let's hope for the latter! Map Tools Related to non-digitizing map tools Crash/Data Corruption labels May 25, 2019
@qgib qgib added this to the Version 2.12 milestone May 25, 2019
@qgib qgib closed this as completed May 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Crash/Data Corruption Map Tools Related to non-digitizing map tools
Projects
None yet
Development

No branches or pull requests

1 participant