[OGo-GNUstep-Port] experiences with OGo and gunstep-base on OpenBSD

Sebastian Reitenbach gnustep-port@opengroupware.org
Tue, 29 May 2007 06:35:41 +0200


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] <LSUserDefaults: 0x8b66fa48>
> 
> 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
"&#65533;X&#65533;\206hX&#65533;\206\210&#65533;w\202HW&#65533;\206=&#65533;b*\210&#65533;w\202&#65533;x&#65533;&#65533;&#65533;\003c\n=&#65533;b*&#65533;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&#65533;&#510;&#65533;\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