Thread: bug? app closes on closing SQL editor
I'm not sure if this is a known issue, some weird fluke with my setup or ... precisely what, but most of the time (not 100% reproducible), if I close a SQL query editor, it kills the entire application. It almost invariably happens if I have only a single SQL editor window open, somewhat less often with more than one. There doesn't seem to be any correlation between increasing number of windows and decreasing frequency of crash, but my testing in that vein hasn't been too thorough. While not critical, this is something of a nuisance. Since the app doesn't exit cleanly, it never saves my server connections, necessitating I re-enter them each session. Apparently, they're saved on exit? I'm running under Gentoo, custom kernel 2.6.7 using X.org release 6.7, wxGTK 2.4.2-r1. P4 2.4GHz, 512MB, blah, blah, blah. pgAdmin v 1.0.2, 29th June 2004. Running under gdb I get (obviously not a debug build): Program received signal SIGSEGV, Segmentation fault. 0x084a7778 in ?? () (Helpful, no?) Running normally, upon closing the SQL window, the terminal I launched the pgAdmin3 from shows: [2]+ Illegal instruction pgadmin3 Has anyone else seen anything like this? Google's not very forthcoming on the subject. I can retry with a debug build (probably need to build wx with -DDEBUG, too, yes?) if this is a novel issue. This doesn't happen under the Win32 port, v 1.0.2, 28th November 2003 (no idea what version wx the Windows folk have; they used the binary installer). /rls -- :wq
> -----Original Message----- > From: pgadmin-support-owner@postgresql.org > [mailto:pgadmin-support-owner@postgresql.org] On Behalf Of > Rosser Schwarz > Sent: 02 July 2004 06:03 > To: pgadmin-support@postgresql.org > Subject: [pgadmin-support] bug? app closes on closing SQL editor > > Has anyone else seen anything like this? Google's not very > forthcoming on the subject. I can retry with a debug build > (probably need to build wx with -DDEBUG, too, yes?) if this > is a novel issue. Hi, Please try with a recent snapshot or CVS tip. There have been a variety of changes that might have fixed this iirc. http://pgadmin.postgresql.org/snapshots/ Regards, Dave.
On Fri, 2 Jul 2004 08:20:13 +0100, Dave Page <dpage@vale-housing.co.uk> wrote: > Please try with a recent snapshot or CVS tip. There have been a variety > of changes that might have fixed this iirc. Building the 1.1.0 (20040701) snapshot, I'm getting a string of compiler errors, as follows: ui/calbox.cpp: In member function `bool wxCalendarBox::Create(wxWindow*, int, const wxDateTime&, const wxPoint&, constwxSize&, long int, const wxString&) ': ui/calbox.cpp:75: error: no matching function for call to `wxBrush::wxBrush( wxColour)' ui/calbox.cpp: In member function `bool wxCalendarBox::Create(wxWindow*, int, const wxDateTime&, const wxPoint&, constwxSize&, long int, const wxString&) ': ui/calbox.cpp:76: error: no matching function for call to `wxPen::wxPen( wxColour, <anonymous enum>)' ui/calbox.cpp: In member function `bool wxCalendarBox::Create(wxWindow*, int, const wxDateTime&, const wxPoint&, constwxSize&, long int, const wxString&) ': ui/calbox.cpp:87: error: no matching function for call to `wxTextCtrl::Connect( <anonymous enum>, <anonymous enum>, constwxEventType&, void (wxObject::*)(wxEvent&), int, wxCalendarBox* const)' What's up? Is this snapshot expecting a different version of wx? /rls -- :wq
-----Original Message----- From: Rosser Schwarz [mailto:rosser.schwarz@gmail.com] Sent: Fri 7/2/2004 6:11 PM To: Dave Page Cc: pgadmin-support@postgresql.org Subject: Re: [pgadmin-support] bug? app closes on closing SQL editor > What's up? Is this snapshot expecting a different version of wx? It'll need the latest wx/pgadmin snapshot (ie. not a standard one). You can get it from the snapshots site you got the pgatarball from. Regards, Dave
On Fri, 2 Jul 2004 20:13:38 +0100, Dave Page <dpage@vale-housing.co.uk> wrote: > It'll need the latest wx/pgadmin snapshot (ie. not a standard one). You can get it >from the snapshots site you got the pga tarball from. I grabbed wxWindows-pgAdmin3-20031010-9.tar.bz2 (most recent version of the source tarballs). wx builds and installs successfully. Returning to pgAdmin3 and trying to build results in: [rschwarz@rschwarz pgadmin3-1.1.0]$ make && make install make all-recursive make[1]: Entering directory `/home/rschwarz/src/pgadmin3-1.1.0' Making all in src make[2]: Entering directory `/home/rschwarz/src/pgadmin3-1.1.0/src' if g++ -DHAVE_CONFIG_H -I. -I. -I.. -DDATA_DIR=\"/usr/local/pgadmin3/share/pgadmin3/\" -Wall -g -I../src/include -I../src/agent/include -I/usr/include -DSSL -I/usr/lib/wx/include/gtk2-2.4 -DGTK_NO_CHECK_CASTS -D__WXGTK__ -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -I/usr/include -DDATA_DIR=\"/usr/local/pgadmin3/share/pgadmin3/\" -Wall -g -I../src/include -I../src/agent/include -g -O2 -MT calbox.o -MD -MP -MF ".deps/calbox.Tpo" \ -c -o calbox.o `test -f 'ui/calbox.cpp' || echo './'`ui/calbox.cpp; \ then mv -f ".deps/calbox.Tpo" ".deps/calbox.Po"; \ else rm -f ".deps/calbox.Tpo"; exit 1; \ fi In file included from /usr/lib/wx/include/gtk2-2.4/wx/setup.h:1144, from /usr/local/include/wx/platform.h:101, from /usr/local/include/wx/defs.h:23, from /usr/local/include/wx/wx.h:15, from ui/calbox.cpp:12: /usr/local/include/wx/chkconf.h:55:9: #error "wxUSE_EXCEPTIONS must be defined." /usr/local/include/wx/chkconf.h:158:9: #error "wxUSE_XML must be defined." /usr/local/include/wx/chkconf.h:336:9: #error "wxUSE_DISPLAY must be defined." /usr/local/include/wx/chkconf.h:412:13: #error "wxUSE_LIBMSPACK must be defined." /usr/local/include/wx/chkconf.h:453:9: #error "wxUSE_LISTBOOK must be defined." /usr/local/include/wx/chkconf.h:895:13: #error "wxUSE_DYNAMIC_LOADER requires wxUSE_DYNLIB_CLASS." In file included from /usr/local/include/wx/platform.h:104, from /usr/local/include/wx/defs.h:23, from /usr/local/include/wx/wx.h:15, from ui/calbox.cpp:12: /usr/local/include/wx/chkconf.h:55:9: #error "wxUSE_EXCEPTIONS must be defined." /usr/local/include/wx/chkconf.h:158:9: #error "wxUSE_XML must be defined." /usr/local/include/wx/chkconf.h:336:9: #error "wxUSE_DISPLAY must be defined." /usr/local/include/wx/chkconf.h:412:13: #error "wxUSE_LIBMSPACK must be defined." /usr/local/include/wx/chkconf.h:453:9: #error "wxUSE_LISTBOOK must be defined." /usr/local/include/wx/chkconf.h:895:13: #error "wxUSE_DYNAMIC_LOADER requires wxUSE_DYNLIB_CLASS." make[2]: *** [calbox.o] Error 1 make[2]: Leaving directory `/home/rschwarz/src/pgadmin3-1.1.0/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/rschwarz/src/pgadmin3-1.1.0' make: *** [all] Error 2 [rschwarz@rschwarz pgadmin3-1.1.0]$ grep wxVERSION_STRING /usr/local/include/wx/* /usr/local/include/wx/version.h:#define wxVERSION_STRING _T("wxWindows 2.5.1") Next? /rls -- :wq
> -----Original Message----- > From: Rosser Schwarz [mailto:rosser.schwarz@gmail.com] > Sent: 02 July 2004 21:14 > To: Dave Page > Cc: pgadmin-support@postgresql.org > Subject: Re: [pgadmin-support] bug? app closes on closing SQL editor > > In file included from /usr/local/include/wx/platform.h:104, > from /usr/local/include/wx/defs.h:23, > from /usr/local/include/wx/wx.h:15, > from ui/calbox.cpp:12: > /usr/local/include/wx/chkconf.h:55:9: #error > "wxUSE_EXCEPTIONS must be defined." Hmm, that's odd. What options did you give to wx's configure? Regards, Dave.
On Mon, 5 Jul 2004 08:55:19 +0100, Dave Page <dpage@vale-housing.co.uk> wrote: > Hmm, that's odd. What options did you give to wx's configure? ./configure --with-gtk && make && make install && ldconfig Everything else on the system has been installed from ebuilds; I assume it's all in fairly standard locations. It's possible that there's remnants of an older version lurking around somewhere or something. That's the only explanation I can think of. This was on my machine at work, however, which I don't have access to right now. I'll scour wx and pgadmin off the system when I'm in front of it again on Tuesday, try again with the latest tarballs and advise from there. /rls -- :wq
> -----Original Message----- > From: Rosser Schwarz [mailto:rosser.schwarz@gmail.com] > Sent: 05 July 2004 09:43 > To: Dave Page > Cc: pgadmin-support@postgresql.org > Subject: Re: [pgadmin-support] bug? app closes on closing SQL editor > > On Mon, 5 Jul 2004 08:55:19 +0100, Dave Page > <dpage@vale-housing.co.uk> wrote: > > > Hmm, that's odd. What options did you give to wx's configure? > > ./configure --with-gtk && make && make install && ldconfig > Try: ./configure --with-gtk --enable-gtk2 --enable-unicode --disable-shared --enable-debug The missing --enable-gtk2 is probably what's causing the problem. Regards Dave.
On Mon, 5 Jul 2004 09:55:44 +0100, Dave Page <dpage@vale-housing.co.uk> wrote: > The missing --enable-gtk2 is probably what's causing the problem. Nope; same errors. Attached is the output from `make all install clean &> ./build-errors` This is with the 20031010-9 snapshot of wxWindows-pgAdmin3 and the 20040702 snapshot of pgAdmin3 1.1.0. /rls -- :wq
Attachment
Rosser Schwarz wrote: >On Mon, 5 Jul 2004 09:55:44 +0100, Dave Page <dpage@vale-housing.co.uk> wrote: > > > >>The missing --enable-gtk2 is probably what's causing the problem. >> >> > >Nope; same errors. Attached is the output from `make all install clean >&> ./build-errors` > >This is with the 20031010-9 snapshot of wxWindows-pgAdmin3 and the >20040702 snapshot of pgAdmin3 1.1.0. > Yes, this is a bug in cvs-head; when debugging several gtk warnings are thrown. Will take a while to fix, stay tuned. Regards, Andreas