Sublime Forum

My apps is lag fluctuative

#1

Date/Time: 2018-07-06 05:40:38 +0700
OS Version: Mac OS X 10.13.5 (Build 17F77)
Architecture: x86_64h
Report Version: 26

Data Source: Stackshots

Command: Sublime Text
Path: /Applications/Sublime Text.app/Contents/MacOS/Sublime Text
Identifier: com.sublimetext.3
Version: Build 3175 (3175)
Parent: launchd [1]
PID: 98177

Event: hang
Duration: 1.00s (process was unresponsive for 2503 seconds before sampling)
Steps: 10 (100ms sampling interval)

Hardware model: MacBookPro13,1
Active cpus: 4

Time Awake Since Boot: 400000s
Time Since Wake: 3100s

Fan speed: 1215 rpm


Timeline format: stacks are sorted chronologically
Use -i and -heavy to re-report with count sorting

Heaviest stack for the main thread of the target process:
10 start + 52 (Sublime Text + 4708) [0x10e665264]
10 main + 12088 (Sublime Text + 17773) [0x10e66856d]
10 px_run_event_loop() + 190 (Sublime Text + 2919701) [0x10e92cd15]
10 -[NSApplication run] + 764 (AppKit + 223365) [0x7fff32be9885]
10 -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 3044 (AppKit + 8224308) [0x7fff3338ae34]
10 _DPSNextEvent + 2085 (AppKit + 268915) [0x7fff32bf4a73]
10 _BlockUntilNextEventMatchingListInModeWithFilter + 64 (HIToolbox + 194692) [0x7fff34942884]
10 ReceiveNextEventCommon + 613 (HIToolbox + 195334) [0x7fff34942b06]
10 RunCurrentEventLoopInMode + 286 (HIToolbox + 195990) [0x7fff34942d96]
10 CFRunLoopRunSpecific + 483 (CoreFoundation + 545187) [0x7fff3565c1a3]
10 __CFRunLoopRun + 1293 (CoreFoundation + 547133) [0x7fff3565c93d]
10 __CFRunLoopDoSources0 + 208 (CoreFoundation + 550080) [0x7fff3565d4c0]
10 __CFRunLoopDoSource0 + 108 (CoreFoundation + 1430652) [0x7fff3573447c]
10 CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION + 17 (CoreFoundation + 670305) [0x7fff3567aa61]
10 __NSThreadPerformPerform + 334 (Foundation + 426677) [0x7fff377a02b5]
10 -[WorkQueueCallback processItems:] + 319 (Sublime Text + 2884878) [0x10e92450e]
10 px_main_thread_scheduler::sched_work_item<future assign_then_wrapper::sched_assign_then<px_main_thread_scheduler, optional<std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator > >, show_changelog(async_file_system*, window_factory*, secondary_window_list*)::$_3>(px_main_thread_scheduler&, future_core<optional<std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator > > >, show_changelog(async_file_system, window_factory*, secondary_window_list*)::$_3)::‘lambda’()::operator()() const::‘lambda’()>::operator()() + 657 (Sublime Text + 93291) [0x10e67ac6b]
10 html_control::build_document() + 2738 (Sublime Text + 2479938) [0x10e8c1742]
10 minihtml::calculate_element_style(minihtml::document*, minihtml::element_node*, minihtml::style_sheet const&, minihtml::style_sheet const&, minihtml::style_sheet const&, minihtml::specified_style_data const&, minihtml::style_data const&, hash_map<substring, minihtml::style_property const*, default_hash_traits >) + 1720 (Sublime Text + 2598149) [0x10e8de505]
10 minihtml::calculate_element_style(minihtml::document
, minihtml::element_node*, minihtml::style_sheet const&, minihtml::style_sheet const&, minihtml::style_sheet const&, minihtml::specified_style_data const&, minihtml::style_data const&, hash_map<substring, minihtml::style_property const*, default_hash_traits >) + 1177 (Sublime Text + 2597606) [0x10e8de2e6]
10 minihtml::document::fetch_font(std::__1::vector<substring, std::__1::allocator > const&, float, minihtml::font_weight_t, minihtml::font_style_t) + 91 (Sublime Text + 2567519) [0x10e8d6d5f]
10 px_font_factory::font_exists(substring) + 116 (Sublime Text + 2481400) [0x10e8c1cf8]
10 px_font_exists(char const
) + 1000 (Sublime Text + 2882763) [0x10e923ccb]
10 +[NSFont fontWithName:size:] + 42 (UIFoundation + 60587) [0x7fff59237cab]
10 __NSFontFactoryWithName + 933 (UIFoundation + 61686) [0x7fff592380f6]
10 ATSFontFindVariationFromPostScriptName + 43 (ATS + 19244) [0x7fff33a68b2c]
10 FOLazyInitialize + 441 (ATS + 6314) [0x7fff33a658aa]
10 NewHookUpWithATSServer(unsigned char) + 386 (ATS + 7715) [0x7fff33a65e23]
10 RendezvousWithServer(char*) + 328 (ATS + 8229) [0x7fff33a66025]
10 SendFontManagementMessageWithMessageStatus + 181 (ATS + 8524) [0x7fff33a6614c]
10 mach_msg_trap + 10 (libsystem_kernel.dylib + 78346) [0x7fff5d5b120a]
*10 hndl_mach_scall64 + 22 (kernel + 129414) [0xffffff800021f986]
*10 mach_call_munger64 + 509 (kernel + 1517245) [0xffffff80003726bd]
*10 mach_msg_overwrite_trap + 891 (kernel + 402667) [0xffffff80002624eb]
*10 ipc_kmsg_send + 599 (kernel + 326519) [0xffffff800024fb77]
*10 ipc_mqueue_send + 294 (kernel + 341574) [0xffffff8000253646]
*10 thread_block_reason + 175 (kernel + 554463) [0xffffff80002875df]
*10 ??? (kernel + 558618) [0xffffff800028861a]
*10 machine_switch_context + 205 (kernel + 1586045) [0xffffff800038337d] (blocked by mach_msg send owned by fontd [337])

