sublimehq / sublime_text

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

Plugin_host-3.3 and Plugin_host-3.8 Error. #6260

Open MMokhtar8 opened 9 months ago

MMokhtar8 commented 9 months ago

Description of the bug

The PC shutdown while running a script and since then i can't seem to use sublime text with the errors being 'Plugin_host-3.3 has exited unexpectedly, some plugin functionality won’t be available until Sublime Text has been restarted' and 'Plugin_host-3.8 has exited unexpectedly, some plugin functionality won’t be available until Sublime Text has been restarted' I'm using the portable version. It doesn't start on safe mode. I tried deleting and re-extracting ST but same errors persist. I downloaded another portable and older version of ST, it worked but I can't update ST. Screenshot 2024-01-08 153543

Steps to reproduce

  1. Start ST.
  2. Error messages appears.

Expected behavior

To run smoothly and being able to build scripts and install packages.

Actual behavior

Every option is grayed out and no functionality.

Sublime Text build number

4169

Operating system & version

Windows 11

(Linux) Desktop environment and/or window manager

No response

Additional information

No response

OpenGL context information

No response

BenjaminSchaaf commented 8 months ago

Given this happened due to a PC shutdown perhaps you have some file corruption? Have you tried re-downloading ST?

MMokhtar8 commented 8 months ago

Yes. I was using a portable version of ST4 and I tried re-downloading it, but same error. When I downloaded ST3, it worked fine.

deathaxe commented 8 months ago

Not sure if it is related, but there was a report at https://forum.sublimetext.com/t/plugin-host-3-3-and-3-8-has-exited-unexpectdely/70284/27?u=deathaxe about plugin hosts crashing with Package Control 4.0.0-beta10 or higher being installed, while beta9 is said not to cause trouble.

According to provided logs, plugin hosts crash just before establishing initial connection to download channel_v3.json.

I haven't seen any trouble so far and thus can't confirm any relation, nor do I see any change, which could obviously be causing crashes.

beta10 introduces some changes to make sure to re-use existing local http cache files, if as long as they are frequently accessed.

The point of time plugin_host crashes, indicates some relation.

I have no idea how to track it down, though, atm.

MMokhtar8 commented 8 months ago

I kept trying different builds of ST4 and the last one not generating this error is build 4151. I even tried manually installing 'Package Control.sublime-package' and update to build 4169 but no luck.

It seems like I will be using ST4 build 4151 for now until further updates.

b4imetu commented 7 months ago

https://github.com/sublimehq/sublime_text/issues/6190#issuecomment-1868305293

It seems that the antivirus software conflicts with the new version of sublime. I'm not sure what changes the developers have made to version 4166.

nhamlin commented 6 months ago

3/18/2024: Still an issue with a clean build. I just:

The app still doesn't load when I first click the taskbar pin or use the context menu option to open a text file in Sublime Text. After a second (or third) try, I get a window with both "plugin_host-3.3 has exited unexpectedly" and "plugin_host-3.8 has exited unexpectedly".

This is a brand-new, clean install--no additional plug-ins or packages. I don't see any requests for firewall access, nor do I see any settings in the firewall that are related to Sublime Text 3, let alone denying access. Also, no entries for python, as I've seen some people say this is python-related. (My python is 3.12.2)

Another note, this only started happening in the past 2 months or so, which is weird because 4169 was released almost 5 months ago. ST has been pretty solid otherwise. Maybe I'll try finding a 4166 install package and downgrade.

BenjaminSchaaf commented 6 months ago

Note that build 4169 is Sublime Text 4. This only happening recently points to a third party issue. Do you have an anti-virus installed? Have you tried temporarily disabling it?

albertogiannetto commented 3 months ago

I'm getting the exact same (mis)behaviour on build 4169. Tried to uninstall and clean up the %APPDATA% folders, re-run the installer but the error persists (also after 2 or 3 attempts at starting the application). I'm running on Windows 11.

Kufat commented 2 months ago

Likewise for me, including still having the failure after a complete uninstall and deletion of settings + clean reinstall. Please note that this is a work machine and so adding antivirus exceptions is not possible. This may be unrelated, but when the problems started I got a message that my license key was no longer valid. (The license key was provided by my employer.) I'm not sure whether that was due to the actual expiration of the key after an automatic upgrade or whether the key expiration is itself a bug.

amoose136 commented 1 month ago

I'm in basically and identical situation as Kufat except I have my own license key. image

Build 4180, clean install after uninstalling and deleting the folders in AppData. Windows 11. Get two error messages every time: one for plugin_host 3.8 and one for plugin_host 3.3

asherrna commented 1 month ago

Echoing here. Uninstall, clean folders from AppData, reinstall, and same issue -- will swap to another notepad for now, but would love to get this sorted.

jfcherng commented 1 month ago

Echoing here. Uninstall, clean folders from AppData, reinstall, and same issue -- will swap to another notepad for now, but would love to get this sorted.

@asherrna Even under safe mode? https://www.sublimetext.com/docs/safe_mode.html

asherrna commented 1 month ago

@asherrna Even under safe mode? https://www.sublimetext.com/docs/safe_mode.html

interestingly enough, before my reinstall I wasn't able to get the application to launch via safe mode, but it would fail silently. Post-reinstall I get a segmentation fault error when running subl --safe-mode

jfcherng commented 1 month ago

@asherrna Even under safe mode? sublimetext.com/docs/safe_mode.html

interestingly enough, before my reinstall I wasn't able to get the application to launch via safe mode, but it would fail silently. Post-reinstall I get a segmentation fault error when running subl --safe-mode

If it failed in safe mode, it can be confirmed as a core issue.