gedit crashes when opening files from terminal (syntax highlighting bug?)

Bug #29304 reported by Aku Kotkavuo
12
This bug affects 3 people
Affects Status Importance Assigned to Milestone
gedit
Invalid
Undecided
Unassigned
gedit (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

I stumbled upon a bug in gedit while trying to open a .py file from terminal (with "gedit filename") - it simply crashes. Further testing revealed that gedit crashes with every .py and .pl file I tried to open from terminal, even empty files with those filename extensions (created with touch). However, empty .cpp and .c files open without crash.

On another machine which is supposed to have the same setup this happens only when LC_CTYPE is set to some variant of UTF-8, in other words only after "export LC_CTYPE=en_US.UTF-8" and then trying to open. Additionally, on this other machine even empty .sh files crash gedit. Both of the machines are running Breezy.

All of the files in question open if I first start up gedit and then try to open them from menu. I can also open them from terminal without any problems if I already have gedit running.

Also, some (but not all) of the files I tested with opened without problems after removing filename extensions. Could this be related to syntax highlighting?

I am using UTF-8, but this happens even in files without any special characters (like empty files). My gedit version is 2.12.1-0ubuntu1.

Aku Kotkavuo (aku)
description: updated
Revision history for this message
Martin Mai (mrkanister-deactivatedaccount-deactivatedaccount) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. This bug did not have a package associated with it, which is important for ensuring that it gets looked at by the proper developers. You can learn more about finding the right package at https://wiki.ubuntu.com/Bugs/FindRightPackage . I have classified this bug as a bug in gedit.
For future reference you might be interested to know that a lot of applications have bug reporting functionality built in to them. This can be accessed via the Report a Problem option in the Help menu for the application with which you are having an issue. You can learn more about this feature at https://wiki.ubuntu.com/ReportingBugs.

Changed in gedit:
status: New → Invalid
Revision history for this message
Martin Mai (mrkanister-deactivatedaccount-deactivatedaccount) wrote :

You reported this bug a while ago and there hasn't been any activity in it recently. We were wondering if this is still an issue for you. Can you try with the latest Ubuntu release? Thanks in advance.

Changed in gedit:
status: New → Incomplete
Revision history for this message
Aku Kotkavuo (aku) wrote :

Heh, it's been three years. I guess the issue has been fixed at some point because I couldn't reproduce this on Intrepid using gedit 2.24.2.

Changed in gedit:
status: Incomplete → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.