Sublime Forum

Plugin_host 3.3 and 3.8 has exited unexpectdely

#1

Hi!
I’m using the sublime text 3 wih no problems until today!
After upgrading the version to the latest stable version i encountered the error “Plugin_host 3.3 as exited unexpectdely”

So i start to search something and find a solution.
Tried to rename D:\Users\tramontig\AppData\Roaming\Sublime Text dir and restart sublime toi recreate the dir. Sublime start with error

So i have taken the bk od the profile dir and delete. I unistelled ST3 and install ST4.

I have restarted and then i receive the error “Plugin_host 3.8 as exited unexpectdely”.
image
It’s strange cause some time ST4 start and sometimes no.

This is my console:
DPI mode: per-monitor v2
startup, version: 4166 windows x64 channel: stable
executable: /C/Program Files/Sublime Text/sublime_text.exe
application: /C/Program Files/Sublime Text
working dir: /C/WINDOWS/system32
packages path: /D/Users/myuser/AppData/Roaming/Sublime Text/Packages
state path: /D/Users/myuser/AppData/Roaming/Sublime Text/Local
zip path: /C/Program Files/Sublime Text/Packages
zip path: /D/Users/myuser/AppData/Roaming/Sublime Text/Installed Packages
ignored_packages: [“Vintage”]
pre session restore time: 1.82811
startup time: 1.88611
first paint time: 1.93311
error: plugin_host-3.8 has exited unexpectedly, some plugin functionality won’t be available until Sublime Text has been restarted

This is the windows 11 event viewer

Nome dell’applicazione che ha generato l’errore: sublime_text.exe, versione: 4.1.6.6, timestamp: 0x655a86b7
Nome del modulo che ha generato l’errore: sublime_text.exe, versione: 4.1.6.6, timestamp: 0x655a86b7
Codice eccezione: 0xc0000409
Offset errore 0x00000000006006e9
ID processo che ha generato l’errore: 0x0x42DC
Ora di avvio dell’applicazione che ha generato l’errore: 0x0x1DA1D3DCDB165B8
Percorso dell’applicazione che ha generato l’errore: C:\Program Files\Sublime Text\sublime_text.exe
Percorso del modulo che ha generato l’errore: C:\Program Files\Sublime Text\sublime_text.exe
ID segnalazione: 279d9571-38ea-4042-beeb-84eeae2619a2
Nome completo pacchetto che ha generato l’errore:
ID applicazione relativo al pacchetto che ha generato l’errore:

So what’s wrong
I’m really trying to understand

Thanks
Gabriele

0 Likes

#2

After reading some post i installed the 4152 and it worked.

This is the console
installed DPI mode: per-monitor v2
startup, version: 4152 windows x64 channel: stable
executable: /C/Program Files/Sublime Text/sublime_text.exe
application: /C/Program Files/Sublime Text
working dir: /C/Program Files/Sublime Text
packages path: /D/Users/myuser/AppData/Roaming/Sublime Text/Packages
state path: /D/Users/myuser/AppData/Roaming/Sublime Text/Local
zip path: /C/Program Files/Sublime Text/Packages
zip path: /D/Users/myuser/AppData/Roaming/Sublime Text/Installed Packages
ignored_packages: []
generating syntax summary
generating meta info summary
ignored packages updated to: [“Vintage”]
reloading settings Packages/Vintage/Preferences.sublime-settings
pre session restore time: 4.85047
startup time: 4.91147
first paint time: 4.95947
reloading plugin Default.arithmetic
reloading plugin Default.auto_indent_tag
reloading plugin Default.block
reloading plugin Default.colors
reloading plugin Default.comment
reloading plugin Default.convert_color_scheme
reloading plugin Default.convert_syntax
reloading plugin Default.copy_path
reloading plugin Default.echo
reloading plugin Default.exec
reloading plugin Default.fold
reloading plugin Default.font
reloading plugin Default.goto_line
reloading plugin Default.history_list
reloading plugin Default.html_print
reloading plugin Default.indentation
reloading plugin Default.install_package_control
reloading plugin Default.keymap
reloading plugin Default.kill_ring
reloading plugin Default.mark
reloading plugin Default.new_templates
reloading plugin Default.open_context_url
reloading plugin Default.open_in_browser
reloading plugin Default.pane
reloading plugin Default.paragraph
reloading plugin Default.paste_from_history
reloading plugin Default.profile
reloading plugin Default.quick_panel
reloading plugin Default.rename
reloading plugin Default.run_syntax_tests
reloading plugin Default.save_on_focus_lost
reloading plugin Default.scroll
reloading plugin Default.set_unsaved_view_name
reloading plugin Default.settings
reloading plugin Default.show_scope_name
reloading plugin Default.side_bar
reloading plugin Default.sort
reloading plugin Default.switch_file
reloading plugin Default.symbol
reloading plugin Default.transform
reloading plugin Default.transpose
reloading plugin Default.ui
reloading plugin CSS.css_completions
reloading plugin Diff.diff
reloading plugin HTML.encode_html_entities
reloading plugin HTML.html_completions
plugins loaded

0 Likes

#3

These were my installed packages previously after upgrading and have the crash

0_package_control_loader
Compare Side-By-Side
HyperlinkHelper
Package Control

Mybe there is an issue with some packages and last ST3 and ST4 versions?

I don’t think is an issue caused by my antivirus…ST is working since 2 years with it

0 Likes

#4

I have been running all recent ST dev builds with about 100 packages installed on a Win10 22H2 and Win 11 x64 22H2 without any such issues. Plugin hosts crashing has been reported several times recently, though.

All mentioned plugins run on python 3.3, so are unlikely to cause python 3.8 plugin_host to crash.

I wonder if such issues are related with the new crash_handler, which has been introduced during last dev cycle. Small memory offset values seem to indicate issues some early running code.

0 Likes

#5

Hi,

thanks for your response.
Really dont know. I can confirm ST4 4152 is working without issues.
No ìw i will try to install package control and something else.

0 Likes

#6

Do you have an anti-virus or similar software that could be causing the plugin host processes to exit?

0 Likes

#7

Please read my preovius post.
Is not an antivirus problem. The 4152 work correctly.

Many people have this problem so maybe the cause is something related with new features of ST?
Think i had this problem with both last version of ST3 and ST4

1 Like

#8

Even Windows Defender uses heuristics and cloud based behavior analysis functions to dedect suspicious behavior. It should but maybe does not for unknown reasons trust ST and its plugin_hosts even though they are signed.

It would be easy to verify by (temporarily) adding ST’s executables to Windows Defender’s exception list.

ST4152 also caused trouble when freshly released, mainly caused by Anti Virus programs. So I wouldn’t rule that out for ST4166, too.

0 Likes

#9

Hello everybody,

same issue, same solution. With builds 4166 and 4169 it does not load some plugins. It won’t enable sort functions for example on Edit > Sort Lines, Permute Lines and won’t even start the Package Control: Install Package function.

image

@bschaaf
My python version is 3.10.11, could this be related?

0 Likes

#10

Your system’s python installation isn’t used by Sublime Text. We ship our own python 3.3 and python 3.8 for plugins.

0 Likes

#11

I had this problem starting immediately after installing the previous stable update (build 4152) up until the most recent stable update (build 4166), after which it disappeared as suddenly as it showed up.

In my case the problem was triggered by the SublimeLinter-flake8 plugin, but I’ve seen people reporting this error for dozens of different plugins. I believe this to have been an entirely ST-based problem.

Unfortunately the console was unhelpful, it just says “error: plugin_host-3.3 has exited unexpectedly, some plugin functionality won’t be available until Sublime Text has been restarted” after other completely normal logs.

In my opinion if the plugin host crashes there should be a full on stack trace displayed, exactly like what happens when an error is thrown in Python. I spent hours trying to figure this out with no luck and no solution except to wait for the next build and hope things would be better (luckily they were).

I hope the ST devs consider adding more debug information to this error, should it ever show up again. Just saying there’s an error doesn’t go very far for figuring out why.

0 Likes

#12

This is openssl related.

On the Mac, where I use both openssl v1 and v3 via homebrew, I have unlinked v3 so that it finds openssl@1 and it works with ST 4 Buld 4116

I have not managed to figure out how to sort that, but since I was only testing ST there I didn’t bother.

0 Likes

#13

The OpenSSL issue is an issue with package control and only applies to macOS with homebrew installed. It also afaik doesn’t cause the plugin host to crash, it just results in package control not working.

1 Like

#14

how did you do this (unlink openssl v3)?

0 Likes

#15

brew unlink openssl@3

0 Likes

#16

darn didn’t work for me.

$ brew unlink openssl@3
==> Downloading https://formulae.brew.sh/api/formula.jws.json
Warning: ignoring --capath, not supported by libcurl
################################################################################################################################################################################################################################################################                                                                         100.0%
==> Downloading https://formulae.brew.sh/api/cask.jws.json
Warning: ignoring --capath, not supported by libcurl
################################################################################################################################################################################################################################################################                                                                         100.0%
Error: No such keg: /usr/local/Cellar/openssl@3
$ 

When looking at the path, I only see the following folders:
/usr/local/Cellar/openssl
/usr/local/Cellar/openssl@1.1

0 Likes

#17

what does

brew search openssl

tell you?

0 Likes

#18
$ brew search openssl
==> Formulae
glib-openssl                openssl@1.1 ✔               openssl@3 ✔                 openssl@3.0                 openslp                     openssh                     opensaml                    opensc                      openmsx                     openfst                     opencsg                     open-sp

==> Casks
openmsx                                                                                                         opensc                                                                                                          opensim
==> Downloading https://formulae.brew.sh/api/cask_tap_migrations.jws.json
Warning: ignoring --capath, not supported by libcurl
################################################################################################################################################################################################################################################################                                                                         100.0%
==> Downloading https://formulae.brew.sh/api/formula_tap_migrations.jws.json
Warning: ignoring --capath, not supported by libcurl
################################################################################################################################################################################################################################################################                                                                         100.0%
0 Likes

#19

try brew unlink openssl\@3

and, RTFM

0 Likes

#20

haha yeah. I’m in way over my head with this one. Just hoping it was an easy answer I could learn from in reverse rather than searching through varios man pages, banging my head against the desk, etc.

Thank you!!! :slight_smile:

EDIT: Tried the latest suggestion.

Error: No such keg: /usr/local/Cellar/openssl@3

:frowning:

0 Likes