#571 Segmentation fault when adding button to menu in widgets

v1.0 (example)
closed-fixed
nobody
None
5
2013-10-11
2013-10-02
sachahony
No

I am getting persistent crashes (segfaults) when trying to add a menu item to widgets which have a menubar through the mbar keyword to widget_base. I attach a file which contains two basic examples one which crashes immediately (crashing_widget) and one which does not (non_crashing_widget).

1 Attachments

Discussion

  • Alain C.
    Alain C.
    2013-10-03

    thanks you very much

    I also have problems with your two examples.

    Could you just confirm you tested with GDL 0.9.4 (print, !gdl)
    and also which version of wxwidgets lib do you have ?

    I don't know if we be able to solve quickly that but have clear
    test case is very useful !

    Alain

     
  • giloo
    giloo
    2013-10-04

    Hi,
    crash confirmed with 0.9.4 (btw I never got a widget to work in gdl yet!).
    However there is a clear backtrace from wxwidgets, joined here.

     
    Attachments
  • Marc Schellens
    Marc Schellens
    2013-10-11

    I restructured the GDL widget system. The example works now (there is a warning which seems to be a known wxWidgets < 2.9.5 bug). However, the currently used threading needs some more work.

     
  • Marc Schellens
    Marc Schellens
    2013-10-11

    • status: open --> closed-fixed