Re: Bug at version 0.70-rc2

Carsten Grohmann <[email protected]>
Newsgroups gmane.comp.python.wxglade
Message-ID <[email protected]>
Hi Miloslav,

Miloslav Semler schrieb am 29.10.2015:
> Hi Carsten,
> > Hi Miloslav,
> >
> > Miloslav Semler schrieb am 27.10.2015:  
> >> error still persists. For reproducibility of this bug you need some
> >> diacritics like "žluťoučký kůň" ie. in text of the label.  
> > Thanks for this hint. I can reproduce the bug now. I'll fix it.
> >  
> >> Aditionally, there is several other bugs which persists from older
> >> version:
> >> a) when use custom widget, arguments from tab "Widget" disappears
> >> after load/save.  
> > Please klick "Apply" to make this changes persistent
> >  
> this maybe work but if you take saved file and open it, the text
> after dollar sign (a name of the variable) disappears.

I've attached an example. I've added three additional arguments to the
custom widget and press "Apply" after adding. In the next step I've
saved the design and closed the application. I reopen the design and
checked the arguments. All are listed with the same name as I expected.

What do you enter into the arguments input fields?


> >> b) when i try to add hline to flexgridsizer it throws exception on
> >> me  
> 
> > I an't reproduce this exception. I did following steps:
> >   1. Create a new wxGlade project
> >   2. Create a new dialog
> >   3. Add a "Flexible" Grid sizer to the dialog
> >   4. right click to the grid sizer and
> >    1. Add slot
> >    2. Insert slot
> >    3. Add row
> >    4. Add column
> >    5. Insert row
> >    6. Insert column
> >   5. All works fine.
> >
> > Could you change the exception details and or the wxglade log file,
> > please? Or do you have a project that's failing in this point?  
> if you add horizontal line *after* button, it throws an exception:
> 
> ERROR   : None
> An unexpected error occurred!
> 
> Date and time:       2015-10-29T08:23:37.171818
> Python version:      2.7.9
> wxPython version:    3.0.1.1
> wxWidgets platform:  __WXGTK__
> wxGlade version:     0.7.1RC1
> Language code:       cs_CZ
> Encoding:            UTF-8
> Filesystem encoding: UTF-8
> 
> Exception type:      <type 'exceptions.TypeError'>
> Exception details:   not all arguments converted during string
> formatting Application stack trace:
> Stack frame at level 0
That was a stupid programming bug. It's fixed in
changeset:   1772:ee021cfff68f
tag:         tip
user:        Carsten Grohmann <mail-s/[email protected]>
date:        Fri Oct 30 20:56:44 2015 +0100
summary:     Fix TypeError triggered during generating the widget label

> >> c) segfault on cut/paste of widget  
> > That's hard to solve this segfaults with changes in the wxPython
> > code. Could you provide a list of steps how to reproduce, please?  
> 
>   1. Create a new wxGlade project
>   2. Create a new dialog
>   3. Add a "Flexible" Grid sizer to the dialog
>   4. right click to the grid sizer and
>    1. remove slot
>    2. click to add button widget, then application crashes
[...]
> >> I hope some day this bugs will be fixed because version in debian
> >> wheezy did not this bugs.  
> > I'll fix this bugs before the final version will be release with one
> > exception the segfaults are mostly triggered by the underlaying C++
> > code.  
> I think this problem usually arises from wxpython when you pass an 
> unexpected object to function
> as they often dont have this situation checked. Maybe some careful 
> checks in code could help to fight with this problem.

I could simplify the steps to reproduce. It looks like a more generic
issue.

 1. Create a new wxGlade project
 2. Create a new frame
 3. Right click to the sizer in the tree window and add a slot
 4. Right click in the design window and remove the slot at the bottom
 5. Change the focus back to main window
 6. Application crashes

$ gdb --args python2 ./wxglade.py
(gdb) run
(gdb) bt
#0  0x00007ffff2b31a11 in wxWindowBase::FindFocus() ()
from /usr/lib/libwx_gtk2u_core-3.0.so.0 #1  0x00007ffff2939925 in
wxWindow::GTKHandleFocusOutNoDeferring() ()
from /usr/lib/libwx_gtk2u_core-3.0.so.0 #2  0x00007ffff2939ef1 in
wxWindow::GTKHandleFocusOut() ()
from /usr/lib/libwx_gtk2u_core-3.0.so.0 #3  0x00007ffff293a2ac in ?? ()
from /usr/lib/libwx_gtk2u_core-3.0.so.0 #4  0x00007ffff14e090f in ?? ()
from /usr/lib/libgtk-x11-2.0.so.0 #5  0x00007ffff0a46015 in
g_closure_invoke () from /usr/lib/libgobject-2.0.so.0 #6
0x00007ffff0a58061 in ?? () from /usr/lib/libgobject-2.0.so.0 #7
0x00007ffff0a60899 in g_signal_emit_valist ()
from /usr/lib/libgobject-2.0.so.0 #8  0x00007ffff0a6112f in
g_signal_emit () from /usr/lib/libgobject-2.0.so.0 #9
0x00007ffff15f7bac in ?? () from /usr/lib/libgtk-x11-2.0.so.0 #10
0x00007ffff1603c51 in gtk_widget_send_focus_change ()
from /usr/lib/libgtk-x11-2.0.so.0

Could you check if you segfault looks similar?


Regards,
Carsten

------------------------------------------------------------------------------

_______________________________________________
wxGlade-general mailing list
wxGlade-general-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
https://lists.sourceforge.net/lists/listinfo/wxglade-general
example_custom.wxg (application/octet-stream, 1.2 KB) - not displayed
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.