Skip to content

Crash when VD Code runs out of RAM on Linux but not on Windows #303481

@lminogue-atb

Description

@lminogue-atb

Does this issue occur when all extensions are disabled?: Yes

  • VS Code Version: 1.112.0
  • OS Version: Ubuntu 24.04.4 LTS

Hardware Information:

  • Hardware Model: Lenovo ThinkPad P14s Gen 4
  • Memory: 16,0 GiB
  • Processor: 13th Gen Intel® Core™ i7-1360P × 16
  • Graphics: Intel® Iris® Xe Graphics (RPL-P)
  • Graphics 1: NVIDIA RTX A500 Laptop GPU
  • Disk Capacity: 512,1 GB

Software Information:

  • Firmware Version: N3QET48W (1.48 )
  • OS Name: Ubuntu 24.04.4 LTS
  • OS Build: (null)
  • OS Type: 64-bit
  • GNOME Version: 46
  • Windowing System: X11
  • Kernel Version: Linux 6.17.0-19-generic

Steps to Reproduce:

  1. Run something python 3.12.3 that fills up the RAM. I noticed it first when training a Yolo classification model but running something simple like [i for i in range(1000000000)] does the trick as well).
  2. Notice the system freezes/ gets very slow (as exspected) and after some time vs code throws an an error for a milisecond before crashing as well. Restarting vs code does not result in any information.

Exspected behaviour:

Python crashes/ throws an error and vscode does not crash and will inform you that the python process crashed (as it does with any other problem that might occur).

Additional information:

This does not happen if I run it directly in python using the terminal (not inside vscode). It might freeze and kill the python process after a short time but will not crash the console.

This was already mentioned here (but for flutter): #203591
but the issue was closed because "The described behavior is how it is expected to work" which is wild to me. An error like this should be catched like any other error. On a Windows PC the same behaviour does not result in vs code crashing (only python).

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions