Sublime Forum

Dev build 3157 quits unexpectedly

#1

I’ve been seeing a rather odd behavior after updating to 3157. I’ll be working with ST3, then switch to some other application (browser, chat etc) and then when I try to Cmd-Tab back to ST3, its not there. It happens multiple times during the day and I have not yet seen any kind of timing pattern. The ST3 console does not show any errors on start up (at least no plugins seems to be complaining)

Is there a log somewhere I can check to see if there are any oddities? Any ST preferences I should take a look at?

2 Likes

#2

Also having this issue since update to 3157. Running MacOS 13.3.3 on a MacBook Pro Retina 15 (Late 2013).

1 Like

#3

Are you using the Adaptive theme?

Do you have an external display?

0 Likes

#4

I’m using a mac book pro with retina display and no external display. I’m using the Legacy.sublime-theme.

Like I said, I had no issues until I updated to build#3157. Once of the issues I noticed right after the update was the breakage in the JS syntax file: Dev Build 3157 and JS Go To showing weird results

To get around this, I started using the Babel-JS syntax. I’m not sure if this has anything to do with it. But just to test it out, I pulled the fix from https://github.com/sublimehq/Packages/blob/master/JavaScript/JavaScript.sublime-syntax and applied it manually and reverted to the JavaScript syntax file. It’s been 2 days since that change and ST3 seems to be behaving fine now.

0 Likes

#5

Never mind. It just died on me again. It never quits when its in focus. It always when switching to something else (terminal/browser/chat) and then coming back, it’s not there!

0 Likes

#6

Exact same problem here. Very annoying and unfortunate :frowning:

Only when its not on focus.

Same config here, ST3 3157 mac pro retina 15 with os sierra.

I performed a clean install and the problem persists.

0 Likes

#7

Sorry, but I’m rather glad that other people are seeing this issue. For a while, I thought I must be going crazy :smiley:

This looked promising: https://support.apple.com/kb/DL1958?locale=en_US and so I went ahead and updated to 10.13.3 yesterday but it did not change anything :frowning:

0 Likes

#8

The other odd thing is that I never get a OS dialog notifying that Sublime quit unexpectedly (Ignore, Send Crash report etc) like when any other application crashes on Mac. So, it seems like ST is gracefully exiting.

1 Like

#9

Does the following info left. I found this when digging around the Console Utility for any messages that matched Sublime.

Date/Time: 2018-02-27 11:24:23.871616 -0600
OS Version: Mac OS X 10.13.3 (Build 17D102)
Architecture: x86_64
Report Version: 19

Command: Sublime Text
Path: /Applications/Sublime Text.app/Contents/MacOS/Sublime Text
Version: Build 3157 (3157)
Parent: launchd [1]
PID: 18171

Event: wakeups
Wakeups: 45013 wakeups over the last 249 seconds (181 wakeups per second average), exceeding limit of 150 wakeups per second over 300 seconds
Action taken: none
Duration: 248.97s
Steps: 6

Hardware model: MacBookPro10,1
Active cpus: 8

Fan speed: 2161 rpm

