vscode-csharp icon indicating copy to clipboard operation
vscode-csharp copied to clipboard

VsCode Crashes with SDL2-CS

Open Shadowblitz16 opened this issue 2 years ago • 3 comments

Environment data

dotnet --info output:

.NET SDK:
 Version:   7.0.114
 Commit:    b2a71039cd

Runtime Environment:
 OS Name:     ubuntu
 OS Version:  22.04
 OS Platform: Linux
 RID:         ubuntu.22.04-x64
 Base Path:   /usr/lib/dotnet/sdk/7.0.114/

Host:
  Version:      7.0.14
  Architecture: x64
  Commit:       808851b07a

.NET SDKs installed:
  6.0.125 [/usr/lib/dotnet/sdk]
  7.0.114 [/usr/lib/dotnet/sdk]

.NET runtimes installed:
  Microsoft.AspNetCore.App 6.0.25 [/usr/lib/dotnet/shared/Microsoft.AspNetCore.App]
  Microsoft.AspNetCore.App 7.0.14 [/usr/lib/dotnet/shared/Microsoft.AspNetCore.App]
  Microsoft.NETCore.App 6.0.25 [/usr/lib/dotnet/shared/Microsoft.NETCore.App]
  Microsoft.NETCore.App 7.0.14 [/usr/lib/dotnet/shared/Microsoft.NETCore.App]

Other architectures found:
  None

Environment variables:
  Not set

global.json file:
  Not found

Learn more:
  https://aka.ms/dotnet/info

Download .NET:
  https://aka.ms/dotnet/download

VS Code version: 1.84.2 C# Extension version: v2.13.10

OmniSharp log

Crashes and idk where the log is.

Steps to reproduce

  1. Open project here. https://github.com/Shadowblitz16/AstroWars
  2. Run project
  3. Press space

Expected behavior

VsCode Shouldn't crash

Actual behavior

VsCode crashes

Additional context

I reported this problem here too... https://github.com/microsoft/vscode/issues/200513

Shadowblitz16 avatar Dec 11 '23 04:12 Shadowblitz16

Hi @Shadowblitz16, can you define what you mean by "VS Code crashes"? I am not able to reproduce a problem when I try your scenario.

gregg-miskelly avatar Jan 08 '24 18:01 gregg-miskelly

Hi @Shadowblitz16, can you define what you mean by "VS Code crashes"? I am not able to reproduce a problem when I try your scenario.

Hi gregg vscode seems to freeze temperately and then close if I don't sleep the thread. I think maybe sdl2-cs is running too fast for vscode to handle

Shadowblitz16 avatar Jan 08 '24 18:01 Shadowblitz16

A few questions:

  1. Do you see this same problem if you Ctrl-F5 the project?
  2. If that reproduces the problem, do you see the problem if you launch the project from the terminal using dotnet run?
  3. Does Apport show you anything?
  4. If not, if you start VS Code from a terminal, is anything printed about the crash?

gregg-miskelly avatar Jan 08 '24 18:01 gregg-miskelly