discuss-gnustep
[Top][All Lists]
Advanced

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

Re: PikoPixel hangs on startup


From: Riccardo Mottola
Subject: Re: PikoPixel hangs on startup
Date: Thu, 29 Oct 2015 00:15:21 +0100
User-agent: Mozilla/5.0 (X11; OpenBSD i386; rv:41.0) Gecko/20100101 Firefox/41.0 SeaMonkey/2.38

Fred Kiefer wrote:
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.

Ok! I misunderstood the code. Now I set a breakpoint in 399 exactly, that is where _windowRect gets assigned, then one in 408, where where we have the title to actually check what the window is.

Here, the values look sane:
Breakpoint 2, -[NSWindowTemplate initWithCoder:] (self=0x8996b60,
    _cmd=<optimized out>, coder=<optimized out>) at GSNibLoading.m:408
408               _windowStyle |= NSTitledWindowMask;
(gdb) p _windowRect
$4 = {origin = {x = 1218, y = 683}, size = {width = 174, height = 170}}
(gdb) po _title
Preview

this is consistent with:
#4  0xb7df39e4 in -[NSWindowTemplate nibInstantiate] (self=0x8996b60,
    _cmd=<optimized out>) at GSNibLoading.m:508
508

(gdb) p _windowRect
$8 = {origin = {x = 1218, y = 683}, size = {width = 174, height = 170}}

(gdb) p _windowStyle
$9 = 27

It looks we start with a sane window (well: x, y are a bit large as an origin for my 1024x768 display.

Let's see in GSWindowDecorationView.m:413
$13 = {origin = {x = 0, y = 0}, size = {width = 176, height = 21}}

a lot of stuff has been optimized out, but evidently in "layout" the height has been once again reduced to :
(gdb) p frameRect
$15 = {origin = {x = 1, y = 9}, size = {width = 174, height = -13}}

Fred, why is in GSWindowDecrationView layout sometimes _window used and once window?

I'll make a debug version of gui tomorrow.. else we can see this in Dublin.

Riccardo



reply via email to

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