Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CLI Process is orphaned when exiting the App (produces a crash report on mac) #369

Closed
jmarrec opened this issue May 31, 2021 · 0 comments · Fixed by #368
Closed

CLI Process is orphaned when exiting the App (produces a crash report on mac) #369

jmarrec opened this issue May 31, 2021 · 0 comments · Fixed by #368

Comments

@jmarrec
Copy link
Collaborator

jmarrec commented May 31, 2021

Issue overview

I could see the warning on ubuntu but on mac I get a full crash report.

Current Behavior

Expected Behavior

Steps to Reproduce

  1. Launch App
  2. Exit App

Possible Solution

terminate the process correctly

Details

Crash report on mac
Process:               OpenStudioApp [43740]
Path:                  /Applications/OpenStudioApplication-1.2.0/OpenStudioApp.app/Contents/MacOS/OpenStudioApp
Identifier:            gov.nrel.openstudio.6166d6a19c.openstudio
Version:               1.2.0 (1.2.0+6166d6a19c)
Code Type:             X86-64 (Translated)
Parent Process:        ??? [1]
Responsible:           OpenStudioApp [43740]
User ID:               501

Date/Time:             2021-05-31 13:23:20.920 -0700
OS Version:            macOS 11.2.3 (20D91)
Report Version:        12
Anonymous UUID:        813AF69C-D871-480E-0836-C408EAEAF218


Time Awake Since Boot: 6600000 seconds

System Integrity Protection: enabled

Crashed Thread:        0  CrBrowserMain  Dispatch queue: com.apple.main-thread

Exception Type:        EXC_BAD_ACCESS (SIGBUS)
Exception Codes:       KERN_PROTECTION_FAILURE at 0x300000600002802e
Exception Note:        EXC_CORPSE_NOTIFY

Termination Signal:    Bus error: 10
Termination Reason:    Namespace SIGNAL, Code 0xa
Terminating Process:   exc handler [43740]

VM Regions Near 0x600002802e:
    commpage (reserved)         fc0000000-1000000000   [  1.0G] ---/--- SM=NUL  reserved VM address space (unallocated)
--> GPU Carveout (reserved)    1000000000-7000000000   [384.0G] ---/--- SM=NUL  reserved VM address space (unallocated)
    MALLOC_NANO              600000000000-600008000000 [128.0M] rw-/rwx SM=PRV  

Application Specific Information:
Calling windowShouldClose: on the delegate for the QNSWindow 0x7f9850a2b3b0

