arduino / arduino-ide

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

IDE hangs on startup after upgrading Linux kernel to 6.10.1 #2502

Open dsssssssss9 opened 2 months ago

dsssssssss9 commented 2 months ago

Describe the problem

I recently installed fresh copy of Ubuntu 24.04 on my pc along with all my usual programs

For the first couple of days arduino IDE worked fine but yesterday for some reason it wont load!

All I get is a pulsating logo.

I have wiped and reinstalled Arduino IDE and the problem still occurs.

After a couple of days having exhausted the various search results for this problem & nothing worked I was about to give up & stick with Arduino IDE 1.x.

As I stated originally, Arduino IDE 2.3.2 WAS working the day before so I looked through the logs to see what had changed in the last 24 hours. The only thing I could find was that I had upgraded the kernel from V6.9.1 to V6.10.1. I went back to the previous kernel version (6.9.1) and Arduino IDE 2.3.2 started normally!

The terminal logs:

jkd-mini2024@Nuc2024:~$ /home/jkd-mini2024/Arduino2024/arduino-ide_2.3.2_Linux_64bit.AppImage --no-sandbox
Arduino IDE 2.3.2
Checking for frontend application configuration customizations. Module path: /tmp/.mount_arduinB6BkvT/resources/app/lib/backend/electron-main.js, destination 'package.json': /tmp/.mount_arduinB6BkvT/resources/app/package.json
Setting 'theia.frontend.config.appVersion' application configuration value to: "2.3.2" (type of string)
Setting 'theia.frontend.config.cliVersion' application configuration value to: "0.35.3" (type of string)
Setting 'theia.frontend.config.buildDate' application configuration value to: "2024-02-20T09:54:08.669Z" (type of string)
Frontend application configuration after modifications: {"applicationName":"Arduino IDE","defaultTheme":{"light":"arduino-theme","dark":"arduino-theme-dark"},"defaultIconTheme":"none","electron":{"windowOptions":{}},"defaultLocale":"","validatePreferencesSchema":false,"preferences":{"window.title":"${rootName}${activeEditorShort}${appName}","files.autoSave":"afterDelay","editor.minimap.enabled":false,"editor.tabSize":2,"editor.scrollBeyondLastLine":false,"editor.quickSuggestions":{"other":false,"comments":false,"strings":false},"editor.maxTokenizationLineLength":500,"editor.bracketPairColorization.enabled":false,"breadcrumbs.enabled":false,"workbench.tree.renderIndentGuides":"none","explorer.compactFolders":false},"appVersion":"2.3.2","cliVersion":"0.35.3","buildDate":"2024-02-20T09:54:08.669Z"}
Starting backend process. PID: 8471
Using browser-only version of superagent in non-browser environment
Configuration directory URI: 'file:///home/jkd-mini2024/.arduinoIDE'
Configuring to accept webviews on '^.+\.webview\..+$' hostname.
2024-09-06T11:49:40.797Z root INFO Backend Object.initialize: 7.4 ms [Finished 0.758 s after backend start]
2024-09-06T11:49:40.802Z root INFO Backend Object.configure: 6.3 ms [Finished 0.758 s after backend start]
2024-09-06T11:49:40.802Z root INFO Backend s.onStart: 2.4 ms [Finished 0.758 s after backend start]
2024-09-06T11:49:40.803Z root INFO Backend s.configure: 0.4 ms [Finished 0.793 s after backend start]
2024-09-06T11:49:40.804Z root INFO Backend d.onStart: 0.3 ms [Finished 0.793 s after backend start]
2024-09-06T11:49:40.806Z root INFO Backend d.configure: 0.1 ms [Finished 0.793 s after backend start]
2024-09-06T11:49:40.807Z root INFO Backend d.initialize: 35.3 ms [Finished 0.794 s after backend start]
2024-09-06T11:49:40.807Z root INFO Backend c.onStart: 0.3 ms [Finished 0.794 s after backend start]
2024-09-06T11:49:40.808Z root INFO Backend a.configure: 4.9 ms [Finished 0.799 s after backend start]
2024-09-06T11:49:40.810Z config INFO >>> Initializing CLI configuration...
2024-09-06T11:49:40.810Z root INFO Backend c.initialize: 1.0 ms [Finished 0.799 s after backend start]
2024-09-06T11:49:40.810Z root INFO Backend R.onStart: 1.3 ms [Finished 0.800 s after backend start]
2024-09-06T11:49:40.811Z config INFO Loading CLI configuration from /home/jkd-mini2024/.arduinoIDE/arduino-cli.yaml...
2024-09-06T11:49:40.812Z daemon INFO Starting daemon from /tmp/.mount_arduinB6BkvT/resources/app/lib/backend/resources/arduino-cli...
2024-09-06T11:49:40.812Z root INFO Backend a.initialize: 1.4 ms [Finished 0.802 s after backend start]
2024-09-06T11:49:40.812Z root INFO Backend w.onStart: 2.2 ms [Finished 0.803 s after backend start]
2024-09-06T11:49:40.812Z root INFO Backend r.configure: 3.5 ms [Finished 0.804 s after backend start]
2024-09-06T11:49:40.813Z discovery-log INFO start
2024-09-06T11:49:40.813Z discovery-log INFO start new deferred
2024-09-06T11:49:40.813Z root INFO Backend d.initialize: 0.8 ms [Finished 0.805 s after backend start]
2024-09-06T11:49:40.813Z root INFO Backend y.onStart: 2.7 ms [Finished 0.807 s after backend start]
2024-09-06T11:49:40.813Z root INFO Backend r.configure: 2.2 ms [Finished 0.807 s after backend start]
2024-09-06T11:49:40.813Z root INFO Backend a.onStart: 0.8 ms [Finished 0.809 s after backend start]
2024-09-06T11:49:40.813Z root INFO Backend h.configure: 0.7 ms [Finished 0.809 s after backend start]
2024-09-06T11:49:40.813Z root INFO Backend s.configure: 0.3 ms [Finished 0.809 s after backend start]
2024-09-06T11:49:40.813Z root INFO Backend l.configure: 0.1 ms [Finished 0.810 s after backend start]
2024-09-06T11:49:40.816Z root INFO Theia app listening on http://127.0.0.1:36415.
2024-09-06T11:49:40.817Z root INFO Finished starting backend application: 4.0 ms [Finished 0.813 s after backend start]
2024-09-06T11:49:40.818Z root WARN The local plugin referenced by local-dir:/home/jkd-mini2024/.arduinoIDE/plugins does not exist.
2024-09-06T11:49:40.818Z root WARN The local plugin referenced by local-dir:/home/jkd-mini2024/.arduinoIDE/extensions does not exist.
2024-09-06T11:49:40.824Z config INFO Loaded CLI configuration: {"board_manager":{"additional_urls":[]},"build_cache":{"compilations_before_purge":10,"ttl":"720h0m0s"},"daemon":{"port":"50051"},"directories":{"data":"/home/jkd-mini2024/.arduino15","downloads":"/home/jkd-mini2024/.arduino15/staging","user":"/home/jkd-mini2024/Arduino"},"library":{"enable_unsafe_install":false},"logging":{"file":"","format":"text","level":"info"},"metrics":{"addr":":9090","enabled":true},"output":{"no_color":false},"sketch":{"always_export_binaries":false},"updater":{"enable_notification":true}}
2024-09-06T11:49:40.824Z config INFO 'directories.data' and 'directories.user' are set in the CLI configuration model.
2024-09-06T11:49:40.824Z config INFO Loaded the CLI configuration.
2024-09-06T11:49:40.923Z config INFO Mapped the CLI configuration: {"dataDirUri":"file:///home/jkd-mini2024/.arduino15","sketchDirUri":"file:///home/jkd-mini2024/Arduino","additionalUrls":[],"network":"none","locale":"en"}
2024-09-06T11:49:40.923Z config INFO Validating the CLI configuration...
2024-09-06T11:49:40.923Z config INFO The CLI config is valid.
2024-09-06T11:49:40.923Z config INFO <<< Initialized the CLI configuration.
2024-09-06T11:49:41.117Z root INFO Resolve plugins list: 305.6 ms [Finished 1.113 s after backend start]
2024-09-06T11:49:41.338Z daemon INFO time="2024-09-06T12:49:41+01:00" level=info msg="Using config file: /home/jkd-mini2024/.arduinoIDE/arduino-cli.yaml"
time="2024-09-06T12:49:41+01:00" level=info msg="arduino-cli version 0.35.3"
time="2024-09-06T12:49:41+01:00" level=info msg="Executing `arduino-cli daemon`"
2024-09-06T11:49:41.365Z daemon INFO Daemon is now listening on 127.0.0.1:44119
{"IP":"127.0.0.1","Port":"44119"}
2024-09-06T11:49:41.366Z daemon INFO Daemon is running.
2024-09-06T11:49:41.410Z daemon INFO time="2024-09-06T12:49:41+01:00" level=info msg="Updating libraries index"
2024-09-06T11:49:41.435Z daemon INFO time="2024-09-06T12:49:41+01:00" level=info msg="Starting download" url="https://downloads.arduino.cc/libraries/library_index.tar.bz2"
Opening channel for service path '/services/electron-window'.
Opening channel for service path '/services/ide-updater'.
Warning: terminator_CreateInstance: Failed to CreateInstance in ICD 3.  Skipping ICD.

