GNOME Bugzilla – Bug 123225
dia crashes after closing window (ddisplay_set_all_cursor)
Last modified: 2006-02-04 12:36:56 UTC
Package: dia Severity: normal Version: 0.90 Synopsis: dia crashes after save dialog Bugzilla-Product: dia Bugzilla-Component: general Description: Description of Problem: dia crashes after save dialog Steps to reproduce the problem: 1. respond "no" to saving modified document 2. 3. Actual Results: Crash Expected Results: How often does this happen? very Additional Information: Debugging Information: Backtrace was generated from '/usr/bin/dia' (no debugging symbols found)...(no debugging symbols found)... (no debugging symbols found)...(no debugging symbols found)... (no debugging symbols found)...(no debugging symbols found)... (no debugging symbols found)...(no debugging symbols found)... (no debugging symbols found)...(no debugging symbols found)... (no debugging symbols found)...(no debugging symbols found)... (no debugging symbols found)...(no debugging symbols found)... (no debugging symbols found)...0xffffe002 in ?? ()
+ Trace 40435
------- Bug moved to this database by unknown@bugzilla.gnome.org 2003-09-25 13:53 ------- The original reporter (vinny@xaymaca.com) of this bug does not have an account here. Reassigning to the exporter, unknown@bugzilla.gnome.org. Reassigning to the default owner of the component, dia-maint@bugzilla.gnome.org.
*** Bug 125880 has been marked as a duplicate of this bug. ***
*** Bug 148697 has been marked as a duplicate of this bug. ***
2 dupes, marking new information from bug 125880: "Dia crashes when closing several of its windows Steps to reproduce the problem: 1. Create at least to diagrams 2. Rename the file of one of them 3. Close the diagrams Actual Results: Crashes Expected Results: Closing Dia How often does this happen? Almost always when you have several diagrams opened" Reporter: Have you seen this bug in a newer version?
*** Bug 152834 has been marked as a duplicate of this bug. ***
*** Bug 154205 has been marked as a duplicate of this bug. ***
ddisplay_set_all_cursor() iterates over the list of supposed to be open diagrams. Due to a reference problems between diagrams and displays this list was screwed. Supposed to be fixed in cvs.
Can't make it crash, but if I create a diagrams, modify it, save it, modify it again, then close the diagram discarding changes, Dia still thinks there's a modified diagram when closing the program, so something is still up.
If you enable the "diagram tree", you'll notice how Dia doesn't release diagrams created with File/New... whether saved or not. May be this is a different bug?
My bad: I don't know how, but I managed NOT to unload every diagram, so there must be another bug floating around. About what Lars said, saving a file (and maybe exporting too) does g_object_ref() on it (filedlg.c:404). Thus, when you unload it, g_object_unref() in (display.c:1246) doesn't go to 0 and doesn't free the object. (Putting g_object_unref() twice fixes it but, of course, makes Dia crash on normal diagrams).
Lars, Octavio, if you find anymore issues slightly related to the diagram references please open separate bug reports for them. We should not redefine existing bugs as this would never allow to close one ;) 2006-02-04 Hans Breuer <hans@breuer.org> * app/filedlg.c(file_save_as_response_callback) : before destroying the save as dialog we need to drop the dialogs diagram reference. Fixes behaviour described in bug #123225#c7