macOS browser crashes when external monitors unplugged

bug

#1

OS: macOS Sierra 10.12.6
Brave: 0.19.95

I always connect my (2013) MacBook Pro laptop to multiple monitors at work: 2 TB (1 passes thru a dock) and 1 HDMI. I forget which connection types to which monitors, but I have two vertically oriented and one horizontal (Thunderbolt Display). This is in addition to the default laptop display which I also leave open.

I launch Brave on one of the vertical displays. It gets plenty of usage in 10+ tabs throughout the day with no issues. When it’s time to leave work, I simply unplug the display cables one by one–in the span of 2 seconds.

As windows from various apps rearrange onto the default laptop display, Brave consistently crashes with the standard “application quit unexpectedly” error. Microsoft Office apps and Skype also occasionally crash during this disconnection–but we know they’re always buggy.

I suspect it’s the unplugging of that specific monitor on which Brave was running on that’s causing the crash, as opposed to any change in the overall display configuration, but I’ll need to double check.

While I do use the popular “Stay” utility to organize my windows, I don’t expect that to be the cause–Brave isn’t even one of my “saved” windows for repositioning. I also have configured 2 or 3 independent Mac Spaces on each monitor, but other apps, such as half a dozen Chrome windows strewn across spaces and monitors, have no problems.

Unfortunately I forgot to check if there’s a crash report with a stack trace, but I’ll attach it when it crashes tomorrow.


#2

Here’s the report I captured from today’s predictable crash.

I unplugged the HDMI monitor cable which the Brave window was displayed on first, and no crash. Waited a couple seconds, then unplugged the Thunderbolt Display cable, and no crash. Finally, I unplugged the TB cable to the dock, which has Ethernet (primary network connection), display, multiple USB drives, and, boom, crash.

Process:               Brave [73968]
Path:                  /Applications/Brave.app/Contents/MacOS/Brave
Identifier:            com.electron.brave
Version:               0.19.95 (4.5.16)
Code Type:             X86-64 (Native)
Parent Process:        ??? [1]
Responsible:           Brave [73968]
User ID:               502

Date/Time:             2017-11-29 15:51:31.608 -0800
OS Version:            Mac OS X 10.12.6 (16G1036)
Report Version:        12
Anonymous UUID:        FCC54837-D725-B5DD-9E4C-B05D6402346D

Sleep/Wake UUID:       BBEF6A38-EEDF-4347-A1B2-37473808723D

Time Awake Since Boot: 880000 seconds
Time Since Wake:       19000 seconds

System Integrity Protection: enabled

Crashed Thread:        10  TaskSchedulerSingleThreadForegroundBlocking1

Exception Type:        EXC_BREAKPOINT (SIGTRAP)
Exception Codes:       0x0000000000000002, 0x0000000000000000

Thread 0:: CrBrowserMain  Dispatch queue: com.apple.main-thread
0   libsystem_kernel.dylib        	0x00007fffb42cc34a mach_msg_trap + 10
1   libsystem_kernel.dylib        	0x00007fffb42cb797 mach_msg + 55
2   com.apple.CoreFoundation      	0x00007fff9ea20434 __CFRunLoopServiceMachPort + 212
3   com.apple.CoreFoundation      	0x00007fff9ea1f8c1 __CFRunLoopRun + 1361
4   com.apple.CoreFoundation      	0x00007fff9ea1f114 CFRunLoopRunSpecific + 420
5   com.apple.HIToolbox           	0x00007fff9df7febc RunCurrentEventLoopInMode + 240
6   com.apple.HIToolbox           	0x00007fff9df7fcf1 ReceiveNextEventCommon + 432
7   com.apple.HIToolbox           	0x00007fff9df7fb26 _BlockUntilNextEventMatchingListInModeWithFilter + 71
8   com.apple.AppKit              	0x00007fff9c516a54 _DPSNextEvent + 1120
9   com.apple.AppKit              	0x00007fff9cc927ee -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 2796
10  com.apple.AppKit              	0x00007fff9c50b3db -[NSApplication run] + 926
11  org.brave.Brave.framework     	0x000000010a4bbb9e 0x108d2f000 + 24693662
12  org.brave.Brave.framework     	0x000000010a4ba53c 0x108d2f000 + 24687932
13  org.brave.Brave.framework     	0x000000010a4d6fd3 0x108d2f000 + 24805331
14  org.brave.Brave.framework     	0x0000000109b7e4b1 0x108d2f000 + 15004849
15  org.brave.Brave.framework     	0x0000000109b7e2d0 0x108d2f000 + 15004368
16  org.brave.Brave.framework     	0x0000000109b808b2 0x108d2f000 + 15014066
17  org.brave.Brave.framework     	0x0000000109b7a21c 0x108d2f000 + 14987804
18  org.brave.Brave.framework     	0x000000010a48c42e 0x108d2f000 + 24499246
19  org.brave.Brave.framework     	0x000000010b947eb0 0x108d2f000 + 46239408
20  org.brave.Brave.framework     	0x000000010a48b9e4 0x108d2f000 + 24496612
21  org.brave.Brave.framework     	0x0000000108d31fd9 ChromeMain + 729
22  com.electron.brave            	0x0000000108cb5dba main + 522
23  libdyld.dylib                 	0x00007fffb41a5235 start + 1

Thread 1:: NetworkConfigWatcher
0   libsystem_kernel.dylib        	0x00007fffb42cc34a mach_msg_trap + 10
1   libsystem_kernel.dylib        	0x00007fffb42cb797 mach_msg + 55
2   com.apple.CoreFoundation      	0x00007fff9ea20434 __CFRunLoopServiceMachPort + 212
3   com.apple.CoreFoundation      	0x00007fff9ea1f8c1 __CFRunLoopRun + 1361
4   com.apple.CoreFoundation      	0x00007fff9ea1f114 CFRunLoopRunSpecific + 420
5   com.apple.Foundation          	0x00007fffa0432252 -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 277
6   org.brave.Brave.framework     	0x000000010a4bb9ee 0x108d2f000 + 24693230
7   org.brave.Brave.framework     	0x000000010a4ba53c 0x108d2f000 + 24687932
8   org.brave.Brave.framework     	0x000000010a4d6fd3 0x108d2f000 + 24805331
9   org.brave.Brave.framework     	0x000000010a50605b 0x108d2f000 + 24997979
10  org.brave.Brave.framework     	0x000000010a5005a7 0x108d2f000 + 24974759
11  libsystem_pthread.dylib       	0x00007fffb43be93b _pthread_body + 180
12  libsystem_pthread.dylib       	0x00007fffb43be887 _pthread_start + 286
13  libsystem_pthread.dylib       	0x00007fffb43be08d thread_start + 13

Thread 2:: DnsConfigService
0   libsystem_kernel.dylib        	0x00007fffb42d4d96 kevent + 10
1   org.brave.Brave.framework     	0x000000010a53ff59 0x108d2f000 + 25235289
2   org.brave.Brave.framework     	0x000000010a53d96d 0x108d2f000 + 25225581
3   org.brave.Brave.framework     	0x000000010a4ba362 0x108d2f000 + 24687458
4   org.brave.Brave.framework     	0x000000010a4d6fd3 0x108d2f000 + 24805331
5   org.brave.Brave.framework     	0x000000010a50605b 0x108d2f000 + 24997979
6   org.brave.Brave.framework     	0x000000010a5005a7 0x108d2f000 + 24974759
7   libsystem_pthread.dylib       	0x00007fffb43be93b _pthread_body + 180
8   libsystem_pthread.dylib       	0x00007fffb43be887 _pthread_start + 286
9   libsystem_pthread.dylib       	0x00007fffb43be08d thread_start + 13

Thread 3:: CrShutdownDetector
0   libsystem_kernel.dylib        	0x00007fffb42d5246 read + 10
1   org.brave.Brave.framework     	0x000000010a21232f 0x108d2f000 + 21902127
2   org.brave.Brave.framework     	0x000000010a5005a7 0x108d2f000 + 24974759
3   libsystem_pthread.dylib       	0x00007fffb43be93b _pthread_body + 180
4   libsystem_pthread.dylib       	0x00007fffb43be887 _pthread_start + 286
5   libsystem_pthread.dylib       	0x00007fffb43be08d thread_start + 13

