sublimehq / sublime_text

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

plugin_host-3.8 has exited unexpectedly #6190

Open lkeme opened 1 year ago

lkeme commented 1 year ago

Description of the bug

DPI mode: per-monitor v2
startup, version: 4164 windows x64 channel: dev
executable: /F/Software/SublimeText/sublime_text.exe
application: /F/Software/SublimeText
working dir: /F/Software/SublimeText
packages path: /F/Software/SublimeText/Data/Packages
state path: /F/Software/SublimeText/Data/Local
zip path: /F/Software/SublimeText/Packages
zip path: /F/Software/SublimeText/Data/Installed Packages
ignored_packages: ["Vintage"]
pre session restore time: 1.13502
font face "Yahei Consolas Hybrid" has different widths for bold characters, disabling to prevent text reflow
startup time: 1.28902
first paint time: 1.29402
reloading python 3.3 plugin 0_package_control_loader.00-package_control
reloading python 3.3 plugin Package Control.1_reloader
reloading python 3.3 plugin Package Control.2_bootstrap
error: plugin_host-3.8 has exited unexpectedly, some plugin functionality won't be available until Sublime Text has been restarted
reloading python 3.3 plugin Package Control.Package Control

Steps to reproduce

  1. Reinstall.
  2. The only thing installed is package control.
  3. Errors occur when opened after a long interval.
  4. No errors occur when opened in short intervals continuously.

Expected behavior

No error

Actual behavior

IU559}73B7@5VNLAA7`XWHR

O 1 `59F}(YR3@3(42U 1N4

Sublime Text build number

dev 4164

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 1 year ago

Does it happen in safe mode?

lkeme commented 1 year ago

Does it happen in safe mode?

Tested once in safe mode, no errors were found.

lkeme commented 1 year ago

It may occur once or twice a day, sporadically, and is not easily reproducible.

BenjaminSchaaf commented 1 year ago

What packages do you have installed? Note that reinstalling does not touch your installed packages. Refer to this page for reverting to a freshly installed state.

lkeme commented 1 year ago

What packages do you have installed? Note that reinstalling does not touch your installed packages. Refer to this page for reverting to a freshly installed state.

There are no other packages, only Package Control.

lkeme commented 1 year ago

It's already a reinstalled portable version.

deathaxe commented 1 year ago

Package Control 3 runs on python 3.3 plugin host. Hence I doubt it being involved in crashing python 3.8 plugin_host.

lkeme commented 1 year ago

The safe mode also triggers an error.

DPI mode: per-monitor v2
startup, version: 4164 windows x64 channel: dev
SAFE MODE - overriding packages, state and cache paths
executable: /F/Software/SublimeText/sublime_text.exe
application: /F/Software/Development/SublimeText
working dir: /F/Software/Development/SublimeText
packages path: /F/Software/SublimeText/Data (Safe Mode)/Packages
state path: /F/Software/SublimeText/Data (Safe Mode)/Local
zip path: /F/Software/SublimeText/Packages
zip path: /F/Software/SublimeText/Data (Safe Mode)/Installed Packages
ignored_packages: ["Vintage"]
generating syntax summary
generating meta info summary
pre session restore time: 2.08662
startup time: 2.23962
first paint time: 2.28062
error: plugin_host-3.3 has exited unexpectedly, some plugin functionality won't be available until Sublime Text has been restarted
error: plugin_host-3.8 has exited unexpectedly, some plugin functionality won't be available until Sublime Text has been restarted
BenjaminSchaaf commented 1 year ago

Do you have some third party software that could be interfering, like anti-virus?

lkeme commented 1 year ago

Do you have some third party software that could be interfering, like anti-virus?

No, I have tried reinstalling the system and retrying.

Loiseau2nuit commented 11 months ago

Somehow the antivirus prevented some plugins to fully migrate to their needed python lib during last ST upgrade (4169) and I had to unload it in order to properly conduct the re-install of ST to it's term ... We're talking about a TEXT EDITOR needing users -- even those with full admin privileges -- to lower on their security in order to simply upgrade some plugins. That's insane ... What went wrong with latest upgrades ? 😳

deathaxe commented 11 months ago

Upgrading an application or migrating packages/plugins always involves downloading artefacts (binaries, zip archives, ...), extracting them and place them to desired location. If heuristics of antivirus programs decides to block an application to perform those required steps, for whatever dubious reasons, the affected application has little chance to complete properly.

BenjaminSchaaf commented 11 months ago

We're talking about a TEXT EDITOR needing users -- even those with full admin privileges -- to lower on their security in order to simply upgrade some plugins. That's insane ... What went wrong with latest upgrades ? 😳

The only changes we have made that should affect anti-virus software is changing our crash handler from breakpad to crashpad (extremely common software) and using a new software signing key since the last one expired. That is to say we aren't doing anything fundamentally different any other apps.

If you're still convinced this is our doing please contact your anti-virus vendor and have them tell you why it broke Sublime Text (they won't), because they are the only ones who can.

dooafus commented 11 months ago

I have the same error/issue and can confirm the problem was introduced in build 4166 (20 November 2023).

I was able to run newly downloaded portable copies of 4142, 4143, 4151, 4152. The problem appeared once I tried 4166 and still exists in the latest 4169. My machine is Windows 10 22H2 x64 but I am unsure which antivirus or user-privilege-blocking applications are running since this is a managed device. All I know is the older builds work fine, so something in the newer builds requires a higher level of user access than the old ones.

So if you are googling and reading this, you can use up to build 4152. If this ticket is not resolved I'll try to remember to come back and update this post with newer released builds.

YKZDY commented 11 months ago

I have the same error/issue and can confirm the problem was introduced in build 4166 (20 November 2023).

I was able to run newly downloaded portable copies of 4142, 4143, 4151, 4152. The problem appeared once I tried 4166 and still exists in the latest 4169. My machine is Windows 10 22H2 x64 but I am unsure which antivirus or user-privilege-blocking applications are running since this is a managed device. All I know is the older builds work fine, so something in the newer builds requires a higher level of user access than the old ones.

So if you are googling and reading this, you can use up to build 4152. If this ticket is not resolved I'll try to remember to come back and update this post with newer released builds.

Exactly the same situation.

Loiseau2nuit commented 11 months ago

Yep, exactly the same here too. With 4166 or 4169, Core works pretty well but I must unload my AV (Trend Micro Apex One) in order to have my plugins working. Else I'm loosing functionalities. Once I'm back on a previous build, it's ok.

b4imetu commented 9 months ago

I have 2 PCs, both using Scoop to install the portable version of sublime_text v4-4169. One of the PCs has Huorong Internet Security installed and gets Plugin_host-3.3 and Plugin_host-3.8 Error, while the other has no problem. image

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.

so1iman commented 9 months ago

I use sublime version 4169 on Windows 11 Version 10.0.22631 and I get the following error every time I launch sublime. Sometimes sublime does not launch from the first attempt. Kindly find Profile plugins below (tools > Developer> Profile plugins).

image

'`This list shows how much time each plugin has taken to respond to each event:

on_activated: Default.history_list: 0.000s total, mean: 0.000s, max: 0.000s

on_close: Default.settings: 0.000s total, mean: 0.000s, max: 0.000s

on_hover: Default.symbol: 0.003s total, mean: 0.001s, max: 0.003s

on_load: Default.exec: 0.002s total, mean: 0.001s, max: 0.001s

on_modified: Default.history_list: 0.000s total, mean: 0.000s, max: 0.000s Default.settings: 0.000s total, mean: 0.000s, max: 0.000s

on_post_text_command: Default.history_list: 0.000s total, mean: 0.000s, max: 0.000s Default.paste_from_history: 0.000s total, mean: 0.000s, max: 0.000s

on_pre_close: Default.history_list: 0.000s total, mean: 0.000s, max: 0.000s Default.settings: 0.002s total, mean: 0.001s, max: 0.001s

on_selection_modified: Default.history_list: 0.000s total, mean: 0.000s, max: 0.000s

on_text_command: Default.history_list: 0.000s total, mean: 0.000s, max: 0.000s

on_window_command: Default.history_list: 0.000s total, mean: 0.000s, max: 0.000s`'