Thread 0 Crashed:: CrBrowserMain  Dispatch queue: com.apple.main-thread
0   org.qt-project.QtGui          	0x00000001320bfc30 QWindow::event(QEvent*) + 688
1   org.qt-project.QtWidgets      	0x000000013123223d QWidgetWindow::event(QEvent*) + 637
2   org.qt-project.QtWidgets      	0x00000001311d9fea QApplicationPrivate::notify_helper(QObject*, QEvent*) + 266
3   org.qt-project.QtWidgets      	0x00000001311db476 QApplication::notify(QObject*, QEvent*) + 598
4   org.qt-project.QtCore         	0x0000000133226d64 QCoreApplication::notifyInternal2(QObject*, QEvent*) + 212
5   org.qt-project.QtGui          	0x00000001320aeaa0 QGuiApplicationPrivate::processWindowSystemEvent(QWindowSystemInterfacePrivate::WindowSystemEvent*) + 2480
6   org.qt-project.QtGui          	0x000000013208f9d3 bool QWindowSystemInterfacePrivate::handleWindowSystemEvent<QWindowSystemInterface::SynchronousDelivery>(QWindowSystemInterfacePrivate::WindowSystemEvent*) + 115
7   libqcocoa.dylib               	0x00000001376664ee QCocoaWindow::windowShouldClose() + 190
8   libqcocoa.dylib               	0x000000013767b165 -[QNSWindowDelegate windowShouldClose:] + 69
9   com.apple.AppKit              	0x00007fff22f736e6 __19-[NSWindow __close]_block_invoke + 153
10  com.apple.AppKit              	0x00007fff22f73640 -[NSWindow __close] + 284
11  com.apple.AppKit              	0x00007fff22e027fd -[NSApplication(NSResponder) sendAction:to:from:] + 283
12  com.apple.AppKit              	0x00007fff22e026a9 -[NSControl sendAction:to:] + 86
13  com.apple.AppKit              	0x00007fff22e025db __26-[NSCell _sendActionFrom:]_block_invoke + 131
14  com.apple.AppKit              	0x00007fff22e024e2 -[NSCell _sendActionFrom:] + 171
15  com.apple.AppKit              	0x00007fff22e0242a -[NSButtonCell _sendActionFrom:] + 96
16  com.apple.AppKit              	0x00007fff22dff509 NSControlTrackMouse + 1757
17  com.apple.AppKit              	0x00007fff22dfee04 -[NSCell trackMouse:inRect:ofView:untilMouseUp:] + 130
18  com.apple.AppKit              	0x00007fff22dfecc9 -[NSButtonCell trackMouse:inRect:ofView:untilMouseUp:] + 697
19  com.apple.AppKit              	0x00007fff22dfe002 -[NSControl mouseDown:] + 722
20  com.apple.AppKit              	0x00007fff22dfc454 -[NSWindow(NSEventRouting) _handleMouseDownEvent:isDelayedEvent:] + 4956
21  com.apple.AppKit              	0x00007fff22d6bbd8 -[NSWindow(NSEventRouting) _reallySendEvent:isDelayedEvent:] + 2594
22  com.apple.AppKit              	0x00007fff22d6af9a -[NSWindow(NSEventRouting) sendEvent:] + 347
23  libqcocoa.dylib               	0x00000001376799a5 -[QNSWindow sendEvent:] + 549
24  com.apple.AppKit              	0x00007fff22d69384 -[NSApplication(NSEvent) sendEvent:] + 352
25  libqcocoa.dylib               	0x0000000137680cca -[QNSApplication sendEvent:] + 74
26  com.apple.AppKit              	0x00007fff23041f1e -[NSApplication _handleEvent:] + 65
27  com.apple.AppKit              	0x00007fff22bd26af -[NSApplication run] + 623
28  libqcocoa.dylib               	0x000000013767d1cf QCocoaEventDispatcher::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) + 2495
29  org.qt-project.QtCore         	0x0000000133222e0f QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) + 431
30  org.qt-project.QtCore         	0x0000000133227372 QCoreApplication::exec() + 130
31                                	0x0000000100e181f4 main + 5604
32  libdyld.dylib                 	0x00007fff203b1621 start + 1

Thread 1:: Qt bearer thread
0   ???                           	0x00007ffe963aaab8 ???
1   libsystem_kernel.dylib        	0x00007fff203684fe poll + 10
2   org.qt-project.QtCore         	0x000000013328a981 QEventDispatcherUNIX::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) + 849
3   org.qt-project.QtCore         	0x0000000133222e0f QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) + 431
4   org.qt-project.QtCore         	0x0000000133050a63 QThread::exec() + 131
5   org.qt-project.QtCore         	0x0000000133051a79 QThreadPrivate::start(void*) + 329
6   libsystem_pthread.dylib       	0x00007fff20396950 _pthread_start + 224
7   libsystem_pthread.dylib       	0x00007fff2039247b thread_start + 15

Thread 2:: com.apple.CFSocket.private
0   ???                           	0x00007ffe963aaab8 ???
1   libsystem_kernel.dylib        	0x00007fff2036a1fe __select + 10
2   libsystem_pthread.dylib       	0x00007fff20396950 _pthread_start + 224
3   libsystem_pthread.dylib       	0x00007fff2039247b thread_start + 15

Thread 3:: com.apple.NSEventThread
0   ???                           	0x00007ffe963aaab8 ???
1   libsystem_kernel.dylib        	0x00007fff20361e7e mach_msg_trap + 10
2   com.apple.CoreFoundation      	0x00007fff2048e50d __CFRunLoopServiceMachPort + 316
3   com.apple.CoreFoundation      	0x00007fff2048cbf6 __CFRunLoopRun + 1319
4   com.apple.CoreFoundation      	0x00007fff2048bfe2 CFRunLoopRunSpecific + 567
5   com.apple.AppKit              	0x00007fff22d677c6 _NSEventThread + 124
6   libsystem_pthread.dylib       	0x00007fff20396950 _pthread_start + 224
7   libsystem_pthread.dylib       	0x00007fff2039247b thread_start + 15

