Unix Technical Forum

Re: 1.2.2 testing ==> [PROBLEM]

This is a discussion on Re: 1.2.2 testing ==> [PROBLEM] within the pgsql Interfaces Pgadmin Hackers forums, part of the PostgreSQL category; --> Hmm, I think Andreas will need to figure this one out - I can't see the problem :-( Incidently, ...


Go Back   Unix Technical Forum > Database Server Software > PostgreSQL > pgsql Interfaces Pgadmin Hackers

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-17-2008, 05:44 PM
Dave Page
 
Posts: n/a
Default Re: 1.2.2 testing ==> [PROBLEM]

Hmm, I think Andreas will need to figure this one out - I can't see the problem :-(

Incidently, I get slightly more helpful output :-)

2005-05-23 15:24:48 DEBUG : /usr/local/include/wx-2.6/wx/object.h(326): assert "ptr" failed: wxStaticCast() used incorrectly

Call stack:
[05] wxStackWalker::Walk(unsigned int) src/unix/stackwalk.cpp:218
[06] ShowAssertDialog src/common/appbase.cpp:781
[07] wxAppConsole::OnAssert(wchar_t const*, int, wchar_t const*, wchar_t const*) src/common/appbase.cpp:458
[08] wxApp::OnAssert(wchar_t const*, int, wchar_t const*, wchar_t const*) src/gtk/app.cpp:720
[09] wxOnAssert(wchar_t const*, int, wchar_t const*, wchar_t const*) src/common/appbase.cpp:646
[10] wxAssert(int, wchar_t const*, int, wchar_t const*, wchar_t const*) src/common/appbase.cpp:613
[11] pgDialog::PostCreation() /usr/local/include/wx-2.6/wx/object.h:326
[12] dlgProperty::dlgProperty(frmMain*, wxString const&) /usr/local/include/wx-2.6/wx/object.h:521
[13] dlgServer::dlgServer(frmMain*, pgServer*) /usr/local/include/wx-2.6/wx/string.h:258
[14] dlgProperty::CreateDlg(frmMain*, pgObject*, bool, int) ui/dlgProperty.cpp:622
[15] dlgProperty::EditObjectDialog(frmMain*, ctlSQLBox*, pgObject*) ui/dlgProperty.cpp:803
[16] frmMain::OnProperties(wxCommandEvent&) ui/events.cpp:1316
[17] wxAppConsole::HandleEvent(wxEvtHandler*, void (wxEvtHandler::*)(wxEvent&), wxEvent&) const src/common/appbase.cpp:325
[18] wxEvtHandler::ProcessEventIfMatches(wxEventTableEn tryBase const&, wxEvtHandler*, wxEvent&) src/common/event.cpp:1183
[19] wxEventHashTable::HandleEvent(wxEvent&, wxEvtHandler*) src/common/event.cpp:867
[20] wxEvtHandler::ProcessEvent(wxEvent&) src/common/event.cpp:1245
[21] wxWindowBase::TryParent(wxEvent&) src/common/wincmn.cpp:2509
[22] wxEvtHandler::ProcessEvent(wxEvent&) src/common/event.cpp:1258
[23] wxWindowBase::TryParent(wxEvent&) src/common/wincmn.cpp:2509
[24] wxEvtHandler::ProcessEvent(wxEvent&) src/common/event.cpp:1258
[25] wxMenuBase::SendEvent(int, int) src/common/menucmn.cpp:612
2005-05-23 15:26:59 DEBUG : /usr/local/include/wx-2.6/wx/object.h(326): assert "ptr" failed: wxStaticCast() used incorrectly

I'm guessing that addr2line is part of wx's assert handling code - I don't see any mention of it in my logs. Oh, and this appears to happen for most dialogues.

Regards, Dave.

