Closed galamit86 closed 3 years ago
Where did you install vscode from ? Can you paste the steps you did to install the app. This is a corrupted installation of the app.
I downloaded the Mac version from here, (zip file named VSCode-darwin.zip
), unarchived it, and 'dragged' it to Applications. Since my user is not the admin on this machine (school's laptop), I enter a local admin user and password. I am not very familiar with the macOS environment, so not sure what else might be relevant.
Thanks for the quick reply - let me know if you need any extra info.
Can you paste the output of
ls -l /Applications/Visual\ Studio\ Code.app/Contents/Frameworks/Electron\ Framework.framework/Versions/Current/Libraries/
tud0029822:~ tslilstrauss$ ls -l /Applications/Visual\ Studio\ Code.app/Contents/Frameworks/Electron\ Framework.framework/Versions/Current/Libraries/
total 36960
-rwxr-xr-x@ 1 tslilstrauss 1653728465 243648 Feb 11 13:07 libEGL.dylib
-rwxr-xr-x@ 1 tslilstrauss 1653728465 8597888 Feb 11 13:07 libGLESv2.dylib
-rwxr-xr-x@ 1 tslilstrauss 1653728465 2921120 Feb 11 13:07 libffmpeg.dylib
-rwxr-xr-x@ 1 tslilstrauss 1653728465 275312 Feb 11 13:07 libswiftshader_libEGL.dylib
-rwxr-xr-x@ 1 tslilstrauss 1653728465 2683392 Feb 11 13:07 libswiftshader_libGLESv2.dylib
-rwxr-xr-x@ 1 tslilstrauss 1653728465 4181536 Feb 11 13:07 libvk_swiftshader.dylib
-rw-r--r--@ 1 tslilstrauss 1653728465 110 Feb 6 05:59 vk_swiftshader_icd.json
Can you print the value of the following
$ otool -D /Applications/Visual\ Studio\ Code.app/Contents/Frameworks/Electron\ Framework.framework/Versions/Current/Libraries/libffmpeg.dylib
$ codesign -vvv /Applications/Visual\ Studio\ Code.app/
$ open -a /Applications/Visual\ Studio\ Code.app/
tud0029822:~ tslilstrauss$ ls -l /Applications/Visual\ Studio\ Code.app/Contents/Frameworks/Electron\ Framework.framework/Versions/Current/Libraries/
total 36960
-rwxr-xr-x@ 1 tslilstrauss 1653728465 243648 Feb 11 13:07 libEGL.dylib
-rwxr-xr-x@ 1 tslilstrauss 1653728465 8597888 Feb 11 13:07 libGLESv2.dylib
-rwxr-xr-x@ 1 tslilstrauss 1653728465 2921120 Feb 11 13:07 libffmpeg.dylib
-rwxr-xr-x@ 1 tslilstrauss 1653728465 275312 Feb 11 13:07 libswiftshader_libEGL.dylib
-rwxr-xr-x@ 1 tslilstrauss 1653728465 2683392 Feb 11 13:07 libswiftshader_libGLESv2.dylib
-rwxr-xr-x@ 1 tslilstrauss 1653728465 4181536 Feb 11 13:07 libvk_swiftshader.dylib
-rw-r--r--@ 1 tslilstrauss 1653728465 110 Feb 6 05:59 vk_swiftshader_icd.json
tud0029822:~ tslilstrauss$ otool -D /Applications/Visual\ Studio\ Code.app/Contents/Frameworks/Electron\ Framework.framework/Versions/Current/Libraries/libffmpeg.dylib
/Applications/Visual Studio Code.app/Contents/Frameworks/Electron Framework.framework/Versions/Current/Libraries/libffmpeg.dylib:
@rpath/libffmpeg.dylib
tud0029822:~ tslilstrauss$ codesign -vvv /Applications/Visual\ Studio\ Code.app/
--prepared:/Applications/Visual Studio Code.app/Contents/Frameworks/ReactiveObjC.framework/Versions/Current/.
--validated:/Applications/Visual Studio Code.app/Contents/Frameworks/ReactiveObjC.framework/Versions/Current/.
--prepared:/Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper (GPU).app
--validated:/Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper (GPU).app
--prepared:/Applications/Visual Studio Code.app/Contents/Frameworks/Squirrel.framework/Versions/Current/.
--validated:/Applications/Visual Studio Code.app/Contents/Frameworks/Squirrel.framework/Versions/Current/.
--prepared:/Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper.app
--validated:/Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper.app
--prepared:/Applications/Visual Studio Code.app/Contents/Frameworks/Mantle.framework/Versions/Current/.
--validated:/Applications/Visual Studio Code.app/Contents/Frameworks/Mantle.framework/Versions/Current/.
--prepared:/Applications/Visual Studio Code.app/Contents/Frameworks/Electron Framework.framework/Versions/Current/.
--validated:/Applications/Visual Studio Code.app/Contents/Frameworks/Electron Framework.framework/Versions/Current/.
--prepared:/Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper (Renderer).app
--validated:/Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper (Renderer).app
/Applications/Visual Studio Code.app/: valid on disk
/Applications/Visual Studio Code.app/: satisfies its Designated Requirement
tud0029822:~ tslilstrauss$ open -a /Applications/Visual\ Studio\ Code.app/
The last command opens VS Code, as expected.
Everything looks good with the current installation. Next time it stops working, please provide the output of the above. I am closing the issue for now. Thanks!
Hey! So, the same issue occurred again. I've had 2 open vscodes in two different venvs, and a third on my local env. I tried adding an add-on on my local one, and was prompted to update vscode. I clicked "update now" (or whatever it says on that prompt), at which point all windows closed, and after a few seconds, while relaunching the same error occured. Here are all the details:
Process: Electron [99636]
Path: /Applications/Visual Studio Code.app/Contents/MacOS/Electron
Identifier: com.microsoft.VSCode
Version: 1.54.0 (1.54.0)
Code Type: X86-64 (Native)
Parent Process: ??? [1]
Responsible: Electron [99636]
User ID: 1112656991
Date/Time: 2021-03-15 13:11:30.044 +0100 OS Version: Mac OS X 10.15.7 (19H524) Report Version: 12 Anonymous UUID: 2B3DFE9A-9EBE-B811-E119-E3BD27C68D1E
Sleep/Wake UUID: 461E0B8C-88F0-4207-9014-8369BAC37951
Time Awake Since Boot: 650000 seconds Time Since Wake: 170000 seconds
System Integrity Protection: enabled
Crashed Thread: 0
Exception Type: EXC_CRASH (SIGABRT) Exception Codes: 0x0000000000000000, 0x0000000000000000 Exception Note: EXC_CORPSE_NOTIFY
Termination Reason: DYLD, [0x1] Library missing
Application Specific Information: dyld: launch, loading dependent libraries
Dyld Error Message: Library not loaded: @rpath/libffmpeg.dylib Referenced from: /Applications/Visual Studio Code.app/Contents/Frameworks/Electron Framework.framework/Versions/A/Electron Framework Reason: image not found
Binary Images:
0x1069a8000 - 0x1069cfff3 +com.microsoft.VSCode (1.54.0 - 1.54.0) <78B92786-16F2-3C2B-86DC-F633B22A7F09> /Applications/Visual Studio Code.app/Contents/MacOS/Electron
0x1069e2000 - 0x10dba1f7f +com.github.Electron.framework (11.3.0) <512D96B0-3776-3C88-A442-8CCDBB0040E1> /Applications/Visual Studio Code.app/Contents/Frameworks/Electron Framework.framework/Versions/A/Electron Framework
0x10e4ea000 - 0x10e525ff3 +com.github.Squirrel (1.0 - 1) <4BF717E4-CEAF-3090-B40A-1F2DDCA4AD3A> /Applications/Visual Studio Code.app/Contents/Frameworks/Squirrel.framework/Versions/A/Squirrel
0x10e544000 - 0x10e5afff3 +com.electron.reactive (3.1.0 - 0.0.0) <0F39DDE2-FBD0-37EF-8BAF-DDDF3D4343F1> /Applications/Visual Studio Code.app/Contents/Frameworks/ReactiveObjC.framework/Versions/A/ReactiveObjC
0x10e5dc000 - 0x10e613ff3 +org.mantle.Mantle (1.0 - 0.0.0) <185C83D7-0748-3DCD-B17C-3BC625751AAC> /Applications/Visual Studio Code.app/Contents/Frameworks/Mantle.framework/Versions/A/Mantle
0x1131c3000 - 0x113254f47 dyld (750.6) <326C6480-04F4-3164-A363-53079A148E2F> /usr/lib/dyld
0x7fff2bd56000 - 0x7fff2bf51ff8 com.apple.avfoundation (2.0 - 1855.3) <0837D912-3783-35D6-A94A-E474E18600CF> /System/Library/Frameworks/AVFoundation.framework/Versions/A/AVFoundation
0x7fff2c13e000 - 0x7fff2c13efff com.apple.Accelerate (1.11 - Accelerate 1.11)
2. Output of `ls -l /Applications/Visual\ Studio\ Code.app/Contents/Frameworks/Electron\ Framework.framework/Versions/Current/Libraries/`:
tud0029822:catalog-nl-open-data tslilstrauss$ ls -l /Applications/Visual\ Studio\ Code.app/Contents/Frameworks/Electron\ Framework.framework/Versions/Current/Libraries/ total 36960 -rwxr-xr-x 1 root wheel 243648 Mar 3 03:42 libEGL.dylib -rwxr-xr-x 1 root wheel 8597888 Mar 3 03:42 libGLESv2.dylib -rwxr-xr-x 1 root wheel 2921120 Mar 3 03:42 libffmpeg.dylib -rwxr-xr-x 1 root wheel 275312 Mar 3 03:42 libswiftshader_libEGL.dylib -rwxr-xr-x 1 root wheel 2683392 Mar 3 03:42 libswiftshader_libGLESv2.dylib -rwxr-xr-x 1 root wheel 4181536 Mar 3 03:42 libvk_swiftshader.dylib -rw-r--r-- 1 root wheel 110 Feb 24 00:39 vk_swiftshader_icd.json
3. The output of the last 3 commands requested above:
tud0029822:catalog-nl-open-data tslilstrauss$ otool -D /Applications/Visual\ Studio\ Code.app/Contents/Frameworks/Electron\ Framework.framework/Versions/Current/Libraries/libffmpeg.dylib /Applications/Visual Studio Code.app/Contents/Frameworks/Electron Framework.framework/Versions/Current/Libraries/libffmpeg.dylib: @rpath/libffmpeg.dylib tud0029822:catalog-nl-open-data tslilstrauss$ codesign -vvv /Applications/Visual\ Studio\ Code.app/ /Applications/Visual Studio Code.app/: Permission denied tud0029822:catalog-nl-open-data tslilstrauss$ open -a /Applications/Visual\ Studio\ Code.app/ LSOpenURLsWithRole() failed for the application /Applications/Visual Studio Code.app with error -10810. tud0029822:catalog-nl-open-data tslilstrauss$
I will be reinstalling again shortly to continue working, so if there is something else I should check - please let me know.
Thanks!
Every once in a while, I cannot start VScode, and see the following output in the terminal:
The full log details are below. To overcome it, I uninstall and reinstall VS Code. I have found similar issues. here and here for example, but none provide relevant input.
I have had the same issue for several months, since starting to work with VS code, with previous OS versions and VS Code builds (did not keep those logs though).
Any assistance is welcome - as while not too bad, it is becoming a nuisance. Full log: