Hi Riccardo, first off, the exception you are getting seems to be happening in the [NSLock new] call and this is highly unlikely. Could you please verify that you are using versions of gun and base that fit properly together? Or maybe you have local changes to base?
Even for not document based applications GNUstep initialises an NSDocumentController, if that gets used in the code. You have a valid point here to question that. Maybe somebody should do a bit of research, wether Cocoa does the same. At the moment we read the document class definitions inside the NSDocumentController initialisation code and only after that we know whether we have a document based application. In your specific case the initialisation of the NSDocumentController happens because NSApplication cannot find a suitable responder for an action it is trying to send. This looks like your UI is using an undefined message. Sorry, I know that this isn’t much help. But it is the best I can do right now. Fred > Am 11.12.2016 um 15:41 schrieb Riccardo Mottola <[email protected]>: > TalkSoup saw no singificant commits in the past year, but it stopped working, > I get a segfault at start-up. Do you experience something like this too? > > I fear some gui changes caused this. > > > TalkSoup is loading its main Bundle, GNUstepOutput and the associated Gorm > file seems fine, I can open it in Gorm. > > Why this crash? and whi do I see in the stacktrace the NSDocumentController, > when TalklSoup isn't a doc-based app at all? > > > Riccardo > > #0 +[NSWorkspace initialize] (self=0xb5197120 <_OBJC_Class_NSWorkspace>, > _cmd=0xb7fa06c8 <_OBJC_SELECTOR_TABLE+8>) at NSWorkspace.m:597 > #1 0xb7a4cb9f in ?? () from /usr/lib/gcc/i686-pc-linux-gnu/5.4.0/libobjc.so.4 > #2 0xb7a4cc95 in ?? () from /usr/lib/gcc/i686-pc-linux-gnu/5.4.0/libobjc.so.4 > #3 0xb7a4e9d1 in objc_msg_lookup () > from /usr/lib/gcc/i686-pc-linux-gnu/5.4.0/libobjc.so.4 > #4 0xb4dab5f2 in -[NSDocumentController init] (self=0x83623a8, > _cmd=0xb51061a8 <_OBJC_SELECTOR_TABLE+104>) at NSDocumentController.m:284 > #5 0xb4dab520 in +[NSDocumentController sharedDocumentController] ( > self=0xb51066e0 <_OBJC_Class_NSDocumentController>, > _cmd=0xb50d3968 <_OBJC_SELECTOR_TABLE+1928>) at NSDocumentController.m:263 > #6 0xb4d41416 in -[NSApplication(Private) > _targetForAction:keyWindow:mainWindow:] (self=0x81ae008, _cmd=0xb50d3ba8 > <_OBJC_SELECTOR_TABLE+2504>, > aSelector=0x81b7c60, keyWindow=0x0, mainWindow=0x0) at NSApplication.m:4011 > #7 0xb4d3f8a9 in -[NSApplication targetForAction:] (self=0x81ae008, > _cmd=0xb50d3bb0 <_OBJC_SELECTOR_TABLE+2512>, aSelector=0x81b7c60) > at NSApplication.m:2316 > #8 0xb4d3f821 in -[NSApplication targetForAction:to:from:] (self=0x81ae008, > _cmd=0xb512bef0 <_OBJC_SELECTOR_TABLE+1168>, theAction=0x81b7c60, > theTarget=0x0, sender=0x82aea28) at NSApplication.m:2292 > #9 0xb4df7ba4 in -[NSMenu update] (self=0x82ae9a8, > _cmd=0xb512be30 <_OBJC_SELECTOR_TABLE+976>) at NSMenu.m:1160 > #10 0xb4df7d00 in -[NSMenu update] (self=0x82ab548, > _cmd=0xb512be30 <_OBJC_SELECTOR_TABLE+976>) at NSMenu.m:1155 > #11 0xb4df51ca in -[NSMenu itemChanged:] (self=0x82ab548, > _cmd=0xb5130978 <_OBJC_SELECTOR_TABLE+248>, anObject=0x82a0780) > at NSMenu.m:861 > #12 0xb4e001dd in -[NSMenuItem setTarget:] (self=0x82a0780, > _cmd=0xb5134078 <_OBJC_SELECTOR_TABLE+152>, anObject=0x818f548) > at NSMenuItem.m:469 > #13 0xb4e05f17 in -[NSNibControlConnector establishConnection] ( > self=0x835a8a0, _cmd=0xb51b1278 <_OBJC_SELECTOR_TABLE+216>) > at NSNibConnector.m:189 > #14 0xb4efba9e in -[GSNibContainer awakeWithContext:] (self=0x8117718, > _cmd=0xb51cb0a8 <_OBJC_SELECTOR_TABLE+104>, context=0x8236e10) > at GSGormLoading.m:170 > #15 0xb4f2db5f in -[GSGormLoader loadModelData:externalNameTable:withZone:] ( > self=0x81a8c18, _cmd=0xb51339b0 <_OBJC_SELECTOR_TABLE+112>, > data=0x823de00, context=0x8290bc8, zone=0xb7fa0560 <default_zone>) > at GSGormLoader.m:120 > #16 0xb4e04b76 in -[NSNib instantiateNibWithExternalNameTable:withZone:] ( > self=0x8273bf0, _cmd=0xb50e3c98 <_OBJC_SELECTOR_TABLE+24>, > externalNameTable=0x8290bc8, zone=0xb7fa0560 <default_zone>) at NSNib.m:153 > #17 0xb4d6fb7a in +[NSBundle(NSBundleAdditions) > loadNibFile:externalNameTable:withZone:] (self=0xb7f2e960 > <_OBJC_Class_NSBundle>, > _cmd=0xb50e3d20 <_OBJC_SELECTOR_TABLE+160>, fileName=0x82404c8, > context=0x8290bc8, zone=0xb7fa0560 <default_zone>) > at NSBundleAdditions.m:52 > #18 0xb4d6fd64 in -[NSBundle(NSBundleAdditions) > loadNibFile:externalNameTable:withZone:] (self=0x8104de0, _cmd=0xb50e3cc8 > <_OBJC_SELECTOR_TABLE+72>, > fileName=0xb523486c <_OBJC_INSTANCE_1>, context=0x8290bc8, > zone=0xb7fa0560 <default_zone>) at NSBundleAdditions.m:148 > #19 0xb4d6fc81 in +[NSBundle(NSBundleAdditions) loadNibNamed:owner:] ( > self=0xb7f2e960 <_OBJC_Class_NSBundle>, > _cmd=0xb52342f0 <_OBJC_SELECTOR_TABLE+112>, > aNibName=0xb523486c <_OBJC_INSTANCE_1>, owner=0x818f548) > at NSBundleAdditions.m:86 > #20 0xb51e63e2 in -[GNUstepOutput init] (self=0x818f548, > _cmd=0xb7fd39c8 <_OBJC_SELECTOR_TABLE+40>) at GNUstepOutput.m:110 > #21 0xb7fc7c2c in activate_bundle (name=0x810b2e0, a=<optimized out>) > at TalkSoup.m:102 > #22 -[TalkSoup setOutput:] (self=0x80c2ff8, > _cmd=0x8057288 <_OBJC_SELECTOR_TABLE+104>, aOutput=0x810b2e0) > at TalkSoup.m:493 > #23 0x08048b7f in main () at main.m:91 > > > _______________________________________________ > Discuss-gnustep mailing list > [email protected] > https://lists.gnu.org/mailman/listinfo/discuss-gnustep _______________________________________________ Discuss-gnustep mailing list [email protected] https://lists.gnu.org/mailman/listinfo/discuss-gnustep
