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 123225 - dia crashes after closing window (ddisplay_set_all_cursor)
dia crashes after closing window (ddisplay_set_all_cursor)
Status: RESOLVED FIXED
Product: dia
Classification: Other
Component: general
0.90
Other other
: High critical
: 0.95
Assigned To: Dia maintainers
Dia maintainers
: 125880 148697 152834 154205 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2003-09-25 17:53 UTC by vinny
Modified: 2006-02-04 12:36 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description vinny 2003-09-25 17:53:50 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 ?? ()
  • #0 ??
  • #1 gnome_init
    from /usr/lib/libgnomeui.so.32
  • #2 <signal handler called>
  • #3 ddisplay_set_all_cursor
  • #4 g_timeout_add
    from /usr/lib/libglib-1.2.so.0
  • #5 g_get_current_time
    from /usr/lib/libglib-1.2.so.0
  • #6 g_get_current_time
    from /usr/lib/libglib-1.2.so.0
  • #7 g_main_run
    from /usr/lib/libglib-1.2.so.0
  • #8 gtk_main
    from /usr/lib/libgtk-1.2.so.0
  • #9 main
  • #10 __libc_start_main
    from /lib/tls/libc.so.6




------- 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.

Comment 1 Olav Vitters 2003-11-05 22:45:22 UTC
*** Bug 125880 has been marked as a duplicate of this bug. ***
Comment 2 Olav Vitters 2004-07-28 19:23:57 UTC
*** Bug 148697 has been marked as a duplicate of this bug. ***
Comment 3 Olav Vitters 2004-07-28 19:27:32 UTC
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?
Comment 4 Vincent Noel 2004-09-16 20:28:38 UTC
*** Bug 152834 has been marked as a duplicate of this bug. ***
Comment 5 Vincent Noel 2004-10-01 13:48:37 UTC
*** Bug 154205 has been marked as a duplicate of this bug. ***
Comment 6 Hans Breuer 2005-10-15 14:49:17 UTC
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.
Comment 7 Lars Clausen 2006-01-29 17:22:29 UTC
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.
Comment 8 Octavio Alvarez Piza 2006-02-01 00:45:21 UTC
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?
Comment 9 Octavio Alvarez Piza 2006-02-01 06:16:58 UTC
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).
Comment 10 Hans Breuer 2006-02-04 12:36:56 UTC
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