sublimehq / sublime_text

Issue tracker for Sublime Text
https://www.sublimetext.com
809 stars 39 forks source link

Sublime quits responding after changing active focus #4723

Open hitthecode opened 3 years ago

hitthecode commented 3 years ago

Description

A few days ago I updated to the latest version of Sublime. Since then I have had it irreparably lock up 14 times. The only resolution is a force quit. It doesn't happen immediately every time, but it does happen sometime during the course of the application running. Restart. Repeat cycle

Steps to reproduce

  1. Start Sublime Text
  2. Switch focus to another task, and wait about 5 minutes
  3. Attempt to switch back to Sublime. Not even the program menu is displayed. The rainbow spinny wheel will go indefinitely. I once let it spin for 15 minutes. Processes, resource usage, etc all looked quite normal for the system. The Force Quit just says "not responding"

Expected behavior

Should be able to toggle to other window without a complete program lockup

Actual behavior

Toggle to another window, and after about 5 minutes if you switch back, it will be locked up

Environment

UltraInstinct05 commented 3 years ago

Does it reproduce in safe mode ?

hitthecode commented 3 years ago

It does. image

BenjaminSchaaf commented 3 years ago

Can you sample the process when it's not responding? You can do so from activity monitor.

bradhoward-dfs commented 3 years ago

In the Discord channel, I said I would post the stack trace the next time this happened to me.

I am not in safe mode, but I did notice something familiar. I am using Will Bond's SFTP plugin to access/update a remote server. I had been working for several hours, updating files on the remote many times. I began working in the Terminal and accidentally wiped the remote's default gateway. I then moved focus back to ST4 and got the beachball.

Here is the compressed stack trace I got from the Force Quit action. Issue_4723_OSX_stacktrace.txt.zip

BenjaminSchaaf commented 3 years ago

That stacktrace looks like a deadlock with a plugin. Are you sure this happens when Sublime Text is in safe mode?

bradhoward-dfs commented 3 years ago

I agree it is probably a plugin. I cannot duplicate the behavior while in safe mode, and frankly I have only run in safe mode for one day. I depend on the SFTP plugin and I use it constantly. I just manually xfer'd the files while in safe mode, but that got old quick. The plugins I have are as follows: PackageControl SFTP SublimeLinter with jshint and pylint SideBarEnhancements

I use Tunnelblick VPN on my Mac to access the remote network. This issue seems to happen only while on the VPN.

Update: I have been working (not in safe mode & not connected via VPN) for about 20mins in ST4 without issue. ST4 has remained open since I quit working yesterday. I just connected to the VPN and tried to upload a file. The SFTP plugin usually fails to upload the first time in the morning, but it seems to usually reconnect without issue and the second upload attempt succeeds. This morning, after the second upload attempt (it was successful) I got the spinning beachball.