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

Re: phase 2 of wxWidgets 2.9 build

From: Dave Page <dpage(at)pgadmin(dot)org>
To: Peter Geoghegan <peter(dot)geoghegan86(at)gmail(dot)com>
Cc: pgadmin-hackers(at)postgresql(dot)org
Subject: Re: phase 2 of wxWidgets 2.9 build
Date: 2011-02-15 08:39:09
Message-ID: AANLkTi=Pvd3n=XU2JxjjULif2-jaWHr1LQZMuqAczbgj@mail.gmail.com (view raw or flat)
Thread:
Lists: pgadmin-hackers
Not sure about the first error offhand, but to get you going, the
second one is probably the result of not regenerating xrcdialogs.cpp
using the embed-xrc script.

On Mon, Feb 14, 2011 at 10:50 PM, Peter Geoghegan
<peter(dot)geoghegan86(at)gmail(dot)com> wrote:
> I've found more problems with wx 2.9. Specifically, I seem to be
> having some problems with the table editor. Segfaults occur when I
> edit columns of specific datatypes. I'm using the dellstore2 sample
> database, available from http://pgfoundry.org/projects/dbsamples/.
>
> The following datatypes segfault when I press return to commit changes:
>
> SERIAL (though, curiously, not integer, even when it's our PK)
> text/varchar(n)
> date
>
> The following do not:
> integer
> numeric
>
> This occurs on the debug and release builds.
>
> Here's a stacktrace from when I modify a varchar(50) field, country,
> from dellstore2's customers table:
>
> Program received signal SIGSEGV, Segmentation fault.
> 0x0000000000000000 in ?? ()
> (gdb) bt
> #0  0x0000000000000000 in ?? ()
> #1  0x00007ffff6b1f710 in wxGridCellTextEditor::EndEdit(int, int,
> wxGrid const*, wxString const&, wxString*) () from
> /usr/local/lib/libwx_gtk2u_adv-2.9.so.2
> #2  0x00007ffff6b050b2 in wxGrid::SaveEditControlValue() () from
> /usr/local/lib/libwx_gtk2u_adv-2.9.so.2
> #3  0x00007ffff6b06083 in wxGrid::EnableCellEditControl(bool) () from
> /usr/local/lib/libwx_gtk2u_adv-2.9.so.2
> #4  0x00007ffff586066d in
> wxAppConsoleBase::CallEventHandler(wxEvtHandler*, wxEventFunctor&,
> wxEvent&) const () from /usr/local/lib/libwx_baseu-2.9.so.2
> #5  0x00007ffff5a3b2c1 in
> wxEvtHandler::ProcessEventIfMatchesId(wxEventTableEntryBase const&,
> wxEvtHandler*, wxEvent&) ()
>   from /usr/local/lib/libwx_baseu-2.9.so.2
> #6  0x00007ffff5a3b41c in wxEventHashTable::HandleEvent(wxEvent&,
> wxEvtHandler*) () from /usr/local/lib/libwx_baseu-2.9.so.2
> #7  0x00007ffff5a3b713 in wxEvtHandler::ProcessEventLocally(wxEvent&)
> () from /usr/local/lib/libwx_baseu-2.9.so.2
> #8  0x00007ffff5a3b781 in wxEvtHandler::ProcessEvent(wxEvent&) () from
> /usr/local/lib/libwx_baseu-2.9.so.2
> #9  0x00007ffff5a3b527 in wxEvtHandler::SafelyProcessEvent(wxEvent&)
> () from /usr/local/lib/libwx_baseu-2.9.so.2
> #10 0x00007ffff63d6cbb in wxWindow::GTKHandleFocusOutNoDeferring() ()
> from /usr/local/lib/libwx_gtk2u_core-2.9.so.2
> #11 0x00007ffff63d6d60 in wxWindow::GTKHandleFocusOut() () from
> /usr/local/lib/libwx_gtk2u_core-2.9.so.2
> #12 0x00007ffff63d6d7c in gtk_window_focus_out_callback () from
> /usr/local/lib/libwx_gtk2u_core-2.9.so.2
> #13 0x00000032b874e223 in _gtk_marshal_BOOLEAN__BOXED
> (closure=0x184e5f0, return_value=0x7fffffffc470, n_param_values=<value
> optimized out>, param_values=
>    0x18418a0, invocation_hint=<value optimized out>,
> marshal_data=<value optimized out>) at gtkmarshalers.c:86
> #14 0x00000032b020e03e in g_closure_invoke (closure=0x184e5f0,
> return_value=0x7fffffffc470, n_param_values=2, param_values=0x18418a0,
> invocation_hint=
>    0x7fffffffc430) at gclosure.c:766
> #15 0x00000032b021ee87 in signal_emit_unlocked_R (node=<value
> optimized out>, detail=0, instance=0x1698290,
> emission_return=0x7fffffffc5e0,
>    instance_and_params=0x18418a0) at gsignal.c:3252
> #16 0x00000032b0228555 in g_signal_emit_valist (instance=<value
> optimized out>, signal_id=<value optimized out>, detail=<value
> optimized out>,
>    var_args=<value optimized out>) at gsignal.c:2993
> #17 0x00000032b0228983 in g_signal_emit (instance=<value optimized
> out>, signal_id=<value optimized out>, detail=<value optimized out>)
> at gsignal.c:3040
> #18 0x00000032b8885aef in gtk_widget_event_internal (widget=0x1698290
> [wxPizza], event=0x181df30) at gtkwidget.c:4992
> #19 0x00000032b8893cf1 in IA__gtk_widget_send_focus_change
> (widget=0x1698290 [wxPizza], event=0x181df30) at gtkwidget.c:11416
> #20 0x00000032b8893ef2 in do_focus_change (widget=0x1698290 [wxPizza],
> in=0) at gtkwindow.c:5304
> #21 0x00000032b88957ea in gtk_window_real_set_focus (window=0x161ee20
> [GtkWindow], focus=0x0) at gtkwindow.c:5508
> #22 0x00000032b020e03e in g_closure_invoke (closure=0xf3aef0,
> return_value=0x0, n_param_values=2, param_values=0x16b8d20,
> invocation_hint=0x7fffffffc910)
>    at gclosure.c:766
> #23 0x00000032b021ec98 in signal_emit_unlocked_R (node=<value
> optimized out>, detail=0, instance=0x161ee20, emission_return=0x0,
> instance_and_params=
>    0x16b8d20) at gsignal.c:3290
> #24 0x00000032b02287b5 in g_signal_emit_valist (instance=<value
> optimized out>, signal_id=<value optimized out>, detail=<value
> optimized out>,
>    var_args=<value optimized out>) at gsignal.c:2983
> #25 0x00000032b0228983 in g_signal_emit (instance=<value optimized
> out>, signal_id=<value optimized out>, detail=<value optimized out>)
> at gsignal.c:3040
> #26 0x00000032b889cd3d in _gtk_window_unset_focus_and_default
> (window=0x161ee20 [GtkWindow], widget=0x1719490 [GtkScrolledWindow])
> at gtkwindow.c:5590
> #27 0x00000032b888e663 in IA__gtk_widget_hide (widget=0x1719490
> [GtkScrolledWindow]) at gtkwidget.c:3303
> #28 0x00007ffff63d567d in wxWindow::Show(bool) () from
> /usr/local/lib/libwx_gtk2u_core-2.9.so.2
> #29 0x00007ffff6b1df92 in wxGridCellEditor::Show(bool,
> wxGridCellAttr*) () from /usr/local/lib/libwx_gtk2u_adv-2.9.so.2
> #30 0x00007ffff6afb225 in wxGrid::HideCellEditControl() () from
> /usr/local/lib/libwx_gtk2u_adv-2.9.so.2
> #31 0x00000000005d2677 in frmEditGrid::DoSave (this=0x17b80f0) at
> ./frm/frmEditGrid.cpp:1047
> #32 0x00000000005d2656 in frmEditGrid::OnSave (this=0x17b80f0,
> event=...) at ./frm/frmEditGrid.cpp:1042
> #33 0x00000000005d1c8f in frmEditGrid::OnKey (this=0x17b80f0,
> event=...) at ./frm/frmEditGrid.cpp:921
> #34 0x00007ffff586066d in
> wxAppConsoleBase::CallEventHandler(wxEvtHandler*, wxEventFunctor&,
> wxEvent&) const () from /usr/local/lib/libwx_baseu-2.9.so.2
> #35 0x00007ffff5a3b2c1 in
> wxEvtHandler::ProcessEventIfMatchesId(wxEventTableEntryBase const&,
> wxEvtHandler*, wxEvent&) ()
>   from /usr/local/lib/libwx_baseu-2.9.so.2
> #36 0x00007ffff5a3b41c in wxEventHashTable::HandleEvent(wxEvent&,
> wxEvtHandler*) () from /usr/local/lib/libwx_baseu-2.9.so.2
> #37 0x00007ffff5a3b4d3 in wxEvtHandler::DoTryChain(wxEvent&) () from
> /usr/local/lib/libwx_baseu-2.9.so.2
> #38 0x00007ffff5a3b781 in wxEvtHandler::ProcessEvent(wxEvent&) () from
> /usr/local/lib/libwx_baseu-2.9.so.2
> #39 0x00007ffff6b0956e in wxGrid::OnKeyDown(wxKeyEvent&) () from
> /usr/local/lib/libwx_gtk2u_adv-2.9.so.2
> #40 0x00007ffff586066d in
> wxAppConsoleBase::CallEventHandler(wxEvtHandler*, wxEventFunctor&,
> wxEvent&) const () from /usr/local/lib/libwx_baseu-2.9.so.2
> #41 0x00007ffff5a3b2c1 in
> wxEvtHandler::ProcessEventIfMatchesId(wxEventTableEntryBase const&,
> wxEvtHandler*, wxEvent&) ()
>   from /usr/local/lib/libwx_baseu-2.9.so.2
> #42 0x00007ffff5a3b41c in wxEventHashTable::HandleEvent(wxEvent&,
> wxEvtHandler*) () from /usr/local/lib/libwx_baseu-2.9.so.2
> #43 0x00007ffff5a3b713 in wxEvtHandler::ProcessEventLocally(wxEvent&)
> () from /usr/local/lib/libwx_baseu-2.9.so.2
> #44 0x00007ffff5a3b781 in wxEvtHandler::ProcessEvent(wxEvent&) () from
> /usr/local/lib/libwx_baseu-2.9.so.2
> #45 0x00007ffff663eb6f in
> wxScrollHelperEvtHandler::ProcessEvent(wxEvent&) () from
> /usr/local/lib/libwx_gtk2u_core-2.9.so.2
> ---Type <return> to continue, or q <return> to quit---
>
>
> I also see errors like this, but only on the release build:
>
> An error has occurred:
>
> XRC error: memory:XRC_resource/xrcDialogs.cpp$frmHint.xrc:6: unknown
> style flag "wxRESIZE_BOX"
>
> An error has occurred:
>
> XRC error: memory:XRC_resource/xrcDialogs.cpp$frmHint.xrc:6: unknown
> style flag "wxTHICK_FRAME"
>
>
> I've already removed all wxRESIZE_BOX and wxTHICK_FRAME flags, which
> fixed lots of these errors on the debug build, so I've currently no
> idea why this happens.
>
> --
> Regards,
> Peter Geoghegan
>



-- 
Dave Page
Blog: http://pgsnake.blogspot.com
Twitter: @pgsnake

EnterpriseDB UK: http://www.enterprisedb.com
The Enterprise PostgreSQL Company

In response to

Responses

pgadmin-hackers by date

Next:From: TimonDate: 2011-02-15 10:40:22
Subject: Re: pgAdmin III commit: Quick fix for a registry datatype issue on Windows,
Previous:From: Peter GeogheganDate: 2011-02-15 03:50:03
Subject: Re: phase 2 of wxWidgets 2.9 build

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