arduino / arduino-ide

Arduino IDE 2.x
https://www.arduino.cc/en/software
GNU Affero General Public License v3.0
2.33k stars 394 forks source link

zombie-fied on exit #2493

Open drmcnelson opened 3 months ago

drmcnelson commented 3 months ago

Describe the problem

After closing Arduino IDE, it is impossible to start it again. A long list of processes remains in the process list.

To reproduce

On Linux:

  1. Start Arduino IDE.
  2. Use the IDE for a while.
  3. Close, using the X at the upper right corner of the IDE window.
  4. Attempt to start Arduino IDE again. If it starts successfully, repeat the process until it fails to start.
  5. Run the following command from the terminal:
    ps -ax | grep -i arduino

🐛 Processes that were spawned by Arduino IDE are still running:

 179328 ?        Sl     0:56 /tmp/.mount_arduinOi9mQK/arduino-ide /home/nelson/Projects/TeensyDataAcquistion/SPI_Instrumenation_Project/Firmware/MCP33131D_repo/MCP33131D_controller/MCP33131D_controller.ino
 179332 ?        Ssl    0:01 /home/nelson/Arduino/arduino-ide_2.3.2_Linux_64bit.AppImage /home/nelson/Projects/TeensyDataAcquistion/SPI_Instrumenation_Project/Firmware/MCP33131D_repo/MCP33131D_controller/MCP33131D_controller.ino
 179338 ?        S      0:00 /tmp/.mount_arduinOi9mQK/arduino-ide --type=zygote --no-zygote-sandbox
 179339 ?        S      0:00 /tmp/.mount_arduinOi9mQK/arduino-ide --type=zygote
 179341 ?        S      0:00 /tmp/.mount_arduinOi9mQK/arduino-ide --type=zygote
 179369 ?        Sl     3:15 /tmp/.mount_arduinOi9mQK/arduino-ide --type=gpu-process --enable-crash-reporter=ee74211e-6b9e-4307-b602-b5c3195c0d02,no_channel --user-data-dir=/home/nelson/.config/arduino-ide --gpu-preferences=WAAAAAAAAAAgAAAEAAAAAAAAAAAAAAAAAABgAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAGAAAAAAAAAAYAAAAAAAAAAgAAAAAAAAACAAAAAAAAAAIAAAAAAAAAA== --shared-files --field-trial-handle=0,i,3604422849068406006,1031687316058821990,262144 --disable-features=SpareRendererForSitePerProcess
 179374 ?        Sl     0:17 /tmp/.mount_arduinOi9mQK/arduino-ide --type=utility --utility-sub-type=network.mojom.NetworkService --lang=en-US --service-sandbox-type=none --enable-crash-reporter=ee74211e-6b9e-4307-b602-b5c3195c0d02,no_channel --user-data-dir=/home/nelson/.config/arduino-ide --shared-files=v8_context_snapshot_data:100 --field-trial-handle=0,i,3604422849068406006,1031687316058821990,262144 --disable-features=SpareRendererForSitePerProcess
 179375 ?        SLsl   0:45 /tmp/.mount_arduinOi9mQK/arduino-ide /tmp/.mount_arduinOi9mQK/resources/app/lib/backend/main.js /home/nelson/Projects/TeensyDataAcquistion/SPI_Instrumenation_Project/Firmware/MCP33131D_repo/MCP33131D_controller/MCP33131D_controller.ino
 179390 ?        S      0:00 /tmp/.mount_arduinOi9mQK/arduino-ide --type=broker
 179401 ?        Sl     0:44 /tmp/.mount_arduinOi9mQK/resources/app/lib/backend/resources/arduino-cli daemon --port 0 --config-file /home/nelson/.arduinoIDE/arduino-cli.yaml -v
 179434 ?        Sl     0:13 /home/nelson/.arduino15/packages/builtin/tools/dfu-discovery/0.1.2/dfu-discovery
 179435 ?        Sl     0:00 /home/nelson/.arduino15/packages/teensy/tools/teensy-discovery/1.59.0/teensy-discovery
 179436 ?        Sl     0:00 /home/nelson/.arduino15/packages/builtin/tools/serial-discovery/1.4.1/serial-discovery
 179437 ?        Sl     0:05 /home/nelson/.arduino15/packages/builtin/tools/mdns-discovery/1.0.9/mdns-discovery
 179749 ?        Sl     2:41 /tmp/.mount_arduinOi9mQK/arduino-ide /tmp/.mount_arduinOi9mQK/resources/app/lib/backend/ipc-bootstrap --nsfwOptions={}
 304072 pts/0    S+     0:00 grep --color=auto -i arduino

Expected behavior

Closing Arduino IDE by any method, should result in a clean exit, reliably to a state from which it can be restarted.

Arduino IDE version

2.3.2

Operating system

Linux

Operating system version

Fedora 40, Cinnamon Desktop

Additional context

I am using the Appimage package.

Issue checklist