gedit just exits when I try to open a zero byte(empty) file.

Bug #586848 reported by senyorita
46
This bug affects 4 people
Affects Status Importance Assigned to Milestone
gedit
Fix Released
Critical
gedit (Ubuntu)
Fix Released
Medium
Unassigned
Lucid
Fix Released
Low
Sebastien Bacher

Bug Description

Binary package hint: gedit

gedit just exits when I try to open a zero byte(empty) file.
It's a serious bug.
It happens when I put "UHC" first in /apps/gedit-2/preferences/encodings/auto_detected.
It doesn't happen when I put "UTF8" the first in it.

The below is what happens if I type "gedit filename", where filename is a file that doesn't contain a single letter.
It's not a non-existent file, but a file that doesn't contain anything in it.

(gedit:2228): GLib-GIO-CRITICAL **: g_converter_convert: assertion `outbuf_size > 0' failed
Segmentation fault

ProblemType: Bug
DistroRelease: Ubuntu 10.04
Package: gedit 2.30.2-0ubuntu1
Uname: Linux 2.6.34-020634-generic x86_64
Architecture: amd64
Date: Fri May 28 23:41:57 2010
InstallationMedia: Ubuntu 10.04 LTS "Lucid Lynx" - Release amd64 (20100429)
ProcEnviron:
 LANG=en_US.utf8
 SHELL=/bin/bash
SourcePackage: gedit

Revision history for this message
senyorita (bdoojin) wrote :
Revision history for this message
senyorita (bdoojin) wrote :

Correction : the title of the bug is wrong.
gedit just exists when I try to open a zero byte(empty) file. -----> gedit just exits when I try to open a zero byte file.

description: updated
description: updated
summary: - gedit just exists when I try to open a zero byte(empty) file.
+ gedit just exits when I try to open a zero byte(empty) file.
Revision history for this message
Pedro Villavicencio (pedro) wrote :
Changed in gedit (Ubuntu):
importance: Undecided → Medium
status: New → Fix Committed
Changed in gedit:
status: Unknown → Fix Released
Revision history for this message
ooze (zoe-gauthier) wrote :

Good catch! The issue you are reporting is an upstream one and it would be nice if somebody having it could send the bug to the developers of the software by following the instructions at https://wiki.ubuntu.com/Bugs/Upstream/GNOME. If you have done so, please tell us the number of the upstream bug (or the link), so we can add a bugwatch that will inform us about its status. Thanks in advance.

Changed in gedit (Ubuntu):
status: Fix Committed → New
Revision history for this message
ooze (zoe-gauthier) wrote :

Sorry, ignore my previous message. I left the browser window open for too long and didn't see the progress!

Changed in gedit (Ubuntu):
status: New → Fix Committed
Changed in gedit (Ubuntu Lucid):
importance: Undecided → Low
status: New → Triaged
Revision history for this message
Sebastien Bacher (seb128) wrote :
Changed in gedit (Ubuntu Lucid):
assignee: nobody → Sebastien Bacher (seb128)
status: Triaged → Fix Committed
Revision history for this message
Sebastien Bacher (seb128) wrote :
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package gedit - 2.30.3-0ubuntu1

---------------
gedit (2.30.3-0ubuntu1) maverick; urgency=low

  * New upstream version
    - Misc bugfixes
    - Handle empty input gracefully (lp: #586848)
    - Translations update
 -- Sebastien Bacher <email address hidden> Mon, 21 Jun 2010 15:14:19 +0200

Changed in gedit (Ubuntu):
status: Fix Committed → Fix Released
Revision history for this message
Steve Langasek (vorlon) wrote : Please test proposed package

Accepted into lucid-proposed, the package will build now and be available in a few hours. Please test and give feedback here. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Thank you in advance!

tags: added: verification-needed
Revision history for this message
Kevin (kevinshlee) wrote :

I've just tested with the new version (2.30.3-0ubuntu0.1) and it looks fine.
I now have no problem with opening an empty file.
Thanks for the bug fix.

Regards,
Kevin

Martin Pitt (pitti)
tags: added: verification-done
removed: verification-needed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package gedit - 2.30.3-0ubuntu0.1

---------------
gedit (2.30.3-0ubuntu0.1) lucid-proposed; urgency=low

  * New upstream version
    - Misc bugfixes
    - Handle empty input gracefully (lp: #586848)
 -- Sebastien Bacher <email address hidden> Mon, 21 Jun 2010 15:00:17 +0200

Changed in gedit (Ubuntu Lucid):
status: Fix Committed → Fix Released
Changed in gedit:
importance: Unknown → Critical
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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