MySQL Workbench crashes when setting a foreign key for a table. This only happens when using the gtk oxygen theme conversion. Here's a backtrace (backtrace 1): #0 gtk_tree_view_column_cell_next() at /media/Storage/Applications/kubuntu-src/gtk+2.0-2.24.23/gtk/gtktreeviewcolumn.c:3294 #1 _gtk_tree_view_column_get_cell_at_pos() at /media/Storage/Applications/kubuntu-src/gtk+2.0-2.24.23/gtk/gtktreeviewcolumn.c:1431 #2 gtk_tree_view_button_press() at /media/Storage/Applications/kubuntu-src/gtk+2.0-2.24.23/gtk/gtktreeview.c:2795 #3 Gtk::Widget::on_button_press_event() at /media/Storage/Applications/kubuntu-src/gtkmm2.4-2.24.4/gtk/gtkmm/widget.cc:8109 #4 Gtk::Widget_Class::button_press_event_callback() at /media/Storage/Applications/kubuntu-src/gtkmm2.4-2.24.4/gtk/gtkmm/widget.cc:4631 #5 _gtk_marshal_BOOLEAN__BOXED() at /media/Storage/Applications/kubuntu-src/gtk+2.0-2.24.23/gtk/gtkmarshalers.c:86 #6 g_closure_invoke() at /media/Storage/Applications/kubuntu-src/glib2.0-2.40.0/gobject/gclosure.c:768 #7 signal_emit_unlocked_R() at /media/Storage/Applications/kubuntu-src/glib2.0-2.40.0/gobject/gsignal.c:3589 #8 g_signal_emit_valist() at /media/Storage/Applications/kubuntu-src/glib2.0-2.40.0/gobject/gsignal.c:3317 #9 g_signal_emit() at /media/Storage/Applications/kubuntu-src/glib2.0-2.40.0/gobject/gsignal.c:3363 #10 gtk_widget_event_internal() at /media/Storage/Applications/kubuntu-src/gtk+2.0-2.24.23/gtk/gtkwidget.c:5010 #11 IA__gtk_widget_event() at /media/Storage/Applications/kubuntu-src/gtk+2.0-2.24.23/gtk/gtkwidget.c:4807 #12 IA__gtk_propagate_event() at /media/Storage/Applications/kubuntu-src/gtk+2.0-2.24.23/gtk/gtkmain.c:2509 #13 IA__gtk_main_do_event() at /media/Storage/Applications/kubuntu-src/gtk+2.0-2.24.23/gtk/gtkmain.c:1699 #14 gdk_event_dispatch() at /media/Storage/Applications/kubuntu-src/gtk+2.0-2.24.23/gdk/x11/gdkevents-x11.c:2403 #15 g_main_dispatch() at /media/Storage/Applications/kubuntu-src/glib2.0-2.40.0/glib/gmain.c:3064 #16 g_main_context_dispatch() at /media/Storage/Applications/kubuntu-src/glib2.0-2.40.0/glib/gmain.c:3663 #17 g_main_context_iterate() at /media/Storage/Applications/kubuntu-src/glib2.0-2.40.0/glib/gmain.c:3734 #18 g_main_loop_run() at /media/Storage/Applications/kubuntu-src/glib2.0-2.40.0/glib/gmain.c:3928 #19 IA__gtk_main() at /media/Storage/Applications/kubuntu-src/gtk+2.0-2.24.23/gtk/gtkmain.c:1271 #20 main() at /media/Storage/Development/mysql-workbench/6.2/frontend/linux/workbench/main.cpp:121 (backtrace 2): #0 IA__gtk_tree_view_get_background_area() at /media/Storage/Applications/kubuntu-src/gtk+2.0-2.24.23/gtk/gtktreeview.c:13045 #1 Oxygen::Gtk::CellInfo::backgroundRect(_GtkTreeView*) const() at /usr/lib/x86_64-linux-gnu/gtk-2.0/2.10.0/engines/liboxygen-gtk.so #2 Oxygen::TreeViewStateData::dirtyRect()() at /usr/lib/x86_64-linux-gnu/gtk-2.0/2.10.0/engines/liboxygen-gtk.so #3 Oxygen::TreeViewStateData::delayedUpdate(void*)() at /usr/lib/x86_64-linux-gnu/gtk-2.0/2.10.0/engines/liboxygen-gtk.so #4 Oxygen::TimeLine::update()() at /usr/lib/x86_64-linux-gnu/gtk-2.0/2.10.0/engines/liboxygen-gtk.so #5 Oxygen::TimeLineServer::update(void*)() at /usr/lib/x86_64-linux-gnu/gtk-2.0/2.10.0/engines/liboxygen-gtk.so #6 gdk_threads_dispatch() at /media/Storage/Applications/kubuntu-src/gtk+2.0-2.24.23/gdk/gdk.c:512 #7 g_timeout_dispatch() at /media/Storage/Applications/kubuntu-src/glib2.0-2.40.0/glib/gmain.c:4472 #8 g_main_dispatch() at /media/Storage/Applications/kubuntu-src/glib2.0-2.40.0/glib/gmain.c:3064 #9 g_main_context_dispatch() at /media/Storage/Applications/kubuntu-src/glib2.0-2.40.0/glib/gmain.c:3663 #10 g_main_context_iterate() at /media/Storage/Applications/kubuntu-src/glib2.0-2.40.0/glib/gmain.c:3734 #11 g_main_loop_run() at /media/Storage/Applications/kubuntu-src/glib2.0-2.40.0/glib/gmain.c:3928 #12 IA__gtk_main() at /media/Storage/Applications/kubuntu-src/gtk+2.0-2.24.23/gtk/gtkmain.c:1271 #13 main() at /media/Storage/Development/mysql-workbench/6.2/frontend/linux/workbench/main.cpp:121 (backtrace 3): #0 IA__gtk_tree_view_get_background_area() at /media/Storage/Applications/kubuntu-src/gtk+2.0-2.24.23/gtk/gtktreeview.c:13045 #1 Oxygen::Gtk::CellInfo::backgroundRect(_GtkTreeView*) const() at /usr/lib/x86_64-linux-gnu/gtk-2.0/2.10.0/engines/liboxygen-gtk.so #2 Oxygen::TreeViewData::updatePosition(_GtkWidget*, int, int)() at /usr/lib/x86_64-linux-gnu/gtk-2.0/2.10.0/engines/liboxygen-gtk.so #3 Oxygen::TreeViewData::motionNotifyEvent(_GtkWidget*, _GdkEventMotion*, void*)() at /usr/lib/x86_64-linux-gnu/gtk-2.0/2.10.0/engines/liboxygen-gtk.so #4 _gtk_marshal_BOOLEAN__BOXED() at /media/Storage/Applications/kubuntu-src/gtk+2.0-2.24.23/gtk/gtkmarshalers.c:86 #5 g_closure_invoke() at /media/Storage/Applications/kubuntu-src/glib2.0-2.40.0/gobject/gclosure.c:768 #6 signal_emit_unlocked_R() at /media/Storage/Applications/kubuntu-src/glib2.0-2.40.0/gobject/gsignal.c:3551 #7 g_signal_emit_valist() at /media/Storage/Applications/kubuntu-src/glib2.0-2.40.0/gobject/gsignal.c:3317 #8 g_signal_emit() at /media/Storage/Applications/kubuntu-src/glib2.0-2.40.0/gobject/gsignal.c:3363 #9 gtk_widget_event_internal() at /media/Storage/Applications/kubuntu-src/gtk+2.0-2.24.23/gtk/gtkwidget.c:5010 #10 IA__gtk_widget_event() at /media/Storage/Applications/kubuntu-src/gtk+2.0-2.24.23/gtk/gtkwidget.c:4807 #11 IA__gtk_propagate_event() at /media/Storage/Applications/kubuntu-src/gtk+2.0-2.24.23/gtk/gtkmain.c:2509 #12 IA__gtk_main_do_event() at /media/Storage/Applications/kubuntu-src/gtk+2.0-2.24.23/gtk/gtkmain.c:1699 #13 gdk_event_dispatch() at /media/Storage/Applications/kubuntu-src/gtk+2.0-2.24.23/gdk/x11/gdkevents-x11.c:2403 #14 g_main_dispatch() at /media/Storage/Applications/kubuntu-src/glib2.0-2.40.0/glib/gmain.c:3064 #15 g_main_context_dispatch() at /media/Storage/Applications/kubuntu-src/glib2.0-2.40.0/glib/gmain.c:3663 #16 g_main_context_iterate() at /media/Storage/Applications/kubuntu-src/glib2.0-2.40.0/glib/gmain.c:3734 #17 g_main_loop_run() at /media/Storage/Applications/kubuntu-src/glib2.0-2.40.0/glib/gmain.c:3928 #18 IA__gtk_main() at /media/Storage/Applications/kubuntu-src/gtk+2.0-2.24.23/gtk/gtkmain.c:1271 #19 main() at /media/Storage/Development/mysql-workbench/6.2/frontend/linux/workbench/main.cpp:121 Reproducible: Always Steps to Reproduce: (backtrace 1): 1. Open the sakila model on the home screen. 2.Right-click on the 'actor' table and select 'Edit table...' 3.Go to the foreign keys tab and double-click on the first cell to create a new record 4.Accept the default name and select 'actor' as the referenced table 5.Play around with the foreign key columns. That should provoke the crash The same can be acheived by (backtrace 2): 1.Forward engineer the sakila model 2.Open the connection where the sakila schema was created 3.Right-click on the 'sakila'.'actor' table and select 'Alter table...' 4.Go to the foreign keys tab and double-click on the first cell to create a new record 5.Accept the default name and select 'actor' as the referenced table 6.Play around with the foreign key columns. That should provoke the crash Actual Results: It crashes Segmentation faule when using liboxygen-gtk
What's the workbench version you are using ? The oxygen-gtk version ?
I can reproduce it with mysql workbench 6.1.6.1834 build 1642 community edition on KUbuntu 14.04.1 LTS. I have gtk2-engines.oxygen 1.4.5-0ubuntu1 and gtk3-engines-oxygen 1.3.5-0ubuntu1 installed.
As a workaround you can try to change the gtk2-theme to Raleigh (or something different than oxygen-gtk) under the KDE system settings -> Workspace appearance -> GTK -> GTK2 theme.
This happens in all workbench versions and got noticed a few months ago (can't specify the exact oxygen-gtk version). The workaround is valid (actually the only I could find) and allows it to function properly. The workbench team can't afford the effort to also support kde, but we would sure like to play well along with it. Maybe it's a bug in oxygen-gtk or something easy to work around in the workbench code (like a few hacks already introduced just for kde). I would like to get to the bottom of this so that it runs smoothly under a default kde installation (usually using oxygen-gtk), so I'd like to hear the thoughts about this from the oxygen-gtk developers. Thanx in advanced
Hi Miguel, Thanks for the information. The mysql-workbench version I have is 6.0.6, and does not exhibit the crash (in fact the foreign key tables you describe are empty, double-clicking there does nothing, and thus I cannot make the application crash) I'll try upgrade my version. Hugo
According to Matej Zapletal's comments from this bugreport: http://bugs.mysql.com/bug.php?id=71691 the problem was introduced between the Workbench's 6.0.7 and 6.0.8 version.
Created attachment 97664 [details] Output of `strace mysql-workbench > mysql-workbench-stdout.txt 2> mysql-workbench-stderr.txt`
Created attachment 97665 [details] Stderr of `strace mysql-workbench > mysql-workbench-stdout.txt 2> mysql-workbench-stderr.txt`
I can confirm this bug, mysql-workbench also crashes when tinkering values at the 'Indexes' tab of the table editor. See attachments for output.
Dear Bug Submitter, This bug has been stagnant for a long time. Could you help us out and re-test if the bug is valid in the latest version? I am setting the status to NEEDSINFO pending your response, please change the Status back to REPORTED when you respond. Thank you for helping us make KDE software even better for everyone!
Dear Bug Submitter, This bug has been in NEEDSINFO status with no change for at least 15 days. Please provide the requested information as soon as possible and set the bug status as REPORTED. Due to regular bug tracker maintenance, if the bug is still in NEEDSINFO status with no change in 30 days the bug will be closed as RESOLVED > WORKSFORME due to lack of needed information. For more information about our bug triaging procedures please read the wiki located here: https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging If you have already provided the requested information, please mark the bug as REPORTED so that the KDE team knows that the bug is ready to be confirmed. Thank you for helping us make KDE software even better for everyone!
This bug has been in NEEDSINFO status with no change for at least 30 days. The bug is now closed as RESOLVED > WORKSFORME due to lack of needed information. For more information about our bug triaging procedures please read the wiki located here: https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging Thank you for helping us make KDE software even better for everyone!