From gnustep-port@opengroupware.org Mon May 28 11:21:05 2007 From: gnustep-port@opengroupware.org (Sebastian Reitenbach) Date: Mon, 28 May 2007 12:21:05 +0200 Subject: [OGo-GNUstep-Port] experiences with OGo and gunstep-base on OpenBSD Message-ID: <20070528102105.9773D3FB0E@l00-bugdead-prods.de> Hi, I updated the GNUstep ports that are available for OpenBSD 4.1, containing the latest gnustep-make 2.0.1 and gnustep-base 1.15.0.[1] I created additional ports for Sope, mod_ngobjweb and OGo[2]. The ports are based on the trunk versions of sope and ogo. They all compile and install fine. After compiling and configuring, ogo did started successfully. but after trying to login, it crashed. It took me some while to not install stripped versions of it, to be able to debug the problem. There seems to be two problems: 1. in gnustep-base NSAutoreleasePool.m:404 2. in gnustep-base NSKeyValueCoding.m:350 commenting out these two lines and recompiling, then everything seems to work. I was able to login, search contacts, write mail, .... below the gdb stack traces from the crashes and exception: (gdb) bt #0 0x00000000 in ?? () #1 0x08284718 in -[NSAutoreleasePool emptyPool] (self=0x81e8b888, _cmd=0x282eba10) at NSAutoreleasePool.m:404 #2 0x08284492 in -[NSAutoreleasePool dealloc] (self=0x81e8b888, _cmd=0x282eba08) at NSAutoreleasePool.m:323 #3 0x08284447 in -[NSAutoreleasePool release] (self=0x81e8b888, _cmd=0x240b04b8) at NSAutoreleasePool.m:316 #4 0x040b59ae in -[LSDBFetchRelationCommand _executeInContext:] (self=0x8a28f808, _cmd=0x29979b80, _context=0x8b5a1208) at LSDBFetchRelationCommand.m:287 #5 0x09984a63 in -[LSFetchExtendedAttributesCommand _executeInContext:] (self=0x8a28f808, _cmd=0x240b0bc8, _context=0x8b5a1208) at LSFetchExtendedAttributesCommand.m:145 #6 0x040b75de in -[LSDBObjectBaseCommand primaryRunInContext:] (self=0x8a28f808, _cmd=0x240ae798, _context=0x8b5a1208) at LSDBObjectBaseCommand.m:186 #7 0x040add8c in -[LSBaseCommand runInContext:] (self=0x8a28f808, _cmd=0x240ae6f8, _context=0x8b5a1208) at LSBaseCommand.m:192 #8 0x040ad678 in LSCommandRunV (_ctx=0x8b5a1208, _factory=0x83ac3b08, _domain=0x2fa2df18, _command=0x2fa2df24) at LSBaseCommand.m:84 #9 0x0fa3108d in -[LSLoginAccountCommand _executeInContext:] (self=0x8b5a1808, _cmd=0x240b0bc8, _context=0x8b5a1208) at LSLoginAccountCommand.m:249 #10 0x040b75de in -[LSDBObjectBaseCommand primaryRunInContext:] (self=0x8b5a1808, _cmd=0x240ae798, _context=0x8b5a1208) at LSDBObjectBaseCommand.m:186 #11 0x040add8c in -[LSBaseCommand runInContext:] (self=0x8b5a1808, _cmd=0x240af6f0, _context=0x8b5a1208) at LSBaseCommand.m:192 #12 0x040b23ce in runCommand (self=0x8b5a1208, _command=0x8b5a1808) at LSCommandContext.m:870 #13 0x040b0957 in -[LSCommandContext runCommand:vargs:] (self=0x8b5a1208, _cmd=0x240b9a00, _command=0x240b9bf4, _va=0xcfbdc890) at LSCommandContext.m:457 ... (gdb) list NSAutoreleasePool.m:404 399 else 400 { 401 imps[hash] = [c methodForSelector: releaseSel]; 402 } 403 } 404 (imps[hash])(anObject, releaseSel); 405 } 406 _released_count -= released->count; 407 released->count = 0; 408 released = released->next; - (void) emptyPool { unsigned i; Class classes[16]; IMP imps[16]; for (i = 0; i < 16; i++) { classes[i] = 0; imps[i] = 0; } /* * Loop throught the deallocation code repeatedly ... since we deallocate * objects in the receiver while the receiver remains set as the current * autorelease pool ... so if any object which is being deallocated adds * any object to the current autorelease pool, we may need to release it * again. */ while (_child != nil || _released_count > 0) { volatile struct autorelease_array_list *released = _released_head; /* If there are NSAutoreleasePool below us in the stack of NSAutoreleasePools, then deallocate them also. The (only) way we could get in this situation (in correctly written programs, that don't release NSAutoreleasePools in weird ways), is if an exception threw us up the stack. */ if (_child != nil) { [_child dealloc]; } /* Take the object out of the released list just before releasing it, * so if we are doing "double_release_check"ing, then * autoreleaseCountForObject: won't find the object we are currently * releasing. */ while (released != 0) { id *objects = (id*)(released->objects); for (i = 0; i < released->count; i++) { id anObject = objects[i]; Class c = GSObjCClass(anObject); unsigned hash = (((unsigned)(uintptr_t)c) >> 3) & 0x0f; objects[i] = nil; if (classes[hash] != c) { classes[hash] = c; if (GSObjCIsInstance(anObject)) { imps[hash] = [c instanceMethodForSelector: releaseSel]; } else { imps[hash] = [c methodForSelector: releaseSel]; } } (imps[hash])(anObject, releaseSel); } _released_count -= released->count; released->count = 0; released = released->next; } } } - (void)_executeInContext:(id)_context { NSString *relKey; NSArray *rels; NSAutoreleasePool *pool; pool = [[NSAutoreleasePool alloc] init]; relKey = [self relationKey]; rels = [self _fetchRelations]; // TODO: move section to an own method if (![self isToMany] && (relKey != nil)) { NSString *srcKey, *destKey, *relKey; NSArray *objs; int i, cnt; srcKey = [self sourceKey]; destKey = [self destinationKey]; relKey = [self relationKey]; objs = [self object]; for (i = 0, cnt = [objs count]; i < cnt; i++) { id obj, pKey; int j, cnt2; obj = [objs objectAtIndex:i]; pKey = [obj valueForKey:srcKey]; for (j = 0, cnt2 = [rels count]; j < cnt2; j++) { NSNumber *fKey; id relObj; relObj = [rels objectAtIndex:j]; fKey = [relObj valueForKey:destKey]; if (![pKey isEqual:fKey]) continue; [obj takeValue:relObj forKey:relKey]; } } } if (relKey == nil) [self setReturnValue:rels]; [pool release]; pool = nil; } 2007-05-28 12:03:11.906 ogo-webui-1.1[25601] Note: using flat-array message notifications! [Switching to process 25601, thread 0x8b81b000] Breakpoint 1, -[NSException raise] (self=0x881e4148, _cmd=0x251b9020) at NSException.m:782 782 if (GSPrivateEnvironmentFlag("GNUSTEP_STACK_TRACE", NO) == YES Current language: auto; currently objective-c (gdb) bt #0 -[NSException raise] (self=0x881e4148, _cmd=0x251b9020) at NSException.m:782 #1 0x051b3ff9 in -[NSObject(KeyValueCoding) setValue:forUndefinedKey:] (self=0x86d58108, _cmd=0x251e0110, anObject=0x86d58528, aKey=0x881e40e8) at NSKeyValueCoding.m:350 #2 0x05269beb in GSObjCSetVal (self=0x86d58108, key=0xcfbf98a0 "misc", val=0x86d58528, sel=0x0, type=0x0, size=4, offset=-809527136) at GSObjCRuntime.m:1810 #3 0x051b320e in SetValueForKey (self=0x86d58108, anObject=0x86d58528, key=0xcfbf98a0 "misc", size=4) at NSKeyValueCoding.m:114 #4 0x051b3c0f in -[NSObject(KeyValueCoding) setValue:forKey:] (self=0x86d58108, _cmd=0x263a8fe8, anObject=0x86d58528, aKey=0x86d58128) at NSKeyValueCoding.m:288 #5 0x063efbf5 in _setValue (self=0x80f4ba08, _value=0x86d58528, root=0x8917f988) at WOKeyPathAssociation.m:912 #6 0x063efddd in -[WOKeyPathAssociation setValue:inComponent:] (self=0x80f4ba08, _cmd=0x26391790, _value=0x86d58528, _component=0x8917f988) at WOKeyPathAssociation.m:934 #7 0x063993d5 in WOComponent_syncToParent (self=0x83157588, _parent=0x8917f988) at WOComponent+Sync.m:174 #8 0x0639da12 in WOContext_leaveComponent (self=0x80644808, _component=0x83157588) at WOContext.m:444 #9 0x0639dc57 in -[WOContext leaveComponent:] (self=0x80644808, _cmd=0x263b09e0, _component=0x83157588) at WOContext.m:469 (gdb) list NSKeyValueCoding.m:350 345 (aKey ? (id)aKey : (id)@"(nil)"), @"NSUnknownUserInfoKey", 346 nil]; 347 exp = [NSException exceptionWithName: NSInvalidArgumentException 348 reason: @"Unable to set nil value for key" 349 userInfo: dict]; 350 [exp raise]; 351 } 352 353 354 - (void) setValuesForKeysWithDictionary: (NSDictionary*)aDictionary - (void) setValue: (id)anObject forUndefinedKey: (NSString*)aKey { NSDictionary *dict; NSException *exp; static IMP o = 0; /* Backward compatibility hack */ if (o == 0) { o = [NSObject instanceMethodForSelector: @selector(handleTakeValue:forUnboundKey:)]; } if ([self methodForSelector: @selector(handleTakeValue:forUnboundKey:)] != o) { [self handleTakeValue: anObject forUnboundKey: aKey]; return; } dict = [NSDictionary dictionaryWithObjectsAndKeys: (anObject ? (id)anObject : (id)@"(nil)"), @"NSTargetObjectUserInfoKey", (aKey ? (id)aKey : (id)@"(nil)"), @"NSUnknownUserInfoKey", nil]; exp = [NSException exceptionWithName: NSInvalidArgumentException reason: @"Unable to set nil value for key" userInfo: dict]; [exp raise]; } well, I doubt that commenting out the two mentioned lines above is the correct solution, but as I do not really understood the memory management yet, I have no idea for a better solution. I also have no clue, whether this is gnustep-base fault, or whether there is sth. incorrectly usesd in sope/OGo. Any hint would be appreciated. kind regards Sebastian [1] http://docs.opengroupware.org/Members/buzzdee/openbsd/GNUstep%20ports%20for%20OpenBSD/document_view [2] http://docs.opengroupware.org/Members/buzzdee/openbsd/OGo%20ports%20for%20OpenBSD/document_view From gnustep-port@opengroupware.org Mon May 28 11:51:18 2007 From: gnustep-port@opengroupware.org (Helge Hess) Date: Mon, 28 May 2007 12:51:18 +0200 Subject: [OGo-GNUstep-Port] experiences with OGo and gunstep-base on OpenBSD In-Reply-To: <20070528102105.9773D3FB0E@l00-bugdead-prods.de> References: <20070528102105.9773D3FB0E@l00-bugdead-prods.de> Message-ID: <054921F2-7C71-4CA3-89CF-DC75CC4F8D0E@opengroupware.org> On May 28, 2007, at 12:21, Sebastian Reitenbach wrote: > There seems to be two problems: > 1. in gnustep-base NSAutoreleasePool.m:404 Thats most likely a memory "leak" caused by a difference the way some objects are autoreleased. I recently walked over a similiar thing on MacOS. Kinda hard to debug, would need detailed investigation. I had a look over the code section of LSDBFetchRelationCommand but couldn't see anything obvious. > 2. in gnustep-base NSKeyValueCoding.m:350 Not sure what the exact problem is here. Sure, KVC raises exceptions if it can't resolve a key on an object. So we need to know the object/ key which is missing ... This is a difference between lF and GNUstep/Cocoa, we do not raise exceptions but just return nil for unknown keys. Greets, Helge -- Helge Hess http://www.helgehess.eu/ From gnustep-port@opengroupware.org Mon May 28 12:15:06 2007 From: gnustep-port@opengroupware.org (Sebastian Reitenbach) Date: Mon, 28 May 2007 13:15:06 +0200 Subject: [OGo-GNUstep-Port] experiences with OGo and gunstep-base on OpenBSD Message-ID: <200705281115.l4SBF6Rn024768@defiant.ds9> Hi, gnustep-port@opengroupware.org wrote: > On May 28, 2007, at 12:21, Sebastian Reitenbach wrote: > > There seems to be two problems: > > 1. in gnustep-base NSAutoreleasePool.m:404 > > Thats most likely a memory "leak" caused by a difference the way some > objects are autoreleased. I recently walked over a similiar thing on > MacOS. > Kinda hard to debug, would need detailed investigation. I had a look > over the code section of LSDBFetchRelationCommand but couldn't see > anything obvious. I first commented out a lot of [pool release]; in sope and ogo, to get it working, so it is not only in LSDBFetchRelationCommand. > > > 2. in gnustep-base NSKeyValueCoding.m:350 > > Not sure what the exact problem is here. Sure, KVC raises exceptions > if it can't resolve a key on an object. So we need to know the object/ > key which is missing ... May 28 13:03:36 ogo-webui-1.1 [29608]: (73A873A801465AB708) user sebastia logged in. May 28 13:03:36 ogo-webui-1.1 [29608]: [ERROR] (73A873A801465AB708) did not find dockable page: 'Registration' May 28 13:03:36 ogo-webui-1.1 [29608]: SkyDock did not find dockable page Registration 2007-05-28 13:03:37.635 ogo-webui-1.1[29608] Note: using flat-array message notifications! 2007-05-28 13:03:38.423 ogo-webui-1.1[29608] dict: {NSTargetObjectUserInfoKey = Misc; NSUnknownUserInfoKey = misc; } 2007-05-28 13:03:38.427 ogo-webui-1.1[29608] dict: {NSTargetObjectUserInfoKey = Misc; NSUnknownUserInfoKey = misc; } 2007-05-28 13:03:38.563 ogo-webui-1.1[29608] File NSData.m: 167. In readContentsOfFile Open (/var/ogo/documents/10006.txt) attempt failed - No such file or directory 2007-05-28 13:03:38.720 ogo-webui-1.1[29608] dict: {NSTargetObjectUserInfoKey = 0; NSUnknownUserInfoKey = news_blocksize; } 10.0.0.9 - - [28/May/2007:13:03:38 GMT] "POST /OpenGroupware.woa/x/login?da=&o=1180350198 HTTP/1.1" 200 3652/122 3.368 20038 81% - 2007-05-28 13:04:07.417 ogo-webui-1.1[29608] dict: {NSTargetObjectUserInfoKey = Misc; NSUnknownUserInfoKey = misc; } 2007-05-28 13:04:07.419 ogo-webui-1.1[29608] dict: {NSTargetObjectUserInfoKey = Misc; NSUnknownUserInfoKey = misc; } 10.0.0.9 - - [28/May/2007:13:04:39 GMT] "GET /OpenGroupware.woa/x/dock?woinst=29608&wosid=73A873A801465AB708&cid=003465ab7077e82fc08&page=LSWImapMails HTTP/1.1" 200 18129/0 32.648 367603 95% - 2007-05-28 13:04:48.122 ogo-webui-1.1[29608] dict: {NSTargetObjectUserInfoKey = Misc; NSUnknownUserInfoKey = misc; } 2007-05-28 13:04:48.123 ogo-webui-1.1[29608] dict: {NSTargetObjectUserInfoKey = Misc; NSUnknownUserInfoKey = misc; } 2007-05-28 13:04:48.331 ogo-webui-1.1[29608] dict: {NSTargetObjectUserInfoKey = 20; NSUnknownUserInfoKey = address_blocksize; } 10.0.0.9 - - [28/May/2007:13:04:48 GMT] "GET /OpenGroupware.woa/x/dock?woinst=29608&wosid=73A873A801465AB708&cid=004465ab7268862cc08&page=LSWPersons HTTP/1.1" 200 4461/0 0.644 34705 87% - 2007-05-28 13:05:19.944 ogo-webui-1.1[29608] dict: {NSTargetObjectUserInfoKey = Misc; NSUnknownUserInfoKey = misc; } 2007-05-28 13:05:19.945 ogo-webui-1.1[29608] dict: {NSTargetObjectUserInfoKey = Misc; NSUnknownUserInfoKey = misc; } 10.0.0.9 - - [28/May/2007:13:05:20 GMT] "GET /OpenGroupware.woa/x/dock?woinst=29608&wosid=73A873A801465AB708&cid=005465ab74f8b4bf008&page=LSWImapMails HTTP/1.1" 200 18200/0 1.147 367872 95% - 2007-05-28 13:05:31.825 ogo-webui-1.1[29608] dict: {NSTargetObjectUserInfoKey = Misc; NSUnknownUserInfoKey = misc; } 2007-05-28 13:05:31.826 ogo-webui-1.1[29608] dict: {NSTargetObjectUserInfoKey = Misc; NSUnknownUserInfoKey = misc; } 10.0.0.9 - - [28/May/2007:13:05:32 GMT] "GET /OpenGroupware.woa/wo/73A873A801465AB708/006465ab76f81368c08.0.17.1.1.1.3.b.mail.1.1.1.1.1.1.1.1.0.0.5.3.20.end.1.1.1 HTTP/1.1" 200 12648/0 2.282 267741 95% - 2007-05-28 13:05:37.486 ogo-webui-1.1[29608] dict: {NSTargetObjectUserInfoKey = Misc; NSUnknownUserInfoKey = misc; } 2007-05-28 13:05:37.487 ogo-webui-1.1[29608] dict: {NSTargetObjectUserInfoKey = Misc; NSUnknownUserInfoKey = misc; } 10.0.0.9 - - [28/May/2007:13:05:37 GMT] "GET /OpenGroupware.woa/x/SkyImapMailActions/viewImapMail?listName=MailList&cid=007465ab77a8039e008&wosid=73A873A801465AB708&woinst=29608&url=imap%3A%2F%2Fcommunicator.ds9%2FINBOX%2FML%2FSW%2Fogo-gnustep-port%2F2 HTTP/1.1" 200 5830/0 1.128 48484 87% - 2007-05-28 13:05:54.885 ogo-webui-1.1[29608] File NSData.m: 167. In readContentsOfFile Open (/var/ogo/GNUstep/config/MailRestrictions.plist) attempt failed - No such file or directory 2007-05-28 13:05:55.307 ogo-webui-1.1[29608] dict: {NSTargetObjectUserInfoKey = Misc; NSUnknownUserInfoKey = misc; } 2007-05-28 13:05:55.308 ogo-webui-1.1[29608] dict: {NSTargetObjectUserInfoKey = Misc; NSUnknownUserInfoKey = misc; } 2007-05-28 13:05:55.372 ogo-webui-1.1[29608] dict: {NSTargetObjectUserInfoKey = 80; NSUnknownUserInfoKey = mail_editor_text_columns; } 2007-05-28 13:05:55.372 ogo-webui-1.1[29608] dict: {NSTargetObjectUserInfoKey = 20; NSUnknownUserInfoKey = mail_editor_text_rows; } 2007-05-28 13:05:55.398 ogo-webui-1.1[29608] dict: {NSTargetObjectUserInfoKey = 80; NSUnknownUserInfoKey = mail_editor_text_columns; } 2007-05-28 13:05:55.398 ogo-webui-1.1[29608] dict: {NSTargetObjectUserInfoKey = 20; NSUnknownUserInfoKey = mail_editor_text_rows; } above the contents of the dict Dictionary before the commented out exception. The first occurence, while login, would have raised the exception, code below. - (void) setValue: (id)anObject forUndefinedKey: (NSString*)aKey { NSDictionary *dict; NSException *exp; static IMP o = 0; /* Backward compatibility hack */ if (o == 0) { o = [NSObject instanceMethodForSelector: @selector(handleTakeValue:forUnboundKey:)]; } if ([self methodForSelector: @selector(handleTakeValue:forUnboundKey:)] != o) { [self handleTakeValue: anObject forUnboundKey: aKey]; return; } dict = [NSDictionary dictionaryWithObjectsAndKeys: (anObject ? (id)anObject : (id)@"(nil)"), @"NSTargetObjectUserInfoKey", (aKey ? (id)aKey : (id)@"(nil)"), @"NSUnknownUserInfoKey", nil]; NSLog(@"dict: %@", dict); // exp = [NSException exceptionWithName: NSInvalidArgumentException // reason: @"Unable to set nil value for key" // userInfo: dict]; // [exp raise]; } > > This is a difference between lF and GNUstep/Cocoa, we do not raise > exceptions but just return nil for unknown keys. so in Cocoa it would raise an exception here too? or what happens with these key value pairs there? I've no access to a mac machine to take a look. > > Greets, > Helge kind regards Sebastian From gnustep-port@opengroupware.org Mon May 28 13:32:00 2007 From: gnustep-port@opengroupware.org (Helge Hess) Date: Mon, 28 May 2007 14:32:00 +0200 Subject: [OGo-GNUstep-Port] experiences with OGo and gunstep-base on OpenBSD In-Reply-To: <200705281115.l4SBF6Rn024768@defiant.ds9> References: <200705281115.l4SBF6Rn024768@defiant.ds9> Message-ID: <813A5349-8864-4A9C-870B-6369338CACBF@opengroupware.org> On May 28, 2007, at 13:15, Sebastian Reitenbach wrote: > I first commented out a lot of [pool release]; in sope and ogo, to > get it > working, so it is not only in LSDBFetchRelationCommand. Well, that might not be the best strategy (or none at all) ... > 2007-05-28 13:03:38.423 ogo-webui-1.1[29608] dict: > {NSTargetObjectUserInfoKey > = Misc; NSUnknownUserInfoKey = misc; } Ok, so its trying to set key 'misc' to 'Misc', but on what object. You need to log 'self' and '[self class]'. > 2007-05-28 13:05:54.885 ogo-webui-1.1[29608] File NSData.m: 167. In > readContentsOfFile Open (/var/ogo/GNUstep/config/ > MailRestrictions.plist) > attempt failed - No such file or directory Not sure why GNUstep logs that, I would say its a (minor) bug. If NSData can't read a file it will return nil, so the calling code knows. (maybe errors other than 'No such file' should be logged) > // exp = [NSException exceptionWithName: NSInvalidArgumentException > // reason: @"Unable to set nil value > for key" > // userInfo: dict]; > // [exp raise]; Well, maybe its due to the way the exception is raised. >> This is a difference between lF and GNUstep/Cocoa, we do not raise >> exceptions but just return nil for unknown keys. > so in Cocoa it would raise an exception here too? or what happens > with these > key value pairs there? I've no access to a mac machine to take a look. Since OGo works mostly fine on MacOS, I would say no :-) Greets, Helge -- Helge Hess http://www.helgehess.eu/ From gnustep-port@opengroupware.org Mon May 28 16:01:46 2007 From: gnustep-port@opengroupware.org (Sebastian Reitenbach) Date: Mon, 28 May 2007 17:01:46 +0200 Subject: [OGo-GNUstep-Port] experiences with OGo and gunstep-base on OpenBSD Message-ID: <200705281501.l4SF1lAs022426@defiant.ds9> Hi, > > > 2007-05-28 13:03:38.423 ogo-webui-1.1[29608] dict: > > {NSTargetObjectUserInfoKey > > = Misc; NSUnknownUserInfoKey = misc; } > > Ok, so its trying to set key 'misc' to 'Misc', but on what object. > You need to log 'self' and '[self class]'. > 2007-05-28 16:34:45.845 ogo-webui-1.1[5335] dict: {NSTargetObjectUserInfoKey = Verschiedenes; NSUnknownUserInfoKey = misc; }, [self class]: LSWLabelHandler, [self] 2007-05-28 16:34:45.845 ogo-webui-1.1[5335] dict: {NSTargetObjectUserInfoKey = Verschiedenes; NSUnknownUserInfoKey = misc; }, [self class]: LSWLabelHandler, [self] 2007-05-28 16:34:45.847 ogo-webui-1.1[5335] dict: {NSTargetObjectUserInfoKey = 20; NSUnknownUserInfoKey = address_blocksize; }, [self class]: LSUserDefaults, [self] 2007-05-28 16:37:50.782 ogo-webui-1.1[5335] dict: {NSTargetObjectUserInfoKey = Allgemein; NSUnknownUserInfoKey = GeneralDefaults; }, [self class]: LSWLabelHandler, [self] 2007-05-28 16:37:50.776 ogo-webui-1.1[5335] dict: {NSTargetObjectUserInfoKey = Clipboard; NSUnknownUserInfoKey = Clipboard; }, [self class]: LSWLabelHandler, [self] 2007-05-28 16:42:40.007 ogo-webui-1.1[6513] dict: {NSTargetObjectUserInfoKey = 80; NSUnknownUserInfoKey = mail_editor_text_columns; }, [self class]: LSUserDefaults, [self] 2007-05-28 16:42:40.007 ogo-webui-1.1[6513] dict: {NSTargetObjectUserInfoKey = 20; NSUnknownUserInfoKey = mail_editor_text_rows; }, [self class]: LSUserDefaults, [self] 2007-05-28 16:42:40.033 ogo-webui-1.1[6513] dict: {NSTargetObjectUserInfoKey = 80; NSUnknownUserInfoKey = mail_editor_text_columns; }, [self class]: LSUserDefaults, [self] 2007-05-28 16:42:40.033 ogo-webui-1.1[6513] dict: {NSTargetObjectUserInfoKey = 20; NSUnknownUserInfoKey = mail_editor_text_rows; }, [self class]: LSUserDefaults, [self] I changed the UI language to German. Don't know what's so different with the misc label than other labels. But it seems it might throw an exception with some user Defaults. > > 2007-05-28 13:05:54.885 ogo-webui-1.1[29608] File NSData.m: 167. In > > readContentsOfFile Open (/var/ogo/GNUstep/config/ > > MailRestrictions.plist) > > attempt failed - No such file or directory > > Not sure why GNUstep logs that, I would say its a (minor) bug. If > NSData can't read a file it will return nil, so the calling code > knows. (maybe errors other than 'No such file' should be logged) > > > // exp = [NSException exceptionWithName: NSInvalidArgumentException > > // reason: @"Unable to set nil value > > for key" > > // userInfo: dict]; > > // [exp raise]; > > Well, maybe its due to the way the exception is raised. don't know that much about the exception handling, so what does this make it so special? > >> This is a difference between lF and GNUstep/Cocoa, we do not raise > >> exceptions but just return nil for unknown keys. > > so in Cocoa it would raise an exception here too? or what happens > > with these > > key value pairs there? I've no access to a mac machine to take a look. > > Since OGo works mostly fine on MacOS, I would say no :-) so if I understand correct, in gnustep-base sth. weird is going on there that somehow prevents ogo from running. Don't understand why they make an exception there. On the other side, other labels and user Defaults seem to work without problem. I just recognized, some Defaults look a bit "strange" in my eyes, especially the BOOL and Integer values: cat /var/ogo/documents/10100.defaults ... SkyMaxFavoritesCount = <*I5>; SkyMaxNavLabelLength = <*I32>; is_cc_collapsed = <*BY>; is_to_collapsed = <*BY>; ... SkyDockablePagesOrdering = ( News, Persons, Enterprises, Projects, Scheduler2, Jobs, Imap ); MailListSortHeader/INBOX = sendDate; kind regards Sebastian From gnustep-port@opengroupware.org Mon May 28 17:09:13 2007 From: gnustep-port@opengroupware.org (Helge Hess) Date: Mon, 28 May 2007 18:09:13 +0200 Subject: [OGo-GNUstep-Port] experiences with OGo and gunstep-base on OpenBSD In-Reply-To: <200705281501.l4SF1lAs022426@defiant.ds9> References: <200705281501.l4SF1lAs022426@defiant.ds9> Message-ID: <6546B645-087B-4177-A34A-8478D6B44B4C@opengroupware.org> On May 28, 2007, at 17:01, Sebastian Reitenbach wrote: > 2007-05-28 16:34:45.845 ogo-webui-1.1[5335] dict: > {NSTargetObjectUserInfoKey = > Verschiedenes; NSUnknownUserInfoKey = misc; }, [self class]: > LSWLabelHandler, > [self] OK, I think I found the reason. Its because LSWLabelHandler doesn't implement -setValue:forKey: but the older: -takeValue:forKey: On Cocoa, if -setValue:forKey: is missing, Cocoa will call - takeValue:forKey:. On GNUstep it just fails. Anyways, I've added the new method in r1957. Greets, Helge -- Helge Hess http://www.helgehess.eu/ From gnustep-port@opengroupware.org Mon May 28 19:43:06 2007 From: gnustep-port@opengroupware.org (Sebastian Reitenbach) Date: Mon, 28 May 2007 20:43:06 +0200 Subject: [OGo-GNUstep-Port] experiences with OGo and gunstep-base on OpenBSD Message-ID: <20070528184306.850AB3FBDE@l00-bugdead-prods.de> Hi Helge, gnustep-port@opengroupware.org wrote: > On May 28, 2007, at 17:01, Sebastian Reitenbach wrote: > > 2007-05-28 16:34:45.845 ogo-webui-1.1[5335] dict: > > {NSTargetObjectUserInfoKey = > > Verschiedenes; NSUnknownUserInfoKey = misc; }, [self class]: > > LSWLabelHandler, > > [self] > > OK, I think I found the reason. Its because LSWLabelHandler doesn't > implement > > -setValue:forKey: > > but the older: > > -takeValue:forKey: > > On Cocoa, if -setValue:forKey: is missing, Cocoa will call - > takeValue:forKey:. On GNUstep it just fails. > > Anyways, I've added the new method in r1957. > thanks a lot, I tested it, but unfortunately it still runs into the exception: May 28 19:33:46 ogo-webui-1.1 [24882]: (6132613201465B127A) user sebastia logged in. 2007-05-28 19:33:48.452 ogo-webui-1.1[24882] Note: using flat-array message notifications! 2007-05-28 19:33:49.659 ogo-webui-1.1[24882] dict: {NSTargetObjectUserInfoKey = Verschiedenes; NSUnknownUserInfoKey = misc; }, [self class]: LSWLabelHandler, [self] [Switching to process 24882, thread 0x82588000] Breakpoint 1, -[NSException raise] (self=0x8748e008, _cmd=0x2fffd040) at NSException.m:782 782 if (GSPrivateEnvironmentFlag("GNUSTEP_STACK_TRACE", NO) == YES Current language: auto; currently objective-c (gdb) bt #0 -[NSException raise] (self=0x8748e008, _cmd=0x2fffd040) at NSException.m:782 #1 0x0fff8077 in -[NSObject(KeyValueCoding) setValue:forUndefinedKey:] (self=0x891e4de8, _cmd=0x30024130, anObject=0x810d3f08, aKey=0x8b6dcde8) at NSKeyValueCoding.m:351 #2 0x100adc6b in GSObjCSetVal (self=0x891e4de8, key=0xcfbefcc0 "misc", val=0x810d3f08, sel=0x0, type=0x0, size=4, offset=-809567040) at GSObjCRuntime.m:1810 #3 0x0fff722e in SetValueForKey (self=0x891e4de8, anObject=0x810d3f08, key=0xcfbefcc0 "misc", size=4) at NSKeyValueCoding.m:114 #4 0x0fff7c2f in -[NSObject(KeyValueCoding) setValue:forKey:] (self=0x891e4de8, _cmd=0x2d65dfe8, anObject=0x810d3f08, aKey=0x891e4e08) at NSKeyValueCoding.m:288 #5 0x0d6a4c35 in NGDecodeUrlFormParameters () from /usr/local/lib/libNGObjWeb.so.4.7.9 #6 0x0d6a4e1d in NGDecodeUrlFormParameters () from /usr/local/lib/libNGObjWeb.so.4.7.9 #7 0x0d64e415 in WOComponent_syncToParent () from /usr/local/lib/libNGObjWeb.so.4.7.9 #8 0x0d652a52 in WOContext_leaveComponent () from /usr/local/lib/libNGObjWeb.so.4.7.9 #9 0x0d652c97 in WOContext_leaveComponent () from /usr/local/lib/libNGObjWeb.so.4.7.9 ... kind regards Sebastian From gnustep-port@opengroupware.org Mon May 28 19:54:51 2007 From: gnustep-port@opengroupware.org (Helge Hess) Date: Mon, 28 May 2007 20:54:51 +0200 Subject: [OGo-GNUstep-Port] experiences with OGo and gunstep-base on OpenBSD In-Reply-To: <20070528184306.850AB3FBDE@l00-bugdead-prods.de> References: <20070528184306.850AB3FBDE@l00-bugdead-prods.de> Message-ID: <4F16075A-D7D8-40CD-9AE2-D41E2BA7820B@opengroupware.org> On May 28, 2007, at 20:43, Sebastian Reitenbach wrote: > thanks a lot, I tested it, but unfortunately it still runs into the > exception: Sorry, but I don't believe that you compiled/installed the new code :-) In GDB say break [LSWLabelHandler -setValue:forUndefinedKey:] (not sure about the exact syntax) As you can see in the backtrace the new method isn't called: ---snip--- #1 0x0fff8077 in -[NSObject(KeyValueCoding) setValue:forUndefinedKey:] (self=0x891e4de8, _cmd=0x30024130, anObject=0x810d3f08, aKey=0x8b6dcde8) at NSKeyValueCoding.m:351 #2 0x100adc6b in GSObjCSetVal (self=0x891e4de8, key=0xcfbefcc0 "misc", val=0x810d3f08, sel=0x0, type=0x0, size=4, offset=-809567040) at GSObjCRuntime.m:1810 ---snap--- What gnustep-base lib do you use? Greets, Helge -- Helge Hess http://www.helgehess.eu/ From gnustep-port@opengroupware.org Mon May 28 20:29:50 2007 From: gnustep-port@opengroupware.org (Sebastian Reitenbach) Date: Mon, 28 May 2007 21:29:50 +0200 Subject: [OGo-GNUstep-Port] experiences with OGo and gunstep-base on OpenBSD Message-ID: <20070528192950.7123D3FBF1@l00-bugdead-prods.de> gnustep-port@opengroupware.org wrote: > On May 28, 2007, at 20:43, Sebastian Reitenbach wrote: > > thanks a lot, I tested it, but unfortunately it still runs into the > > exception: > > Sorry, but I don't believe that you compiled/installed the new code :-) > but I'm sure I do: $ ldd /usr/local/sbin/ogo-webui-1.1 | grep OGoFound 08f19000 28f40000 rlib 0 1 0 /usr/local/lib/libOGoFoundation.so.5.3 # nm /usr/local/lib/libOGoFoundation.so.5.3.107 | grep Und 00031599 t _i_LSWLabelHandler__setValue_forUndefinedKey_ I added a NSLog statement in the method: #else /* use fallback methods on other Foundation libraries */ - (void)setValue:(id)_value forUndefinedKey:(NSString *)_key { NSLog(@"here in WebUI/OGoFoundation/LSWLabelHandler.m: setValue: %@ forUndefinedKey: %@", _value, _key); // cannot set values, ignore ... } #endif which I see on the console before it raises the exception: 2007-05-28 21:26:59.714 ogo-webui-1.1[9507] here in WebUI/OGoFoundation/LSWLabelHandler.m: setValue: Verschiedenes forUndefinedKey: misc > In GDB say > > break [LSWLabelHandler -setValue:forUndefinedKey:] > > (not sure about the exact syntax) unfortunately this does not work. kind regards Sebastian From gnustep-port@opengroupware.org Mon May 28 20:49:38 2007 From: gnustep-port@opengroupware.org (Sebastian Reitenbach) Date: Mon, 28 May 2007 21:49:38 +0200 Subject: [OGo-GNUstep-Port] experiences with OGo and gunstep-base on OpenBSD Message-ID: <20070528194939.1E0C53FC0D@l00-bugdead-prods.de> Hi, sorry, I use the new code, and it fixes the Label problem. The exception looked so much the same that I did not recognized in the first place. #0 -[NSException raise] (self=0x7c78e8c8, _cmd=0x24de3040) at NSException.m:782 #1 0x04dde0b9 in -[NSObject(KeyValueCoding) setValue:forUndefinedKey:] (self=0x8b66fa48, _cmd=0x24e0a158, anObject=0x7c9dae48, aKey=0x7c78e6c8) at NSKeyValueCoding.m:351 #2 0x04e93d21 in GSObjCSetVal (self=0x8b66fa48, key=0xcfbc0760 "news_blocksize", val=0x7c9dae48, sel=0x0, type=0x0, size=14, offset=-809760928) at GSObjCRuntime.m:1811 #3 0x04ddd270 in SetValueForKey (self=0x8b66fa48, anObject=0x7c9dae48, key=0xcfbc0760 "news_blocksize", size=14) at NSKeyValueCoding.m:114 #4 0x04dddc71 in -[NSObject(KeyValueCoding) setValue:forKey:] (self=0x8b66fa48, _cmd=0x207b9fe8, anObject=0x7c9dae48, aKey=0x7d239948) at NSKeyValueCoding.m:288 #5 0x00800c35 in NGDecodeUrlFormParameters () from /usr/local/lib/libNGObjWeb.so.4.7.9 #6 0x00800e1d in NGDecodeUrlFormParameters () from /usr/local/lib/libNGObjWeb.so.4.7.9 #7 0x007a7f9e in WOGetKVCValueUsingMethod () from /usr/local/lib/libNGObjWeb.so.4.7.9 #8 0x06903317 in -[SkyTableView syncToParent] (self=0x87d6c708, _cmd=0x268fd938) at SkyTableView.m:674 #9 0x0690364a in -[SkyTableView appendToResponse:inContext:] (self=0x87d6c708, _cmd=0x207acb00, _response=0x8a89e308, _ctx=0x7f959c08) at SkyTableView.m:709 #10 0x007d2bab in WOApplicationMain () from /usr/local/lib/libNGObjWeb.so.4.7.9 #11 0x00820fb1 in NGDecodeUrlFormParameters () from /usr/local/lib/libNGObjWeb.so.4.7.9 #12 0x0080fbfa in NGDecodeUrlFormParameters () from /usr/local/lib/libNGObjWeb.so.4.7.9 #13 0x007a8ce3 in WOGetKVCValueUsingMethod () from /usr/local/lib/libNGObjWeb.so.4.7.9 #14 0x069e4180 in -[OGoComponent appendToResponse:inContext:] (self=0x8a0a6708, _cmd=0x207acb00, _r=0x8a89e308, _ctx=0x7f959c08) at OGoComponent.m:132 #15 0x007d2bab in WOApplicationMain () from /usr/local/lib/libNGObjWeb.so.4.7.9 #16 0x00820fb1 in NGDecodeUrlFormParameters () from /usr/local/lib/libNGObjWeb.so.4.7.9 #17 0x00821f04 in NGDecodeUrlFormParameters () from /usr/local/lib/libNGObjWeb.so.4.7.9 #18 0x00820fb1 in NGDecodeUrlFormParameters () from /usr/local/lib/libNGObjWeb.so.4.7.9 ---Type to continue, or q to quit---Quit (gdb) list NSKeyValueCoding.m:351 346 nil]; 347 NSLog(@"dict: %@, [self class]: %@, [self] %@", dict, [self class], [self description]); 348 exp = [NSException exceptionWithName: NSInvalidArgumentException 349 reason: @"Unable to set nil value for key" 350 userInfo: dict]; 351 [exp raise]; 352 } 353 354 355 - (void) setValuesForKeysWithDictionary: (NSDictionary*)aDictionary The last NSLog output is: 2007-05-28 21:27:00.115 ogo-webui-1.1[9507] dict: {NSTargetObjectUserInfoKey = 0; NSUnknownUserInfoKey = news_blocksize; }, [self class]: LSUserDefaults, [self] kind regards Sebastian From gnustep-port@opengroupware.org Mon May 28 20:59:27 2007 From: gnustep-port@opengroupware.org (Helge Hess) Date: Mon, 28 May 2007 21:59:27 +0200 Subject: [OGo-GNUstep-Port] experiences with OGo and gunstep-base on OpenBSD In-Reply-To: <20070528192950.7123D3FBF1@l00-bugdead-prods.de> References: <20070528192950.7123D3FBF1@l00-bugdead-prods.de> Message-ID: <97BB7A65-25F2-4EA6-815C-4144C95E2337@opengroupware.org> On May 28, 2007, at 21:29, Sebastian Reitenbach wrote: > which I see on the console before it raises the exception: > 2007-05-28 21:26:59.714 ogo-webui-1.1[9507] here in > WebUI/OGoFoundation/LSWLabelHandler.m: setValue: Verschiedenes > forUndefinedKey: misc Then I have no idea. Why would it call the NSObject method in addition? Step through the method and see what happens ... Maybe break _i_LSWLabelHandler__setValue_forUndefinedKey_ works. Helge -- Helge Hess http://www.helgehess.eu/ From gnustep-port@opengroupware.org Mon May 28 21:22:43 2007 From: gnustep-port@opengroupware.org (Helge Hess) Date: Mon, 28 May 2007 22:22:43 +0200 Subject: [OGo-GNUstep-Port] experiences with OGo and gunstep-base on OpenBSD In-Reply-To: <20070528194939.1E0C53FC0D@l00-bugdead-prods.de> References: <20070528194939.1E0C53FC0D@l00-bugdead-prods.de> Message-ID: <0A07072A-0745-4E6C-8B58-51D7C66BE144@opengroupware.org> On May 28, 2007, at 21:49, Sebastian Reitenbach wrote: > 2007-05-28 21:27:00.115 ogo-webui-1.1[9507] dict: > {NSTargetObjectUserInfoKey > = 0; NSUnknownUserInfoKey = news_blocksize; }, [self class]: > LSUserDefaults, > [self] Possibly fixed in r1961. Probably more classes are to come ... Greets, Helge -- Helge Hess http://www.helgehess.eu/ From gnustep-port@opengroupware.org Mon May 28 21:26:19 2007 From: gnustep-port@opengroupware.org (Sebastian Reitenbach) Date: Mon, 28 May 2007 22:26:19 +0200 Subject: [OGo-GNUstep-Port] experiences with OGo and gunstep-base on OpenBSD Message-ID: <20070528202620.4DDC43FC03@l00-bugdead-prods.de> Hi, > Then I have no idea. Why would it call the NSObject method in > addition? Step through the method and see what happens ... > yes, as I said in the other mail, was my fault, the patch fixed the "misc" problem, but now sth. similar happens with the user defaults. > Maybe > break _i_LSWLabelHandler__setValue_forUndefinedKey_ > works. yes, that works, good to know. thanks Sebastian From gnustep-port@opengroupware.org Tue May 29 05:35:41 2007 From: gnustep-port@opengroupware.org (Sebastian Reitenbach) Date: Tue, 29 May 2007 06:35:41 +0200 Subject: [OGo-GNUstep-Port] experiences with OGo and gunstep-base on OpenBSD Message-ID: <20070529043542.0D6AD3FCE6@l00-bugdead-prods.de> Hi, gnustep-port@opengroupware.org wrote: > On May 28, 2007, at 21:49, Sebastian Reitenbach wrote: > > 2007-05-28 21:27:00.115 ogo-webui-1.1[9507] dict: > > {NSTargetObjectUserInfoKey > > = 0; NSUnknownUserInfoKey = news_blocksize; }, [self class]: > > LSUserDefaults, > > [self] > > Possibly fixed in r1961. Probably more classes are to come ... Thanks, it is fixed, now I can login. More exceptions in NSKeyValueCoding comes here: This exception happens when opening the preferences -> mail: May 29 06:23:23 ogo-webui-1.1 [31345]: [ERROR] SkyCollapsibleContent unable to set 'nil' for key: 'visibility' [Switching to process 31345, thread 0x8bb25000] Breakpoint 1, -[NSException raise] (self=0x86ac58c8, _cmd=0x2a650578) at NSException.m:782 782 if (GSPrivateEnvironmentFlag("GNUSTEP_STACK_TRACE", NO) == YES (gdb) bt #0 -[NSException raise] (self=0x86ac58c8, _cmd=0x2a650578) at NSException.m:782 #1 0x0a6304ca in +[NSException raise:format:arguments:] (self=0x2a650380, _cmd=0x2a650560, name=0x2a6506bc, format=0x2a656248, argList=0xcfbc7880 "�X�\206hX�\206\210�w\202HW�\206=�b*\210�w\202�x���\003c\n=�b*�Ph*") at NSException.m:753 #2 0x0a63041b in +[NSException raise:format:] (self=0x2a650380, _cmd=0x2a656070, name=0x2a6506bc, format=0x2a656248) at NSException.m:739 #3 0x0a650c1f in -[NSObject(KeyValueCoding) setNilValueForKey:] (self=0x8277ff88, _cmd=0x2a67d188, aKey=0x86ac5748) at NSKeyValueCoding.m:275 #4 0x0a706e5c in GSObjCSetVal (self=0x8277ff88, key=0xcfbc7950 "visibility", val=0x0, sel=0x82e6f690, type=0x85147156 "C8", size=10, offset=91545226) at GSObjCRuntime.m:1817 #5 0x0a651e2f in -[NSObject(KeyValueCoding) takeValue:forKey:] (self=0x8277ff88, _cmd=0x256ef770, anObject=0x0, aKey=0x7e01d508) at NSKeyValueCoding.m:595 #6 0x056f720a in WOComponent_syncFromParent () from /usr/local/lib/libNGObjWeb.so.4.7.9 #7 0x056fb9bf in WOContext_enterComponent () from /usr/local/lib/libNGObjWeb.so.4.7.9 #8 0x0571fb80 in WOApplicationMain () from /usr/local/lib/libNGObjWeb.so.4.7.9 #9 0x0576dfb1 in NGDecodeUrlFormParameters () from /usr/local/lib/libNGObjWeb.so.4.7.9 NSKeyValueCoding.m:275 is method: - (void) setNilValueForKey: (NSString*)aKey { static IMP o = 0; /* Backward compatibility hack */ if (o == 0) { o = [NSObject instanceMethodForSelector: @selector(unableToSetNilForKey:)]; } if ([self methodForSelector: @selector(unableToSetNilForKey:)] != o) { [self unableToSetNilForKey: aKey]; } [NSException raise: NSInvalidArgumentException format: @"%@ -- %@ 0x%x: Given nil value to set for key \"%@\"", NSStringFromSelector(_cmd), NSStringFromClass([self class]), self, aKey]; } ========================================================================= ========================================================================= 10.0.0.9 - - [29/May/2007:06:30:57 GMT] "POST /OpenGroupware.woa/x/login?da=&o=1180413050 HTTP/1.1" 200 3742/122 3.148 20207 81% - 2007-05-29 06:31:02.720 ogo-webui-1.1[22767] ERROR: missing bundle: OGoPalmDS (Palm stuff is not installed) (gdb) bt #0 -[NSException raise] (self=0x8480c3c8, _cmd=0x230af578) at NSException.m:782 #1 0x0308f4ca in +[NSException raise:format:arguments:] (self=0x230af380, _cmd=0x230af560, name=0x230af6a4, format=0x230c5394, argList=0xcfbec780 "\bG\203\213�Ǿ�\004") at NSException.m:753 #2 0x0308f41b in +[NSException raise:format:] (self=0x230af380, _cmd=0x230c4ba8, name=0x230af6a4, format=0x230c5394) at NSException.m:739 #3 0x03118f9c in -[NSString propertyList] (self=0x7ef395c8, _cmd=0x230ad458) at NSString.m:4492 #4 0x03086527 in -[NSDictionary initWithContentsOfFile:] (self=0x7da25948, _cmd=0x215c0cd0, path=0x7d6c7088) at NSDictionary.m:594 #5 0x015c46ff in +[SkyHolidayCalculator initialize] (self=0x215c0bc0, _cmd=0x230ce968) at SkyHolidayCalculator.m:95 #6 0x0bb58c0c in __objc_send_initialize (class=0x215c0bc0) at /usr/src/gnu/lib/libobjc/libobjc/sendmsg.c:324 #7 0x0bb58aa4 in __objc_init_install_dtable (receiver=0x215c0bc0, op=0x20e061a8) at /usr/src/gnu/lib/libobjc/libobjc/sendmsg.c:266 #8 0x0bb59a28 in objc_msg_lookup (receiver=0x215c0bc0, op=0x20e061a8) at /usr/src/gnu/lib/libobjc/libobjc/sendmsg.c:184 #9 0x00e0b0b4 in -[SkySchedulerPage _newHolidaysCalculator] (self=0x7f448408, _cmd=0x20e06278) at SkySchedulerPage.m:107 #10 0x00e0b879 in -[SkySchedulerPage init] (self=0x7f448408, _cmd=0x201f8de8) at SkySchedulerPage.m:177 below NSSTring.m the method with the exception: - (id) propertyList { NSData *data; id result = nil; NSPropertyListFormat format; NSString *error = nil; if ([self length] == 0) { return nil; } data = [self dataUsingEncoding: NSUTF8StringEncoding]; NSAssert(data, @"Couldn't get utf8 data from string."); result = [NSPropertyListSerialization propertyListFromData: data mutabilityOption: NSPropertyListMutableContainers format: &format errorDescription: &error]; if (result == nil) { [NSException raise: NSGenericException format: @"Parse failed - %@", error]; } return result; } kind regards From gnustep-port@opengroupware.org Tue May 29 05:40:26 2007 From: gnustep-port@opengroupware.org (Sebastian Reitenbach) Date: Tue, 29 May 2007 06:40:26 +0200 Subject: [OGo-GNUstep-Port] experiences with OGo and gunstep-base on OpenBSD Message-ID: <20070529044026.6D7713FC2C@l00-bugdead-prods.de> gnustep-port@opengroupware.org wrote: > Hi, > gnustep-port@opengroupware.org wrote: > > On May 28, 2007, at 21:49, Sebastian Reitenbach wrote: > > > 2007-05-28 21:27:00.115 ogo-webui-1.1[9507] dict: > > > {NSTargetObjectUserInfoKey > > > = 0; NSUnknownUserInfoKey = news_blocksize; }, [self class]: > > > LSUserDefaults, > > > [self] > > > > Possibly fixed in r1961. Probably more classes are to come ... > Thanks, it is fixed, now I can login. More exceptions in NSKeyValueCoding > comes here: > > This exception happens when opening the preferences -> mail: > > May 29 06:23:23 ogo-webui-1.1 [31345]: [ERROR] SkyCollapsibleContent unable > to set 'nil' for key: 'visibility' > [Switching to process 31345, thread 0x8bb25000] > > Breakpoint 1, -[NSException raise] (self=0x86ac58c8, _cmd=0x2a650578) at > NSException.m:782 > 782 if (GSPrivateEnvironmentFlag("GNUSTEP_STACK_TRACE", NO) == YES > (gdb) bt > #0 -[NSException raise] (self=0x86ac58c8, _cmd=0x2a650578) at > NSException.m:782 > #1 0x0a6304ca in +[NSException raise:format:arguments:] (self=0x2a650380, > _cmd=0x2a650560, name=0x2a6506bc, format=0x2a656248, > > argList=0xcfbc7880 > "�X�\206hX�\206\210�w\202HW� \206=�b*\210�w\202�x��� \003c\n=�b*�Ph*") > > at NSException.m:753 > #2 0x0a63041b in +[NSException raise:format:] (self=0x2a650380, > _cmd=0x2a656070, name=0x2a6506bc, format=0x2a656248) at NSException.m:739 > #3 0x0a650c1f in -[NSObject(KeyValueCoding) setNilValueForKey:] > (self=0x8277ff88, _cmd=0x2a67d188, aKey=0x86ac5748) at > NSKeyValueCoding.m:275 > #4 0x0a706e5c in GSObjCSetVal (self=0x8277ff88, > key=0xcfbc7950 "visibility", val=0x0, sel=0x82e6f690, type=0x85147156 "C8", > size=10, offset=91545226) at GSObjCRuntime.m:1817 > #5 0x0a651e2f in -[NSObject(KeyValueCoding) takeValue:forKey:] > (self=0x8277ff88, _cmd=0x256ef770, anObject=0x0, aKey=0x7e01d508) at > NSKeyValueCoding.m:595 > #6 0x056f720a in WOComponent_syncFromParent () > from /usr/local/lib/libNGObjWeb.so.4.7.9 > #7 0x056fb9bf in WOContext_enterComponent () > from /usr/local/lib/libNGObjWeb.so.4.7.9 > #8 0x0571fb80 in WOApplicationMain () > from /usr/local/lib/libNGObjWeb.so.4.7.9 > #9 0x0576dfb1 in NGDecodeUrlFormParameters () > from /usr/local/lib/libNGObjWeb.so.4.7.9 > > > NSKeyValueCoding.m:275 is method: > > - (void) setNilValueForKey: (NSString*)aKey > { > static IMP o = 0; > > /* Backward compatibility hack */ > if (o == 0) > { > o = [NSObject instanceMethodForSelector: > @selector(unableToSetNilForKey:)]; > } > if ([self methodForSelector: @selector(unableToSetNilForKey:)] != o) > { > [self unableToSetNilForKey: aKey]; > } > > [NSException raise: NSInvalidArgumentException > format: @"%@ -- %@ 0x%x: Given nil value to set for key > \"%@\"", > NSStringFromSelector(_cmd), NSStringFromClass([self class]), self, > aKey]; > } > > > ========================================================================= > ========================================================================= > 10.0.0.9 - - [29/May/2007:06:30:57 > GMT] "POST /OpenGroupware.woa/x/login?da=&o=1180413050 HTTP/1.1" 200 > 3742/122 3.148 20207 81% - > 2007-05-29 06:31:02.720 ogo-webui-1.1[22767] ERROR: missing bundle: > OGoPalmDS > > (Palm stuff is not installed) > > (gdb) bt > #0 -[NSException raise] (self=0x8480c3c8, _cmd=0x230af578) at > NSException.m:782 > #1 0x0308f4ca in +[NSException raise:format:arguments:] (self=0x230af380, > _cmd=0x230af560, name=0x230af6a4, format=0x230c5394, > argList=0xcfbec780 "\bG\203\213�Ǿ�\004") > at NSException.m:753 > #2 0x0308f41b in +[NSException raise:format:] (self=0x230af380, > _cmd=0x230c4ba8, name=0x230af6a4, format=0x230c5394) at NSException.m:739 > #3 0x03118f9c in -[NSString propertyList] (self=0x7ef395c8, > _cmd=0x230ad458) at NSString.m:4492 > #4 0x03086527 in -[NSDictionary initWithContentsOfFile:] (self=0x7da25948, > _cmd=0x215c0cd0, path=0x7d6c7088) at NSDictionary.m:594 > #5 0x015c46ff in +[SkyHolidayCalculator initialize] (self=0x215c0bc0, > _cmd=0x230ce968) at SkyHolidayCalculator.m:95 > #6 0x0bb58c0c in __objc_send_initialize (class=0x215c0bc0) > at /usr/src/gnu/lib/libobjc/libobjc/sendmsg.c:324 > #7 0x0bb58aa4 in __objc_init_install_dtable (receiver=0x215c0bc0, > op=0x20e061a8) at /usr/src/gnu/lib/libobjc/libobjc/sendmsg.c:266 > #8 0x0bb59a28 in objc_msg_lookup (receiver=0x215c0bc0, op=0x20e061a8) > at /usr/src/gnu/lib/libobjc/libobjc/sendmsg.c:184 > #9 0x00e0b0b4 in -[SkySchedulerPage _newHolidaysCalculator] > (self=0x7f448408, _cmd=0x20e06278) at SkySchedulerPage.m:107 > #10 0x00e0b879 in -[SkySchedulerPage init] (self=0x7f448408, > _cmd=0x201f8de8) at SkySchedulerPage.m:177 > > > below NSSTring.m the method with the exception: > - (id) propertyList > { > NSData *data; > id result = nil; > NSPropertyListFormat format; > NSString *error = nil; > > if ([self length] == 0) > { > return nil; > } > data = [self dataUsingEncoding: NSUTF8StringEncoding]; > NSAssert(data, @"Couldn't get utf8 data from string."); > > result = [NSPropertyListSerialization > propertyListFromData: data > mutabilityOption: NSPropertyListMutableContainers > format: &format > errorDescription: &error]; > > if (result == nil) > { > [NSException raise: NSGenericException > format: @"Parse failed - %@", error]; > } > return result; > } > After the exception, it continues and runs, until it segfaults: (gdb) c Continuing. 2007-05-29 06:36:02.804 ogo-webui-1.1[22767] File NSDictionary.m: 609. In [GSDictionary -initWithContentsOfFile:] Contents of file '/usr/local/share/opengroupware.org-1.1/Holidays.plist' does not contain a dictionary 2007-05-29 06:36:02.805 ogo-webui-1.1[22767] WARNING: could not load holiday configuration: '/usr/local/share/opengroupware.org-1.1/Holidays.plist' 2007-05-29 06:36:03.334 ogo-webui-1.1[22767] here in SetValueForKey!!!!!!! 2007-05-29 06:36:03.334 ogo-webui-1.1[22767] GSObjCSetVal(self , key misc, anObject Verschiedenes, sel (nil), type (nil), size 4, off -809582224) 2007-05-29 06:36:03.334 ogo-webui-1.1[22767] here in Source/Additions/GSObjCRuntime.m: I am going to do: [self setValue: val forUndefinedKey: [NSString stringWithUTF8String: key]], where self is LSWLabelHandler, aKey is misc 2007-05-29 06:36:03.335 ogo-webui-1.1[22767] val: Verschiedenes [val class] GSCInlineString 2007-05-29 06:36:03.335 ogo-webui-1.1[22767] here in SetValueForKey!!!!!!! 2007-05-29 06:36:03.335 ogo-webui-1.1[22767] GSObjCSetVal(self , key misc, anObject Verschiedenes, sel (nil), type (nil), size 4, off -809580832) 2007-05-29 06:36:03.336 ogo-webui-1.1[22767] here in Source/Additions/GSObjCRuntime.m: I am going to do: [self setValue: val forUndefinedKey: [NSString stringWithUTF8String: key]], where self is LSWLabelHandler, aKey is misc 2007-05-29 06:36:03.336 ogo-webui-1.1[22767] val: Verschiedenes [val class] GSCInlineString 2007-05-29 06:36:03.397 ogo-webui-1.1[22767] here in SetValueForKey!!!!!!! Program received signal SIGSEGV, Segmentation fault. objc_msg_lookup (receiver=0x80f351f0, op=0x2309adb8) at sarray.h:160 160 sarray.h: No such file or directory. in sarray.h Current language: auto; currently c (gdb) bt #0 objc_msg_lookup (receiver=0x80f351f0, op=0x2309adb8) at sarray.h:160 #1 0x03004522 in GSPrivateFormat (s=0xcfbebba0, format=0xcfbeb3a0, ap=0xcfbec4d4 "\b\204D\177Pž�H\213�\212�Q�\200", locale=0x0) at GSFormat.m:1862 #2 0x03018090 in -[GSPlaceholderString initWithFormat:locale:arguments:] (self=0x82b08a78, _cmd=0x230c4ca0, format=0x8a531388, locale=0x0, argList=0xcfbec4d4 "\b\204D\177Pž�H\213�\212�Q�\200") at GSString.m:716 #3 0x0311058b in -[NSString initWithFormat:arguments:] (self=0x82b08a78, _cmd=0x230dbc98, format=0x8a531388, argList=0xcfbec4d4 "\b\204D\177Pž�H\213�\212�Q�\200") at NSString.m:1047 #4 0x0316191d in +[NSString(GSCategories) stringWithFormat:arguments:] (self=0x230c4b40, _cmd=0x230b6418, format=0x8a531388, argList=0xcfbec4d4 "\b\204D\177Pž�H\213�\212�Q�\200") at GSCategories.m:1100 #5 0x030b6600 in NSLogv (format=0x8a531388, args=0xcfbec4d4 "\b\204D\177Pž�H\213�\212�Q�\200") at NSLog.m:346 #6 0x030b6246 in NSLog (format=0x230b51b8) at NSLog.m:253 #7 0x030af2a4 in SetValueForKey (self=0x7f448408, anObject=0x8aa18b48, key=0xcfbec550 "fetchSpecification", size=18) at NSKeyValueCoding.m:114 #8 0x030afcc5 in -[NSObject(KeyValueCoding) setValue:forKey:] (self=0x7f448408, _cmd=0x20210fe8, anObject=0x8aa18b48, aKey=0x85be75a8) at NSKeyValueCoding.m:289 #9 0x00257c35 in NGDecodeUrlFormParameters () from /usr/local/lib/libNGObjWeb.so.4.7.9 #10 0x00257e1d in NGDecodeUrlFormParameters () from /usr/local/lib/libNGObjWeb.so.4.7.9 #11 0x001fef9e in WOGetKVCValueUsingMethod () from /usr/local/lib/libNGObjWeb.so.4.7.9 kind regards Sebastian From gnustep-port@opengroupware.org Tue May 29 05:49:35 2007 From: gnustep-port@opengroupware.org (Sebastian Reitenbach) Date: Tue, 29 May 2007 06:49:35 +0200 Subject: [OGo-GNUstep-Port] experiences with OGo and gunstep-base on OpenBSD Message-ID: <20070529044935.8DFA63FCFF@l00-bugdead-prods.de> gnustep-port@opengroupware.org wrote: > gnustep-port@opengroupware.org wrote: > > Hi, > > gnustep-port@opengroupware.org wrote: > > > On May 28, 2007, at 21:49, Sebastian Reitenbach wrote: > > > > 2007-05-28 21:27:00.115 ogo-webui-1.1[9507] dict: > > > > {NSTargetObjectUserInfoKey > > > > = 0; NSUnknownUserInfoKey = news_blocksize; }, [self class]: > > > > LSUserDefaults, > > > > [self] > > > > > > Possibly fixed in r1961. Probably more classes are to come ... > > Thanks, it is fixed, now I can login. More exceptions in NSKeyValueCoding > > comes here: > > > > This exception happens when opening the preferences -> mail: > > > > May 29 06:23:23 ogo-webui-1.1 [31345]: [ERROR] SkyCollapsibleContent > unable > > to set 'nil' for key: 'visibility' > > [Switching to process 31345, thread 0x8bb25000] > > > > Breakpoint 1, -[NSException raise] (self=0x86ac58c8, _cmd=0x2a650578) at > > NSException.m:782 > > 782 if (GSPrivateEnvironmentFlag("GNUSTEP_STACK_TRACE", NO) == YES > > (gdb) bt > > #0 -[NSException raise] (self=0x86ac58c8, _cmd=0x2a650578) at > > NSException.m:782 > > #1 0x0a6304ca in +[NSException raise:format:arguments:] (self=0x2a650380, > > _cmd=0x2a650560, name=0x2a6506bc, format=0x2a656248, > > > > argList=0xcfbc7880 > > "�X�\206hX�\206\210�w\202HW� > \206=�b*\210�w\202�x��� > \003c\n=�b*�Ph*") > > > > at NSException.m:753 > > #2 0x0a63041b in +[NSException raise:format:] (self=0x2a650380, > > _cmd=0x2a656070, name=0x2a6506bc, format=0x2a656248) at NSException.m:739 > > #3 0x0a650c1f in -[NSObject(KeyValueCoding) setNilValueForKey:] > > (self=0x8277ff88, _cmd=0x2a67d188, aKey=0x86ac5748) at > > NSKeyValueCoding.m:275 > > #4 0x0a706e5c in GSObjCSetVal (self=0x8277ff88, > > key=0xcfbc7950 "visibility", val=0x0, sel=0x82e6f690, > type=0x85147156 "C8", > > size=10, offset=91545226) at GSObjCRuntime.m:1817 > > #5 0x0a651e2f in -[NSObject(KeyValueCoding) takeValue:forKey:] > > (self=0x8277ff88, _cmd=0x256ef770, anObject=0x0, aKey=0x7e01d508) at > > NSKeyValueCoding.m:595 > > #6 0x056f720a in WOComponent_syncFromParent () > > from /usr/local/lib/libNGObjWeb.so.4.7.9 > > #7 0x056fb9bf in WOContext_enterComponent () > > from /usr/local/lib/libNGObjWeb.so.4.7.9 > > #8 0x0571fb80 in WOApplicationMain () > > from /usr/local/lib/libNGObjWeb.so.4.7.9 > > #9 0x0576dfb1 in NGDecodeUrlFormParameters () > > from /usr/local/lib/libNGObjWeb.so.4.7.9 > > > > > > NSKeyValueCoding.m:275 is method: > > > > - (void) setNilValueForKey: (NSString*)aKey > > { > > static IMP o = 0; > > > > /* Backward compatibility hack */ > > if (o == 0) > > { > > o = [NSObject instanceMethodForSelector: > > @selector(unableToSetNilForKey:)]; > > } > > if ([self methodForSelector: @selector(unableToSetNilForKey:)] != o) > > { > > [self unableToSetNilForKey: aKey]; > > } > > > > [NSException raise: NSInvalidArgumentException > > format: @"%@ -- %@ 0x%x: Given nil value to set for key > > \"%@\"", > > NSStringFromSelector(_cmd), NSStringFromClass([self class]), self, > > aKey]; > > } > > > > > > ========================================================================= > > ========================================================================= > > 10.0.0.9 - - [29/May/2007:06:30:57 > > GMT] "POST /OpenGroupware.woa/x/login?da=&o=1180413050 HTTP/1.1" 200 > > 3742/122 3.148 20207 81% - > > 2007-05-29 06:31:02.720 ogo-webui-1.1[22767] ERROR: missing bundle: > > OGoPalmDS > > > > (Palm stuff is not installed) > > > > (gdb) bt > > #0 -[NSException raise] (self=0x8480c3c8, _cmd=0x230af578) at > > NSException.m:782 > > #1 0x0308f4ca in +[NSException raise:format:arguments:] (self=0x230af380, > > _cmd=0x230af560, name=0x230af6a4, format=0x230c5394, > > argList=0xcfbec780 "\bG\203\213�Ǿ�\004") > > at NSException.m:753 > > #2 0x0308f41b in +[NSException raise:format:] (self=0x230af380, > > _cmd=0x230c4ba8, name=0x230af6a4, format=0x230c5394) at NSException.m:739 > > #3 0x03118f9c in -[NSString propertyList] (self=0x7ef395c8, > > _cmd=0x230ad458) at NSString.m:4492 > > #4 0x03086527 in -[NSDictionary initWithContentsOfFile:] > (self=0x7da25948, > > _cmd=0x215c0cd0, path=0x7d6c7088) at NSDictionary.m:594 > > #5 0x015c46ff in +[SkyHolidayCalculator initialize] (self=0x215c0bc0, > > _cmd=0x230ce968) at SkyHolidayCalculator.m:95 > > #6 0x0bb58c0c in __objc_send_initialize (class=0x215c0bc0) > > at /usr/src/gnu/lib/libobjc/libobjc/sendmsg.c:324 > > #7 0x0bb58aa4 in __objc_init_install_dtable (receiver=0x215c0bc0, > > op=0x20e061a8) at /usr/src/gnu/lib/libobjc/libobjc/sendmsg.c:266 > > #8 0x0bb59a28 in objc_msg_lookup (receiver=0x215c0bc0, op=0x20e061a8) > > at /usr/src/gnu/lib/libobjc/libobjc/sendmsg.c:184 > > #9 0x00e0b0b4 in -[SkySchedulerPage _newHolidaysCalculator] > > (self=0x7f448408, _cmd=0x20e06278) at SkySchedulerPage.m:107 > > #10 0x00e0b879 in -[SkySchedulerPage init] (self=0x7f448408, > > _cmd=0x201f8de8) at SkySchedulerPage.m:177 > > > > > > below NSSTring.m the method with the exception: > > - (id) propertyList > > { > > NSData *data; > > id result = nil; > > NSPropertyListFormat format; > > NSString *error = nil; > > > > if ([self length] == 0) > > { > > return nil; > > } > > data = [self dataUsingEncoding: NSUTF8StringEncoding]; > > NSAssert(data, @"Couldn't get utf8 data from string."); > > > > result = [NSPropertyListSerialization > > propertyListFromData: data > > mutabilityOption: NSPropertyListMutableContainers > > format: &format > > errorDescription: &error]; > > > > if (result == nil) > > { > > [NSException raise: NSGenericException > > format: @"Parse failed - %@", error]; > > } > > return result; > > } > > Nevermind, the segfault mentioned in the mail before, was my fault, a NSLog statement that I added. After continuing on the exception, I am in the scheduler, then clicking on "new" to create a new appointment, the next exception happens: 2007-05-29 06:43:37.045 ogo-webui-1.1[16413] val: 1 [val class] GSCBufferString May 29 06:43:37 ogo-webui-1.1 [16413]: [ERROR] SkyCollapsibleContent unable to set 'nil' for key: 'visibility' Breakpoint 1, -[NSException raise] (self=0x8bce70a8, _cmd=0x2a0a0578) at NSException.m:782 782 if (GSPrivateEnvironmentFlag("GNUSTEP_STACK_TRACE", NO) == YES (gdb) bt #0 -[NSException raise] (self=0x8bce70a8, _cmd=0x2a0a0578) at NSException.m:782 #1 0x0a0804ba in +[NSException raise:format:arguments:] (self=0x2a0a0380, _cmd=0x2a0a0560, name=0x2a0a06bc, format=0x2a0a623c, argList=0xcfbf9950 "\210p�\213 (-G\201\bX�\206h/G\201��\a*\bX�\206\210\231���\003\b\n��\a*�P\r*") at NSException.m:753 #2 0x0a08040b in +[NSException raise:format:] (self=0x2a0a0380, _cmd=0x2a0a6070, name=0x2a0a06bc, format=0x2a0a623c) at NSException.m:739 #3 0x0a0a0beb in -[NSObject(KeyValueCoding) setNilValueForKey:] (self=0x86f65808, _cmd=0x2a0cd188, aKey=0x81472f68) at NSKeyValueCoding.m:274 #4 0x0a156e28 in GSObjCSetVal (self=0x86f65808, key=0xcfbf9a20 "visibility", val=0x0, sel=0x7ec146b0, type=0x8ad564d6 "C8", size=10, offset=267656842) at GSObjCRuntime.m:1817 #5 0x0a0a1dfb in -[NSObject(KeyValueCoding) takeValue:forKey:] (self=0x86f65808, _cmd=0x2fee3770, anObject=0x0, aKey=0x20258a48) at NSKeyValueCoding.m:594 #6 0x0feeb20a in WOComponent_syncFromParent () from /usr/local/lib/libNGObjWeb.so.4.7.9 #7 0x0feef9bf in WOContext_enterComponent () from /usr/local/lib/libNGObjWeb.so.4.7.9 #8 0x0ff13b80 in WOApplicationMain () from /usr/local/lib/libNGObjWeb.so.4.7.9 #9 0x0ff61fb1 in NGDecodeUrlFormParameters () from /usr/local/lib/libNGObjWeb.so.4.7.9 #10 0x0ff6809b in NGDecodeUrlFormParameters () from /usr/local/lib/libNGObjWeb.so.4.7.9 #11 0x0ff61fb1 in NGDecodeUrlFormParameters () from /usr/local/lib/libNGObjWeb.so.4.7.9 #12 0x0ff6809b in NGDecodeUrlFormParameters () from /usr/local/lib/libNGObjWeb.so.4.7.9 #13 0x0ff61fb1 in NGDecodeUrlFormParameters () from /usr/local/lib/libNGObjWeb.so.4.7.9 #14 0x0ff6809b in NGDecodeUrlFormParameters () from /usr/local/lib/libNGObjWeb.so.4.7.9 #15 0x0ff61fb1 in NGDecodeUrlFormParameters () from /usr/local/lib/libNGObjWeb.so.4.7.9 looks like the same like the one in the preferences -> mail. kind regards Sebastian From gnustep-port@opengroupware.org Tue May 29 06:04:32 2007 From: gnustep-port@opengroupware.org (Sebastian Reitenbach) Date: Tue, 29 May 2007 07:04:32 +0200 Subject: [OGo-GNUstep-Port] experiences with OGo and gunstep-base on OpenBSD Message-ID: <20070529050432.5D7B93FD06@l00-bugdead-prods.de> Hi, here another exception, when trying to open a mail: 2007-05-29 06:59:27.105 ogo-webui-1.1[23739] here in Source/Additions/GSObjCRuntime.m: I am going to do: [self setValue: val forUndefinedKey: [NSString stringWithUTF8String: key]], where self is > OGoSession, aKey is ShowBodyPartsCache 2007-05-29 06:59:27.105 ogo-webui-1.1[23739] val: {} [val class] GSMutableDictionary Breakpoint 1, -[NSException raise] (self=0x87d402e8, _cmd=0x2faed578) at NSException.m:782 782 if (GSPrivateEnvironmentFlag("GNUSTEP_STACK_TRACE", NO) == YES #0 -[NSException raise] (self=0x87d402e8, _cmd=0x2faed578) at NSException.m:782 #1 0x0facd4ba in +[NSException raise:format:arguments:] (self=0x2faed380, _cmd=0x2faed560, name=0x2faed6bc, format=0x2faf7b78, argList=0xcfbf86bc "��\234/\f| �/zs\234/�n�\017\210~h\210� �/\f|�/zs\234/�Ӭ\017\200Ӯ/") at NSException.m:753 #2 0x0facd40b in +[NSException raise:format:] (self=0x2faed380, _cmd=0x2faf7810, name=0x2faed6bc, format=0x2faf7b78) at NSException.m:739 #3 0x0fb06fa1 in -[NSObject doesNotRecognizeSelector:] (self=0x87d40048, _cmd=0x2faf7900, aSelector=0x2f322a28) at NSObject.m:1672 #4 0x0fb0715c in -[NSObject forwardInvocation:] (self=0x87d40048, _cmd=0x2faebdd8, anInvocation=0x81e64c88) at NSObject.m:1700 #5 0x0fb9b1d4 in GSInvocationCallback (callback_data=0x2fb24b20, args=0xcfbf8824) at GSFFCallInvocation.m:975 #6 0x01c598b1 in __vacall_r () from /usr/local/lib/libcallback.so.1.0 #7 0x2fb24b20 in returnTypeInfo () from /usr/local/GNUstep/System/Library/Libraries/libgnustep-base.so.1.15 #8 0xcfbf8824 in ?? () #9 0x00000006 in ?? () #10 0xcfbf885c in ?? () #11 0x00000000 in ?? () (gdb) c Continuing. May 29 07:00:22 ogo-webui-1.1 [23739]: |ogo-webui-1.1| : caught: NAME:NSInvalidArgumentException REASON:GSMutableString(instance) does not recognize objectForKey: in context: <0x0x7f7c6408[WOContext]: 018465bb32e7f7c6408 app=ogo-webui-1.1 sn=5CBB5CBB01465BB104 eid=018465bb32e7f7c6408.0.17.1.1.1.1.1.31.b.mail.1.1.1.3.4.1.1.1.1.5.1.2.1.1 rqeid=(nil)>. May 29 07:00:22 ogo-webui-1.1 [23739]: |ogo-webui-1.1| terminating session due to exception: 5CBB5CBB01465BB104 May 29 07:00:22 ogo-webui-1.1 [23739]: |ogo-webui-1.1| WOServerSessionStore: session 5CBB5CBB01465BB104 terminated. gnustep-base GSMutableString is missing objectForKey? kind regards Sebastian From gnustep-port@opengroupware.org Tue May 29 08:46:53 2007 From: gnustep-port@opengroupware.org (Helge Hess) Date: Tue, 29 May 2007 09:46:53 +0200 Subject: [OGo-GNUstep-Port] experiences with OGo and gunstep-base on OpenBSD In-Reply-To: <20070529050432.5D7B93FD06@l00-bugdead-prods.de> References: <20070529050432.5D7B93FD06@l00-bugdead-prods.de> Message-ID: <7CF56BF8-33B9-40DB-B150-0378C6DDC647@opengroupware.org> On May 29, 2007, at 07:04, Sebastian Reitenbach wrote: > #3 0x0fb06fa1 in -[NSObject doesNotRecognizeSelector:] > (self=0x87d40048, > _cmd=0x2faf7900, aSelector=0x2f322a28) > at NSObject.m:1672 > #4 0x0fb0715c in -[NSObject forwardInvocation:] (self=0x87d40048, > _cmd=0x2faebdd8, anInvocation=0x81e64c88) at NSObject.m:1700 > #5 0x0fb9b1d4 in GSInvocationCallback (callback_data=0x2fb24b20, > args=0xcfbf8824) at GSFFCallInvocation.m:975 OK, not sure why forwarding kicks in here. Could be some EOFault, though it shouldn't. Would be nice to know what triggers the forwarding (since the stack is b0rked, one would need to step through the app and get to the point ...) > gnustep-base GSMutableString is missing objectForKey? Which is correct and the same on lF/Cocoa. Greets, Helge -- Helge Hess http://www.helgehess.eu/ From gnustep-port@opengroupware.org Thu May 31 19:16:50 2007 From: gnustep-port@opengroupware.org (Sebastian Reitenbach) Date: Thu, 31 May 2007 20:16:50 +0200 Subject: [OGo-GNUstep-Port] experiences with OGo and gunstep-base on OpenBSD Message-ID: <20070531181651.44A224029B@l00-bugdead-prods.de> Hi, there was another exception that I recognized while entering the the Scheduler for the first time. There while parsing the Holidays.plist, an exception is thrown. The culprit is the trailing ; in the last line after the } Don't know whether it is correct behaviour to ignore the trailing semicolon, or not. 175 74756d5f 686f6c69 64617922 3b202020 20202020 2f2f0a20 20202020 20223132 2d323322 203d2022 73746172 745f6368 72697374 6d61735f 686f6c69 64617922 3b202f2f 20576569 686e6163 68747366 65726965 6e0a2f2f 20202020 20202231 322d3331 22203d20 22656e64 5f636872 6973746d 61735f68 6f6c6964 6179223b 2020202f 2f205765 69686e61 63687473 66657269 656e0a20 2020207d 3b0a2020 7d3b0a7d 3b0a> 2007-05-31 19:58:37.189 ogo-webui-1.1[14181] Source/NSPropertyList.m: format is 1 2007-05-31 19:58:37.201 ogo-webui-1.1[14181] Source/NSPropertyList.m: error Parse failed at line 1465 (char 65741) - extra data after parsed string 2007-05-31 19:58:37.202 ogo-webui-1.1[14181] Source/NSString.m: result (nil) Breakpoint 2, -[NSException raise] (self=0x88199da8, _cmd=0x2ad33598) at NSException.m:782 782 if (GSPrivateEnvironmentFlag("GNUSTEP_STACK_TRACE", NO) == YES (gdb) bt #0 -[NSException raise] (self=0x88199da8, _cmd=0x2ad33598) at NSException.m:782 #1 0x0ad13542 in +[NSException raise:format:arguments:] (self=0x2ad333a0, _cmd=0x2ad33580, name=0x2ad336c4, format=0x2ad493cc, argList=0xcfbcc8b0 "\b �}") at NSException.m:753 #2 0x0ad13493 in +[NSException raise:format:] (self=0x2ad333a0, _cmd=0x2ad48bc8, name=0x2ad336c4, format=0x2ad493cc) at NSException.m:739 #3 0x0ad9d04a in -[NSString propertyList] (self=0x851d7c68, _cmd=0x2ad31458) at NSString.m:4493 #4 0x0ad0a567 in -[NSDictionary initWithContentsOfFile:] (self=0x8a479a48, _cmd=0x2510de10, path=0x7f3c6408) at NSDictionary.m:595 #5 0x051117bf in +[SkyHolidayCalculator initialize] (self=0x2510dd00, _cmd=0x2ad52988) at SkyHolidayCalculator.m:97 #6 0x0ced9c0c in __objc_send_initialize (class=0x2510dd00) at /usr/src/gnu/lib/libobjc/libobjc/sendmsg.c:324 #7 0x0ced9aa4 in __objc_init_install_dtable (receiver=0x2510dd00, op=0x2685d1a8) at /usr/src/gnu/lib/libobjc/libobjc/sendmsg.c:266 #8 0x0cedaa28 in objc_msg_lookup (receiver=0x2510dd00, op=0x2685d1a8) at /usr/src/gnu/lib/libobjc/libobjc/sendmsg.c:184 #9 0x068620b4 in -[SkySchedulerPage _newHolidaysCalculator] (self=0x7ffc8008, _cmd=0x2685d278) at SkySchedulerPage.m:107 #10 0x06862879 in -[SkySchedulerPage init] (self=0x7ffc8008, _cmd=0x2f677de8) at SkySchedulerPage.m:177 #11 0x0f67b4cb in WOGetKVCValueUsingMethod () from /usr/local/lib/libNGObjWeb.so.4.7.9 #12 0x0f68083d in WOComponent_syncToParent () from /usr/local/lib/libNGObjWeb.so.4.7.9 #13 0x0f680a97 in WOComponent_syncToParent () from /usr/local/lib/libNGObjWeb.so.4.7.9 #14 0x0f681ce3 in WOComponent_syncToParent () from /usr/local/lib/libNGObjWeb.so.4.7.9 #15 0x0f6a1d34 in OWGetProperty () from /usr/local/lib/libNGObjWeb.so.4.7.9 #16 0x0f676931 in WOGetKVCValueUsingMethod () from /usr/local/lib/libNGObjWeb.so.4.7.9 #17 0x0f676a42 in WOGetKVCValueUsingMethod () from /usr/local/lib/libNGObjWeb.so.4.7.9 #18 0x1c0052b2 in -[OpenGroupware pageWithName:inContext:] (self=0x8728f108, _cmd=0x2f683bf0, _name=0x7ffc7848, _ctx=0x80234808) at OpenGroupware.m:631 #19 0x0f6ac4b9 in WOApplicationMain () from /usr/local/lib/libNGObjWeb.so.4.7.9 #20 0x086ae08c in -[WODirectAction(SkyDockActions) dockAction] (self=0x7ffc7908, _cmd=0x84787ab0) at WODirectAction+SkyDock.m:80 ---Type to continue, or q to quit---q These files here also have a trailing semicolon in the last line of the file, all the other *.plist files of OGo do not have one. I suggest removing them from the Holidays.plist and from these five files below. /usr/local/lib/opengroupware.org-1.1/webui/AdminUI.lso/Resources/Skyrix.plist /usr/local/lib/opengroupware.org-1.1/webui/AdminUI.lso/Resources/NSGlobalDomain.plist /usr/local/lib/opengroupware.org-1.1/webui/AdminUI.lso/Resources/skyxmlrpcd.plist /usr/local/lib/opengroupware.org-1.1/webui/AdminUI.lso/Resources/snsd.plist /usr/local/lib/opengroupware.org-1.1/webui/AdminUI.lso/Resources/skyaptnotify.plist kind regards Sebastian From gnustep-port@opengroupware.org Thu May 31 21:23:17 2007 From: gnustep-port@opengroupware.org (Helge Hess) Date: Thu, 31 May 2007 22:23:17 +0200 Subject: [OGo-GNUstep-Port] experiences with OGo and gunstep-base on OpenBSD In-Reply-To: <20070531181651.44A224029B@l00-bugdead-prods.de> References: <20070531181651.44A224029B@l00-bugdead-prods.de> Message-ID: On May 31, 2007, at 20:16, Sebastian Reitenbach wrote: > These files here also have a trailing semicolon in the last line of > the > file, all the other *.plist files of OGo do not have one. I suggest > removing > them from the Holidays.plist and from these five files below. OK, I did that. Thanks, Helge -- Helge Hess http://www.helgehess.eu/