Recently I started experiencing issues with MySQL Workbench 8 in which actions cause it to crash after the initial load. Initial load works fine and I configure a connection. I then close workbench, re-open, and try to connect and it crashes. At this point I can also open it for a few seconds (without doing anything) and it will crash.
A few observations:
This doesn't seem to happen if it loads without any connections.
This happens consistently after I load it a second time.
Even if ~./mysql is deleted (and therefore any connections), it will still crash, even on trying to hit "Help" or "Add Connection"
Versions:
Pop! OS 18.10
MySQL Workbench 8.0.15
I've tried:
installing from MySQL site with .deb
installing from apt
uninstalling and purging all references to MySQL
installing previous versions of workbench
This is the output of gdb
<pre>(mysql-workbench-bin:3163): Gtk-<font color="#FFCE51"><b>WARNING</b></font> **: <font color="#3465A4">13:50:01.393</font>: drawing failure for widget 'gtkmm__GtkEntry': out of memory
(mysql-workbench-bin:3163): Gtk-<font color="#FFCE51"><b>WARNING</b></font> **: <font color="#3465A4">13:50:01.393</font>: drawing failure for widget 'gtkmm__GtkBox': out of memory
(mysql-workbench-bin:3163): Gtk-<font color="#FFCE51"><b>WARNING</b></font> **: <font color="#3465A4">13:50:01.393</font>: drawing failure for widget 'gtkmm__GtkFixed': out of memory
(mysql-workbench-bin:3163): glibmm-<font color="#F15D22"><b>ERROR</b></font> **: <font color="#3465A4">13:50:01.393</font>:
unhandled exception (type std::exception) in signal handler:
what: std::bad_alloc
Thread 1 "mysql-workbench" received signal SIGTRAP, Trace/breakpoint trap.
0x00007ffff61d59f5 in ?? () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
(gdb) bt
#0 0x00007ffff61d59f5 in ?? () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#1 0x00007ffff61d6a9d in g_log_default_handler () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#2 0x00007ffff61d6cef in g_logv () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#3 0x00007ffff61d6edf in g_log () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#4 0x00007ffff536ce2f in Glib::exception_handlers_invoke() () from /usr/lib/x86_64-linux-gnu/libglibmm-2.4.so.1
#5 0x00007ffff5deca71 in ?? () from /usr/lib/x86_64-linux-gnu/libgtkmm-3.0.so.1
#6 0x00007ffff68dbf9b in ?? () from /usr/lib/x86_64-linux-gnu/libgtk-3.so.0
#7 0x00007ffff688767f in ?? () from /usr/lib/x86_64-linux-gnu/libgtk-3.so.0
#8 0x00007ffff62afb6d in g_closure_invoke () from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#9 0x00007ffff62c23ee in ?? () from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#10 0x00007ffff62caf43 in g_signal_emit_valist () from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#11 0x00007ffff62cbecf in g_signal_emit () from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#12 0x00007ffff6894142 in ?? () from /usr/lib/x86_64-linux-gnu/libgtk-3.so.0
#13 0x00007ffff667e9fa in gtk_container_propagate_draw () from /usr/lib/x86_64-linux-gnu/libgtk-3.so.0
#14 0x00007ffff667eacd in ?? () from /usr/lib/x86_64-linux-gnu/libgtk-3.so.0
#15 0x00007ffff6630d94 in ?? () from /usr/lib/x86_64-linux-gnu/libgtk-3.so.0
#16 0x00007ffff6683b5d in ?? () from /usr/lib/x86_64-linux-gnu/libgtk-3.so.0
#17 0x00007ffff6688832 in ?? () from /usr/lib/x86_64-linux-gnu/libgtk-3.so.0
#18 0x00007ffff6633621 in ?? () from /usr/lib/x86_64-linux-gnu/libgtk-3.so.0
#19 0x00007ffff5dec68e in Gtk::Widget_Class::draw_callback(_GtkWidget*, _cairo*) () from /usr/lib/x86_64-linux-gnu/libgtkmm-3.0.so.1
#20 0x00007ffff68dbf9b in ?? () from /usr/lib/x86_64-linux-gnu/libgtk-3.so.0
#21 0x00007ffff688767f in ?? () from /usr/lib/x86_64-linux-gnu/libgtk-3.so.0
#22 0x00007ffff62afa81 in g_closure_invoke () from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#23 0x00007ffff62c2124 in ?? () from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#24 0x00007ffff62caf43 in g_signal_emit_valist () from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#25 0x00007ffff62cbecf in g_signal_emit () from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#26 0x00007ffff6894142 in ?? () from /usr/lib/x86_64-linux-gnu/libgtk-3.so.0
#27 0x00007ffff667e9fa in gtk_container_propagate_draw () from /usr/lib/x86_64-linux-gnu/libgtk-3.so.0
#28 0x00007ffff667eacd in ?? () from /usr/lib/x86_64-linux-gnu/libgtk-3.so.0
#29 0x00007ffff679d9f6 in ?? () from /usr/lib/x86_64-linux-gnu/libgtk-3.so.0
#30 0x00007ffff6885180 in ?? () from /usr/lib/x86_64-linux-gnu/libgtk-3.so.0
#31 0x00007ffff6683b5d in ?? () from /usr/lib/x86_64-linux-gnu/libgtk-3.so.0
#32 0x00007ffff6688832 in ?? () from /usr/lib/x86_64-linux-gnu/libgtk-3.so.0
#33 0x00007ffff6885e8d in ?? () from /usr/lib/x86_64-linux-gnu/libgtk-3.so.0
#34 0x00007ffff6893fe4 in ?? () from /usr/lib/x86_64-linux-gnu/libgtk-3.so.0
#35 0x00007ffff667e9fa in gtk_container_propagate_draw () from /usr/lib/x86_64-linux-gnu/libgtk-3.so.0
#36 0x00007ffff667eacd in ?? () from /usr/lib/x86_64-linux-gnu/libgtk-3.so.0
#37 0x00007ffff67cba6b in ?? () from /usr/lib/x86_64-linux-gnu/libgtk-3.so.0
#38 0x00007ffff6683b5d in ?? () from /usr/lib/x86_64-linux-gnu/libgtk-3.so.0
#39 0x00007ffff6688832 in ?? () from /usr/lib/x86_64-linux-gnu/libgtk-3.so.0
#40 0x00007ffff67c9dc1 in ?? () from /usr/lib/x86_64-linux-gnu/libgtk-3.so.0
#41 0x00007ffff5dec68e in Gtk::Widget_Class::draw_callback(_GtkWidget*, _cairo*) () from /usr/lib/x86_64-linux-gnu/libgtkmm-3.0.so.1
#42 0x00007ffff6893fe4 in ?? () from /usr/lib/x86_64-linux-gnu/libgtk-3.so.0
#43 0x00007ffff667e9fa in gtk_container_propagate_draw () from /usr/lib/x86_64-linux-gnu/libgtk-3.so.0
#44 0x00007ffff667eacd in ?? () from /usr/lib/x86_64-linux-gnu/libgtk-3.so.0
#45 0x00007ffff6630d94 in ?? () from /usr/lib/x86_64-linux-gnu/libgtk-3.so.0
--Type <RET> for more, q to quit, c to continue without paging--c
#46 0x00007ffff6683b5d in ?? () from /usr/lib/x86_64-linux-gnu/libgtk-3.so.0
#47 0x00007ffff6688832 in ?? () from /usr/lib/x86_64-linux-gnu/libgtk-3.so.0
#48 0x00007ffff6633621 in ?? () from /usr/lib/x86_64-linux-gnu/libgtk-3.so.0
#49 0x00007ffff5dec68e in Gtk::Widget_Class::draw_callback(_GtkWidget*, _cairo*) () from /usr/lib/x86_64-linux-gnu/libgtkmm-3.0.so.1
#50 0x00007ffff68dbf9b in ?? () from /usr/lib/x86_64-linux-gnu/libgtk-3.so.0
#51 0x00007ffff688767f in ?? () from /usr/lib/x86_64-linux-gnu/libgtk-3.so.0
#52 0x00007ffff62afb6d in g_closure_invoke () from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#53 0x00007ffff62c2124 in ?? () from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#54 0x00007ffff62caf43 in g_signal_emit_valist () from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#55 0x00007ffff62cbecf in g_signal_emit () from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#56 0x00007ffff6894142 in ?? () from /usr/lib/x86_64-linux-gnu/libgtk-3.so.0
#57 0x00007ffff667e9fa in gtk_container_propagate_draw () from /usr/lib/x86_64-linux-gnu/libgtk-3.so.0
#58 0x00007ffff667eacd in ?? () from /usr/lib/x86_64-linux-gnu/libgtk-3.so.0
#59 0x00007ffff6630d94 in ?? () from /usr/lib/x86_64-linux-gnu/libgtk-3.so.0
#60 0x00007ffff6683b5d in ?? () from /usr/lib/x86_64-linux-gnu/libgtk-3.so.0
#61 0x00007ffff6688832 in ?? () from /usr/lib/x86_64-linux-gnu/libgtk-3.so.0
#62 0x00007ffff6633621 in ?? () from /usr/lib/x86_64-linux-gnu/libgtk-3.so.0
#63 0x00007ffff5dec68e in Gtk::Widget_Class::draw_callback(_GtkWidget*, _cairo*) () from /usr/lib/x86_64-linux-gnu/libgtkmm-3.0.so.1
#64 0x00007ffff6893fe4 in ?? () from /usr/lib/x86_64-linux-gnu/libgtk-3.so.0
#65 0x00007ffff667e9fa in gtk_container_propagate_draw () from /usr/lib/x86_64-linux-gnu/libgtk-3.so.0
#66 0x00007ffff676db7a in ?? () from /usr/lib/x86_64-linux-gnu/libgtk-3.so.0
#67 0x00007ffff6683b5d in ?? () from /usr/lib/x86_64-linux-gnu/libgtk-3.so.0
#68 0x00007ffff6688832 in ?? () from /usr/lib/x86_64-linux-gnu/libgtk-3.so.0
#69 0x00007ffff6634d9c in ?? () from /usr/lib/x86_64-linux-gnu/libgtk-3.so.0
#70 0x00007ffff6688832 in ?? () from /usr/lib/x86_64-linux-gnu/libgtk-3.so.0
#71 0x00007ffff677039c in ?? () from /usr/lib/x86_64-linux-gnu/libgtk-3.so.0
#72 0x00007ffff5de126c in Gtk::Widget::on_draw(Cairo::RefPtr<Cairo::Context> const&) () from /usr/lib/x86_64-linux-gnu/libgtkmm-3.0.so.1
#73 0x00007ffff5dec72f in Gtk::Widget_Class::draw_callback(_GtkWidget*, _cairo*) () from /usr/lib/x86_64-linux-gnu/libgtkmm-3.0.so.1
#74 0x00007ffff6893fe4 in ?? () from /usr/lib/x86_64-linux-gnu/libgtk-3.so.0
#75 0x00007ffff667e9fa in gtk_container_propagate_draw () from /usr/lib/x86_64-linux-gnu/libgtk-3.so.0
#76 0x00007ffff667eacd in ?? () from /usr/lib/x86_64-linux-gnu/libgtk-3.so.0
#77 0x00007ffff6630d94 in ?? () from /usr/lib/x86_64-linux-gnu/libgtk-3.so.0
#78 0x00007ffff6683b5d in ?? () from /usr/lib/x86_64-linux-gnu/libgtk-3.so.0
#79 0x00007ffff6688832 in ?? () from /usr/lib/x86_64-linux-gnu/libgtk-3.so.0
#80 0x00007ffff6633621 in ?? () from /usr/lib/x86_64-linux-gnu/libgtk-3.so.0
#81 0x00007ffff5de126c in Gtk::Widget::on_draw(Cairo::RefPtr<Cairo::Context> const&) () from /usr/lib/x86_64-linux-gnu/libgtkmm-3.0.so.1
#82 0x00007ffff5dec72f in Gtk::Widget_Class::draw_callback(_GtkWidget*, _cairo*) () from /usr/lib/x86_64-linux-gnu/libgtkmm-3.0.so.1
#83 0x00007ffff6893fe4 in ?? () from /usr/lib/x86_64-linux-gnu/libgtk-3.so.0
#84 0x00007ffff667e9fa in gtk_container_propagate_draw () from /usr/lib/x86_64-linux-gnu/libgtk-3.so.0
#85 0x00007ffff667eacd in ?? () from /usr/lib/x86_64-linux-gnu/libgtk-3.so.0
#86 0x00007ffff68a27b2 in ?? () from /usr/lib/x86_64-linux-gnu/libgtk-3.so.0
#87 0x00007ffff5de126c in Gtk::Widget::on_draw(Cairo::RefPtr<Cairo::Context> const&) () from /usr/lib/x86_64-linux-gnu/libgtkmm-3.0.so.1
#88 0x00007ffff5dec72f in Gtk::Widget_Class::draw_callback(_GtkWidget*, _cairo*) () from /usr/lib/x86_64-linux-gnu/libgtkmm-3.0.so.1
#89 0x00007ffff6893fe4 in ?? () from /usr/lib/x86_64-linux-gnu/libgtk-3.so.0
#90 0x00007ffff689d008 in ?? () from /usr/lib/x86_64-linux-gnu/libgtk-3.so.0
#91 0x00007ffff674bc09 in gtk_main_do_event () from /usr/lib/x86_64-linux-gnu/libgtk-3.so.0
#92 0x00007ffff644b445 in ?? () from /usr/lib/x86_64-linux-gnu/libgdk-3.so.0
#93 0x00007ffff645b996 in ?? () from /usr/lib/x86_64-linux-gnu/libgdk-3.so.0
#94 0x00007ffff645cb06 in ?? () from /usr/lib/x86_64-linux-gnu/libgdk-3.so.0
#95 0x00007ffff645ccc4 in ?? () from /usr/lib/x86_64-linux-gnu/libgdk-3.so.0
#96 0x00007ffff62afb6d in g_closure_invoke () from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#97 0x00007ffff62c28f3 in ?? () from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#98 0x00007ffff62cb882 in g_signal_emit_valist () from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#99 0x00007ffff62cbecf in g_signal_emit () from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#100 0x00007ffff6454a6d in ?? () from /usr/lib/x86_64-linux-gnu/libgdk-3.so.0
#101 0x00007ffff643fbf8 in ?? () from /usr/lib/x86_64-linux-gnu/libgdk-3.so.0
#102 0x00007ffff61d0573 in ?? () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#103 0x00007ffff61cfae8 in g_main_context_dispatch () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#104 0x00007ffff61cfed8 in ?? () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#105 0x00007ffff61d01d2 in g_main_loop_run () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#106 0x00007ffff4ff1e9c in runtime::loop::run() () from /usr/lib/mysql-workbench/liblinux_utilities.so.8.0.15
#107 0x00007ffff51cef35 in mforms::gtk::UtilitiesImpl::run_cancelable_wait_message(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::function<void ()> const&, std::function<bool ()> const&) () from /usr/lib/mysql-workbench/libmforms.so.8.0.15
#108 0x00007ffff52181e4 in mforms::Utilities::run_cancelable_task(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::function<void* ()> const&, std::function<bool ()> const&, void*&) () from /usr/lib/mysql-workbench/libmforms.so.8.0.15
#109 0x00007ffff78747f5 in wb::WBContextSQLIDE::create_connected_editor(grt::Ref<db_mgmt_Connection> const&) () from /usr/lib/mysql-workbench/libwbprivate.so.8.0.15
#110 0x00007ffff79d1e39 in wb::WBContext::add_new_query_window(grt::Ref<db_mgmt_Connection> const&, bool) () from /usr/lib/mysql-workbench/libwbprivate.so.8.0.15
#111 0x00007ffff79ab549 in wb::WBContextUI::handle_home_action(mforms::HomeScreenAction, base::any const&) () from /usr/lib/mysql-workbench/libwbprivate.so.8.0.15
#112 0x00007ffff524a8d7 in mforms::HomeScreen::trigger_callback(mforms::HomeScreenAction, base::any const&) () from /usr/lib/mysql-workbench/libmforms.so.8.0.15
#113 0x00007ffff5257bc1 in mforms::ConnectionEntry::activate() () from /usr/lib/mysql-workbench/libmforms.so.8.0.15
#114 0x00007ffff5251462 in mforms::ConnectionsSection::mouse_click(mforms::MouseButton, int, int) () from /usr/lib/mysql-workbench/libmforms.so.8.0.15
#115 0x00007ffff518ac49 in mforms::gtk::DrawBoxImpl::mouse_button_event(_GdkEventButton*, mforms::DrawBox*) () from /usr/lib/mysql-workbench/libmforms.so.8.0.15
#116 0x00007ffff5de3d6b in ?? () from /usr/lib/x86_64-linux-gnu/libgtkmm-3.0.so.1
#117 0x00007ffff68dbf9b in ?? () from /usr/lib/x86_64-linux-gnu/libgtk-3.so.0
#118 0x00007ffff62afb6d in g_closure_invoke () from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#119 0x00007ffff62c23ee in ?? () from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#120 0x00007ffff62caf43 in g_signal_emit_valist () from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#121 0x00007ffff62cbecf in g_signal_emit () from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#122 0x00007ffff6889b74 in ?? () from /usr/lib/x86_64-linux-gnu/libgtk-3.so.0
#123 0x00007ffff6749c56 in ?? () from /usr/lib/x86_64-linux-gnu/libgtk-3.so.0
#124 0x00007ffff674bd73 in gtk_main_do_event () from /usr/lib/x86_64-linux-gnu/libgtk-3.so.0
#125 0x00007ffff644b445 in ?? () from /usr/lib/x86_64-linux-gnu/libgdk-3.so.0
#126 0x00007ffff647c012 in ?? () from /usr/lib/x86_64-linux-gnu/libgdk-3.so.0
#127 0x00007ffff61cfc3e in g_main_context_dispatch () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#128 0x00007ffff61cfed8 in ?? () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#129 0x00007ffff61cff6c in g_main_context_iteration () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#130 0x00007ffff288213d in g_application_run () from /usr/lib/x86_64-linux-gnu/libgio-2.0.so.0
#131 0x00005555555de346 in main ()
</pre>
It turns out that while my issue was very similar, once I installed MySQL 8, I had to run sudo mysql_upgrade to make sure everything was upgraded. After that and after re-creating the connection, MySQL Workbench worked for me and didn't crash.
I'm not sure if it is the same issue you had or not or even how much it has to do with anything other than dumb luck. BUT...I removed all of the files in ~./mysql/workbench/cache/ but still failed to stay open. And then removed connection_id from ~/.mysql/workbench/sql_history/.
I was able to load after doing this.
I'm trying to present info about a CKShare to a user. You can do this as follows:
let container: CKContainer = /* existing CKContainer */
let share: CKShare = /* existing CKShare */
let item = NSItemProvider()
item.registerCloudKitShare(share, container: container)
let sharingService = NSSharingService(named: .cloudSharing)
sharingService.perform(withItems: [item])
This correctly opens the window:
However, I cannot click anything in the window, and after closing the window I cannot click anything in my app.
EDIT: after further investigation, I realized I can navigate the UI using the keyboard. However, it is still quite buggy (triggering Done or pressing esc dismisses the view controller but doesn't close the window, and throws an NSInternalInconsistencyException)
The stack trace (below) shows that the main thread is waiting for events in the modal event loop:
#0 0x00007fff7de8b20a in mach_msg_trap ()
#1 0x00007fff7de8a724 in mach_msg ()
#2 0x00007fff55ef9785 in __CFRunLoopServiceMachPort ()
#3 0x00007fff55ef8ad7 in __CFRunLoopRun ()
#4 0x00007fff55ef8153 in CFRunLoopRunSpecific ()
#5 0x00007fff551e2d96 in RunCurrentEventLoopInMode ()
#6 0x00007fff551e2b06 in ReceiveNextEventCommon ()
#7 0x00007fff551e2884 in _BlockUntilNextEventMatchingListInModeWithFilter ()
#8 0x00007fff53493a73 in _DPSNextEvent ()
#9 0x00007fff53c29e34 in -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] ()
#10 0x00007fff536c5e7b in -[NSApplication _doModalLoop:peek:] ()
#11 0x00007fff538aac9f in __35-[NSApplication runModalForWindow:]_block_invoke_2 ()
#12 0x00007fff538aac4c in __35-[NSApplication runModalForWindow:]_block_invoke ()
#13 0x00007fff53d59219 in _NSTryRunModal ()
#14 0x00007fff536c3911 in -[NSApplication runModalForWindow:] ()
#15 0x00007fff53fc4289 in __87-[_NSCloudSharingService _showParticipantListServiceInSheetAttachedToWindow:withItems:]_block_invoke ()
#16 0x00007fff7a9ef0f4 in -[NSRemoteView _completeAdvanceToRunPhase:withError:] ()
#17 0x00007fff7a9d3c69 in __35-[NSRemoteView _advanceToRunPhase:]_block_invoke.1071 ()
#18 0x00007fff55ef5bec in __invoking___ ()
#19 0x00007fff55ef5ac0 in -[NSInvocation invoke] ()
#20 0x00007fff7aa172d2 in withHintInProgress ()
#21 0x00007fff7a98e792 in __deferNSXPCInvocationOntoMainThread_block_invoke ()
#22 0x00007fff7aa1cb9d in __wrapBlockWithVoucher_block_invoke ()
#23 0x00007fff7a98e36f in __deferBlockOntoMainThread_block_invoke_2 ()
#24 0x00007fff55f1687c in __CFRUNLOOP_IS_CALLING_OUT_TO_A_BLOCK__ ()
#25 0x00007fff55ef9253 in __CFRunLoopDoBlocks ()
#26 0x00007fff55ef9018 in __CFRunLoopRun ()
#27 0x00007fff55ef8153 in CFRunLoopRunSpecific ()
#28 0x00007fff7aa1690e in __invokeRunLoopInModeForDuration_block_invoke_2 ()
#29 0x00007fff7aa16862 in invokeRunLoopInModeForDuration ()
#30 0x00007fff7a9f371b in __29-[NSCFRunLoopSemaphore wait:]_block_invoke_2 ()
#31 0x00007fff7a9f3641 in __29-[NSCFRunLoopSemaphore wait:]_block_invoke ()
#32 0x00007fff7a9f2aac in +[NSCFRunLoopSemaphore _observe:whilePerforming:] ()
#33 0x00007fff7a9f332e in -[NSCFRunLoopSemaphore wait:] ()
#34 0x00007fff7a9cb9ed in -[NSRemoteViewSemaphore wait:] ()
#35 0x00007fff7a9d43db in -[NSRemoteView _waitOnSemaphore:] ()
#36 0x00007fff7a9e95a6 in -[NSRemoteView _didSetOriginOrSize:] ()
#37 0x00007fff7a9e9a7f in -[NSRemoteView setFrameSize:] ()
#38 0x00007fff7aa146e9 in withImplicitAnimation ()
#39 0x00007fff7a9e0184 in -[NSRemoteView _serviceRequestsResize:completion:] ()
#40 0x00007fff7a9e093e in -[NSRemoteView _serviceRequestsResize:animate:transaction:completion:] ()
#41 0x00007fff7a993ec4 in -[NSRemoteViewMarshal serviceRequestsResize:animate:transaction:completion:] ()
#42 0x00007fff55ef5bec in __invoking___ ()
#43 0x00007fff55ef5ac0 in -[NSInvocation invoke] ()
#44 0x00007fff7aa172d2 in withHintInProgress ()
#45 0x00007fff7a98e83e in __deferNSXPCInvocationOntoMainThread_block_invoke ()
#46 0x00007fff7aa1cb9d in __wrapBlockWithVoucher_block_invoke ()
#47 0x00007fff7a98e36f in __deferBlockOntoMainThread_block_invoke_2 ()
#48 0x00007fff55f1687c in __CFRUNLOOP_IS_CALLING_OUT_TO_A_BLOCK__ ()
#49 0x00007fff55ef9253 in __CFRunLoopDoBlocks ()
#50 0x00007fff55ef9018 in __CFRunLoopRun ()
#51 0x00007fff55ef8153 in CFRunLoopRunSpecific ()
#52 0x00007fff551e2d96 in RunCurrentEventLoopInMode ()
#53 0x00007fff551e2b06 in ReceiveNextEventCommon ()
#54 0x00007fff551e2884 in _BlockUntilNextEventMatchingListInModeWithFilter ()
#55 0x00007fff53493a73 in _DPSNextEvent ()
#56 0x00007fff53c29e34 in -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] ()
#57 0x00007fff53488885 in -[NSApplication run] ()
#58 0x00007fff53457a72 in NSApplicationMain ()
#59 0x000000010000d831 in main() at main.swift:25
#60 0x000000010000d324 in main at main.swift:28
#61 0x00007fff7dd44015 in start ()
#62 0x00007fff7dd44015 in start ()
Does anyone know how to fix this issue?
Had the same problem in an Objective-C project and found I needed to use the NSSharingServiceDelegate method to return the source Window.
- (NSWindow *)sharingService:(NSSharingService *)sharingService sourceWindowForShareItems:(NSArray *)items sharingContentScope:(NSSharingContentScope *)sharingContentScope{
return self.view.window;
}
https://developer.apple.com/documentation/appkit/nssharingservicedelegate/1402679-sharingservice
[NSSharingService performWithItems:NSArrayOfItems]; on the main thread would then present a sheet that functions correctly.
If from the owners privateCloudDatabase you would be presented all participants with sharing options, and like your screenshot, reduced participant options including ‘Remove Me’ if the shared record resides in the sharedCloudDatabase.
When I try to run the Perl debugger I'm getting a SEGV error:
Signal SEGV at /opt/csw/lib/perl/csw/Term/ReadLine/Gnu.pm line 240.
Term::ReadLine::Gnu::new("Term::ReadLine", "perldb", GLOB(0x81c1168), GLOB(0x81873a0)) called at /opt/csw/share/perl/5.10.1/perl5db.pl line 6073
DB::setterm called at /opt/csw/share/perl/5.10.1/perl5db.pl line 2237
DB::DB called at -e line 1
Abort (core dumped)
The errors takes place with any Perl code and I think is due to the debugger using Term::ReadLine::Gnu::new.
Using gdb to get the stack trace, I get the following:
Core was generated by `/opt/csw/bin/perl -de$a++'.
Program terminated with signal 6, Aborted.
#0 0xfeaabbc5 in kill () from /lib/libc.so.1
(gdb) bt
#0 0xfeaabbc5 in kill () from /lib/libc.so.1
#1 0xfef0c748 in Perl_apply () from /opt/csw/lib/i386/libperl.so
#2 0xfeeff1ee in Perl_pp_chown () from /opt/csw/lib/i386/libperl.so
#3 0xfeeb6721 in Perl_runops_standard () from /opt/csw/lib/i386/libperl.so
#4 0xfee570da in Perl_call_sv () from /opt/csw/lib/i386/libperl.so
#5 0xfeeac2c8 in Perl_sighandler () from /opt/csw/lib/i386/libperl.so
#6 0xfeea8173 in Perl_csighandler () from /opt/csw/lib/i386/libperl.so
#7 0xfeaa8ecf in __sighndlr () from /lib/libc.so.1
#8 0xfea9eb8f in call_user_handler () from /lib/libc.so.1
#9 <signal handler called>
#10 0xfe82b828 in baudrate () from /lib/libcurses.so.1
#11 0xfe7ede48 in _nc_setupterm () from /opt/csw/lib/libncurses.so.5
#12 0xfe7ee010 in tgetent () from /opt/csw/lib/libncurses.so.5
#13 0xfe88659a in _rl_init_terminal_io () from /opt/csw/lib/i386/libreadline.so.6
#14 0xfe86eb32 in readline_initialize_everything () from /opt/csw/lib/i386/libreadline.so.6
#15 0xfe86ea22 in rl_initialize () from /opt/csw/lib/i386/libreadline.so.6
#16 0xfe8d6e1d in XS_Term__ReadLine__Gnu__XS_rl_initialize () from /opt/csw/lib/perl/csw/auto/Term/ReadLine/Gnu/Gnu.so
#17 0xfeebe7ee in Perl_pp_entersub () from /opt/csw/lib/i386/libperl.so
#18 0xfeeb6721 in Perl_runops_standard () from /opt/csw/lib/i386/libperl.so
#19 0xfee568f1 in S_run_body () from /opt/csw/lib/i386/libperl.so
#20 0xfee56813 in perl_run () from /opt/csw/lib/i386/libperl.so
#21 0x08050b48 in main ()
I would greatly appreciate any help/clues.
Thanks!
I'm using cocos2d and I load all my sprites and scenes before my game. However, once loaded, it seems if I click to start the game too quickly I get this crash:
malloc: *** error for object 0x65cdbb4: incorrect checksum for freed object - object was probably modified after being freed.
*** set a breakpoint in malloc_error_break to debug
So I did what it suggested, recreated the crash and the stack shows this:
#0 0x9033df7e in malloc_error_break ()
#1 0x9033f128 in szone_error ()
#2 0x9033f29b in free_list_checksum_botch ()
#3 0x9024c186 in tiny_malloc_from_free_list ()
#4 0x9024b2a1 in szone_malloc_should_clear ()
#5 0x9024b148 in malloc_zone_malloc ()
#6 0x90249218 in malloc ()
#7 0x97145617 in operator new ()
#8 0x03adc43f in llvm::User::operator new ()
#9 0x03aab18f in llvm::CastInst::Create ()
#10 0x0341394c in llvm::BitcodeReader::ParseFunctionBody ()
#11 0x034164fe in llvm::BitcodeReader::materializeFunction ()
#12 0x0cd72472 in glvmAddOperation ()
#13 0x0cd4c752 in gleBuildVertexSubmitFunc ()
#14 0x0cd74e0c in cvmsModularBuilder ()
#15 0x03392a67 in cvmsCompBuildModularFunction ()
#16 0x033970a8 in cvmsServerBuildModularFunction ()
#17 0x03394e26 in CVMSBuildModularFunction ()
#18 0x032b0c26 in glvm_deferred_build_modular ()
#19 0x03310404 in glvmDoWork ()
#20 0x902747fd in _pthread_start ()
#21 0x90274682 in thread_start ()
None of these functions listed are mine, any ideas? Thanks.
my application is crashing when I enter an ' (apostrophe) in the textfield. Can anyone please tell the solution for the problem. Below is the place where it crashes
hotelTextfield.text = [hotelList objectAtIndex:indexPath.row];
I entered other strings in the textfield but those didn't cause any issue. But whenever I enter some ', it crashes.
Please find the stack backtrace for the crash
Program received signal: “EXC_BAD_ACCESS”.
(gdb) bt
#0 0x31ec3ebc in objc_msgSend ()
#1 0x31ec5b3c in objc_setProperty ()
#2 0x0000e720 in -[AvailabilityVC setHotelList:] (self=0x11fbe0, _cmd=0x1f700, _value=0x31ec3f28) at /Users/amitkumar_gupta/Documents/Projects/5StarHotels/Classes/AvailabilityVC.m:29
#3 0x0000c6c8 in -[AvailabilityVC textFieldDidChange:] (self=0x11fbe0, _cmd=0x1f8e7, aNotification=0x1858a0) at /Users/amitkumar_gupta/Documents/Projects/5StarHotels/Classes/AvailabilityVC.m:248
#4 0x308ff5d8 in _nsnote_callback ()
#5 0x30de3510 in _CFXNotificationPostNotification ()
#6 0x308fd1b2 in -[NSNotificationCenter postNotificationName:object:userInfo:] ()
#7 0x308ff518 in -[NSNotificationCenter postNotificationName:object:] ()
#8 0x336b27f4 in -[UITextField fieldEditorDidChange:] ()
#9 0x335eecb4 in -[UIFieldEditor webViewDidChange:] ()
#10 0x308ff5d8 in _nsnote_callback ()
#11 0x30de3510 in _CFXNotificationPostNotification ()
#12 0x308fd1b2 in -[NSNotificationCenter postNotificationName:object:userInfo:] ()
#13 0x30da38e4 in __invoking___ ()
#14 0x30df757a in -[NSInvocation invoke] ()
#15 0x311ca134 in SendDelegateMessage ()
#16 0x3069cb30 in WebEditorClient::respondToChangedContents ()
#17 0x3123c01c in WebCore::Editor::respondToChangedContents ()
#18 0x3123a914 in WebCore::Editor::appliedEditing ()
#19 0x3123a740 in WebCore::TypingCommand::typingAddedToOpenCommand ()
#20 0x3122aa10 in WebCore::TypingCommand::insertTextRunWithoutNewlines ()
#21 0x3122a954 in WebCore::TypingCommand::insertText ()
#22 0x3122947c in WebCore::TypingCommand::insertText ()
#23 0x31228bd4 in WebCore::Editor::insertTextWithoutSendingTextEvent ()
#24 0x31228818 in WebCore::EventHandler::defaultTextInputEventHandler ()
#25 0x311f776c in WebCore::EventTargetNode::defaultEventHandler ()
#26 0x311f7358 in WebCore::EventTargetNode::dispatchGenericEvent ()
#27 0x311f6cf8 in WebCore::EventTargetNode::dispatchEvent ()
#28 0x312284fc in WebCore::EventHandler::handleTextInputEvent ()
#29 0x312283e0 in WebCore::Editor::insertText ()
#30 0x3069bab8 in -[WebHTMLView(WebNSTextInputSupport) insertText:] ()
#31 0x30defa14 in -[NSObject performSelector:withObject:] ()
#32 0x31228280 in -[WAKResponder tryToPerform:with:] ()
#33 0x3069b3d0 in -[WebView(WebViewEditingActions) _performResponderOperation:with:] ()
#34 0x3069b350 in -[WebView(WebViewEditingActions) insertText:] ()
#35 0x3368dd2c in -[UIWebDocumentView insertText:] ()
#36 0x3368d7b0 in -[UIKeyboardImpl addInputString:fromVariantKey:] ()
#37 0x3368ca88 in -[UIKeyboardImpl handleStringInput:fromVariantKey:] ()
#38 0x3368c81c in -[UIKeyboardLayoutStar sendStringAction:forKey:] ()
#39 0x3368b8f0 in -[UIKeyboardLayoutStar touchUp:withPathInfo:] ()
#40 0x3368732c in -[UIKeyboardLayout handleHandEvent:] ()
#41 0x3368b414 in -[UIKeyboardLayout touchesEnded:withEvent:] ()
#42 0x33604900 in -[UIWindow _sendTouchesForEvent:] ()
#43 0x33603f94 in -[UIWindow sendEvent:] ()
#44 0x335ff790 in -[UIApplication sendEvent:] ()
#45 0x335ff094 in _UIApplicationHandleEvent ()
#46 0x332e8990 in PurpleEventCallback ()
#47 0x30de952a in CFRunLoopRunSpecific ()
#48 0x30de8c1e in CFRunLoopRunInMode ()
#49 0x332e7374 in GSEventRunModal ()
#50 0x335adc30 in -[UIApplication _run] ()
#51 0x335ac230 in UIApplicationMain ()
#52 0x00002550 in main (argc=1, argv=0x2ffff540) at /Users/amitkumar_gupta/Documents/Projects/5StarHotels/main.m:13
(gdb)
OK, the problem is solved. It was due to the SQLite. the Sqlite wasn't able to handle the apostrophe('). Solved it by adding an extra ' before sending it to the SQLite.