Thread 4:: WorkerPool/30727
0   libsystem_kernel.dylib        	0x00007fffb42d3bf2 __psynch_cvwait + 10
1   libsystem_pthread.dylib       	0x00007fffb43bf833 _pthread_cond_wait + 769
2   org.brave.Brave.framework     	0x000000010a4e862b 0x108d2f000 + 24876587
3   org.brave.Brave.framework     	0x000000010a507d20 0x108d2f000 + 25005344
4   org.brave.Brave.framework     	0x000000010a508148 0x108d2f000 + 25006408
5   org.brave.Brave.framework     	0x000000010a5005a7 0x108d2f000 + 24974759
6   libsystem_pthread.dylib       	0x00007fffb43be93b _pthread_body + 180
7   libsystem_pthread.dylib       	0x00007fffb43be887 _pthread_start + 286
8   libsystem_pthread.dylib       	0x00007fffb43be08d thread_start + 13

Thread 5:: WorkerPool/30979
0   libsystem_kernel.dylib        	0x00007fffb42d3bf2 __psynch_cvwait + 10
1   libsystem_pthread.dylib       	0x00007fffb43bf833 _pthread_cond_wait + 769
2   org.brave.Brave.framework     	0x000000010a4e862b 0x108d2f000 + 24876587
3   org.brave.Brave.framework     	0x000000010a507d20 0x108d2f000 + 25005344
4   org.brave.Brave.framework     	0x000000010a508148 0x108d2f000 + 25006408
5   org.brave.Brave.framework     	0x000000010a5005a7 0x108d2f000 + 24974759
6   libsystem_pthread.dylib       	0x00007fffb43be93b _pthread_body + 180
7   libsystem_pthread.dylib       	0x00007fffb43be887 _pthread_start + 286
8   libsystem_pthread.dylib       	0x00007fffb43be08d thread_start + 13

Thread 6:
0   libsystem_kernel.dylib        	0x00007fffb42cc34a mach_msg_trap + 10
1   libsystem_kernel.dylib        	0x00007fffb42cb797 mach_msg + 55
2   org.brave.Brave.framework     	0x000000010d0f527e 0x108d2f000 + 71066238
3   org.brave.Brave.framework     	0x000000010d0f5524 0x108d2f000 + 71066916
4   org.brave.Brave.framework     	0x000000010d0f14a8 0x108d2f000 + 71050408
5   libsystem_pthread.dylib       	0x00007fffb43be93b _pthread_body + 180
6   libsystem_pthread.dylib       	0x00007fffb43be887 _pthread_start + 286
7   libsystem_pthread.dylib       	0x00007fffb43be08d thread_start + 13

Thread 7:: TaskSchedulerServiceThread
0   libsystem_kernel.dylib        	0x00007fffb42d4d96 kevent + 10
1   org.brave.Brave.framework     	0x000000010a53ff59 0x108d2f000 + 25235289
2   org.brave.Brave.framework     	0x000000010a53d96d 0x108d2f000 + 25225581
3   org.brave.Brave.framework     	0x000000010a4ba362 0x108d2f000 + 24687458
4   org.brave.Brave.framework     	0x000000010a4d6fd3 0x108d2f000 + 24805331
5   org.brave.Brave.framework     	0x000000010a50605b 0x108d2f000 + 24997979
6   org.brave.Brave.framework     	0x000000010a5005a7 0x108d2f000 + 24974759
7   libsystem_pthread.dylib       	0x00007fffb43be93b _pthread_body + 180
8   libsystem_pthread.dylib       	0x00007fffb43be887 _pthread_start + 286
9   libsystem_pthread.dylib       	0x00007fffb43be08d thread_start + 13

