Skip site navigation (1) Skip section navigation (2)

Re: Direct debug dialog hangs in OnSize()

From: Heikki Linnakangas <heikki(dot)linnakangas(at)enterprisedb(dot)com>
To: pgadmin-hackers <pgadmin-hackers(at)postgresql(dot)org>
Subject: Re: Direct debug dialog hangs in OnSize()
Date: 2012-04-19 20:59:50
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgadmin-hackers
And now that I've updated my local repository, here's a third version 
that actually applies. (just my working copy didn't fix the issue)

On 19.04.2012 23:43, Heikki Linnakangas wrote:
> Sorry, attached wrong patch in previous mail. Here's the correct one.
> On 19.04.2012 23:42, Heikki Linnakangas wrote:
>> When I build pgAdmin from sources on my laptop running Debian, and try
>> to open the Direct Debug dialog by choosing "Debug" on a function,
>> pgAdmin hangs, consuming 100% of CPU. The dialog never opens, and I have
>> no choice but kill pgAdmin forcibly. I only get this problem when I
>> build pgadmin from sources, the binary version from Debian repository
>> works fine.
>> I complained about this same issue years ago, and it was apparently
>> fixed back then
>> (
>> but looks like the issue has reappeared. Attaching a debugger to the
>> process when it's hung, I get a stack trace identical to that I posted
>> back in 2009. It's stuck repeatedly getting the OnSize event, and
>> resizing the window or some of the controls in response.
>> I don't understand much about this stuff, but I started comparing the
>> dlgDirectDbg window with dlgPgpassConfig window, which is very similar
>> but works. Looks to me there's some useless nested panels in the
>> dlgDirectDbg dialog, and removing them fixes the issue for me. After
>> that, the size of the window is wrong, though, so I added some extra
>> code to recalculate the desired window size after adding the arguments
>> to the grid in the dialog. I'm not sure what the original problem was or
>> why this fixes it, but the attached patch fixes it for me.

   Heikki Linnakangas

Attachment: remove-useless-panels-from-dlgDirectDbg-2.patch
Description: text/x-diff (3.6 KB)

In response to


pgadmin-hackers by date

Next:From: Dave PageDate: 2012-04-20 08:21:35
Subject: Re: Direct debug dialog hangs in OnSize()
Previous:From: Heikki LinnakangasDate: 2012-04-19 20:43:40
Subject: Re: Direct debug dialog hangs in OnSize()

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group