sublimehq / sublime_text

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

SublimeText does not open after update #6215

Open fab35 opened 7 months ago

fab35 commented 7 months ago

Description of the bug

SublimeText (4) does not start after updates (both Windows 10 update and SublimeText update done).

subl --safe-mode does not start any ST window too....

Steps to reproduce

Using either the default ST icon, exe file, or command line in sade mode --> No ST window open

Expected behavior

ST was starting normally before updates. It still works OK on other laptops.

Actual behavior

ST does not start any window...

NB: How to get access to "scratch files" that were opened in the ST interface before the update?

Sublime Text build number

ST3 or 4 with latest updates

Operating system & version

Windows 10 22H2

(Linux) Desktop environment and/or window manager

No response

Additional information

No response

OpenGL context information

No response

BenjaminSchaaf commented 7 months ago

Do you have an anti-virus or similar software that could be blocking Sublime Text from starting? Does ST3 start if you temporarily revert to a freshly installed state?

fab35 commented 7 months ago

Hi,

I tried renaming %APPDATA%\Sublime Text 3 without success (still does not start). I did not make any change regarding security and SW (like anti-virus...).

I installed SubliMerge to test it it works, and SumbliMerge starts....

No more idea... I just know that .NET has been updated (by Windows update) too this last week...

Thanks

Le jeu. 30 nov. 2023 à 12:49, Benjamin Schaaf @.***> a écrit :

Do you have an anti-virus or similar software that could be blocking Sublime Text from starting? Does ST3 start if you temporarily revert to a freshly installed state https://www.sublimetext.com/docs/revert.html?

— Reply to this email directly, view it on GitHub https://github.com/sublimehq/sublime_text/issues/6215#issuecomment-1833613758, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEUHHT4UQW2C3CJCJMLPBSLYHBXETAVCNFSM6AAAAABAA7YXV2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMZTGYYTGNZVHA . You are receiving this because you authored the thread.Message ID: @.***>

fab35 commented 7 months ago

Just for the other question: How to get access to the previous session information/content (before the issue), in particular how to get "scratch files" that were opened in the ST interface before the update? I saw it one time (during the ST3 install workaround if I remember well..), so I guess it is not lost ? Thanks

BenjaminSchaaf commented 7 months ago

I did not make any change regarding security and SW (like anti-virus...).

Anti-virus software in my experience can and will break things without any interaction and without notification.

The session data is kept in %APPDATA%\Sublime Text 3\Local.

weltall17 commented 7 months ago

I face the somewhat similar issue, with the latest stable release build 4169. The program can't be launched from the start menu by clicking on the apps shortcut directly. However, right-click then run as admin works. Navigate to the apps shortcut location in the Windows explorer then launch from there also works. The program just refuse to launch from the start menu directly.

fab35 commented 6 months ago

Hi, Regarding my question "How to get access to the previous session information/content (before the issue), in particular how to get scratch files that were opened in the ST interface before the update?", how can I exploit the content of %APPDATA% subfolders to get my scratchpad information (and see my ongoing text files) when I cannot have SublimeText working anymore ? Thanks

fab35 commented 6 months ago

If I restart from an old portable version, without update, I can start it! If I accept the proposed update when it opens, it does not start anymore. So the issue is really linked to the latest version... 4 times the same update test (whatever the initial base, portable or full installed version, ...), 4 times the issue...

fab35 commented 6 months ago

As I start from an old 3.x version to test this issue, is it possible to update to the previous 4.x version (not the latest that causes the "non-starting" problem) ?

BenjaminSchaaf commented 6 months ago

@fab35 You can simply install any previous version from here: https://www.sublimetext.com/docs/previous_versions.html.

The session data in that %APPDATA% location is equivalent to the Data directory in portable builds.

fab35 commented 6 months ago

Yes thanks I succeeded in viewing all my scratch files yesterday using the data folder in an old portable version of ST. And as soon as I accepted the update, ST was not starting anymore. So, on my side version 4126 is OK, version 4169 is not working... (whatever the reinstall, portable or not, update from old or not....). If it can help you in understanding the issue...

fab35 commented 5 months ago

Another feedback after updates on an "enterprise laptop"... : v4152 is fine too. while v4169 does not start.

jh7370 commented 4 months ago

Hi,

Just thought I'd chime in that I've just run into this issue myself, starting some time in the past 24 hours or so. I hadn't updated Sublime, so there was clearly a change in the system. Indeed, some time late yesterday, my IT team installed a AV system on my machine. I'm 99% certain Sublime hasn't been working since then, although I cannot say for sure exactly when it did stop working, so it could be a coincidence (I'll try and ask IT if they can back track on it at some point in the next couple of days, at least temporarily). Downgrading to 4152 is a viable workaround for now at least.

jh7370 commented 4 months ago

So after some playing around with my system setup, it appears that I was only seeing the crash when both my old AV and the new AV were installed at the same time. After the new one was uninstalled, I no longer see the problem. No idea if this tidpit is of any use in identifying and fixing this issue.

BenjaminSchaaf commented 4 months ago

We can't fix anything on our end - not until an AV company tells us why/how they're breaking our software, which I expect them to never ever do. People who've confirmed their AV as the cause need to talk to their AV provider to fix this issue.

r2pgl commented 3 months ago

I did not make any change regarding security and SW (like anti-virus...).

Anti-virus software in my experience can and will break things without any interaction and without notification.

The session data is kept in %APPDATA%\Sublime Text 3\Local.

I moved the content of %AppData%\Roaming\Sublime Text into a subfolder (effectively deleting it) and that fixed it on my "enterprise laptop" running ST4 v4169. It starts as expected now. I didn't have much in that folder so i didn't investigate which part of that data was at fault.

davidcr01 commented 2 weeks ago

This also happened to me in my Ubuntu 22.04 machine (actually PopOS 22). Sublime crashes opening it by clicking the icon, and executing the subl binary. I fixed this by removing the package and intalling the older one, the 4166 build:

sudo apt-get install sublime-text=4166