Thread 8:: TaskSchedulerBackgroundWorker
0   libsystem_kernel.dylib        	0x00007fffb42cc34a mach_msg_trap + 10
1   libsystem_kernel.dylib        	0x00007fffb42cb797 mach_msg + 55
2   org.brave.Brave.framework     	0x000000010a4e9075 0x108d2f000 + 24879221
3   org.brave.Brave.framework     	0x000000010a4e9151 0x108d2f000 + 24879441
4   org.brave.Brave.framework     	0x000000010a4f0248 0x108d2f000 + 24908360
5   org.brave.Brave.framework     	0x000000010a4f07ed 0x108d2f000 + 24909805
6   org.brave.Brave.framework     	0x000000010a5005a7 0x108d2f000 + 24974759
7   libsystem_pthread.dylib       	0x00007fffb43be93b _pthread_body + 180
8   libsystem_pthread.dylib       	0x00007fffb43be887 _pthread_start + 286
9   libsystem_pthread.dylib       	0x00007fffb43be08d thread_start + 13

Thread 9:: TaskSchedulerSingleThreadForegroundBlocking0
0   libsystem_kernel.dylib        	0x00007fffb42cc34a mach_msg_trap + 10
1   libsystem_kernel.dylib        	0x00007fffb42cb797 mach_msg + 55
2   org.brave.Brave.framework     	0x000000010a4e9075 0x108d2f000 + 24879221
3   org.brave.Brave.framework     	0x000000010a4e8faf 0x108d2f000 + 24879023
4   org.brave.Brave.framework     	0x000000010a4f023a 0x108d2f000 + 24908346
5   org.brave.Brave.framework     	0x000000010a4f07ed 0x108d2f000 + 24909805
6   org.brave.Brave.framework     	0x000000010a5005a7 0x108d2f000 + 24974759
7   libsystem_pthread.dylib       	0x00007fffb43be93b _pthread_body + 180
8   libsystem_pthread.dylib       	0x00007fffb43be887 _pthread_start + 286
9   libsystem_pthread.dylib       	0x00007fffb43be08d thread_start + 13

Thread 10 Crashed:: TaskSchedulerSingleThreadForegroundBlocking1
0   org.brave.Brave.framework     	0x000000010af03e23 0x108d2f000 + 35474979
1   org.brave.Brave.framework     	0x000000010a3f0b6c 0x108d2f000 + 23862124
2   org.brave.Brave.framework     	0x000000010af10c1f 0x108d2f000 + 35527711
3   org.brave.Brave.framework     	0x000000010af0fdbb 0x108d2f000 + 35524027
4   org.brave.Brave.framework     	0x000000010af10fc9 0x108d2f000 + 35528649
5   org.brave.Brave.framework     	0x000000010af07fc6 0x108d2f000 + 35491782
6   org.brave.Brave.framework     	0x000000010a494c14 0x108d2f000 + 24534036
7   org.brave.Brave.framework     	0x000000010a4f510b 0x108d2f000 + 24928523
8   org.brave.Brave.framework     	0x000000010a4f5663 0x108d2f000 + 24929891
9   org.brave.Brave.framework     	0x000000010a4f4d85 0x108d2f000 + 24927621
10  org.brave.Brave.framework     	0x000000010a4f0768 0x108d2f000 + 24909672
11  org.brave.Brave.framework     	0x000000010a5005a7 0x108d2f000 + 24974759
12  libsystem_pthread.dylib       	0x00007fffb43be93b _pthread_body + 180
13  libsystem_pthread.dylib       	0x00007fffb43be887 _pthread_start + 286
14  libsystem_pthread.dylib       	0x00007fffb43be08d thread_start + 13

Threads 11-165 omitted for brevity.

Thread 166:
0   libsystem_pthread.dylib       	0x00007fffb43be070 start_wqthread + 0
1   ???                           	0x0000700002949b30 0 + 123145345604400

Thread 167:
0   libsystem_kernel.dylib        	0x00007fffb42d444e __workq_kernreturn + 10
1   libsystem_pthread.dylib       	0x00007fffb43be48e _pthread_wqthread + 1023
2   libsystem_pthread.dylib       	0x00007fffb43be07d start_wqthread + 13

