Thread: 15.1 Dev + wxwidgets 2.9.3 - open query builder error

15.1 Dev + wxwidgets 2.9.3 - open query builder error

From
Colin Beckingham
Date:
In 15.1 dev + wxw 2.9.3

1. open pgadmin3 (splash screen does not appear, straight to main dialog)
2. click on icon for query builder, error box pops up offering backtrace 
(posted below)
3. click stop in error dialog, Query Builder opens normally and old 
queries are available and work fine.

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

ASSERT INFO:
./src/gtk/textctrl.cpp(828): assert "IsSingleLine()" failed in 
GetEditable(): shouldn't be called for multiline

BACKTRACE:
[1] wxOnAssert(char const*, int, char const*, char const*, char const*)
[2] wxTextCtrl::GetEditable() cons)
[3] wxTextEntry::SetMaxLength(unsigned long)
[4] frmQuery::frmQuery(frmMain*, wxString const&, pgConn*, wxString 
const&, wxString const&)
[5] queryToolBaseFactory::StartDialogSql(frmMain*, pgObject*, wxString 
const&)
[6] queryToolFactory::StartDialog(frmMain*, pgObject*)
[7] frmMain::OnAction(wxCommandEvent&)
[8] wxAppConsoleBase::CallEventHandler(wxEvtHandler*, wxEventFunctor&, 
wxEvent&) cons)
[9] wxEvtHandler::ProcessEventIfMatchesId(wxEventTableEntryBase const&, 
wxEvtHandler*, wxEvent&)
[10] wxEvtHandler::SearchDynamicEventTable(wxEvent&)
[11] wxEvtHandler::TryHereOnly(wxEvent&)
[12] wxEvtHandler::DoTryChain(wxEvent&)
[13] wxEvtHandler::ProcessEvent(wxEvent&)
[14] wxWindowBase::TryAfter(wxEvent&)
[15] wxEvtHandler::SafelyProcessEvent(wxEvent&)
[16] wxToolBarBase::OnLeftClick(int, bool)
[17] g_closure_invoke()
[18] g_signal_emit_valist()
[19] g_signal_emit_by_name()
[20] g_closure_invoke()
[21] g_signal_emit_valist()
[22] g_signal_emit()
[23] g_closure_invoke()
[24] g_signal_emit_valist()
[25] g_signal_emit()
[26] g_closure_invoke()
[27] g_signal_emit_valist()
[28] g_signal_emit()
[29] gtk_propagate_event()
[30] gtk_main_do_event()
[31] g_main_context_dispatch()
[32] g_main_loop_run()
[33] gtk_main()


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


Re: 15.1 Dev + wxwidgets 2.9.3 - open query builder error

From
Guillaume Lelarge
Date:
On Sat, 2012-03-03 at 11:13 -0500, Colin Beckingham wrote:
> In 15.1 dev + wxw 2.9.3
> 
> 1. open pgadmin3 (splash screen does not appear, straight to main dialog)
> 2. click on icon for query builder, error box pops up offering backtrace 
> (posted below)
> 3. click stop in error dialog, Query Builder opens normally and old 
> queries are available and work fine.
> 
> =====================
> 
> ASSERT INFO:
> ./src/gtk/textctrl.cpp(828): assert "IsSingleLine()" failed in 
> GetEditable(): shouldn't be called for multiline
> 

Finally found the reason why. I pushed a patch from Akshay Joshi,
slightly modified by me.

Thanks for the report.


-- 
Guillaume
http://blog.guillaume.lelarge.info
http://www.dalibo.com