Powerstats for: Sublime Text [18171]
UUID: 89EDDF2D-4DBC-3AF5-9916-6D1C1D7BA33E
Start time: 2018-02-27 11:24:25 -0600
End time: 2018-02-27 11:28:32 -0600
Microstackshots: 6 samples (100%)
Primary state: 3 samples Frontmost App, User mode, Effective Thread QoS User Interactive, Requested Thread QoS User Interactive, Override Thread QoS Unspecified
User Activity: 0 samples Idle, 6 samples Active
Power Source: 6 samples on Battery, 0 samples on AC
6 main + 3053 (Sublime Text) [0x10d30f56d]
6 -[NSApplication run] + 764 (AppKit) [0x7fff31794d6d]
6 -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 3044 (AppKit) [0x7fff31f35b4c]
6 _DPSNextEvent + 2085 (AppKit) [0x7fff3179ff5f]
6 _BlockUntilNextEventMatchingListInModeWithFilter + 64 (HIToolbox) [0x7fff334d4914]
6 ReceiveNextEventCommon + 613 (HIToolbox) [0x7fff334d4b96]
6 RunCurrentEventLoopInMode + 286 (HIToolbox) [0x7fff334d4e26]
6 CFRunLoopRunSpecific + 487 (CoreFoundation) [0x7fff341c7787]
3 __CFRunLoopRun + 1600 (CoreFoundation) [0x7fff341c8060]
3 __CFRunLoopDoObservers + 511 (CoreFoundation) [0x7fff341e534f]
3 CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION + 23 (CoreFoundation) [0x7fff341e5427]
2 CA::Transaction::observer_callback(__CFRunLoopObserver*, unsigned long, void*) + 66 (QuartzCore) [0x7fff3f31ff32]
2 CA::Transaction::commit() + 487 (QuartzCore) [0x7fff3f31443d]
2 CA::Context::commit_transaction(CA::Transaction*) + 326 (QuartzCore) [0x7fff3f314894]
2 CA::Layer::layout_and_display_if_needed(CA::Transaction*) + 35 (QuartzCore) [0x7fff3f3157f9]
2 CA::Layer::display_if_needed(CA::Transaction*) + 633 (QuartzCore) [0x7fff3f315d3b]
2 -[_NSOpenGLViewBackingLayer display] + 546 (AppKit) [0x7fff31e4eb7b]
2 -[PXOpenGLViewHelper drawRect:] + 972 (Sublime Text) [0x10d5b2f93]
2 glFlush_Exec + 215 (GLEngine) [0x7fff3e4e2b8f]
2 flush_notify + 1145 (AppKit) [0x7fff31e4c585]
2 -[_NSCGLSurface image] + 82 (AppKit) [0x7fff32232aa6]
2 createImageFromSurface + 1576 (AppKit) [0x7fff3223277b]
2 ??? (GeForceGLDriver + 3229481) [0x7fff2ea68729]
2 ??? (GeForceGLDriver + 3230270) [0x7fff2ea68a3e]
2 gpusSubmitDataBuffers + 156 (libGPUSupportMercury.dylib) [0x7fff4cac2526]
2 IOAccelContextSubmitDataBuffersExt2 + 248 (IOAccelerator) [0x7fff4e1bb949]
2 IOConnectCallStructMethod + 38 (IOKit) [0x7fff369720f7]
2 IOConnectCallMethod + 244 (IOKit) [0x7fff36970ffe]
2 io_connect_method + 369 (IOKit) [0x7fff36971197]
2 mach_msg_trap + 10 (libsystem_kernel.dylib) [0x7fff5bcbf7c2]
2
1 on_pre_sleep(__CFRunLoopObserver*, unsigned long, void*) + 49 (Sublime Text) [0x10d5aff2b]
1 -[NSApplication windows] + 22 (AppKit) [0x7fff3177542d]
1 -[NSApplication _copyWindows] + 316 (AppKit) [0x7fff3177557e]
1 -[NSWindow retain] + 21 (AppKit) [0x7fff317b20c4]
2 __CFRunLoopRun + 2427 (CoreFoundation) [0x7fff341c839b]
2 __CFRunLoopDoTimers + 346 (CoreFoundation) [0x7fff341d0bca]
2 __CFRunLoopDoTimer + 1108 (CoreFoundation) [0x7fff341d10d4]
2 CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION + 20 (CoreFoundation) [0x7fff341d1454]
2 __NSFireTimer + 83 (Foundation) [0x7fff3632b659]
2 ns_work_queue_runner::run_items() + 182 (Sublime Text) [0x10d5aeee2]
2 function_item::~function_item() + 55 (Sublime Text) [0x10d5e6889]
2 ref_counted::on_ref_count_hit_zero() + 1 (Sublime Text) [0x10d3a3d21]
1 __CFRunLoopRun + 1293 (CoreFoundation) [0x7fff341c7f2d]
1 __CFRunLoopDoSources0 + 208 (CoreFoundation) [0x7fff341c8ab0]
1 __CFRunLoopDoSource0 + 108 (CoreFoundation) [0x7fff3429d26c]
1 CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION + 17 (CoreFoundation) [0x7fff341e5a21]
1 __NSThreadPerformPerform + 334 (Foundation) [0x7fff362fb1c5]
1 ns_work_queue_runner::run_items() + 263 (Sublime Text) [0x10d5aef33]
1 CFRunLoopTimerInvalidate + 431 (CoreFoundation) [0x7fff341d172f]
1 CFRunLoopRemoveTimer + 246 (CoreFoundation) [0x7fff341d19f6]
1 mk_timer_arm + 10 (libsystem_kernel.dylib) [0x7fff5bcbf936]
1