Thread 10 crashed with X86 Thread State (64-bit):
  rax: 0x000000000000a100  rbx: 0x0000610000223200  rcx: 0x0da94a000da94a00  rdx: 0x00006000000ad900
  rdi: 0x00006000000ad8e0  rsi: 0x0da94a0000000000  rbp: 0x0000700007600690  rsp: 0x0000700007600680
   r8: 0x00006000000ad8f8   r9: 0x0000000001962478  r10: 0x00006000000ad900  r11: 0xffffffff00000000
  r12: 0x00007f8a3ec19690  r13: 0x00007f8a3ec193e0  r14: 0x00006100004033a0  r15: 0x0000000000000000
  rip: 0x000000010af03e23  rfl: 0x0000000000000246  cr2: 0x00000001033b3000
  
Logical CPU:     2
Error Code:      0x00000000
Trap Number:     3


Binary Images:
       0x108cb5000 -        0x108cb5ff7 +com.electron.brave (0.19.95 - 4.5.16) <7248BFB4-826A-3748-9B5D-999DF5022621> /Applications/Brave.app/Contents/MacOS/Brave
       0x108d2f000 -        0x10e5a1fef +org.brave.Brave.framework (62.0.3202.94 - 3202.94) <08AA9066-7D5A-3225-A794-437E68A27FCF> /Applications/Brave.app/Contents/Frameworks/Brave Framework.framework/Brave Framework
       0x10eed0000 -        0x10eee6fff +com.github.Squirrel (1.0 - 1) <A3768DDA-8D21-3A44-BA9A-1B78C79AF305> /Applications/Brave.app/Contents/Frameworks/Brave Framework.framework/Libraries/Squirrel.framework/Squirrel
       0x10ef04000 -        0x10ef67ff7 +org.reactivecocoa.ReactiveCocoa (1.0 - 1) <701B20DE-3ADD-3643-B52A-E05744C30DB3> /Applications/Brave.app/Contents/Frameworks/Brave Framework.framework/Libraries/ReactiveCocoa.framework/ReactiveCocoa
       0x10efde000 -        0x10eff2fff +org.mantle.Mantle (1.0 - ???) <31915DD6-48E6-3706-A076-C9D4CE17F4F6> /Applications/Brave.app/Contents/Frameworks/Brave Framework.framework/Libraries/Mantle.framework/Mantle
       0x10f007000 -        0x10f045ff7  com.apple.audio.midi.CoreMIDI (1.10 - 88) <5E2D1F53-B466-312E-AEA7-117B68C9A7F0> /System/Library/Frameworks/CoreMIDI.framework/Versions/A/CoreMIDI
       0x10f06d000 -        0x10f086fff  libexpat.1.dylib (15.1) <588CA992-60BB-363B-BEE7-3CC0A26C1AFA> /usr/lib/libexpat.1.dylib
       0x111e55000 -        0x111e92dc7  dyld (433.5) <93EA668C-4BB2-3646-96E9-B406B81308D6> /usr/lib/dyld
       0x1146d0000 -        0x114876fff  GLEngine (14.0.16) <08F2E804-13D2-3E80-9322-1A23A84A55F3> /System/Library/Frameworks/OpenGL.framework/Resources/GLEngine.bundle/GLEngine
       0x1148b5000 -        0x114e10ff7  com.apple.driver.AppleIntelHD5000GraphicsGLDriver (10.25.17 - 10.2.5) <AB312129-18F7-3229-B68C-10EB245AB764> /System/Library/Extensions/AppleIntelHD5000GraphicsGLDriver.bundle/Contents/MacOS/AppleIntelHD5000GraphicsGLDriver
       0x115023000 -        0x11504dfff  GLRendererFloat (14.0.16) <6B57F70A-EFAC-3DB2-B9BA-E55D05D44DB5> /System/Library/Frameworks/OpenGL.framework/Resources/GLRendererFloat.bundle/GLRendererFloat
       0x115073000 -        0x1150ebff7  com.apple.driver.AppleIntelHD5000GraphicsMTLDriver (10.25.17 - 10.2.5) <FE72747F-88F7-347F-ADD2-E92E8037B9F0> /System/Library/Extensions/AppleIntelHD5000GraphicsMTLDriver.bundle/Contents/MacOS/AppleIntelHD5000GraphicsMTLDriver
       0x115214000 -        0x115215fff +.com.electron.brave.Qqy3cx (???) <B0FFB37C-25F1-3780-AEE3-606A60A5B11F> /var/folders/*/.com.electron.brave.Qqy3cx
       0x116626000 -        0x116661ff7 +.com.electron.brave.Hn2EYV (???) <2937CEE9-EA19-372E-9A65-6012CD3F6067> /var/folders/*/.com.electron.brave.Hn2EYV

