Page 1 of 2 12 LastLast
Results 1 to 10 of 12

Thread: gedit crashes when opening any file

  1. #1
    Join Date
    Apr 2010
    Beans
    31

    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!

  2. #2
    Join Date
    Nov 2008
    Location
    Sheffield, UK
    Beans
    1,517
    Distro
    Ubuntu

    Re: gedit crashes when opening any file

    try moving out the files in
    ~/.gconf/apps/gedit-2
    or
    ~/.config/gedit

  3. #3
    Join Date
    Apr 2010
    Beans
    31

    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.

  4. #4
    Join Date
    Nov 2008
    Location
    Sheffield, UK
    Beans
    1,517
    Distro
    Ubuntu

    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

  5. #5
    Join Date
    Apr 2010
    Beans
    31

    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

  6. #6
    Join Date
    Nov 2008
    Location
    Sheffield, UK
    Beans
    1,517
    Distro
    Ubuntu

    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/
    Last edited by SlugSlug; November 7th, 2012 at 12:27 PM.

  7. #7
    Join Date
    Apr 2010
    Beans
    31

    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)

  8. #8

    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?


  9. #9
    Join Date
    Apr 2010
    Beans
    31

    Re: gedit crashes when opening any file

    good point. the problem is only with my account apparently

  10. #10
    Join Date
    Jul 2012
    Beans
    172
    Distro
    Ubuntu 13.10 Saucy Salamander

    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.
    MSI FM2-A75MA-E35 Motherboard - AMD A4-6300 Richland 3.7GHz (Radeon HD 8370D) - G.SKILL Ripjaws X Series 8GB - Iomega KVM - MS Digital Media Pro Keyboard
    The cure to dependency hell: apt-get install apt-file - apt-file search file-from-error

Page 1 of 2 12 LastLast

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •