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

Re: wxWidgets alert at start

From: Dave Page <dpage(at)postgresql(dot)org>
To: Jyrki Wahlstedt <jyrki(dot)wahlstedt(at)hut(dot)fi>
Cc: pgadmin-hackers(at)postgresql(dot)org
Subject: Re: wxWidgets alert at start
Date: 2007-08-01 10:24:29
Message-ID: 46B05F5D.4050007@postgresql.org (view raw or flat)
Thread:
Lists: pgadmin-hackers
Jyrki Wahlstedt wrote:
> 
> On 1.8.2007, at 12.31, Dave Page wrote:
>> Can you attach gdb/xcode at that point and get a backtrace?
>>
> You mean something like this:

...

> #17 0x00224ecb in isPgApp (app=(at)0xbffff5f4) at ./utils/misc.cpp:1090
> #18 0x00009948 in pgAdmin3::InitPaths (this=0x18d2b990) at
> ./pgAdmin3.cpp:766
> #19 0x000105ea in pgAdmin3::OnInit (this=0x18d2b990) at ./pgAdmin3.cpp:206
> #20 0x002dfa22 in wxAppConsole::CallOnInit (this=0x18d2b990) at
> /opt/local/include/wx-2.8/wx/app.h:76
> #21 0x17d68a46 in wxEntry (argc=(at)0x17e60038, argv=0x18d292c0) at
> ../src/common/init.cpp:433
> #22 0x00007e60 in main (argc=2, argv=0xbffffc3c) at ./pgAdmin3.cpp:104
> 
> after 'gdb pgAdmin3 pid'?

Yup, exactly like that :-)

It's dying when it checks for the PostgreSQL utilities (isPgApp() runs a
utility with the --version option to check that it's a PostgreSQL util,
and not an EDB version). In ~/Library/Preferences/pgadmin3 Preferences,
do you have anything set for the PostgreSQLPath and EnterpriseDBPath
options?

If so, is there a pg_dump executable in either location? What does it
return if you run it with the --version option?

If those locations don't exist, it'll first look in the path for a
pg_dump, and then in a bunch of known locations (straight from the code):

        path.Add(wxT("/usr/local/pgsql/bin"));
        path.Add(wxT("/usr/local/bin"));
        path.Add(wxT("/usr/bin"));
        path.Add(wxT("/opt/local/pgsql/bin"));
        path.Add(wxT("/opt/local/bin"));
        path.Add(wxT("/opt/bin"));

...

        path.Add(wxT("/usr/local/enterpriseDB/bin"));
        path.Add(wxT("/usr/local/enterprisedb/bin"));
        path.Add(wxT("/usr/local/edb/bin"));
        path.Add(wxT("/usr/local/bin"));
        path.Add(wxT("/usr/bin"));
        path.Add(wxT("/opt/local/enterpriseDB/bin"));
        path.Add(wxT("/opt/local/enterprisedb/bin"));
        path.Add(wxT("/opt/local/edb/bin"));
        path.Add(wxT("/opt/local/bin"));

Does it find pg_dump at all? If so, is it returning garbage perhaps?

Regards, Dave

In response to

Responses

pgadmin-hackers by date

Next:From: Jyrki WahlstedtDate: 2007-08-01 11:23:58
Subject: Re: wxWidgets alert at start
Previous:From: Jyrki WahlstedtDate: 2007-08-01 09:44:42
Subject: Re: wxWidgets alert at start (was: Beta 2 start problem on OS X)

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