Most binary image data omitted for brevity.

External Modification Summary:
  Calls made by other processes targeting this process:
    task_for_pid: 1962
    thread_create: 0
    thread_set_state: 0
  Calls made by this process:
    task_for_pid: 0
    thread_create: 0
    thread_set_state: 0
  Calls made by all processes on this machine:
    task_for_pid: 81628741
    thread_create: 0
    thread_set_state: 0

VM Region Summary:
ReadOnly portion of Libraries: Total=408.6M resident=0K(0%) swapped_out_or_unallocated=408.6M(100%)
Writable regions: Total=1.7G written=0K(0%) resident=0K(0%) swapped_out=0K(0%) unallocated=1.7G(100%)
 
                                VIRTUAL   REGION 
REGION TYPE                        SIZE    COUNT (non-coalesced) 
===========                     =======  ======= 
Accelerate framework               256K        3 
Activity Tracing                   256K        2 
CG backing stores                 2848K        6 
CG image                           100K       13 
CoreAnimation                      124K        6 
CoreUI image data                 1228K       12 
CoreUI image file                  184K        5 
Foundation                           4K        2 
IOKit                             25.1M       24 
Kernel Alloc Once                    8K        2 
MALLOC                           322.1M       58 
MALLOC guard page                   48K       10 
Mach message (reserved)              4K        2         reserved VM address space (unallocated)
Memory Tag 242                      12K        2 
Memory Tag 255                   634.5M      260 
STACK GUARD                       56.7M      169 
Stack                              1.2G      335 
VM_ALLOCATE                         68K       12 
__DATA                            44.3M      280 
__GLSLBUILTINS                    2588K        2 
__IMAGE                            528K        2 
__LINKEDIT                       120.2M       16 
__TEXT                           288.3M      283 
__UNICODE                          556K        2 
mapped file                       67.1M       41 
shared memory                     53.4M       62 
===========                     =======  ======= 
TOTAL                              2.8G     1585 
TOTAL, minus reserved VM space     2.8G     1585 

Model: MacBookPro11,3, BootROM MBP112.0142.B00, 4 processors, Intel Core i7, 2.6 GHz, 16 GB, SMC 2.19f12
Graphics: Intel Iris Pro, Intel Iris Pro, Built-In
Graphics: NVIDIA GeForce GT 750M, NVIDIA GeForce GT 750M, PCIe, 2048 MB
Memory Module: BANK 0/DIMM0, 8 GB, DDR3, 1600 MHz, 0x80AD, 0x484D54343147533641465238412D50422020
Memory Module: BANK 1/DIMM0, 8 GB, DDR3, 1600 MHz, 0x80AD, 0x484D54343147533641465238412D50422020
AirPort: spairport_wireless_card_type_airport_extreme (0x14E4, 0x134), Broadcom BCM43xx 1.0 (7.21.171.131.1a1)
Bluetooth: Version 5.0.5f1, 3 services, 27 devices, 1 incoming serial ports
Network Service: Wi-Fi, AirPort, en0
Serial ATA Device: APPLE SSD SM0512F, 500.28 GB
USB Device: USB 3.0 Bus
USB Device: Apple Internal Keyboard / Trackpad
USB Device: BRCM20702 Hub
USB Device: Bluetooth USB Host Controller
Thunderbolt Bus: MacBook Pro, Apple Inc., 17.1

#3

Извените я новичек и еще не понимаю как работать ?


#4

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.