gedit does not open xml file

Bug #154931 reported by Andrew Frank
14
Affects Status Importance Assigned to Milestone
GtkSourceView
Fix Released
High
gtksourceview2 (Ubuntu)
Fix Released
Medium
Ubuntu Desktop Bugs

Bug Description

Binary package hint: gedit

gedit does not open a file which a hex editor shows to be an xml file with a regular encoding (attached; produced by oo writer - saveAs flat XML format).

gedit does not fail to open, but just does not return - it must be killed (preferably by clicking on the close box where it says 'gedit is not responding' and then click on force quit).

two bugs:
it should open the file for editing
it should at least return with an error message

thank you

andrew

ProblemType: Bug
Architecture: i386
Date: Sat Oct 20 16:22:50 2007
DistroRelease: Ubuntu 7.10
ExecutablePath: /usr/bin/gedit
Package: gedit 2.20.1-0ubuntu3
PackageArchitecture: i386
ProcCmdline: gedit file:///home/frank/Desktop/cvs%20_test/adoc.xml
ProcCwd: /home/frank
ProcEnviron:
 PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: gedit
Uname: Linux atlantaG 2.6.22-14-generic #1 SMP Sun Oct 14 23:05:12 GMT 2007 i686 GNU/Linux

Tags: apport-bug
Revision history for this message
Andrew Frank (frank-geoinfo) wrote :
Revision history for this message
Andrew Frank (frank-geoinfo) wrote :

i run gutsy and the software is updated oct 20, 2007

Revision history for this message
Pedro Villavicencio (pedro) wrote :

Thanks for your report, it open fine here, no hang. But the format isn't the better. not confirming, Please try to obtain a backtrace following the instructions at http://wiki.ubuntu.com/DebuggingProgramCrash and upload the backtrace (as an attachment) to the bug report. This will greatly help us in tracking down your problem.

Changed in gedit:
assignee: nobody → desktop-bugs
importance: Undecided → Medium
status: New → Incomplete
Revision history for this message
Pedro Villavicencio (pedro) wrote :

Closing this bug report as no further information has been provided. Please feel free to reopen this bug if you can provide the information asked for. Thanks!.

Changed in gedit:
status: Incomplete → Invalid
Revision history for this message
Hugh Winkler (hughw) wrote :

I am able to repro this bug in Gutsy . Please reopen.

opening the file with Gedit never displays anything, Gedit becomes unresponsive, CPU goes to 99%, and after a time I just have to kill gedit.

The problem seems to be the lack of line endings in the file. I can open the file in gedit, only if I first process and save the file using Oxygen XML, which asks me if I want to save it formatted with line endings.

I have a similar but slightly different problem and I am uploading a test file . In my case, the large XML file has \r\n line endings at the beginning, but subsequently the line endings are \n. Gedit opens the file and displays a screenful of text, but then goes into the CPU 99% and unresponsive behavior.

I tried following the instructions at http://wiki.ubuntu.com/DebuggingProgramCrash but they seem to be for the case of a program crash. In this case, we have to SIGKILL the program, and there is no backtrace after following the instructions. I also tried changing the gdb command to "handle SIGKILL" but it dis n ot produce a backtrace either. Please advise how to get you the info you need.

Revision history for this message
Hugh Winkler (hughw) wrote :

Unsure how to 'reopen' a bug --sorry if marking it confirmed is not the right thing. But I have confirmed it.

Changed in gedit:
status: Invalid → Confirmed
Changed in gedit:
status: Confirmed → New
Revision history for this message
Pedro Villavicencio (pedro) wrote :

Confirming, will look upstream, thanks for your report.

Changed in gedit:
status: New → Confirmed
Revision history for this message
Pedro Villavicencio (pedro) wrote :
Changed in gedit:
status: Confirmed → Triaged
Changed in gtksourceview:
status: Unknown → New
Changed in gtksourceview:
status: New → Invalid
Changed in gtksourceview:
status: Unknown → Confirmed
Changed in gtksourceview:
status: Confirmed → Fix Released
Revision history for this message
Pedro Villavicencio (pedro) wrote :

fixed upstream already, thanks for reporting.

Changed in gtksourceview2:
status: Triaged → Fix Committed
Revision history for this message
Sebastien Bacher (seb128) wrote :

the new version is in intrepid

Changed in gtksourceview2:
status: Fix Committed → Fix Released
Revision history for this message
NoOp (glgxg) wrote :

Where/how is this fixed for Hardy? It is impossible to open a 727Kb OpenOffice styles.xml file in Gedit or Bluefish. CPU on both goes to 97% on a 2.4Ghz/1GB machine and stays that way until the process is killed.

Changed in gtksourceview:
importance: Unknown → High
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.