Process: Sublime Text [98177]
Path: /Applications/Sublime Text.app/Contents/MacOS/Sublime Text
Architecture: x86_64
Parent: launchd [1]
UID: 501
Task size: 57.60 MB (-8192 B)
CPU Time: <0.001s (123.0K cycles, 41.5K instructions, 2.96c/i)
Note: Unresponsive for 2503 seconds before sampling
Note: 2 idle work queue threads omitted

Thread 0x545599 DispatchQueue 1 10 samples (1-10) priority 46 (base 46)
<thread QoS user interactive (requested user interactive), process unclamped, process received importance donation from WindowServer [185], IO tier 0>
10 start + 52 (Sublime Text + 4708) [0x10e665264] 1-10
10 main + 12088 (Sublime Text + 17773) [0x10e66856d] 1-10
10 px_run_event_loop() + 190 (Sublime Text + 2919701) [0x10e92cd15] 1-10
10 -[NSApplication run] + 764 (AppKit + 223365) [0x7fff32be9885] 1-10
10 -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 3044 (AppKit + 8224308) [0x7fff3338ae34] 1-10
10 _DPSNextEvent + 2085 (AppKit + 268915) [0x7fff32bf4a73] 1-10
10 _BlockUntilNextEventMatchingListInModeWithFilter + 64 (HIToolbox + 194692) [0x7fff34942884] 1-10
10 ReceiveNextEventCommon + 613 (HIToolbox + 195334) [0x7fff34942b06] 1-10
10 RunCurrentEventLoopInMode + 286 (HIToolbox + 195990) [0x7fff34942d96] 1-10
10 CFRunLoopRunSpecific + 483 (CoreFoundation + 545187) [0x7fff3565c1a3] 1-10
10 __CFRunLoopRun + 1293 (CoreFoundation + 547133) [0x7fff3565c93d] 1-10
10 __CFRunLoopDoSources0 + 208 (CoreFoundation + 550080) [0x7fff3565d4c0] 1-10
10 __CFRunLoopDoSource0 + 108 (CoreFoundation + 1430652) [0x7fff3573447c] 1-10
10 CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION + 17 (CoreFoundation + 670305) [0x7fff3567aa61] 1-10
10 __NSThreadPerformPerform + 334 (Foundation + 426677) [0x7fff377a02b5] 1-10
10 -[WorkQueueCallback processItems:] + 319 (Sublime Text + 2884878) [0x10e92450e] 1-10
10 px_main_thread_scheduler::sched_work_item<future assign_then_wrapper::sched_assign_then<px_main_thread_scheduler, optional<std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator > >, show_changelog(async_file_system*, window_factory*, secondary_window_list*)::$_3>(px_main_thread_scheduler&, future_core<optional<std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator > > >, show_changelog(async_file_system, window_factory*, secondary_window_list*)::$_3)::‘lambda’()::operator()() const::‘lambda’()>::operator()() + 657 (Sublime Text + 93291) [0x10e67ac6b] 1-10
10 html_control::build_document() + 2738 (Sublime Text + 2479938) [0x10e8c1742] 1-10
10 minihtml::calculate_element_style(minihtml::document*, minihtml::element_node*, minihtml::style_sheet const&, minihtml::style_sheet const&, minihtml::style_sheet const&, minihtml::specified_style_data const&, minihtml::style_data const&, hash_map<substring, minihtml::style_property const*, default_hash_traits >) + 1720 (Sublime Text + 2598149) [0x10e8de505] 1-10
10 minihtml::calculate_element_style(minihtml::document
, minihtml::element_node*, minihtml::style_sheet const&, minihtml::style_sheet const&, minihtml::style_sheet const&, minihtml::specified_style_data const&, minihtml::style_data const&, hash_map<substring, minihtml::style_property const*, default_hash_traits >) + 1177 (Sublime Text + 2597606) [0x10e8de2e6] 1-10
10 minihtml::document::fetch_font(std::__1::vector<substring, std::__1::allocator > const&, float, minihtml::font_weight_t, minihtml::font_style_t) + 91 (Sublime Text + 2567519) [0x10e8d6d5f] 1-10
10 px_font_factory::font_exists(substring) + 116 (Sublime Text + 2481400) [0x10e8c1cf8] 1-10
10 px_font_exists(char const
) + 1000 (Sublime Text + 2882763) [0x10e923ccb] 1-10
10 +[NSFont fontWithName:size:] + 42 (UIFoundation + 60587) [0x7fff59237cab] 1-10
10 __NSFontFactoryWithName + 933 (UIFoundation + 61686) [0x7fff592380f6] 1-10
10 ATSFontFindVariationFromPostScriptName + 43 (ATS + 19244) [0x7fff33a68b2c] 1-10
10 FOLazyInitialize + 441 (ATS + 6314) [0x7fff33a658aa] 1-10
10 NewHookUpWithATSServer(unsigned char) + 386 (ATS + 7715) [0x7fff33a65e23] 1-10
10 RendezvousWithServer(char*) + 328 (ATS + 8229) [0x7fff33a66025] 1-10
10 SendFontManagementMessageWithMessageStatus + 181 (ATS + 8524) [0x7fff33a6614c] 1-10
10 mach_msg_trap + 10 (libsystem_kernel.dylib + 78346) [0x7fff5d5b120a] 1-10
*10 hndl_mach_scall64 + 22 (kernel + 129414) [0xffffff800021f986] 1-10
*10 mach_call_munger64 + 509 (kernel + 1517245) [0xffffff80003726bd] 1-10
*10 mach_msg_overwrite_trap + 891 (kernel + 402667) [0xffffff80002624eb] 1-10
*10 ipc_kmsg_send + 599 (kernel + 326519) [0xffffff800024fb77] 1-10
*10 ipc_mqueue_send + 294 (kernel + 341574) [0xffffff8000253646] 1-10
*10 thread_block_reason + 175 (kernel + 554463) [0xffffff80002875df] 1-10
*10 ??? (kernel + 558618) [0xffffff800028861a] 1-10
*10 machine_switch_context + 205 (kernel + 1586045) [0xffffff800038337d] (blocked by mach_msg send owned by fontd [337]) 1-10

