Skip to content

Instantly share code, notes, and snippets.

@Birch-san
Last active July 24, 2017 22:04
Show Gist options
  • Save Birch-san/c8b3de1e117c49a7fd3167470d949e68 to your computer and use it in GitHub Desktop.
Save Birch-san/c8b3de1e117c49a7fd3167470d949e68 to your computer and use it in GitHub Desktop.
Distinct stacks invoking `sendPostedEvents()`, with magic commit (i.e. no custom event dispatcher is installed, and we remove all explicit calls to processEvents())
QtCore`QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*)
QtCore`0x000000010a8e5ac0+0x5b
QtCore`0x000000010a8e6780+0x27
libsystem_pthread.dylib`_pthread_tsd_cleanup+0x1d6
libsystem_pthread.dylib`_pthread_exit+0x98
libsystem_pthread.dylib`pthread_sigmask
libsystem_pthread.dylib`_pthread_body
libsystem_pthread.dylib`thread_start+0xd
1
QtCore`QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*)
QtCore`0x000000010a8e5ac0+0x5b
QtCore`0x000000010a8e5850+0x179
libsystem_pthread.dylib`_pthread_body+0xb4
libsystem_pthread.dylib`_pthread_body
libsystem_pthread.dylib`thread_start+0xd
1
QtCore`QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*)
libqcocoa.dylib`0x000000011467ea80+0xbe
libqcocoa.dylib`0x000000011467f3e0+0x21
CoreFoundation`__CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__+0x11
CoreFoundation`__CFRunLoopDoSources0+0x22d
CoreFoundation`__CFRunLoopRun+0x3a6
CoreFoundation`CFRunLoopRunSpecific+0x1a4
HIToolbox`RunCurrentEventLoopInMode+0xf0
HIToolbox`ReceiveNextEventCommon+0xb8
HIToolbox`_BlockUntilNextEventMatchingListInModeWithFilter+0x47
AppKit`_DPSNextEvent+0x460
AppKit`-[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:]+0xaec
SDL2`0x0000000109a4e3e0+0xd0
SDL2`0x0000000109a3b780+0x23
libopenage.0.dylib`openage::Engine::loop()+0x1bf
libopenage.0.dylib`openage::Engine::run()+0x37
libopenage.0.dylib`openage::run_game(openage::main_arguments const&)+0x587
main_cpp.cpython-36m-darwin.so`__pyx_pf_7openage_4game_8main_cpp_run_game(_object*, _object*, _object*)+0xa4a
main_cpp.cpython-36m-darwin.so`__pyx_pw_7openage_4game_8main_cpp_1run_game(_object*, _object*, _object*)+0x355
Python`_PyCFunction_FastCallDict+0x1cd
1
QtCore`QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*)
libqcocoa.dylib`0x000000011467ea80+0xbe
libqcocoa.dylib`0x000000011467f3e0+0x21
CoreFoundation`__CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__+0x11
CoreFoundation`__CFRunLoopDoSources0+0x1a7
CoreFoundation`__CFRunLoopRun+0x3a6
CoreFoundation`CFRunLoopRunSpecific+0x1a4
HIToolbox`RunCurrentEventLoopInMode+0xf0
HIToolbox`ReceiveNextEventCommon+0xb8
HIToolbox`_BlockUntilNextEventMatchingListInModeWithFilter+0x47
AppKit`_DPSNextEvent+0x460
AppKit`-[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:]+0xaec
SDL2`0x0000000109a4e3e0+0x189
SDL2`0x0000000109a3b780+0x23
libopenage.0.dylib`openage::Engine::loop()+0x1bf
libopenage.0.dylib`openage::Engine::run()+0x37
libopenage.0.dylib`openage::run_game(openage::main_arguments const&)+0x587
main_cpp.cpython-36m-darwin.so`__pyx_pf_7openage_4game_8main_cpp_run_game(_object*, _object*, _object*)+0xa4a
main_cpp.cpython-36m-darwin.so`__pyx_pw_7openage_4game_8main_cpp_1run_game(_object*, _object*, _object*)+0x355
Python`_PyCFunction_FastCallDict+0x1cd
1
QtCore`QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*)
libqcocoa.dylib`0x000000011467ea80+0xbe
CoreFoundation`__CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__+0x17
CoreFoundation`__CFRunLoopDoObservers+0x187
CoreFoundation`CFRunLoopRunSpecific+0x189
HIToolbox`RunCurrentEventLoopInMode+0xf0
HIToolbox`ReceiveNextEventCommon+0xb8
HIToolbox`_BlockUntilNextEventMatchingListInModeWithFilter+0x47
AppKit`_DPSNextEvent+0x460
AppKit`-[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:]+0xaec
SDL2`0x0000000109a4e3e0+0xd0
SDL2`0x0000000109a3b780+0x23
libopenage.0.dylib`openage::Engine::loop()+0x1bf
libopenage.0.dylib`openage::Engine::run()+0x37
libopenage.0.dylib`openage::run_game(openage::main_arguments const&)+0x587
main_cpp.cpython-36m-darwin.so`__pyx_pf_7openage_4game_8main_cpp_run_game(_object*, _object*, _object*)+0xa4a
main_cpp.cpython-36m-darwin.so`__pyx_pw_7openage_4game_8main_cpp_1run_game(_object*, _object*, _object*)+0x355
Python`_PyCFunction_FastCallDict+0x1cd
Python`call_function+0x232
Python`_PyEval_EvalFrameDefault+0x68eb
1
QtCore`QCoreApplication::sendPostedEvents(QObject*, int)
QtCore`0x000000010a8e5ac0+0x5b
QtCore`0x000000010a8e6780+0x27
libsystem_pthread.dylib`_pthread_tsd_cleanup+0x1d6
libsystem_pthread.dylib`_pthread_exit+0x98
libsystem_pthread.dylib`pthread_sigmask
libsystem_pthread.dylib`_pthread_body
libsystem_pthread.dylib`thread_start+0xd
1
QtCore`QCoreApplication::sendPostedEvents(QObject*, int)
QtCore`0x000000010a8e5ac0+0x5b
QtCore`0x000000010a8e5850+0x179
libsystem_pthread.dylib`_pthread_body+0xb4
libsystem_pthread.dylib`_pthread_body
libsystem_pthread.dylib`thread_start+0xd
1
QtCore`QCoreApplication::sendPostedEvents(QObject*, int)
libqcocoa.dylib`0x000000011467ea80+0xbe
libqcocoa.dylib`0x000000011467f3e0+0x21
CoreFoundation`__CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__+0x11
CoreFoundation`__CFRunLoopDoSources0+0x22d
CoreFoundation`__CFRunLoopRun+0x3a6
CoreFoundation`CFRunLoopRunSpecific+0x1a4
HIToolbox`RunCurrentEventLoopInMode+0xf0
HIToolbox`ReceiveNextEventCommon+0xb8
HIToolbox`_BlockUntilNextEventMatchingListInModeWithFilter+0x47
AppKit`_DPSNextEvent+0x460
AppKit`-[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:]+0xaec
SDL2`0x0000000109a4e3e0+0xd0
SDL2`0x0000000109a3b780+0x23
libopenage.0.dylib`openage::Engine::loop()+0x1bf
libopenage.0.dylib`openage::Engine::run()+0x37
libopenage.0.dylib`openage::run_game(openage::main_arguments const&)+0x587
main_cpp.cpython-36m-darwin.so`__pyx_pf_7openage_4game_8main_cpp_run_game(_object*, _object*, _object*)+0xa4a
main_cpp.cpython-36m-darwin.so`__pyx_pw_7openage_4game_8main_cpp_1run_game(_object*, _object*, _object*)+0x355
Python`_PyCFunction_FastCallDict+0x1cd
1
QtCore`QCoreApplication::sendPostedEvents(QObject*, int)
libqcocoa.dylib`0x000000011467ea80+0xbe
libqcocoa.dylib`0x000000011467f3e0+0x21
CoreFoundation`__CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__+0x11
CoreFoundation`__CFRunLoopDoSources0+0x1a7
CoreFoundation`__CFRunLoopRun+0x3a6
CoreFoundation`CFRunLoopRunSpecific+0x1a4
HIToolbox`RunCurrentEventLoopInMode+0xf0
HIToolbox`ReceiveNextEventCommon+0xb8
HIToolbox`_BlockUntilNextEventMatchingListInModeWithFilter+0x47
AppKit`_DPSNextEvent+0x460
AppKit`-[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:]+0xaec
SDL2`0x0000000109a4e3e0+0x189
SDL2`0x0000000109a3b780+0x23
libopenage.0.dylib`openage::Engine::loop()+0x1bf
libopenage.0.dylib`openage::Engine::run()+0x37
libopenage.0.dylib`openage::run_game(openage::main_arguments const&)+0x587
main_cpp.cpython-36m-darwin.so`__pyx_pf_7openage_4game_8main_cpp_run_game(_object*, _object*, _object*)+0xa4a
main_cpp.cpython-36m-darwin.so`__pyx_pw_7openage_4game_8main_cpp_1run_game(_object*, _object*, _object*)+0x355
Python`_PyCFunction_FastCallDict+0x1cd
1
QtCore`QCoreApplication::sendPostedEvents(QObject*, int)
libqcocoa.dylib`0x000000011467ea80+0xbe
CoreFoundation`__CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__+0x17
CoreFoundation`__CFRunLoopDoObservers+0x187
CoreFoundation`CFRunLoopRunSpecific+0x189
HIToolbox`RunCurrentEventLoopInMode+0xf0
HIToolbox`ReceiveNextEventCommon+0xb8
HIToolbox`_BlockUntilNextEventMatchingListInModeWithFilter+0x47
AppKit`_DPSNextEvent+0x460
AppKit`-[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:]+0xaec
SDL2`0x0000000109a4e3e0+0xd0
SDL2`0x0000000109a3b780+0x23
libopenage.0.dylib`openage::Engine::loop()+0x1bf
libopenage.0.dylib`openage::Engine::run()+0x37
libopenage.0.dylib`openage::run_game(openage::main_arguments const&)+0x587
main_cpp.cpython-36m-darwin.so`__pyx_pf_7openage_4game_8main_cpp_run_game(_object*, _object*, _object*)+0xa4a
main_cpp.cpython-36m-darwin.so`__pyx_pw_7openage_4game_8main_cpp_1run_game(_object*, _object*, _object*)+0x355
Python`_PyCFunction_FastCallDict+0x1cd
Python`call_function+0x232
Python`_PyEval_EvalFrameDefault+0x68eb
1
QtCore`QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*)
QtCore`QEventDispatcherUNIX::processEvents(QFlags<QEventLoop::ProcessEventsFlag>)+0x49
QtCore`QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>)+0x1a1
libopenage.0.dylib`qtsdl::RecursiveDirectoryWatcher::RecursiveDirectoryWatcher(QObject*)::$_0::operator()() const+0x200
libopenage.0.dylib`_ZNSt3__112__async_funcIZN5qtsdl25RecursiveDirectoryWatcherC1EP7QObjectE3$_0JEE9__executeIJEEEvNS_15__tuple_indicesIJXspT_EEEE+0x3d
libopenage.0.dylib`std::__1::__async_func<qtsdl::RecursiveDirectoryWatcher::RecursiveDirectoryWatcher(QObject*)::$_0>::operator()()+0x15
libopenage.0.dylib`std::__1::__async_assoc_state<void, std::__1::__async_func<qtsdl::RecursiveDirectoryWatcher::RecursiveDirectoryWatcher(QObject*)::$_0> >::__execute()+0x1f
libopenage.0.dylib`std::__1::__thread_proxy<std::__1::tuple<void (std::__1::__async_assoc_state<void, std::__1::__async_func<qtsdl::RecursiveDirectoryWatcher::RecursiveDirectoryWatcher(QObject*)::$_0> >::*)(), std::__1::__async_assoc_state<void, std::__1::__async_func<qtsdl::RecursiveDirectoryWatcher::RecursiveDirectoryWatcher(QObject*)::$_0> >*> >(void*, void*)+0x214
libsystem_pthread.dylib`_pthread_body+0xb4
libsystem_pthread.dylib`_pthread_body
libsystem_pthread.dylib`thread_start+0xd
3
QtCore`QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*)
QtCore`QEventDispatcherUNIX::processEvents(QFlags<QEventLoop::ProcessEventsFlag>)+0x49
QtCore`QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>)+0x1a1
QtCore`QThread::exec()+0x73
QtQml`0x000000010a644710+0x39
QtCore`0x000000010a8e5850+0x16a
libsystem_pthread.dylib`_pthread_body+0xb4
libsystem_pthread.dylib`_pthread_body
libsystem_pthread.dylib`thread_start+0xd
4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment