Description
Describe the problem
IDE crashes and restarts on failed compile.
To reproduce
- Add the following URL to the "Additional Boards Manager URLs" preference:
https://m5stack.oss-cn-shenzhen.aliyuncs.com/resource/arduino/package_m5stack_index.json
- Use Boards Manager to install the "M5Stack" boards platform.
- Select Tools > Board > M5Stack > M5Cardputer from the Arduino IDE menus.
- Select Tools > Board > Core Debug Level > Debug from the Arduino IDE menus.
- Create a sketch with the following code:
Note: syntax errors are intentional. This time :)
#include <M5Cardputer.h> #include <esp_log.h> i2c_port_t portAnum = M5.Ex_I2C.getPort(); int8_t portASDA = M5.Ex_I2C.getSDA(); int8_t portASCL = M5.Ex_I2C.getSCL(); M5GFX display; void setup() { Serial.begin(115200); auto cfg = M5.config(); M5Cardputer.begin(cfg, true); display = M5Cardputer.Display; display.clear(BLACK); display.setTextSize(2); display.setTextColor(GREEN,BLACK); display.drawCenterString("I2C Port Info",120,0); display.setCursor(0,20); display.printf("Port Number: %d\n"(int)portAnum); display.printf("SDA Pin: %d\n",portASDA); display.printf("SCL Pin: %d\n",portASCL); Serial.println("SDA Port Information"); Serial.printf("Port Number: %d\n"(int)portAnum); Serial.printf("SDA Pin: %d\n",portASDA); Serial.printf("SCL Pin: %d\n",portASCL); Serial.println("-------- END -------"); } void loop() { // put your main code here, to run repeatedly: }
- Use Library Manager to install the "M5Cardputer" and "M5GFX" libraries.
- Select Sketch > Verify/Compile from the Arduino IDE menus.
🐛 Compile will fail and the IDE just waits at "Compiling Sketch" for some time then crashes and restarts.
Expected behavior
No crash or ping timeouts on failed compile.
Arduino IDE version
20250406 (nightly build)
Operating system
Linux
Operating system version
Linux Mint latest
Additional context
When I perform the procedure provided in the "To reproduce" section of the report, I get the following results:
- When using Arduino IDE 2.3.4: Doesn't crash, but takes a really long time to figure out the compile failed. Sometimes gives a "Ping timeout" error.
- Terminal logs: arduino-ide_2.3.4_Linux_64bit-crashlog-nocrash.txt
- When using Arduino IDE 2.3.5: Doesn't always crash but still crashes more than it doesn't.
- Terminal logs: arduino-ide_2.3.5_Linux_64bit-crashlog.txt
- When using 20250406 nightly build: So far 100% crashes on failed compiles.
- Terminal logs: arduino-ide_nightly-20250406_Linux_64bit-crashlog.txt
The section of the 2.3.5 logs that looks interesting is:
2025-04-06T14:26:49.639Z daemon INFO time="2025-04-06T10:26:49-04:00" level=info msg="Adding libraries dir" dir=/home/martin/.arduinoIDESketchbooks/libraries isSingleLibrary=false location=user
2025-04-06T14:28:08.252Z root INFO socked closed
2025-04-06T14:28:08.252Z root INFO closing connection for 1
2025-04-06T14:28:08.252Z root INFO Closing channel on service path '/localization-server'.
2025-04-06T14:28:08.252Z root INFO Closing channel on service path '/os'.
2025-04-06T14:28:08.252Z root INFO Closing channel on service path '/services/commands'.
2025-04-06T14:28:08.252Z root INFO Closing channel on service path '/services/keyboard'.
2025-04-06T14:28:08.252Z root INFO Closing channel on service path '/services/logger'.
2025-04-06T14:28:08.252Z root INFO Closing channel on service path '/services/messageService'.
2025-04-06T14:28:08.252Z root INFO Closing channel on service path '/services/ChannelCloseService'.
2025-04-06T14:28:08.252Z root INFO Closing channel on service path '/services/remote-filesystem'.
2025-04-06T14:28:08.252Z root INFO Closing channel on service path '/services/envs'.
2025-04-06T14:28:08.252Z root INFO Closing channel on service path '/services/authentication-service'.
2025-04-06T14:28:08.252Z root INFO Closing channel on service path '/services/sketches-service'.
2025-04-06T14:28:08.252Z root INFO Closing channel on service path '/services/config-service'.
2025-04-06T14:28:08.252Z root INFO Closing channel on service path '/services/workspace'.
2025-04-06T14:28:08.253Z root INFO Closing channel on service path '/services/notification-service'.
2025-04-06T14:28:08.253Z root INFO Closing channel on service path '/services/arduino-daemon'.
2025-04-06T14:28:08.253Z root INFO Closing channel on service path '/services/stopwatch'.
2025-04-06T14:28:08.253Z root INFO Closing channel on service path '/services/application'.
2025-04-06T14:28:08.253Z root INFO Closing channel on service path '/services/i18n'.
2025-04-06T14:28:08.253Z root INFO Closing channel on service path '/services/quickInput'.
2025-04-06T14:28:08.253Z root INFO Closing channel on service path '/services/debug'.
2025-04-06T14:28:08.253Z root INFO Closing channel on service path '/services/shell-terminal'.
2025-04-06T14:28:08.253Z root INFO Closing channel on service path '/services/quickPick'.
2025-04-06T14:28:08.253Z root INFO Closing channel on service path '/services/task'.
2025-04-06T14:28:08.253Z root INFO Closing channel on service path '/services/search'.
2025-04-06T14:28:08.253Z root INFO Closing channel on service path '/services/hostedPlugin'.
2025-04-06T14:28:08.253Z root INFO Closing channel on service path '/services/plugin-ext'.
2025-04-06T14:28:08.253Z root INFO Closing channel on service path '/services/plugin-paths'.
2025-04-06T14:28:08.253Z root INFO Closing channel on service path '/services/cli-preferences'.
2025-04-06T14:28:08.253Z root INFO Closing channel on service path '/services/boards-service'.
2025-04-06T14:28:08.253Z root INFO Closing channel on service path '/services/response-service'.
2025-04-06T14:28:08.253Z root INFO Closing channel on service path '/services/file-system-ext'.
2025-04-06T14:28:08.253Z root INFO Closing channel on service path '/services/core-service'.
2025-04-06T14:28:08.253Z root INFO Closing channel on service path '/services/example-service'.
2025-04-06T14:28:08.253Z root INFO Closing channel on service path '/services/library-service'.
2025-04-06T14:28:08.253Z root INFO Closing channel on service path '/services/executable-service'.
2025-04-06T14:28:08.253Z root INFO Closing channel on service path '/services/arduino-firmware-uploader'.
2025-04-06T14:28:08.253Z root INFO Closing channel on service path '/services/formatter'.
2025-04-06T14:28:08.253Z root INFO Closing channel on service path '/services/search-in-workspace'.
2025-04-06T14:28:08.253Z root INFO Closing channel on service path '/services/request-service'.
2025-04-06T14:28:08.253Z root INFO Closing channel on service path '/services/keyStore'.
2025-04-06T14:28:08.253Z root INFO Closing channel on service path '/services/languagePackService'.
2025-04-06T14:28:08.254Z root ERROR Uncaught Exception: Error: transport error
2025-04-06T14:28:08.254Z root ERROR Error: transport error
at /home/martin/.arduinoIDEZIP.old2/resources/app/lib/backend/main.js:2:521775
at Map.forEach (<anonymous>)
at /home/martin/.arduinoIDEZIP.old2/resources/app/lib/backend/main.js:2:521754
at /home/martin/.arduinoIDEZIP.old2/resources/app/lib/backend/main.js:2:6419512
at s.invoke (/home/martin/.arduinoIDEZIP.old2/resources/app/lib/backend/main.js:2:6419602)
at a.fire (/home/martin/.arduinoIDEZIP.old2/resources/app/lib/backend/main.js:2:6421405)
at /home/martin/.arduinoIDEZIP.old2/resources/app/lib/backend/main.js:2:1868407
at Map.forEach (<anonymous>)
at Object.<anonymous> (/home/martin/.arduinoIDEZIP.old2/resources/app/lib/backend/main.js:2:1868377)
at e.dispose (/home/martin/.arduinoIDEZIP.old2/resources/app/lib/backend/main.js:2:4849531)
2025-04-06T14:28:08.309Z root INFO Reconnecting failed for 1
Closing channel on service path '/services/electron-window'.
2025-04-06T14:28:09.078Z root INFO creating connection for 1
The 2.3.4 logs do not contain any content like this (other than the "Adding libraries dir" line, which I included for context).
The nightly build logs contain content similar to the 2.3.5, logs, but they contain 68 instances of the "transport error
" exception, while the 2.3.5 logs only contain a single instance of the exception.
2025-04-06T14:11:57.648Z daemon INFO time="2025-04-06T10:11:57-04:00" level=info msg="Adding libraries dir" dir=/home/martin/.arduinoIDESketchbooks/libraries isSingleLibrary=false location=user
2025-04-06T14:13:25.125Z root INFO socked closed
2025-04-06T14:13:25.125Z root INFO closing connection for 1
2025-04-06T14:13:25.125Z root INFO Closing channel on service path '/localization-server'.
2025-04-06T14:13:25.126Z root INFO Closing channel on service path '/os'.
2025-04-06T14:13:25.126Z root INFO Closing channel on service path '/services/commands'.
2025-04-06T14:13:25.126Z root INFO Closing channel on service path '/services/keyboard'.
2025-04-06T14:13:25.126Z root INFO Closing channel on service path '/services/logger'.
2025-04-06T14:13:25.126Z root INFO Closing channel on service path '/services/messageService'.
2025-04-06T14:13:25.126Z root INFO Closing channel on service path '/services/ChannelCloseService'.
2025-04-06T14:13:25.126Z root INFO Closing channel on service path '/services/remote-filesystem'.
2025-04-06T14:13:25.126Z root INFO Closing channel on service path '/services/envs'.
2025-04-06T14:13:25.126Z root INFO Closing channel on service path '/services/authentication-service'.
2025-04-06T14:13:25.126Z root INFO Closing channel on service path '/services/sketches-service'.
2025-04-06T14:13:25.126Z root INFO Closing channel on service path '/services/config-service'.
2025-04-06T14:13:25.126Z root INFO Closing channel on service path '/services/workspace'.
2025-04-06T14:13:25.126Z root INFO Closing channel on service path '/services/notification-service'.
2025-04-06T14:13:25.126Z root INFO Closing channel on service path '/services/arduino-daemon'.
2025-04-06T14:13:25.126Z root INFO Closing channel on service path '/services/stopwatch'.
2025-04-06T14:13:25.126Z root INFO Closing channel on service path '/services/application'.
2025-04-06T14:13:25.126Z root INFO Closing channel on service path '/services/i18n'.
2025-04-06T14:13:25.126Z root INFO Closing channel on service path '/services/quickInput'.
2025-04-06T14:13:25.126Z root INFO Closing channel on service path '/services/debug'.
2025-04-06T14:13:25.126Z root INFO Closing channel on service path '/services/shell-terminal'.
2025-04-06T14:13:25.126Z root INFO Closing channel on service path '/services/quickPick'.
2025-04-06T14:13:25.126Z root INFO Closing channel on service path '/services/task'.
2025-04-06T14:13:25.126Z root INFO Closing channel on service path '/services/search'.
2025-04-06T14:13:25.126Z root INFO Closing channel on service path '/services/hostedPlugin'.
2025-04-06T14:13:25.126Z root INFO Closing channel on service path '/services/plugin-ext'.
2025-04-06T14:13:25.126Z root INFO Closing channel on service path '/services/plugin-paths'.
2025-04-06T14:13:25.126Z root INFO Closing channel on service path '/services/cli-preferences'.
2025-04-06T14:13:25.126Z root INFO Closing channel on service path '/services/boards-service'.
2025-04-06T14:13:25.126Z root INFO Closing channel on service path '/services/response-service'.
2025-04-06T14:13:25.126Z root INFO Closing channel on service path '/services/file-system-ext'.
2025-04-06T14:13:25.126Z root INFO Closing channel on service path '/services/core-service'.
2025-04-06T14:13:25.126Z root INFO Closing channel on service path '/services/example-service'.
2025-04-06T14:13:25.126Z root INFO Closing channel on service path '/services/library-service'.
2025-04-06T14:13:25.126Z root INFO Closing channel on service path '/services/executable-service'.
2025-04-06T14:13:25.126Z root INFO Closing channel on service path '/services/arduino-firmware-uploader'.
2025-04-06T14:13:25.126Z root INFO Closing channel on service path '/services/formatter'.
2025-04-06T14:13:25.126Z root INFO Closing channel on service path '/services/search-in-workspace'.
2025-04-06T14:13:25.126Z root INFO Closing channel on service path '/services/request-service'.
2025-04-06T14:13:25.126Z root INFO Closing channel on service path '/services/keyStore'.
2025-04-06T14:13:25.126Z root INFO Closing channel on service path '/services/languagePackService'.
2025-04-06T14:13:25.128Z root ERROR Uncaught Exception: Error: transport error
2025-04-06T14:13:25.128Z root ERROR Error: transport error
at /home/martin/.arduinoIDEZIP/resources/app/lib/backend/main.js:2:521775
at Map.forEach (<anonymous>)
at /home/martin/.arduinoIDEZIP/resources/app/lib/backend/main.js:2:521754
at /home/martin/.arduinoIDEZIP/resources/app/lib/backend/main.js:2:6419512
at s.invoke (/home/martin/.arduinoIDEZIP/resources/app/lib/backend/main.js:2:6419602)
at a.fire (/home/martin/.arduinoIDEZIP/resources/app/lib/backend/main.js:2:6421405)
at /home/martin/.arduinoIDEZIP/resources/app/lib/backend/main.js:2:1868407
at Map.forEach (<anonymous>)
at Object.<anonymous> (/home/martin/.arduinoIDEZIP/resources/app/lib/backend/main.js:2:1868377)
at e.dispose (/home/martin/.arduinoIDEZIP/resources/app/lib/backend/main.js:2:4849531)
2025-04-06T14:13:25.128Z root ERROR Uncaught Exception: Error: transport error
2025-04-06T14:13:25.129Z root ERROR Error: transport error
at /home/martin/.arduinoIDEZIP/resources/app/lib/backend/main.js:2:521775
at Map.forEach (<anonymous>)
at /home/martin/.arduinoIDEZIP/resources/app/lib/backend/main.js:2:521754
at /home/martin/.arduinoIDEZIP/resources/app/lib/backend/main.js:2:6419512
at s.invoke (/home/martin/.arduinoIDEZIP/resources/app/lib/backend/main.js:2:6419602)
at a.fire (/home/martin/.arduinoIDEZIP/resources/app/lib/backend/main.js:2:6421405)
at /home/martin/.arduinoIDEZIP/resources/app/lib/backend/main.js:2:1868407
at Map.forEach (<anonymous>)
at Object.<anonymous> (/home/martin/.arduinoIDEZIP/resources/app/lib/backend/main.js:2:1868377)
at e.dispose (/home/martin/.arduinoIDEZIP/resources/app/lib/backend/main.js:2:4849531)
[... and 66 more instances of the exception]
The fault still occurs after I deleted the ~/.arduino15
and ~/.arduinoIDE
folders and then reinstalled the "M5Stack" boards platform.
Additional reports
Related
Issue checklist
- I searched for previous reports in the issue tracker
- I verified the problem still occurs when using the latest nightly build
- My report contains all necessary details