Thread 0x5455a3 10 samples (1-10) priority 31 (base 31)
<thread QoS default (requested default), process unclamped, process received importance donation from WindowServer [185], IO tier 0>
10 thread_start + 13 (libsystem_pthread.dylib + 11257) [0x7fff5d781bf9] 1-10
10 _pthread_start + 377 (libsystem_pthread.dylib + 13581) [0x7fff5d78250d] 1-10
10 _pthread_body + 340 (libsystem_pthread.dylib + 13921) [0x7fff5d782661] 1-10
10 google_breakpad::ExceptionHandler::WaitForMessage(void*) + 155 (Sublime Text + 3542299) [0x10e9c4d1b] 1-10
10 mach_msg_trap + 10 (libsystem_kernel.dylib + 78346) [0x7fff5d5b120a] 1-10
*10 ipc_mqueue_receive_continue + 0 (kernel + 343136) [0xffffff8000253c60] 1-10

Thread 0x5455be Thread name “io_compute” 10 samples (1-10) priority 31 (base 31)
<thread QoS default (requested default), process unclamped, process received importance donation from WindowServer [185], IO tier 0>
10 thread_start + 13 (libsystem_pthread.dylib + 11257) [0x7fff5d781bf9] 1-10
10 _pthread_start + 377 (libsystem_pthread.dylib + 13581) [0x7fff5d78250d] 1-10
10 _pthread_body + 340 (libsystem_pthread.dylib + 13921) [0x7fff5d782661] 1-10
10 semaphore_wait_trap + 10 (libsystem_kernel.dylib + 78406) [0x7fff5d5b1246] 1-10
*10 semaphore_wait_continue + 0 (kernel + 600880) [0xffffff8000292b30] 1-10

