-
Notifications
You must be signed in to change notification settings - Fork 677
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Crash: 'Debug adapter process has terminated unexpectedly' on arch and manjaro #1323
Comments
had the same issue (Archlinux 4.9 Kernel, Dotnet 1.0.1, Vscode 1.10.2, C# Extension 1.8.0), but for me it works after i downloaded the ubuntu 14.04 debugger as suggested above. |
same versions.. although i do not know if mnjaro-rt 4.9 is the same as archlinux 4.9 that it is based on.. but it does not help as i mentioned before |
ok. steps i did:
|
i did the same and tried with all versions of the debugger for ubuntu
same result everwhere |
Debug adapter process has terminated unexpectedly
on arch and manjaro
I tested on a normal arch installation. Same issue. Also tried 16.04, 14.04 and 16.10 and fedora 24 |
Running vsdbg is fine. Running vsdbg-ui responds with:
|
So apparently the wrong version of icu is expected. ArchLinux has icu 58. I executed this command in the debugger folder:
I installed icu55 which can be found in the AUR here: https://aur.archlinux.org/packages/icu55/ Now debugging works again! |
I installed icu55
after installing icu55,
|
16.10 and 14.04 expect other icu versions so that's not going to work. "Waiting for communication on stdin/stdout..." Actually sounds like it's working. Did you try restarting visual studio code? |
ah yes of course, that makes sense. Tried it again with
The problem seems to be attaching to the process. If I do a dotnet run in the console and use ".NET Core Attach" in vs code I get the error. |
@JBildstein which version of VSCode are you running? |
@rajkumar42 Version 1.10.2 - (8076a19fdcab7e1fc1707952d652f0bb6c6db331) |
@JBildstein please install stable or insiders. |
@rajkumar42 curios, the version from code.visualstudio.com works (using 16.10/icu57) even though it is the exact same version and commit hash as the one from AUR. |
isu55 and ubuntu 16.04 works on my manjaro system.. yay i guess the issue should stay open until this is adressed in the debugger installer though.. |
@NikkyAI are there things that you think the exception can reasonable do today to fix this? In the longer term (a few months) .NET Core is making changes that they believe will eliminate this class of issue for .NET Core 2.0. |
@gregg-miskelly could you check which version of icu is available and suggest installing one that matches the debugger ? |
@NikkyAI what is the right way on arch to see what version of icu is installed? |
Multiple versions of icu can be installed: https://aur.archlinux.org/packages/?O=0&SeB=n&K=icu&outdated=&SB=n&SO=a&PP=50&do_Search=Go I would check if the needed version is installed using something like:
Alternatively you could just check if /usr/lib/libicuuc.so.55 exists If you want to actually know what version is included in the icu package that is currently installed do this:
|
In my humble opinion the real solution would be to give the user a setting to configure the .NET Core debugger path manually, I'm thinking something like That way it would be possible to create a working version of the debugger by replacing all Fumbling with icu/curl/$whatnot versions is time consuming, error prone and just not the right way to do it. edit: I created an AUR package for the debugger that should work for all Arch based distributions: vscode-coreclr-debug. |
Here is my tentative plan, let me know if anyone hates this. I haven't finished implementing this yet, so I may change my mind if something doesn't work as well as I am expecting.
|
👍 |
@rajkumar42 my thought is that we would look at the setting on any Linux distro other than the few officially supported ones (ex: Ubuntu16). |
dotnet#1361 dotnet#1323 Changes: 1. Add a setting to control what version of the debugger to use on Linux 2. We no longer automaticially select a debugger on Arch. Instead, we point folks to a web page telling them how to install it. 3. Added logic to the package manager so that it can detect if a package is already installed so it will not be redownloaded. This was needed since I wanted to trigger redownloads in the case that the user added the Linux distro setting. But it seemed like a useful feature anyway for folks on slow internet connections. 4. Moved the install code to its own .ts file
* Improve dependancy handling / Linux distro handling #1361 #1323 Changes: 1. Add a setting to control what version of the debugger to use on Linux 2. We no longer automaticially select a debugger on Arch. Instead, we point folks to a web page telling them how to install it. 3. Added logic to the package manager so that it can detect if a package is already installed so it will not be redownloaded. This was needed since I wanted to trigger redownloads in the case that the user added the Linux distro setting. But it seemed like a useful feature anyway for folks on slow internet connections. 4. Moved the install code to its own .ts file * Updates to the changelog * Code review fixes * Restore original whitespace in package.json * Remove 'runtime id' from the install log
@gegenschall I tried your solution but now when I open Vs Code it immediately gives me:
I've also tried to add on
And to install icu55. I'm using Manjaro. Do you know if there is something I'm missing. Cheers Edit: I was able to fix it! Well, I tried the fedora first but it didn't work, so I went back to ubuntu and the ID_LIKE and now it's working fine. I know here's not the place to ask it, but being a noob, I got that icu are libraries that install a bunch of packages on linux. I just couldn't get how other users were able to find out which icu was missing (55 and 54 for example). Is there any reference I can use to learn the same. |
@Merurino Ignore the error and don't install funky icu versions, just use the one from [core] it should be working just fine. |
Hey @gegenschall thanks for the reply. |
@Merurino By [core] I mean the default Arch Linux core repository. No, it's not dangerous to install But hey: If your method works, then all is good. Whatever works, right? :-) |
@gegenschall Totally missed your edit on the new AUR package. Sounds great! Will try it ASAP. Thanks! |
Closing this as it should be fixed in upcoming 1.9. |
If anyone would like to try the private before 1.9 is out, here are instructions --
|
Environment data
dotnet --info
output:VS Code version:
C# Extension version:
1.8.0
Steps to reproduce
Expected behavior
running the debugger
Actual behavior
instant crash when trying to run the debugger
Debug adapter process has terminated unexpectedly
Additional info
Linux railgun 4.9.13-1-rt11-MANJARO #1 SMP PREEMPT RT Wed Mar 1 17:46:29 UTC 2017 x86_64 GNU/Linux
System Info
to make dotnet build on archlinux/manjaro
i remember i had to patch a single line in corefx build because of
with
i wonder if something similar happens with corclr, because i have seen patch files for that flying around too https://gist.github.com/leafi/9404f79bcd3c64e4d828c0c5e06f056d although the line numbers and commit hashes are different now...
followed the steps on #564 #564 (comment)
to install the debugger for 14.04 as well, did not help
tried installing the 16.10 debugger as well (because
dotnet --info
suggested that it might be compatible with that.. as expected a "Debug adapter process has terminated unexpectedly"The text was updated successfully, but these errors were encountered: