Code Monkey home page Code Monkey logo

Comments (5)

steveklabnik avatar steveklabnik commented on August 15, 2024

Segfaults will always be bugs in shoes, yeah.

This seems to be a GTK error. I'm not sure how to get anything better than this, though :/

from shoes-deprecated.

fela avatar fela commented on August 15, 2024

Here is a better stack trace gotten from running hh in the debugger. Playing around a bit with the lessons, opening and closing different ones, often triggers the segmentation fault, but there doesn't seem to be a deterministic way to do so.

# 0  0x00b674c1 in gtk_fixed_forall (container=0x81854c8, include_internals=1, callback=0x527f83,
    callback_data=0x8bf2060) at /build/buildd/gtk+2.0-2.20.1/gtk/gtkfixed.c:452
# 1  0x00b245e4 in IA__gtk_container_forall (container=0x81854c8, callback=0x527f83,
    callback_data=0x8bf2060) at /build/buildd/gtk+2.0-2.20.1/gtk/gtkcontainer.c:1520
# 2  0x00528131 in ?? () from /mnt/data/dev/shoes/dist/libshoes.so
# 3  0x00bb5424 in _gtk_marshal_BOOLEAN__BOXED (closure=0x8bfc508, return_value=0x0, n_param_values=2,
    param_values=0x0, invocation_hint=0xbfffc250, marshal_data=0x527fdf)
    at /build/buildd/gtk+2.0-2.20.1/gtk/gtkmarshalers.c:84
# 4  0x003c1252 in g_closure_invoke () from /usr/lib/libgobject-2.0.so.0
# 5  0x003d599d in ?? () from /usr/lib/libgobject-2.0.so.0
# 6  0x003d6c33 in g_signal_emit_valist () from /usr/lib/libgobject-2.0.so.0
# 7  0x003d7256 in g_signal_emit () from /usr/lib/libgobject-2.0.so.0
# 8  0x00ce2636 in gtk_widget_event_internal (widget=<value optimized out>, event=0x8c3e050)
    at /build/buildd/gtk+2.0-2.20.1/gtk/gtkwidget.c:4951
# 9  0x00b23a53 in IA__gtk_container_propagate_expose (container=0x8bf8800, child=0x81854c8,
    event=0xbfffc9d8) at /build/buildd/gtk+2.0-2.20.1/gtk/gtkcontainer.c:2756
# 10 0x00b23a81 in gtk_container_expose_child (child=0x81854c8, client_data=0xbfffc528)
    at /build/buildd/gtk+2.0-2.20.1/gtk/gtkcontainer.c:2644
# 11 0x00aebb3d in gtk_bin_forall (container=0x8bf8800, include_internals=1,
    callback=0xb23a60 <gtk_container_expose_child>, callback_data=0xbfffc528)
    at /build/buildd/gtk+2.0-2.20.1/gtk/gtkbin.c:128
# 12 0x00b245e4 in IA__gtk_container_forall (container=0x8bf8800, 
    callback=0xb23a60 <gtk_container_expose_child>, callback_data=0xbfffc528)
    at /build/buildd/gtk+2.0-2.20.1/gtk/gtkcontainer.c:1520
# 13 0x00b25d37 in gtk_container_expose (widget=0x8bf8800, event=0xbfffc9d8)
    at /build/buildd/gtk+2.0-2.20.1/gtk/gtkcontainer.c:2667
# 14 0x00cfabc7 in gtk_window_expose (widget=0x8bf8800, event=0xbfffc9d8)
    at /build/buildd/gtk+2.0-2.20.1/gtk/gtkwindow.c:6632
# 15 0x00bb5424 in _gtk_marshal_BOOLEAN__BOXED (closure=0x81b9548, return_value=0xbfffc734,
    n_param_values=2, param_values=0x834eac8, invocation_hint=0xbfffc720, marshal_data=0xcfab80)
    at /build/buildd/gtk+2.0-2.20.1/gtk/gtkmarshalers.c:84