To reproduce

Install kernel 6.10.0 on Ubuntu 24.04 MATE

Expected behavior

IDE starts up as usual

Arduino IDE version

2.3.2

Operating system

Linux

Operating system version

Ubuntu 24.04 LTS MATE

Additional context

I see there are several kernel versions from both 6.9.x & 6.10.x, but I have only tried 6.9.1 and 6.10.1


Discussion:

https://forum.arduino.cc/t/arduino-2-3-2-suddenly-wont-start/1299135

Additional reports

Issue checklist

per1234 commented 1 month ago

From @dsssssssss9's Arduino Forum thread on the subject:

Warning: terminator_CreateInstance: Failed to CreateInstance in ICD 3.  Skipping ICD.

ICD is the acronym for "installable client driver". This seems to be mostly often related to the GPU (i.e., the graphics card on your computer).

I haven't seen previous reports of this specific symptom, but when other users have had problems related to the graphics card, the workaround has been to add the --disable-gpu to the Arduino IDE command line invocation.

So if you are still able to reproduce the problem, please try starting Arduino IDE with this command:

/home/jkd-mini2024/Arduino2024/arduino-ide_2.3.2_Linux_64bit.AppImage --disable-gpu --no-sandbox

@dsssssssss9 did you try that? If so, please add a comment here to let us know the result. If not, please do.

dsssssssss9 commented 1 month ago

From @dsssssssss9's Arduino Forum thread on the subject:

@dsssssssss9 did you try that? If so, please add a comment here to let us know the result. If not, please do.

Hi

Sorry for the lack of replies but I've been away....

No I did not try the disabled -gpu switch yet .

I managed to get ide working by downgrading from kernel 6.10.1 to a previous 6.9.x version that I have been running since..

I am back at my desk in a couple of days & will upgrade to 6.10.x version & test your suggestion