GNOME Bugzilla – Bug 300221
gedit "Save As" strange behaviour
Last modified: 2005-07-21 23:21:57 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."
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.
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
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
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
Correction : this is not Gedit 2.10 but 2.10.2 (still GARNOME 2.10.1).
Confirming.
*** This bug has been marked as a duplicate of 311187 ***