Random crash : really need help from experience d Mac OSX programmer

Hello,

here one of my user’s console.log :

2007-08-18 08:48:22.368 Tennis Elbow 2006[277] Exception raised during posting
of notification. Ignored. exception: *** -[NSLayoutManager
glyphRangeForTextContainer:]: given container does not appear in the list of
containers for this NSLayoutManager.

Cocoa is killing me… :"-(

Hellom

Christian Walther <cwalther gmx.ch> writes:

Does this perchance happen when a key is pressed? I’m observing crashes
with the same error message occasionally when pressing the arrow keys in
SDL 1.3. It seems to have something to do with
http://libsdl.org/cgi/viewvc.cgi?view=rev&revision=3217.

thank u very much Christian !!

I found the way to reproduce the bug on my system (by pressing many keys all
around, especially the “^” one), and then I looked the revision u pointed out,
and I commented out these lines :
1- [field_edit interpretKeyEvents:[NSArray arrayWithObject:event]];
2- field_edit = [[NSTextView alloc] initWithFrame:r];

And now, there’s no freezes !! :slight_smile:

I’m releasing a new version, hoping the freezes won’t be there anymore on my
users’ systems…

PS: I added a new bug entry to BugZilla :
http://bugzilla.libsdl.org/show_bug.cgi?id=480