discuss-gnustep
[Top][All Lists]
Advanced

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

Re: error while opening AddressManager


From: Fred Kiefer
Subject: Re: error while opening AddressManager
Date: Fri, 27 Jan 2012 18:41:09 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:9.0) Gecko/20111220 Thunderbird/9.0

The corresponding real back trace is easy to get. Set a break point on [NSException raise] and run AddressManager, try to add a new person and you will get:


Breakpoint 1, -[NSException raise] (self=0xbe3db8, _cmd=0x7ffff70d69e0) at NSException.m:955
955     {
(gdb) bt
#0 -[NSException raise] (self=0xbe3db8, _cmd=0x7ffff70d69e0) at NSException.m:955 #1 0x00007ffff6c229e1 in +[NSException raise:format:] (self=0x7ffff70d6b40, _cmd=<optimized out>, name=0x7ffff70d6bb0, format=0x7ffff7092d10) at NSException.m:835 #2 0x00007ffff6b6afd1 in -[GSAttributedString initWithString:attributes:] (self=0xdd8f58, _cmd=<optimized out>, aString=0x0, attributes=0xd8b388) at GSAttributedString.m:467 #3 0x00007ffff74b4149 in -[NSTextView replaceCharactersInRange:withString:] ( self=0xb61c88, _cmd=<optimized out>, aRange=..., aString=0x0) at NSTextView.m:2285 #4 0x00007ffff74a2bb5 in -[NSText setString:] (self=0xb61c88, _cmd=<optimized out>,
    aString=0x0) at NSText.m:136
#5 0x00007ffff79768ef in -[ADPersonView layout] (self=0xdf2368, _cmd=<optimized out>)
    at ADPersonView.m:275
#6 0x000000000040a90d in -[Controller selectPerson:] (self=0xb2fb18, _cmd=<optimized out>,
    person=0xd75698) at Controller.m:327
#7  0x0000000000405295 in -[Controller beginEditingPerson:] (self=0xb2fb18,
    _cmd=<optimized out>, person=0xd75698) at Controller.m:375
#8  0x0000000000405b22 in -[Controller doCreatePerson:] (self=0xb2fb18,
    _cmd=<optimized out>, sender=<optimized out>) at Controller.m:494
#9 0x00007ffff736d529 in -[NSApplication sendAction:to:from:] (self=<optimized out>, _cmd=<optimized out>, aSelector=0x871690, aTarget=<optimized out>, sender=0xba0ed8)
    at NSApplication.m:2232

This could be either fixed in AddressView, by not setting the string of a NSTextView to nil. Or we need to protect all calls to the NSTextView in gui to ignore nil.

Not sure what Apple does here. Anybody out there with some time to test this?

Fred

On 27.01.2012 13:11, Riccardo Mottola wrote:
AddressManager of Addresses stopped working with current release:

On linux, gcc 4.6.2, I get:

2012-01-27 13:08:22.424 AddressManager[4922] Exception occured while
loading model: aString object passed to -[GSAttributedString
initWithString:attributes:] is nil
2012-01-27 13:08:22.424 AddressManager[4922] Failed to load Gorm
2012-01-27 13:08:22.424 AddressManager[4922] Cannot load the main model
file 'AddressManager'

Program received signal SIGSEGV, Segmentation fault.
0xb767392e in objc_msg_lookup () from /usr/lib/i386-linux-gnu/libobjc.so.3

(gdb) bt
#0 0xb767392e in objc_msg_lookup () from
/usr/lib/i386-linux-gnu/libobjc.so.3
#1 0xb7be1d9c in -[NSApplication finishLaunching] (self=0x8177054,
_cmd=0xb7e9c110) at NSApplication.m:1156
#2 0xb7be45e1 in -[NSApplication run] (self=0x8177054, _cmd=0xb7e92628)
at NSApplication.m:1540
#3 0xb7bc273f in NSApplicationMain (argc=1, argv=0xbffff144) at
Functions.m:91
#4 0x08049347 in main (argc=1, argv=0xbffff144) at main.m:16


I can however load the gorm file in Gorm fine.

On my FreeBSD computer, AddressManager instead starts up, but the
editing view does not display and it is unusable (but no Crash here...)

Riccardo



reply via email to

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