Ticket #69 (new defect)

Opened 2 years ago

Last modified 15 months ago

view/edit text file with no line feed freeze mac

Reported by: jt@… Owned by: maxence@…
Priority: high Milestone: 0.8.5
Component: File operation Version: 0.8.2
Severity: blocker Keywords:
Cc: Operating System: unspecified
Java version: unspecified

Description (last modified by Nicolas) (diff)

I just tried to view (F3) a 130kB text file that has no linefeed and mucommander freezes my intel iMac: only the mouse pointer is active, I can't alt-cmd-esc nor do anything. I just rebooted then tried to edit (F4) the same file and again the whole thing freezes instantly.

The file is a .session file created by the Session Manager Firefox extension.

Change History

Changed 2 years ago by nicolas@…

After a quick check, it would appear that the JTextComponent#read(Reader, Object) method doesn't like streams without line feed, at least on macs.

in com.mucommander.ui.viewer.text.TextEditorImpl#loadDocument?(InputStream?, String), removing the call to JTextArea#read(Reader, Object) and reading the content of the stream manually appears to work fine, albeit rather slowly.

Changed 15 months ago by Nicolas

  • description modified (diff)
  • milestone set to 0.8.5
Note: See TracTickets for help on using tickets.