discuss-gnustep
[Top][All Lists]
Advanced

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

Re: PikoPixel hangs on startup


From: Fred Kiefer
Subject: Re: PikoPixel hangs on startup
Date: Tue, 27 Oct 2015 09:38:33 +0100

First off, you are on the wrong branch. At the moment you investigate setting 
the minSize while your original problem was setting the frame of the window. 
That is the call in line 508 as it was reported in your original stack trace.

And for NSWindowTemplate it is of no surprise that your breakpoint isn't 
reached. You should move your breakpoint into -initWithCoder: somewhere near 
line 399. When saving a NIB file the method you are looking at gets used, when 
loading one it is never used.

Hope this helps,
Fred

On the road

Am 27.10.2015 um 00:54 schrieb Riccardo Mottola <riccardo.mottola@libero.it>:

> Hi,
> 
> Fred Kiefer wrote:
>> You don't need to recompile, just set a breakpoint inside of NSWindow 
>> frameRectForContentRect:, wait for the correct window and watch why the 
>> height value gets corrupted.
> 
> I set a breakpoint there and continued until the window had the title
> Preview.
> 
> (gdb) p contentRect
> $2 = {origin = {x = 0, y = 0}, size = {width = 106.186996, height = -13}}
> 
> it appears to be already called that way!
> 
> I go up twice and see this:
> (gdb) up
> #2  0xb7df460b in -[NSWindowTemplate nibInstantiate] (self=0x8a52d50,
> _cmd=<optimized out>) at GSNibLoading.m:500
> 500           [_realObject setContentMinSize: _minSize];
> (gdb) p _minSize
> $4 = {width = 106.186996, height = -13}
> 
> I am not sure, but it seems that _minSize is set to contentMinSize in
> the designated Initializer. I tried putting a breakpoint in line 318 of
> GSNibLoading.m but it is apparently never reached.
> 
> The proof is this:
> (gdb) p _minSize
> $8 = {width = 106.186996, height = -13}
> (gdb) p [window contentMinSize].height
> $9 = 1
> 
> The initializer code sets them to the same value. Fred, what does your
> widsom say?
> 
> Riccardo
> 
> ---
> #0  -[NSWindow frameRectForContentRect:] (self=0x8a46088,
> _cmd=0xb7f7c0a0 <.objc_selector_list+144>, contentRect=...)
>    at NSWindow.m:1196
> #1  0xb7da7ae5 in -[NSWindow setContentMinSize:] (self=0x8a46088,
> _cmd=<optimized out>, size=...) at NSWindow.m:2326
> #2  0xb7df460b in -[NSWindowTemplate nibInstantiate] (self=0x8a52d50,
> _cmd=<optimized out>) at GSNibLoading.m:500
> #3  0xb7df93aa in -[NSIBObjectData instantiateObject:] (self=<optimized
> out>, _cmd=<optimized out>, obj=0x8a52d50)
>    at GSNibLoading.m:1893
> #4  0xb7df94d3 in -[NSIBObjectData
> nibInstantiateWithOwner:topLevelObjects:] (self=0x8a52cb0,
> _cmd=<optimized out>,
>    owner=<optimized out>, topLevelObjects=<optimized out>) at
> GSNibLoading.m:1924
> #5  0xb7df99d0 in -[NSIBObjectData awakeWithContext:] (self=<optimized
> out>, _cmd=<optimized out>,
>    context=<optimized out>) at GSNibLoading.m:2012
> #6  0xb7e271d2 in -[GSNibLoader
> loadModelData:externalNameTable:withZone:] (self=0x89e9b18,
>    _cmd=0xb7f38218 <.objc_selector_list+40>, data=<optimized out>,
> context=<optimized out>, zone=<optimized out>)
>    at GSNibLoader.m:87
> #7  0xb7cdd9ec in -[NSNib instantiateNibWithExternalNameTable:withZone:]
> (self=<optimized out>, _cmd=<optimized out>,
>    externalNameTable=<optimized out>, zone=<optimized out>) at NSNib.m:153
> #8  0xb7c383c1 in +[NSBundle(NSBundleAdditions)
> loadNibFile:externalNameTable:withZone:] (self=<optimized out>,
>    _cmd=<optimized out>, fileName=<optimized out>, context=<optimized
> out>, zone=<optimized out>)
>    at NSBundleAdditions.m:52
> #9  0xb7db517a in -[NSWindowController loadWindow] (self=<optimized
> out>, _cmd=<optimized out>)
>    at NSWindowController.m:483
> #10 0xb7db486c in -[NSWindowController window] (self=0x89f7980,
> _cmd=<optimized out>) at NSWindowController.m:307
> #11 0x08101985 in -[PPPanelController initWithWindowNibName:]
> (self=0x89f7980,
>    _cmd=0x8256318 <.objc_selector_list+168>, windowNibName=0x82626c0
> <.objc_str>) at PPPanelController.m:97
> 
> 
> _______________________________________________
> Discuss-gnustep mailing list
> Discuss-gnustep@gnu.org
> https://lists.gnu.org/mailman/listinfo/discuss-gnustep



reply via email to

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