discuss-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

PC Editor, crash


From: Riccardo Mottola
Subject: PC Editor, crash
Date: Mon, 20 Jan 2014 01:48:16 +0100
User-agent: Mozilla/5.0 (X11; FreeBSD i386; rv:25.0) Gecko/20100101 Firefox/25.0 SeaMonkey/2.22

Hi,

ProjectCenter Editor qas reasonably stable that I used it and edited small project without hiccups. Lately I have noted it crashing, I was unable to find core files, I was able right now to get it crash in GDB.

reported exception - <NSException: 0x2b427348> NAME:NSInvalidArgumentException REASON:aString object passed to -[GSAttributedString initWithString:attributes:] is nil INFO:(null)

I get:
Breakpoint 1, -[NSException raise] (self=0x2b3fd7c8, _cmd=0x28b69328)
    at NSException.m:963
963           _reserved = NSZoneCalloc([self zone], 2, sizeof(id));
Current language:  auto; currently minimal
(gdb) bt
#0  -[NSException raise] (self=0x2b3fd7c8, _cmd=0x28b69328)
    at NSException.m:963
#1  0x288c595b in +[NSException raise:format:arguments:] (self=0x28b69290,
    _cmd=0x28b693d0, name=0x28b691d8, format=0x28b44ba8,
    argList=0xbfbfd4a4 "¼Ô¿¿¡×\220(äJº(") at NSException.m:854
#2  0x288c58d0 in +[NSException raise:format:] (self=0x28b69290,
_cmd=0x28b44dd8, name=0x28b691d8, format=0x28b44ba8) at NSException.m:840
#3  0x2880b13a in -[GSAttributedString initWithString:attributes:] (
    self=0x2b3fd788, _cmd=0x286733a0, aString=0x0, attributes=0x0)
    at GSAttributedString.m:511
#4 0x284951e2 in -[NSTextView insertText:] (self=0x2b315e08, _cmd=0x2c057218,
    insertString=0x0) at NSTextView.m:2215
#5  0x2c04523b in -[PCEditorView insertText:] (self=<value optimized out>,
    _cmd=0x2b3db3e8, text=<value optimized out>) at PCEditorView.m:566
#6  0x283ef7fc in -[NSInputManager insertText:] (self=0x2b3dd828,
    _cmd=0x28633340, aString=0x0) at NSInputManager.m:795
#7  0x283ef38c in -[NSInputManager handleKeyboardEvents:client:] (
    self=0x286325d0, _cmd=0x28651b70, eventArray=0x2b3db2e8,
    client=<value optimized out>) at NSInputManager.m:666
#8  0x2843c943 in -[NSResponder interpretKeyEvents:] (self=0x2b315e08,
    _cmd=0x28673808, eventArray=0x2b3db2e8) at NSResponder.m:139
#9  0x2849f85c in -[NSTextView(leftovers) keyDown:] (self=0x2b315e08,
    _cmd=0x2b315e08) at NSTextView.m:5917
#10 0x2c04555d in -[PCEditorView keyDown:] (self=0x2b21c298, _cmd=0x2c056d24,
---Type <return> to continue, or q <return> to quit---
    ev=0x2b315e08) at PCEditorView.m:578
#11 0x284d0abc in -[NSWindow sendEvent:] (self=<value optimized out>,
    _cmd=0x48ee, theEvent=<value optimized out>) at NSWindow.m:4103
#12 0x2835b546 in -[NSApplication sendEvent:] (self=<value optimized out>,
_cmd=0x28601c18, theEvent=<value optimized out>) at NSApplication.m:2107
#13 0x2835a4b7 in -[NSApplication run] (self=<value optimized out>,
    _cmd=0x285fadd8) at NSApplication.m:1562
#14 0x2833ee89 in NSApplicationMain (argc=1, argv=0xbfbfd8b4) at Functions.m:91
#15 0x0804c85a in _start1 ()
#16 0x0804c7c8 in _start ()
#17 0x00000000 in ?? ()

The first thing I checked is for recent changes in ProjectCenter PCEditorView and I don't see anything recent change that could affect this.

PCEditorView is just calling super. All other methods are standard GUI methods. Why should they generate and/or bark about nil? Is it correct that nil is not accepted as argument for insertText? I could add a check for nil and not propagate to the super class in htat case, but isn't that just a workaround?

Riccardo

Attachment: riccardo_mottola.vcf
Description: Vcard


reply via email to

[Prev in Thread] Current Thread [Next in Thread]