After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 142980 - Segfaults with multiple views on document
Segfaults with multiple views on document
Status: RESOLVED FIXED
Product: mlview
Classification: Other
Component: General
unspecified
Other All
: Low trivial
: ---
Assigned To: mlview maintainers
mlview maintainers
Depends on:
Blocks:
 
 
Reported: 2004-05-22 22:39 UTC by Nicolas Centa
Modified: 2015-07-20 18:48 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Assert that the ChessEngine has been stopped before it is destroyed (794 bytes, patch)
2015-07-20 18:44 UTC, Michael Catanzaro
none Details | Review
Assert that the ChessEngine has been stopped before it is destroyed (794 bytes, patch)
2015-07-20 18:47 UTC, Michael Catanzaro
none Details | Review

Description Nicolas Centa 2004-05-22 22:39:24 UTC
This applies to mlview--mainline--0.7 and mlview--mainline--0.6 :
Open a document, like tests/validation/valid.xml in the mlview tree. 
Open a new view for this document by clicking on menu Action -> New view on doc.
Click on "Close". 
Select the last view for the document (the first which was opened for this
document). 
Try to modify the document by double-clicking on a node. It crashes.
The crash seems to happen in update_completion_widget_cb ().

I think I forgot to disconnect some signals.
Comment 1 Dodji Seketeli 2004-05-23 11:00:25 UTC
Hi,

I applied the patch
nicolas.centa@free.fr--mlview-hacks/mlview--happypeng-fixes--0.6--patch-2, that
seems to fix the problem.

It's in the mlview--mainline--0.6--patch-5.

I'll let this bug open until we release mlview 0.6.4

Thank you for your time.

Dodji.
Comment 2 Michael Catanzaro 2015-07-20 18:44:37 UTC
Created attachment 307776 [details] [review]
Assert that the ChessEngine has been stopped before it is destroyed
Comment 3 Michael Catanzaro 2015-07-20 18:46:20 UTC
Sometimes I post patches to the wrong bug :p
Comment 4 Michael Catanzaro 2015-07-20 18:47:32 UTC
Created attachment 307777 [details] [review]
Assert that the ChessEngine has been stopped before it is destroyed

The nice contracts don't work on destructors, apparently.
Comment 5 Michael Catanzaro 2015-07-20 18:47:58 UTC
But rarely do I do it twice in a row; goodness....