> -----Original Message-----
> From: Raphaël Enrici [mailto:blacknoz@club-internet.fr]
> Sent: 21 May 2005 22:53
> To: Dave Page; pgadmin-hackers@postgresql.org; Andreas Pflug
> Subject: Re: [pgadmin-hackers] 1.2.2 testing ==> [PROBLEM]
>
>
> Hi,
>
> it must be a problem with my packaging but if someone has a quick idea
> on what's going on, it would help me to gain time:
>
> 1.3.0 (just checked out) works smoothly under Debian.
> 1.2.2 causes a wxAssert as soon as I try to add a server or modify a
> server configuration:
>
> abstract from the log:
> 2005-05-21 22:47:32 INFO : Creating a pgServer object
> 2005-05-21 22:47:32 INFO : Creating a pgServer object
> 2005-05-21 22:47:32 INFO : Creating a pgServer object
> 2005-05-21 22:47:32 INFO : Creating a pgServer object
> 2005-05-21 22:47:32 INFO : Creating a pgServer object
> 2005-05-21 22:47:44 STATUS : Interrogation en cours de la
> configuration
> du serveur....
> 2005-05-21 22:47:44 INFO : Displaying properties for Server
> localhost:5434
> 2005-05-21 22:47:44 INFO : Displaying properties for server
> localhost:5434
> 2005-05-21 22:47:44 STATUS : Interrogation en cours de la
> configuration
> du serveur.... (0,00 secondes)
> 2005-05-21 22:47:46 DEBUG : Empty addr2line output?
> 2005-05-21 22:47:46 DEBUG : Empty addr2line output?
> 2005-05-21 22:47:47 DEBUG : Empty addr2line output?
> 2005-05-21 22:47:47 DEBUG : Empty addr2line output?
> 2005-05-21 22:47:47 DEBUG : Empty addr2line output?
> 2005-05-21 22:47:47 DEBUG : Empty addr2line output?
> 2005-05-21 22:47:47 DEBUG : Empty addr2line output?
> 2005-05-21 22:47:47 DEBUG : Empty addr2line output?
>
> The last lines are looping for a while.
> If I ask to cancel the wxAssert, the windows I've asked for appears
> correctly.
> On console, I have many lines likes this one:
> addr2line: 'pgadmin3': No such file
>
> To me, the addr2line can be ignored and is generated by wxWid
> launching
> addr2line on pgadmin3 but here is the assert:
>
> /usr/include/wx-2.6-pga3/wx/object.h(326): assert "ptr" failed:
> wxStaticCast() used incorrectly
>
> Call stack:
> [05] wxStackWalker::Walk(unsigned)
> [06] 0x40792ea8
> [07] wxAppConsole::OnAssert(wchar_t const*, int, wchar_t
> const*, wchar_t
> const*)
> [08] wxApp::OnAssert(wchar_t const*, int, wchar_t const*,
> wchar_t const*)
> [09] wxOnAssert(wchar_t const*, int, wchar_t const*, wchar_t const*)
> [10] wxAssert(int, wchar_t const*, int, wchar_t const*,
> wchar_t const*)
> [11] 0x0811760b
> [12] 0x08192195
> [13] 0x081a715a
> [14] 0x081359cd
> [15] wxAppConsole::HandleEvent(wxEvtHandler*, void
> (wxEvtHandler::*)(wxEvent&), wxEvent&) const
> [16] wxEvtHandler::ProcessEventIfMatches(wxEventTableEn tryBase const&,
> wxEvtHandler*, wxEvent&)
> [17] wxEventHashTable::HandleEvent(wxEvent&, wxEvtHandler*)
> [18] wxEvtHandler::ProcessEvent(wxEvent&)
> [19] 0x40505bba
> [20] __float128
> [21] __float128
> [22] 0x410ebdcf
> [23] __float128
> [24] __float128
> [25] __float128
> Do you want to stop the program?
> You can also choose [Cancel] to suppress further warnings.
>
> Any idea?
>
> Regards,
> Raphaël
>


---------------------------(end of broadcast)---------------------------
TIP 1: subscribe and unsubscribe commands go to majordomo@postgresql.org

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-17-2008, 05:45 PM
Andreas Pflug
 
Posts: n/a
Default Re: 1.2.2 testing ==> [PROBLEM]

Dave Page wrote:
> Hmm, I think Andreas will need to figure this one out - I can't see the problem :-(


This is a wx weirdo, a wxObject ptr may not be zero (even if you expect
it to be zero)
After a longlonglong period of thinking I remembered that wxStaticCast
needs to be redefined. Backport of workaround committed to svn.

Regards,
Andreas

---------------------------(end of broadcast)---------------------------
TIP 1: subscribe and unsubscribe commands go to majordomo@postgresql.org

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 02:18 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com