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 300221 - gedit "Save As" strange behaviour
gedit "Save As" strange behaviour
Status: RESOLVED DUPLICATE of bug 311187
Product: gedit
Classification: Applications
Component: general
2.10.x
Other Linux
: High major
: ---
Assigned To: Gedit maintainers
gedit QA volunteers
Depends on:
Blocks:
 
 
Reported: 2005-04-11 17:07 UTC by Sebastien Bacher
Modified: 2005-07-21 23:21 UTC
See Also:
GNOME target: ---
GNOME version: 2.9/2.10


Attachments
A log of the stderr related to the bug 300221 (1.44 KB, text/plain)
2005-04-27 16:54 UTC, Carlos Parra
Details

Description Sebastien Bacher 2005-04-11 17:07:31 UTC
This bug has been opened here: https://bugzilla.ubuntu.com/8723

"Using Hoary gedit 2.10.2-0ubuntu1.

gedit's "Save As" has some strange behaviour. To get this strange behaviour:

1. Run gedit.
2. Type something.
3. Go "File" -> "Save".
4. I have a "Documents" directory in my home, so it defaults to that with the
filename "Unsaved Document 1". Click "Save".
5. Confirm via nautilus that file is saved in the ~/Documents directory.
6. Go "File" -> "Save As".
7. In the "Save as..." dialog, select "Browse for other folders".
8. On the right-pane, I see two (2) files listed named "Unsaved Document 1".
9a. Pressing "Save" does not work.
9b. Select another directory on the left pane, for example "Home". Then try and
select "Documents" again from the left pane. It won't select "Documents".

Strangely enough, there is a menu option under it "File" -> "Save Copy" that
exhibits no problems, and seems to perform the exact same function."
Comment 1 Paolo Borelli 2005-04-11 17:20:34 UTC
weird... I see that too now.

if I do it launching from terminal I see many of these:

(gedit:25803): GLib-GObject-WARNING **: invalid uninstantiatable type `(null)'
in cast to `GtkFileFolder'

(gedit:25803): GLib-GObject-WARNING **: invalid uninstantiatable type `(null)'
in cast to `GtkFileFolderGnomeVFS'


We have to investigate if this is gedit's fault or gtk/gnome-vfs' fault...
especially considering that we didn't change anything recently in the save-as code.


For what it's worth Save Copy is not the same thing: it allows to save a copy of
the current document and then go on editing the current doc.
Comment 2 Carlos Parra 2005-04-27 16:54:41 UTC
Created attachment 45743 [details]
A log of the stderr related to the bug 300221

The text i send is the file generated executing:
  gedit Santa\ Claus 2> gedit.log

I've exactly the same problem as Sebastian Bacher
Comment 3 Carlos Parra 2005-04-27 18:41:16 UTC
In run_file_selector (...) function, (gedit-file-selector-util.c)
i've added the g_print lines:

        g_print("START bucle");
	do 
	{
		g_print("\nSTART gtk_dialog_run\n");
		res = gtk_dialog_run (GTK_DIALOG (dialog));
		g_print("\nEND gtk_dialog_run\n");
		retval = analyze_response (GTK_FILE_CHOOSER (dialog), res);
	}
	while (GTK_WIDGET_VISIBLE (dialog));
	g_print("END bucle");

And the result of executing this is:

...
START bucle
START gtk_dialog_run

(gedit:25196): GLib-GObject-WARNING **: invalid uninstantiatable type `(null)'
in cast to `GtkFileFolder'

(gedit:25196): GLib-GObject-WARNING **: invalid uninstantiatable type `(null)'
in cast to `GtkFileFolderGnomeVFS'

(gedit:25196): GLib-GObject-CRITICAL **: g_object_ref: assertion `G_IS_OBJECT
(object)' failed

(gedit:25196): GLib-GObject-CRITICAL **: g_object_ref: assertion `G_IS_OBJECT
(object)' failed

(gedit:25196): GLib-GObject-WARNING **: invalid uninstantiatable type `(null)'
in cast to `GtkFileFolder'

(gedit:25196): GLib-GObject-WARNING **: invalid uninstantiatable type `(null)'
in cast to `GtkFileFolderGnomeVFS'

(gedit:25196): GLib-GObject-CRITICAL **: g_object_ref: assertion `G_IS_OBJECT
(object)' failed

(gedit:25196): GLib-GObject-CRITICAL **: g_object_ref: assertion `G_IS_OBJECT
(object)' failed

END gtk_dialog_run
END bucle
...


I hope this useful
Comment 4 Vincent 2005-05-20 16:17:32 UTC
Confirmed on 2.10 (GARNOME 2.10.1).

It seems to come from gnome-vfs. I tracked it down by successfully changing the
name of the file and finally found that it occurs when the name of the file
which is opened contains a space. Gedit will then refuse to "Save As". 

Note that If you open a file whose name does not have a space and you add one
when saving, the problem does _not_ occur.

Steps to reproduce:
1. Create an empty file named "test 1" (without quotes).
2. Open gedit via a terminal and load the file.
3. Select "Save As". You'll see the messages below appear.

Error message in terminal :
vrubiolo@huelgoat ~ $ gedit test\ 1

(gedit:23969): GLib-GObject-WARNING **: instance of invalid non-instantiatable
type `(null)'

(gedit:23969): GLib-GObject-CRITICAL **: g_signal_emit_by_name: assertion
`G_TYPE_CHECK_INSTANCE (instance)' failed

(gedit:23969): GLib-GObject-WARNING **: instance of invalid non-instantiatable
type `(null)'

(gedit:23969): GLib-GObject-CRITICAL **: g_signal_emit_by_name: assertion
`G_TYPE_CHECK_INSTANCE (instance)' failed

(gedit:23969): GLib-GObject-WARNING **: instance of invalid non-instantiatable
type `(null)'

(gedit:23969): GLib-GObject-CRITICAL **: g_signal_emit_by_name: assertion
`G_TYPE_CHECK_INSTANCE (instance)' failed

(gedit:23969): GLib-GObject-WARNING **: instance of invalid non-instantiatable
type `(null)'

(gedit:23969): GLib-GObject-CRITICAL **: g_signal_emit_by_name: assertion
`G_TYPE_CHECK_INSTANCE (instance)' failed

(gedit:23969): GLib-GObject-WARNING **: instance of invalid non-instantiatable
type `(null)'

(gedit:23969): GLib-GObject-CRITICAL **: g_signal_handlers_disconnect_matched:
assertion `G_TYPE_CHECK_INSTANCE (instance)' failed

(gedit:23969): GLib-GObject-WARNING **: instance of invalid non-instantiatable
type `(null)'

(gedit:23969): GLib-GObject-CRITICAL **: g_signal_handlers_disconnect_matched:
assertion `G_TYPE_CHECK_INSTANCE (instance)' failed

(gedit:23969): GLib-GObject-CRITICAL **: g_object_unref: assertion `G_IS_OBJECT
(object)' failed

(gedit:23969): GLib-GObject-CRITICAL **: g_object_unref: assertion `G_IS_OBJECT
(object)' failed
Comment 5 Vincent 2005-05-20 16:24:23 UTC
Correction : this is not Gedit 2.10 but 2.10.2 (still GARNOME 2.10.1).
Comment 6 Christian Kirbach 2005-06-09 09:27:40 UTC
Confirming.
Comment 7 Federico Mena Quintero 2005-07-21 23:21:57 UTC

*** This bug has been marked as a duplicate of 311187 ***