Binary Images:
0x10d30d000 - 0x10dabaff7 com.sublimetext.3 Build 3157 (3157) <89EDDF2D-4DBC-3AF5-9916-6D1C1D7BA33E> /Applications/Sublime Text.app/Contents/MacOS/Sublime Text
0x7fff2e754000 - 0x7fff2f0abfff com.apple.GeForceGLDriver 10.28.10 (10.2.8) <916145C7-A22A-399C-80A3-A02E2325CC6C> /System/Library/Extensions/GeForceGLDriver.bundle/Contents/MacOS/GeForceGLDriver
0x7fff3175e000 - 0x7fff325bbfff com.apple.AppKit 6.9 (1561.20.106) /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit
0x7fff334a5000 - 0x7fff337aaff7 com.apple.HIToolbox 2.1.1 /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HIToolbox.framework/Versions/A/HIToolbox
0x7fff34146000 - 0x7fff345dffff com.apple.CoreFoundation 6.9 (1451) <739D6558-3DF3-3181-AA07-BBE3882D3B7F> /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
0x7fff36293000 - 0x7fff36658fff com.apple.Foundation 6.9 (1451) /System/Library/Frameworks/Foundation.framework/Versions/C/Foundation
0x7fff3696d000 - 0x7fff36a08fff com.apple.framework.IOKit 2.0.2 <9CFA07B9-BA6E-31E4-AD4F-C47071A8C522> /System/Library/Frameworks/IOKit.framework/Versions/A/IOKit
0x7fff3e4bd000 - 0x7fff3e654ffb GLEngine (16.4.2) <8F35484D-9C09-3D79-9825-7E73661326D4> /System/Library/Frameworks/OpenGL.framework/Versions/A/Resources/GLEngine.bundle/GLEngine
0x7fff3f304000 - 0x7fff3f54cfff com.apple.QuartzCore 1.11 (584.8.102) <4479AF33-E6EA-3037-A2C1-3C6F12B1260A> /System/Library/Frameworks/QuartzCore.framework/Versions/A/QuartzCore
0x7fff4cabf000 - 0x7fff4cacaff7 libGPUSupportMercury.dylib (16.4.2) /System/Library/PrivateFrameworks/GPUSupport.framework/Versions/A/Libraries/libGPUSupportMercury.dylib
0x7fff4e1b8000 - 0x7fff4e1bfffb com.apple.IOAccelerator 376.6 (376.6) /System/Library/PrivateFrameworks/IOAccelerator.framework/Versions/A/IOAccelerator
0x7fff5bcad000 - 0x7fff5bcd2ff7 libsystem_kernel.dylib (4570.41.2) <5155A4C3-825B-3178-AC51-0D2D2F2A6618> /usr/lib/system/libsystem_kernel.dylib

0 Likes

#10

I’ve reproduced an issue with 3157, which is very likely what you are running into.

If you open two Sublime windows, close one and then trigger a GPU switch you should get a crash. I’ve got a fix for this that will be in 3158. The issue tracking this is https://github.com/SublimeTextIssues/Core/issues/2206.

0 Likes

#11

Thanks @wbond. I don’t use two separate windows, but use a layout of 2 with full screen

0 Likes

#12

If you are using Sierra tabs, then that is equivalent to multiple windows. Or if you open the preferences and close them, that would be enough to trigger it also.

0 Likes