Thread 4:
0   ???                           	0x00007ffe963aaab8 ???
1   libsystem_kernel.dylib        	0x00007fff203648e2 __psynch_cvwait + 10
2   libopenstudiolib.dylib        	0x000000010d2c69bb boost::asio::detail::scheduler::do_run_one(boost::asio::detail::conditionally_enabled_mutex::scoped_lock&, boost::asio::detail::scheduler_thread_info&, boost::system::error_code const&) + 699
3   libopenstudiolib.dylib        	0x000000010d2c6412 boost::asio::detail::scheduler::run(boost::system::error_code&) + 258
4   libopenstudiolib.dylib        	0x000000010d2b88cf boost::asio::detail::posix_thread::func<(anonymous namespace)::threadpool_impl::add_thread()::'lambda'()>::run() + 63
5   libopenstudiolib.dylib        	0x000000010d2c6250 boost_asio_detail_posix_thread_function + 16
6   libsystem_pthread.dylib       	0x00007fff20396950 _pthread_start + 224
7   libsystem_pthread.dylib       	0x00007fff2039247b thread_start + 15

Thread 5:
0   ???                           	0x00007ffe963aaab8 ???
1   libsystem_kernel.dylib        	0x00007fff203648e2 __psynch_cvwait + 10
2   libopenstudiolib.dylib        	0x000000010d2c69bb boost::asio::detail::scheduler::do_run_one(boost::asio::detail::conditionally_enabled_mutex::scoped_lock&, boost::asio::detail::scheduler_thread_info&, boost::system::error_code const&) + 699
3   libopenstudiolib.dylib        	0x000000010d2c6412 boost::asio::detail::scheduler::run(boost::system::error_code&) + 258
4   libopenstudiolib.dylib        	0x000000010d2b88cf boost::asio::detail::posix_thread::func<(anonymous namespace)::threadpool_impl::add_thread()::'lambda'()>::run() + 63
5   libopenstudiolib.dylib        	0x000000010d2c6250 boost_asio_detail_posix_thread_function + 16
6   libsystem_pthread.dylib       	0x00007fff20396950 _pthread_start + 224
7   libsystem_pthread.dylib       	0x00007fff2039247b thread_start + 15

Thread 6:
0   ???                           	0x00007ffe963aaab8 ???
1   libsystem_kernel.dylib        	0x00007fff203648e2 __psynch_cvwait + 10
2   libopenstudiolib.dylib        	0x000000010d2c69bb boost::asio::detail::scheduler::do_run_one(boost::asio::detail::conditionally_enabled_mutex::scoped_lock&, boost::asio::detail::scheduler_thread_info&, boost::system::error_code const&) + 699
3   libopenstudiolib.dylib        	0x000000010d2c6412 boost::asio::detail::scheduler::run(boost::system::error_code&) + 258
4   libopenstudiolib.dylib        	0x000000010d2b88cf boost::asio::detail::posix_thread::func<(anonymous namespace)::threadpool_impl::add_thread()::'lambda'()>::run() + 63
5   libopenstudiolib.dylib        	0x000000010d2c6250 boost_asio_detail_posix_thread_function + 16
6   libsystem_pthread.dylib       	0x00007fff20396950 _pthread_start + 224
7   libsystem_pthread.dylib       	0x00007fff2039247b thread_start + 15

Thread 7:
0   ???                           	0x00007ffe963aaab8 ???
1   libsystem_kernel.dylib        	0x00007fff203648e2 __psynch_cvwait + 10
2   libopenstudiolib.dylib        	0x000000010d2c69bb boost::asio::detail::scheduler::do_run_one(boost::asio::detail::conditionally_enabled_mutex::scoped_lock&, boost::asio::detail::scheduler_thread_info&, boost::system::error_code const&) + 699
3   libopenstudiolib.dylib        	0x000000010d2c6412 boost::asio::detail::scheduler::run(boost::system::error_code&) + 258
4   libopenstudiolib.dylib        	0x000000010d2b88cf boost::asio::detail::posix_thread::func<(anonymous namespace)::threadpool_impl::add_thread()::'lambda'()>::run() + 63
5   libopenstudiolib.dylib        	0x000000010d2c6250 boost_asio_detail_posix_thread_function + 16
6   libsystem_pthread.dylib       	0x00007fff20396950 _pthread_start + 224
7   libsystem_pthread.dylib       	0x00007fff2039247b thread_start + 15