Thread 0x5455bf Thread name “io_worker” 10 samples (1-10) priority 31 (base 31)
<thread QoS default (requested default), process unclamped, process received importance donation from WindowServer [185], IO tier 0>
10 thread_start + 13 (libsystem_pthread.dylib + 11257) [0x7fff5d781bf9] 1-10
10 _pthread_start + 377 (libsystem_pthread.dylib + 13581) [0x7fff5d78250d] 1-10
10 _pthread_body + 340 (libsystem_pthread.dylib + 13921) [0x7fff5d782661] 1-10
10 worker_run_helper(void*) + 84 (Sublime Text + 3036781) [0x10e94966d] 1-10
10 semaphore_wait_trap + 10 (libsystem_kernel.dylib + 78406) [0x7fff5d5b1246] 1-10
*10 semaphore_wait_continue + 0 (kernel + 600880) [0xffffff8000292b30] 1-10

Thread 0x5455c0 Thread name “io_worker” 10 samples (1-10) priority 31 (base 31)
<thread QoS default (requested default), process unclamped, process received importance donation from WindowServer [185], IO tier 0>
10 thread_start + 13 (libsystem_pthread.dylib + 11257) [0x7fff5d781bf9] 1-10
10 _pthread_start + 377 (libsystem_pthread.dylib + 13581) [0x7fff5d78250d] 1-10
10 _pthread_body + 340 (libsystem_pthread.dylib + 13921) [0x7fff5d782661] 1-10
10 worker_run_helper(void*) + 84 (Sublime Text + 3036781) [0x10e94966d] 1-10
10 semaphore_wait_trap + 10 (libsystem_kernel.dylib + 78406) [0x7fff5d5b1246] 1-10
*10 semaphore_wait_continue + 0 (kernel + 600880) [0xffffff8000292b30] 1-10

Thread 0x5455e6 Thread name “com.apple.NSEventThread” 10 samples (1-10) priority 46 (base 46)
<thread QoS user interactive (requested user interactive), process unclamped, process received importance donation from WindowServer [185], IO tier 0>
10 thread_start + 13 (libsystem_pthread.dylib + 11257) [0x7fff5d781bf9] 1-10
10 _pthread_start + 377 (libsystem_pthread.dylib + 13581) [0x7fff5d78250d] 1-10
10 _pthread_body + 340 (libsystem_pthread.dylib + 13921) [0x7fff5d782661] 1-10
10 _NSEventThread + 184 (AppKit + 1568708) [0x7fff32d31fc4] 1-10
10 CFRunLoopRunSpecific + 483 (CoreFoundation + 545187) [0x7fff3565c1a3] 1-10
10 __CFRunLoopRun + 1783 (CoreFoundation + 547623) [0x7fff3565cb27] 1-10
10 __CFRunLoopServiceMachPort + 341 (CoreFoundation + 550869) [0x7fff3565d7d5] 1-10
10 mach_msg_trap + 10 (libsystem_kernel.dylib + 78346) [0x7fff5d5b120a] 1-10
*10 ipc_mqueue_receive_continue + 0 (kernel + 343136) [0xffffff8000253c60] 1-10

Thread 0x5455ec Thread name “com.apple.NSURLConnectionLoader” 10 samples (1-10) priority 31 (base 31)
<thread QoS default (requested default), process unclamped, process received importance donation from WindowServer [185], IO tier 0>
10 thread_start + 13 (libsystem_pthread.dylib + 11257) [0x7fff5d781bf9] 1-10
10 _pthread_start + 377 (libsystem_pthread.dylib + 13581) [0x7fff5d78250d] 1-10
10 _pthread_body + 340 (libsystem_pthread.dylib + 13921) [0x7fff5d782661] 1-10
10 NSThread__start + 1197 (Foundation + 193016) [0x7fff377671f8] 1-10
10 -[__CoreSchedulingSetRunnable runForever] + 722 (CFNetwork + 2375288) [0x7fff347a2e78] 1-10
10 CFRunLoopRunSpecific + 483 (CoreFoundation + 545187) [0x7fff3565c1a3] 1-10
10 __CFRunLoopRun + 1783 (CoreFoundation + 547623) [0x7fff3565cb27] 1-10
10 __CFRunLoopServiceMachPort + 341 (CoreFoundation + 550869) [0x7fff3565d7d5] 1-10
10 mach_msg_trap + 10 (libsystem_kernel.dylib + 78346) [0x7fff5d5b120a] 1-10
*10 ipc_mqueue_receive_continue + 0 (kernel + 343136) [0xffffff8000253c60] 1-10

Binary Images:
0x10e664000 - 0x10ed6efff com.sublimetext.3 Build 3175 (3175) /Applications/Sublime Text.app/Contents/MacOS/Sublime Text
0x7fff32bb3000 - 0x7fff33a11fff com.apple.AppKit 6.9 (1561.40.112) <2D9940B9-9C9B-3FF1-8E9F-26CD7E7E3B5A> /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit
0x7fff33a64000 - 0x7fff33acafff com.apple.ApplicationServices.ATS 377 (445.4) <85E779EE-0219-3181-B4C4-201E4CC82AB5> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ATS.framework/Versions/A/ATS
0x7fff3455f000 - 0x7fff348f9fff com.apple.CFNetwork 901.1 (901.1) <5181E03E-F354-35D6-949B-79433346510B> /System/Library/Frameworks/CFNetwork.framework/Versions/A/CFNetwork
0x7fff34913000 - 0x7fff34c18fff com.apple.HIToolbox 2.1.1 (911.10) /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HIToolbox.framework/Versions/A/HIToolbox
0x7fff355d7000 - 0x7fff35a78fff com.apple.CoreFoundation 6.9 (1452.23) <945E5C0A-86C5-336E-A64F-5BF06E78985A> /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
0x7fff37738000 - 0x7fff37afefff com.apple.Foundation 6.9 (1452.23) /System/Library/Frameworks/Foundation.framework/Versions/C/Foundation
0x7fff59229000 - 0x7fff593d8fff com.apple.UIFoundation 1.0 (547.5) /System/Library/PrivateFrameworks/UIFoundation.framework/Versions/A/UIFoundation
0x7fff5d59e000 - 0x7fff5d5c4fff libsystem_kernel.dylib (4570.61.1) /usr/lib/system/libsystem_kernel.dylib
0x7fff5d77f000 - 0x7fff5d78afff libsystem_pthread.dylib (301.50.1) <0E51CCBA-91F2-34E1-BF2A-FEEFD3D321E4> /usr/lib/system/libsystem_pthread.dylib
*0xffffff8000200000 - 0xffffff80009fffff kernel (4570.61.1) /System/Library/Kernels/kernel

This is an error I can provide to yours, please fix this problem bcoz my apps is lagging long again after update my ST3.

0 Likes