# 16 0x003bf8b9 in ?? () from /usr/lib/libgobject-2.0.so.0
# 17 0x003c1252 in g_closure_invoke () from /usr/lib/libgobject-2.0.so.0
# 18 0x003d55e6 in ?? () from /usr/lib/libgobject-2.0.so.0
#19 0x003d6c33 in g_signal_emit_valist () from /usr/lib/libgobject-2.0.so.0
# 20 0x003d7256 in g_signal_emit () from /usr/lib/libgobject-2.0.so.0
# 21 0x00ce2636 in gtk_widget_event_internal (widget=<value optimized out>, event=0xbfffc9d8)
    at /build/buildd/gtk+2.0-2.20.1/gtk/gtkwidget.c:4951
# 22 0x00baf11b in IA__gtk_main_do_event (event=0xbfffc9d8)
    at /build/buildd/gtk+2.0-2.20.1/gtk/gtkmain.c:1572
# 23 0x00e8884b in _gdk_window_process_updates_recurse (window=0x818b150, expose_region=0x88b6880)
    at /build/buildd/gtk+2.0-2.20.1/gdk/gdkwindow.c:5181
# 24 0x00eb1ad4 in _gdk_windowing_window_process_updates_recurse (window=0x818b150, region=0x88b6880)
    at /build/buildd/gtk+2.0-2.20.1/gdk/x11/gdkwindow-x11.c:5566
# 25 0x00e84fa3 in gdk_window_process_updates_internal (window=0x818b150)
    at /build/buildd/gtk+2.0-2.20.1/gdk/gdkwindow.c:5340
# 26 0x00e86fbf in IA__gdk_window_process_all_updates ()
    at /build/buildd/gtk+2.0-2.20.1/gdk/gdkwindow.c:5448
# 27 0x00e8703b in gdk_window_update_idle (data=0x0)
    at /build/buildd/gtk+2.0-2.20.1/gdk/gdkwindow.c:5074
# 28 0x00e63358 in gdk_threads_dispatch (data=0x87fcf60) at /build/buildd/gtk+2.0-2.20.1/gdk/gdk.c:512
# 29 0x00439661 in ?? () from /lib/libglib-2.0.so.0
# 30 0x0043b5e5 in g_main_context_dispatch () from /lib/libglib-2.0.so.0
# 31 0x0043f2d8 in ?? () from /lib/libglib-2.0.so.0
# 32 0x0043f817 in g_main_loop_run () from /lib/libglib-2.0.so.0
# 33 0x00baf3c9 in IA__gtk_main () at /build/buildd/gtk+2.0-2.20.1/gtk/gtkmain.c:1219
# 34 0x00528de6 in shoes_native_loop () from /mnt/data/dev/shoes/dist/libshoes.so
# 35 0x00524791 in shoes_app_loop () from /mnt/data/dev/shoes/dist/libshoes.so
# 36 0x00524624 in shoes_app_start () from /mnt/data/dev/shoes/dist/libshoes.so
# 37 0x00516f2e in shoes_start () from /mnt/data/dev/shoes/dist/libshoes.so
# 38 0x08048b0f in main (argc=2, argv=0xbfffef14) at bin/main.c:93

from shoes-deprecated.

fela avatar fela commented on August 15, 2024

I think this is actually caused by me using threads a little to easily. Perhaps it's not really a bug in Shoes, it is just that Shoes doesn't seem to be thread safe... I will try to get rid of threads in HH: I realized that I have used them in places where they weren't really needed

from shoes-deprecated.

fela avatar fela commented on August 15, 2024

mmh.. in some places it is harder than I thought to do so :S

from shoes-deprecated.

steveklabnik avatar steveklabnik commented on August 15, 2024

Closed for now as not conclusive. If this pops up again, we'll look into it...

from shoes-deprecated.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.