Обсуждение: Option menu crash in the last git version

Поиск
Список
Период
Сортировка

Option menu crash in the last git version

От
Philippe Rimbault
Дата:
Hi,

I'm using the last GIT version of Pgadmin (great job from the dev team !).
Version : REL-1_13_DEV-117-g5af8973

I can't go anymore in the option menu (fichier -> préférence in my 
french version).
Here is the output of the crash :

(pgadmin3:22539): GLib-GObject-WARNING **: invalid cast from 
`GtkFileChooserButton' to `GtkBin'

(pgadmin3:22539): Gtk-CRITICAL **: gtk_widget_modify_style: assertion 
`GTK_IS_WIDGET (widget)' failed
...
(pgadmin3:22539): GLib-GObject-WARNING **: invalid cast from 
`GtkFileChooserButton' to `GtkBin'

(pgadmin3:22539): Gtk-CRITICAL **: gtk_widget_modify_style: assertion 
`GTK_IS_WIDGET (widget)' failed
Erreur de segmentation

regards

philippe




Re: Option menu crash in the last git version

От
Philippe Rimbault
Дата:
On 14/10/2010 15:05, Guillaume Lelarge wrote:
> Hi Philippe,
>
> Le 14/10/2010 14:43, Philippe Rimbault a écrit :
>    
>> [...]
>> I'm using the last GIT version of Pgadmin (great job from the dev team !).
>> Version : REL-1_13_DEV-117-g5af8973
>>
>> I can't go anymore in the option menu (fichier ->  préférence in my
>> french version).
>> Here is the output of the crash :
>>
>> (pgadmin3:22539): GLib-GObject-WARNING **: invalid cast from
>> `GtkFileChooserButton' to `GtkBin'
>>
>> (pgadmin3:22539): Gtk-CRITICAL **: gtk_widget_modify_style: assertion
>> `GTK_IS_WIDGET (widget)' failed
>> ...
>> (pgadmin3:22539): GLib-GObject-WARNING **: invalid cast from
>> `GtkFileChooserButton' to `GtkBin'
>>
>> (pgadmin3:22539): Gtk-CRITICAL **: gtk_widget_modify_style: assertion
>> `GTK_IS_WIDGET (widget)' failed
>> Erreur de segmentation
>>
>>      
> Well, I think I know why. Can you go into pgadmin/ui and do a
>
> . ./embed-xrc
>
> Then, compile your branch, and test the results.
>
> And tell us if it fixes your issue.
>
> I'm quite sure I forgot to do this when I commited my two last patches.
>
>
>    

Same crash ...
But it work if i have the good path to postgresql binary in my env 
(/usr/local/pgsql/bin)
I'm using Debian (testing) with postgresql compiled from sources, but i 
dont understand why Pgadmin need the path of the postgresql binaries ?!
(path is good in preferences of pgadmin)

Here the output of GDB (bt) :
Program received signal SIGSEGV, Segmentation fault.
0xb75eb3d0 in wxObject::Ref(wxObject const&) () from 
/usr/lib/libwx_baseu-2.8.so.0
(gdb) bt
#0  0xb75eb3d0 in wxObject::Ref(wxObject const&) () from 
/usr/lib/libwx_baseu-2.8.so.0
#1  0x080b5338 in ctlColourPicker::SetColour(wxString const&) ()
#2  0x0824579a in frmOptions::UpdateColourControls() ()
#3  0x08252008 in frmOptions::frmOptions(frmMain*) ()
#4  0x08256014 in optionsFactory::StartDialog(frmMain*, pgObject*) ()
#5  0x081e0224 in frmMain::OnAction(wxCommandEvent&) ()
#6  0xb759cf2f in wxAppConsole::HandleEvent(wxEvtHandler*, void 
(wxEvtHandler::*)(wxEvent&), wxEvent&) const () from 
/usr/lib/libwx_baseu-2.8.so.0
#7  0xb763af39 in 
wxEvtHandler::ProcessEventIfMatches(wxEventTableEntryBase const&, 
wxEvtHandler*, wxEvent&) () from /usr/lib/libwx_baseu-2.8.so.0
#8  0xb763b0c8 in wxEvtHandler::SearchDynamicEventTable(wxEvent&) () 
from /usr/lib/libwx_baseu-2.8.so.0
#9  0xb763c0d5 in wxEvtHandler::ProcessEvent(wxEvent&) () from 
/usr/lib/libwx_baseu-2.8.so.0
#10 0xb763c099 in wxEvtHandler::ProcessEvent(wxEvent&) () from 
/usr/lib/libwx_baseu-2.8.so.0
#11 0xb7894389 in ?? () from /usr/lib/libwx_gtk2u_core-2.8.so.0
#12 0xb6921cac in g_cclosure_marshal_VOID__VOID () from 
/usr/lib/libgobject-2.0.so.0
#13 0xb691413a in g_closure_invoke () from /usr/lib/libgobject-2.0.so.0
#14 0xb692a61d in ?? () from /usr/lib/libgobject-2.0.so.0
#15 0xb692bbfc in g_signal_emit_valist () from /usr/lib/libgobject-2.0.so.0
#16 0xb692c076 in g_signal_emit () from /usr/lib/libgobject-2.0.so.0
#17 0xb6e2cea5 in gtk_widget_activate () from /usr/lib/libgtk-x11-2.0.so.0
#18 0xb6d0c3b0 in gtk_menu_shell_activate_item () from 
/usr/lib/libgtk-x11-2.0.so.0
#19 0xb6d0de7f in ?? () from /usr/lib/libgtk-x11-2.0.so.0
#20 0xb6d03674 in ?? () from /usr/lib/libgtk-x11-2.0.so.0
#21 0xb6cfce24 in ?? () from /usr/lib/libgtk-x11-2.0.so.0
#22 0xb69127a9 in ?? () from /usr/lib/libgobject-2.0.so.0
#23 0xb691413a in g_closure_invoke () from /usr/lib/libgobject-2.0.so.0
#24 0xb692a266 in ?? () from /usr/lib/libgobject-2.0.so.0
#25 0xb692ba7b in g_signal_emit_valist () from /usr/lib/libgobject-2.0.so.0
#26 0xb692c076 in g_signal_emit () from /usr/lib/libgobject-2.0.so.0
#27 0xb6e290f6 in ?? () from /usr/lib/libgtk-x11-2.0.so.0
#28 0xb6cf547d in gtk_propagate_event () from /usr/lib/libgtk-x11-2.0.so.0
#29 0xb6cf6807 in gtk_main_do_event () from /usr/lib/libgtk-x11-2.0.so.0
#30 0xb6b7edca in ?? () from /usr/lib/libgdk-x11-2.0.so.0
#31 0xb6868305 in g_main_context_dispatch () from /lib/libglib-2.0.so.0
#32 0xb686bfe8 in ?? () from /lib/libglib-2.0.so.0
#33 0xb686c527 in g_main_loop_run () from /lib/libglib-2.0.so.0
#34 0xb6cf6dc9 in gtk_main () from /usr/lib/libgtk-x11-2.0.so.0
#35 0xb781dd18 in wxEventLoop::Run() () from 
/usr/lib/libwx_gtk2u_core-2.8.so.0
#36 0xb78b0ace in wxAppBase::MainLoop() () from 
/usr/lib/libwx_gtk2u_core-2.8.so.0
#37 0xb78b06c1 in wxAppBase::OnRun() () from 
/usr/lib/libwx_gtk2u_core-2.8.so.0
#38 0xb75d6aca in wxEntry(int&, wchar_t**) () from 
/usr/lib/libwx_baseu-2.8.so.0
#39 0xb75d6ca7 in wxEntry(int&, char**) () from 
/usr/lib/libwx_baseu-2.8.so.0
#40 0x0807d37b in main ()
(gdb)





Re: Option menu crash in the last git version

От
Guillaume Lelarge
Дата:
Hi Philippe,

Le 14/10/2010 14:43, Philippe Rimbault a écrit :
> [...]
> I'm using the last GIT version of Pgadmin (great job from the dev team !).
> Version : REL-1_13_DEV-117-g5af8973
> 
> I can't go anymore in the option menu (fichier -> préférence in my
> french version).
> Here is the output of the crash :
> 
> (pgadmin3:22539): GLib-GObject-WARNING **: invalid cast from
> `GtkFileChooserButton' to `GtkBin'
> 
> (pgadmin3:22539): Gtk-CRITICAL **: gtk_widget_modify_style: assertion
> `GTK_IS_WIDGET (widget)' failed
> ...
> (pgadmin3:22539): GLib-GObject-WARNING **: invalid cast from
> `GtkFileChooserButton' to `GtkBin'
> 
> (pgadmin3:22539): Gtk-CRITICAL **: gtk_widget_modify_style: assertion
> `GTK_IS_WIDGET (widget)' failed
> Erreur de segmentation
> 

Well, I think I know why. Can you go into pgadmin/ui and do a

. ./embed-xrc

Then, compile your branch, and test the results.

And tell us if it fixes your issue.

I'm quite sure I forgot to do this when I commited my two last patches.


-- 
Guillaumehttp://www.postgresql.frhttp://dalibo.com


Re: Option menu crash in the last git version

От
Philippe Rimbault
Дата:
On 14/10/2010 15:28, Philippe Rimbault wrote:
> On 14/10/2010 15:05, Guillaume Lelarge wrote:
>> Hi Philippe,
>>
>> Le 14/10/2010 14:43, Philippe Rimbault a écrit :
>>> [...]
>>> I'm using the last GIT version of Pgadmin (great job from the dev 
>>> team !).
>>> Version : REL-1_13_DEV-117-g5af8973
>>>
>>> I can't go anymore in the option menu (fichier ->  préférence in my
>>> french version).
>>> Here is the output of the crash :
>>>
>>> (pgadmin3:22539): GLib-GObject-WARNING **: invalid cast from
>>> `GtkFileChooserButton' to `GtkBin'
>>>
>>> (pgadmin3:22539): Gtk-CRITICAL **: gtk_widget_modify_style: assertion
>>> `GTK_IS_WIDGET (widget)' failed
>>> ...
>>> (pgadmin3:22539): GLib-GObject-WARNING **: invalid cast from
>>> `GtkFileChooserButton' to `GtkBin'
>>>
>>> (pgadmin3:22539): Gtk-CRITICAL **: gtk_widget_modify_style: assertion
>>> `GTK_IS_WIDGET (widget)' failed
>>> Erreur de segmentation
>>>
>> Well, I think I know why. Can you go into pgadmin/ui and do a
>>
>> . ./embed-xrc
>>
>> Then, compile your branch, and test the results.
>>
>> And tell us if it fixes your issue.
>>
>> I'm quite sure I forgot to do this when I commited my two last patches.
>>
>>
>
Oups !
I 've forgot to change my prefix=... :)
All work fine ! THX !




Re: Option menu crash in the last git version

От
Guillaume Lelarge
Дата:
Le 14/10/2010 17:56, Philippe Rimbault a écrit :
> On 14/10/2010 15:28, Philippe Rimbault wrote:
>> On 14/10/2010 15:05, Guillaume Lelarge wrote:
>>> Hi Philippe,
>>>
>>> Le 14/10/2010 14:43, Philippe Rimbault a écrit :
>>>> [...]
>>>> I'm using the last GIT version of Pgadmin (great job from the dev
>>>> team !).
>>>> Version : REL-1_13_DEV-117-g5af8973
>>>>
>>>> I can't go anymore in the option menu (fichier ->  préférence in my
>>>> french version).
>>>> Here is the output of the crash :
>>>>
>>>> (pgadmin3:22539): GLib-GObject-WARNING **: invalid cast from
>>>> `GtkFileChooserButton' to `GtkBin'
>>>>
>>>> (pgadmin3:22539): Gtk-CRITICAL **: gtk_widget_modify_style: assertion
>>>> `GTK_IS_WIDGET (widget)' failed
>>>> ...
>>>> (pgadmin3:22539): GLib-GObject-WARNING **: invalid cast from
>>>> `GtkFileChooserButton' to `GtkBin'
>>>>
>>>> (pgadmin3:22539): Gtk-CRITICAL **: gtk_widget_modify_style: assertion
>>>> `GTK_IS_WIDGET (widget)' failed
>>>> Erreur de segmentation
>>>>
>>> Well, I think I know why. Can you go into pgadmin/ui and do a
>>>
>>> . ./embed-xrc
>>>
>>> Then, compile your branch, and test the results.
>>>
>>> And tell us if it fixes your issue.
>>>
>>> I'm quite sure I forgot to do this when I commited my two last patches.
>>>
>>>
>>
> Oups !
> I 've forgot to change my prefix=... :)
> All work fine ! THX !
> 
> 

OK, great. Thanks.


-- 
Guillaumehttp://www.postgresql.frhttp://dalibo.com