gedit crashes when opening any file
hi all.
unfortunately my gedit is unusable, since every time i try to open a text file, it crashes.
here the terminal message
Code:
TypeError: metaclass conflict: the metaclass of a derived class must be a (non-strict) subclass of the metaclasses of all its bases
**
ERROR:/build/buildd/pygobject-3.4.0/gi/_gobject/pygobject.c:946:pygobject_new_full: assertion failed: (tp != NULL)
Aborted (core dumped)
the last thing i (regret) did before the problem appeared, was enabling the dialog of the source code browser plugin
https://github.com/Quixotix/gedit-source-code-browser
any help would be very appreciated!! thanks!
Re: gedit crashes when opening any file
try moving out the files in
~/.gconf/apps/gedit-2
or
~/.config/gedit
Re: gedit crashes when opening any file
there is no folder named
~/.gconf/apps/gedit-2
and even after removing the folder
~/.config/gedit
and rebooting nothing is solved.
Re: gedit crashes when opening any file
check output from
Code:
find ~/ -iname gedit*
Have you tried a purge and reinstall?
Code:
sudo apt-get remove --purge gedit
Code:
sudo apt-get autoremove
Code:
sudo apt-get install gedit
Re: gedit crashes when opening any file
Code:
francesco@francesco-wimdu:~$ find ~/ -iname gedit*
/home/francesco/Downloads/geditpycompletion-master.zip
/home/francesco/.local/share/gedit
/home/francesco/.local/share/Trash/files/gedit
/home/francesco/.local/share/Trash/files/gedit/plugins/gedit_classbrowser-0.2.1
/home/francesco/.local/share/Trash/files/gedit/plugins/geditpycompletion-master
/home/francesco/.local/share/Trash/files/gedit.2
/home/francesco/.local/share/Trash/files/plugins/gedit_classbrowser-0.2.1
/home/francesco/.local/share/Trash/files/plugins/geditpycompletion-master
/home/francesco/.local/share/Trash/info/gedit.2.trashinfo
/home/francesco/.local/share/Trash/info/gedit.trashinfo
/home/francesco/.config/gedit
purging and reinstalling didnt do the trick :(
Re: gedit crashes when opening any file
am not sure so wait for someone else to comment but the next step I'd take is
Code:
sudo mv /usr/share/glib-2.0/schemas/org.gnome.gedit.plugins.sourcecodebrowser.gschema.xml ~/Desktop/
Code:
glib-compile-schemas /usr/share/glib-2.0/schemas/
Re: gedit crashes when opening any file
yes. tried it. same error when opening file
Code:
ERROR:/build/buildd/pygobject-3.4.0/gi/_gobject/pygobject.c:946:pygobject_new_full: assertion failed: (tp != NULL)
Aborted (core dumped)
Re: gedit crashes when opening any file
Create a new user on the host and login as that user, then run/check gedit.
Same issue, or no issue?
Re: gedit crashes when opening any file
good point. the problem is only with my account apparently
Re: gedit crashes when opening any file
Are you 100% sure there's no ~/.gconf/apps/gedit-2 directory? It should exist.
One more place to look for rogue files is ~/.local/share/applications. You might find some files named gedit-#.desktop. They should be harmless, but that's all I can think of for an issue only affecting 1 user.
Another very unlikely culprit is ~/.config/gnome-panel/launchers, which might have another gedit.desktop, if you have a panel launcher for gedit. Again, I don't think this should pose a problem, but it's somewhat possible.