Thread 8:
0   ???                           	0x00007ffe963aaab8 ???
1   libsystem_kernel.dylib        	0x00007fff203648e2 __psynch_cvwait + 10
2   libopenstudiolib.dylib        	0x000000010d2c69bb boost::asio::detail::scheduler::do_run_one(boost::asio::detail::conditionally_enabled_mutex::scoped_lock&, boost::asio::detail::scheduler_thread_info&, boost::system::error_code const&) + 699
3   libopenstudiolib.dylib        	0x000000010d2c6412 boost::asio::detail::scheduler::run(boost::system::error_code&) + 258
4   libopenstudiolib.dylib        	0x000000010d2b88cf boost::asio::detail::posix_thread::func<(anonymous namespace)::threadpool_impl::add_thread()::'lambda'()>::run() + 63
5   libopenstudiolib.dylib        	0x000000010d2c6250 boost_asio_detail_posix_thread_function + 16
6   libsystem_pthread.dylib       	0x00007fff20396950 _pthread_start + 224
7   libsystem_pthread.dylib       	0x00007fff2039247b thread_start + 15

Thread 9:
0   ???                           	0x00007ffe963aaab8 ???
1   libsystem_kernel.dylib        	0x00007fff203648e2 __psynch_cvwait + 10
2   libopenstudiolib.dylib        	0x000000010d2c69bb boost::asio::detail::scheduler::do_run_one(boost::asio::detail::conditionally_enabled_mutex::scoped_lock&, boost::asio::detail::scheduler_thread_info&, boost::system::error_code const&) + 699
3   libopenstudiolib.dylib        	0x000000010d2c6412 boost::asio::detail::scheduler::run(boost::system::error_code&) + 258
4   libopenstudiolib.dylib        	0x000000010d2b88cf boost::asio::detail::posix_thread::func<(anonymous namespace)::threadpool_impl::add_thread()::'lambda'()>::run() + 63
5   libopenstudiolib.dylib        	0x000000010d2c6250 boost_asio_detail_posix_thread_function + 16
6   libsystem_pthread.dylib       	0x00007fff20396950 _pthread_start + 224
7   libsystem_pthread.dylib       	0x00007fff2039247b thread_start + 15

Thread 10:
0   ???                           	0x00007ffe963aaab8 ???
1   libsystem_kernel.dylib        	0x00007fff203648e2 __psynch_cvwait + 10
2   libopenstudiolib.dylib        	0x000000010d2c69bb boost::asio::detail::scheduler::do_run_one(boost::asio::detail::conditionally_enabled_mutex::scoped_lock&, boost::asio::detail::scheduler_thread_info&, boost::system::error_code const&) + 699
3   libopenstudiolib.dylib        	0x000000010d2c6412 boost::asio::detail::scheduler::run(boost::system::error_code&) + 258
4   libopenstudiolib.dylib        	0x000000010d2b88cf boost::asio::detail::po...

Environment

Some additional details about your environment for this issue (if relevant):

  • Platform (Operating system, version): All, (I see the warning on ubuntu) but actual crash report on mac
  • Version of OpenStudioApplication (if using an intermediate build, include SHA): v1.2.0-rc4

Context

@jmarrec jmarrec added the Triage Issue needs to be assessed and labeled, further information on reported might be needed label May 31, 2021
@jmarrec jmarrec added component - Backend Platform - Mac severity - Major Bug 💥 and removed Triage Issue needs to be assessed and labeled, further information on reported might be needed labels May 31, 2021
@jmarrec jmarrec self-assigned this May 31, 2021
@macumber macumber added this to the OpenStudio Application 1.2.0 milestone May 31, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment