Error: cannot mix different types of client data

From: Colin Beckingham <colbec(at)start(dot)ca>
To: pgadmin-support(at)postgresql(dot)org
Subject: Error: cannot mix different types of client data
Date: 2012-03-07 12:07:06
Message-ID: 4F574F6A.7070200@start.ca
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgadmin-support

Houston, we have a problem.
Using 1.15 dev latest pull from git.

Steps:
1. connect to postgresql server
2. select a database but the wrong one (deliberate misstep)
3. open query builder and enter an sql statement referring to another db
4. error, no relation 'xxxx' exists, ok
5. QB menu bar offers dropdown which contains name of currently
connected db and 'new connection'
6. select 'new connection', dialog box appears
7. database list offers the db you really need, select it
8. OK, crash.

If this is a contextually illegal request, probably best that the user
is prevented from hitting the error.

Workaround is easy, select the right db to begin with.

======================

ASSERT INFO:
./include/wx/ctrlsub.h(180): assert "GetClientDataType() !=
wxClientData_Void" failed in InsertItems(): can't mix different types of
client data

BACKTRACE:
[1] wxOnAssert(char const*, int, char const*, char const*, wchar_t const*)
[2] wxBitmapComboBox::Insert(wxString const&, wxBitmap const&, unsigned
int, wxClientData*)
[3] frmQuery::OnChangeConnection(wxCommandEvent&)
[4] wxAppConsoleBase::CallEventHandler(wxEvtHandler*, wxEventFunctor&,
wxEvent&) cons)
[5] wxEvtHandler::ProcessEventIfMatchesId(wxEventTableEntryBase const&,
wxEvtHandler*, wxEvent&)
[6] wxEventHashTable::HandleEvent(wxEvent&, wxEvtHandler*)
[7] wxEvtHandler::DoTryChain(wxEvent&)
[8] wxEvtHandler::ProcessEvent(wxEvent&)
[9] wxWindowBase::TryAfter(wxEvent&)
[10] wxEvtHandler::SafelyProcessEvent(wxEvent&)
[11] wxChoice::SendSelectionChangedEvent(int)
[12] g_closure_invoke()
[13] g_signal_emit_valist()
[14] g_signal_emit()
[15] gtk_combo_box_set_active_iter()
[16] g_closure_invoke()
[17] g_signal_emit_valist()
[18] g_signal_emit()
[19] gtk_widget_activate()
[20] gtk_menu_shell_activate_item()
[21] g_closure_invoke()
[22] g_signal_emit_valist()
[23] g_signal_emit()
[24] gtk_propagate_event()
[25] gtk_main_do_event()
[26] g_main_context_dispatch()
[27] g_main_loop_run()
[28] gtk_main()

--
---
Colin Beckingham
613-454-5369
http://www.it4gh.com

Responses

Browse pgadmin-support by date

  From Date Subject
Next Message Guillaume Lelarge 2012-03-07 14:10:21 Re: Error: cannot mix different types of client data
Previous Message Guillaume Lelarge 2012-03-06 20:47:56 Re: View create usage