ActiveState Powered by ActiveState

ActiveState Community


Komodo Edit crashes on Mac OS X when attempting to drag wrapped text

Posted by 6h7i on 2008-04-28 05:30

I think the subject pretty much explains the problem... Komodo Edit crashes instantly when trying to drag text that wraps onto two or more lines. Happens every time. It dies as you try to move the text, not when dropping it. I'm using Komodo Edit 4.3.2, on Mac OS X 10.4.11.

After each crash, the following is displayed in Console:


komodo-bin(296,0xa000d000) malloc: *** vm_allocate(size=4294914048) failed (error code=3)
komodo-bin(296,0xa000d000) malloc: *** error: can't allocate region
komodo-bin(296,0xa000d000) malloc: *** set a breakpoint in szone_error to debug
terminate called after throwing an instance of 'std::bad_alloc'
what(): St9bad_alloc

ToddW | Mon, 2008-04-28 08:53

Which file-encoding is the document using (you can see the encoding in the Komodo status bar). Can you post the lines of text you are dragging?

Thanks,
Todd

jeffg | Mon, 2008-04-28 10:00

I tried to reproduce this by:

1. creating a new file that contained one long line.
2. turning word wrap on.
3. creating a new file.
4. selecting all the text in the first file and dragging it into the second one.

The content was essentially ASCII, from a web page ( no non-ascii letters ) and both files were set to UTF-8.

How does your situation differ from this?

--
JeffG

6h7i | Mon, 2008-04-28 13:46

I've just triggered the crash with a file containing the following text:

Like my loafers? Former gophers - it was that or skin my chauffeurs, but a greyhound fur tuxedo would be best.

I selected everything between "greyhound" and "best", then dragged it to set off the crash. The selection was wrapped between "tuxedo" and "would".

The file was encoded as UTF-8.

@JeffG: Try selecting some text to drag that doesn't begin at the start of a line, but still wraps over two or more lines. Forgot to mention that in my initial post, sorry. Also should have mentioned I'm using word wrap, not character wrap.

cheers for looking into this,

Chris

ericp | Mon, 2008-04-28 13:48

Even plain text?

Also, which wrapping characters are you using (Start-of-line, end-of-line,
or none?)

6h7i | Mon, 2008-04-28 14:22

The test file with the Simpsons quote in it was plain text, yes. Also just tried it with JavaScript and Python scripts, and still got the crash.

I've downloaded Komodo Edit and installed it again, just to check that the download wasn't corrupted somehow. Still got the crash...

I'm not using any wrapping characters. Komodo Edit crashes for me even if the only change I make from the initial setup is to switch word wrap on.

Can no one else out there replicate this? It doesn't seem like the kind of thing that should be specific to my install of Mac OS X, but I guess anything's possible.

jeffg | Mon, 2008-04-28 14:22

Thanks for the more detailed description, I can easily reproduce the crash now. I've logged this bug:

http://bugs.activestate.com/show_bug.cgi?id=76566

--
JeffG

6h7i | Mon, 2008-04-28 14:38

Thanks for the quick response

jeffg | Tue, 2008-04-29 14:28

Just to keep you up to date, we have a fix for this and have committed it to trunk ( Komodo 4.4 ). We'll be releasing Alpha builds of this branch some time this week or next. As well, this fix should find its way into a Komodo 4.3.3 release if/when we do that.

Thanks again for the bug report!

--
JeffG

-->