Hi all,
> I have retried my application under art. When I open one of the problematic
> forms I now get
>
> 2020-05-06 18:43:11.295 SOObjectBrowser[8177:8177] File NSView.m: 1183. In
> -[NSView setFrame:] given negative width
> 2020-05-06 18:43:11.295 SOObjectBrowser[8177:8177] File NSView.m: 1188. In
> -[NSView setFrame:] given negative height
> 2020-05-06 18:43:11.384 SOObjectBrowser[8177:8177] Warning: shmget() failed:
> Invalid argument.
> 2020-05-06 18:43:11.384 SOObjectBrowser[8177:8177] Falling back to normal
> XImage (will be slower).
> 2020-05-06 18:43:11.384 SOObjectBrowser[8177:8177] Warning: failed to create
> image for window!
> 2020-05-06 18:43:11.387 SOObjectBrowser[8177:8177] Warning: shmget() failed:
> Invalid argument.
> 2020-05-06 18:43:11.387 SOObjectBrowser[8177:8177] Falling back to normal
> XImage (will be slower).
> 2020-05-06 18:43:11.387 SOObjectBrowser[8177:8177] Warning: failed to create
> image for window!
> 2020-05-06 18:43:12.696 SOObjectBrowser[8177:8177] X-Windows error - BadAlloc
> (insufficient resources for operation)
> on display: :0
> type: 0
> serial number: 21442
> request code: 130
> 2020-05-06 18:43:12.697 SOObjectBrowser[8177:8177] X-Windows error -
> BadPixmap (invalid Pixmap parameter)
> on display: :0
> type: 0
> serial number: 21443
> request code: 2
>
> and the app fails (hangs). Hmmgh!! Could the problem be related to this
>
> 2020-05-06 18:43:11.295 SOObjectBrowser[8177:8177] File NSView.m: 1183. In
> -[NSView setFrame:] given negative width
> 2020-05-06 18:43:11.295 SOObjectBrowser[8177:8177] File NSView.m: 1188. In
> -[NSView setFrame:] given negative height
>
> message? My code works on MacOSX and used to work on older GNUstep releases.
> This of course does not mean much. There could still be a problem that is
> tolerated by the other two environments. I will try to figure out where this
> "given negative ..." stuff comes from. However, if this already rings any
> bells I would be glad to hear your suggestions.
I inserted
[NSException raise:...]
in NSView where it complains about the given negative widths and got
#1 0x00007fabaac53bba in +[NSException raise:format:arguments:]
(self=0x7fabab1b4020 <_OBJC_Class_NSException>, _cmd=0x7fabab1b44b0
<_OBJC_SELECTOR_TABLE+432>, name=0x7fabab1b39e0 <_OBJC_INSTANCE_4>,
format=0x7fabac4470c0 <_OBJC_INSTANCE_17>, argList=0x7ffd30cc6450)
at NSException.m:1465
#2 0x00007fabaac53b01 in +[NSException raise:format:] (self=0x7fabab1b4020
<_OBJC_Class_NSException>, _cmd=0x7fabac449790 <_OBJC_SELECTOR_TABLE+1712>,
name=0x7fabab1b39e0 <_OBJC_INSTANCE_4>, format=0x7fabac4470c0
<_OBJC_INSTANCE_17>) at NSException.m:1450
#3 0x00007fababf8f9d5 in -[NSView setFrame:] (self=0x2c47500,
_cmd=0x7fabac40e9f0 <_OBJC_SELECTOR_TABLE+624>, frameRect=...) at NSView.m:1184
#4 0x00007fababf2b740 in -[NSTabView selectTabViewItem:] (self=0x1a194e0,
_cmd=0x7fabac40e880 <_OBJC_SELECTOR_TABLE+256>, tabViewItem=0x2e1ea40) at
NSTabView.m:274
#5 0x00007fababf2adb8 in -[NSTabView insertTabViewItem:atIndex:]
(self=0x1a194e0, _cmd=0x7fabac40e850 <_OBJC_SELECTOR_TABLE+208>,
tabViewItem=0x2e1ea40, index=0) at NSTabView.m:120
#6 0x00007fababf2acd2 in -[NSTabView addTabViewItem:] (self=0x1a194e0,
_cmd=0x7faba8050510 <_OBJC_SELECTOR_TABLE+2288>, tabViewItem=0x2e1ea40) at
NSTabView.m:106
...
The related code is
NSTabViewItem *tabViewItem = [[NSTabViewItem alloc]
initWithIdentifier:identifier];
[someTabView addTabViewItem:tabViewItem];
[tabViewItem release];
Hmmgh! It seems that NSTabView calculates some unhealthy frame here. Can
anybody with insights see whether this is related to the rest of the error
chain?
Thanks,
Andreas