Cannot start V2 IDE

I have been using the V1 IDE for years and have just today installed V2.3.2.

Simply put. It does not start.

vulpes_vulpes@gandalf:~/work/arduino-ide_2.3.2_Linux_64bit$ ./arduino-ide
vulpes_vulpes@gandalf:~/work/arduino-ide_2.3.2_Linux_64bit$ 
vulpes_vulpes@gandalf:~/work/arduino-ide_2.3.2_Linux_64bit$ cd ../*nightly*
vulpes_vulpes@gandalf:~/work/arduino-ide_nightly-20240630_Linux_64bit$ ./arduino-ide
vulpes_vulpes@gandalf:~/work/arduino-ide_nightly-20240630_Linux_64bit$ 

Simply, nothing happens. No output, nothing in the system logs. No windows created. Nothing.

$ uname -a
Linux gandalf 6.9.7-100.fc39.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Jun 27 18:06:32 UTC 2024 x86_64 GNU/Linux

I am not impressed. Looks like I will continue to use the V1

Hi @vulpes_vulpes. Normally even when Arduino IDE 2.x fails to start, it still prints a significant quantity of logs to the terminal on startup. The behavior shown in the terminal session you shared is what we would expect when you invoke the executable when the application is already running. Only a single instance of the application is allowed, so in this case it simply returns without printing anything.

In order to test my hypothesis, please try running this command:

killall arduino-ide; ./arduino-ide

If my hypothesis is correct, we would expect to see the usual mass of startup logs printed to the terminal this time since the killall command will have terminated the existing instance of the application.

Thanks for the reply. A new day. A new reboot. Did what you said, and now it just crashes out of memory. This is a 16Gb system. How much memory does it need ?

vulpes_vulpes@gandalf:~/work/arduino-ide_2.3.2_Linux_64bit$ ./arduino-ide

<--- Last few GCs --->

[7613:0x1830002c8000]      391 ms: Mark-Compact (reduce) 0.6 (3.2) -> 0.6 (1.7) MB, 1.45 / 0.00 ms  (average mu = 0.504, current mu = 0.040) last resort; GC in old space requested
[7613:0x1830002c8000]      392 ms: Mark-Compact (reduce) 0.6 (1.7) -> 0.6 (1.7) MB, 0.66 / 0.00 ms  (average mu = 0.385, current mu = 0.008) last resort; GC in old space requested


<--- JS stacktrace --->


#
# Fatal JavaScript out of memory: CALL_AND_RETRY_LAST
#

Trace/breakpoint trap (core dumped)
vulpes_vulpes@gandalf:~/work/arduino-ide_2.3.2_Linux_64bit$ 

Please provide the full output. It is possible there is some problem that is causing it to use excessive amounts of memory. There might be an indication of the problem in the logs.

In case you find it difficult to capture the full logs from the terminal, they are also written to a file under this folder:

/home/<username>/.config/Arduino IDE/

(where <username> is your Linux username)


:exclamation: The .config folder may be hidden by default in your file manager and terminal.


You can attach the logs file to a reply here on the forum thread.

Thanks for the reply. You asked for the full output – that was the full output.

Here is a slightly different one which outputs a few lines before saying it has run out of memory.…

vulpes_vulpes@gandalf:~/work/arduino-ide_2.3.2_Linux_64bit$ ./arduino-ide

Arduino IDE 2.3.2

Checking for frontend application configuration customizations. Module path: /home/vulpes_vulpes/work/arduino-ide_2.3.2_Linux_64bit/resources/app/lib/backend/electron-main.js, destination 'package.json': /home/vulpes_vulpes/work/arduino-ide_2.3.2_Linux_64bit/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: 34506

<--- Last few GCs --->

[34506:0x2270002f0000] 77 ms: Mark-Compact (reduce) 0.7 (1.9) -> 0.6 (1.9) MB, 2.10 / 0.00 ms (average mu = 0.044, current mu = 0.004) last resort; GC in old space requested

[34506:0x2270002f0000] 80 ms: Mark-Compact 0.6 (1.9) -> 0.6 (2.9) MB, 2.16 / 0.00 ms (average mu = 0.047, current mu = 0.051) background allocation failure; GC in old space requested

<--- JS stacktrace --->

#

# Fatal JavaScript out of memory: CALL_AND_RETRY_LAST

#

[vulpes_vulpes@gandalf](mailto:vulpes_vulpes@gandalf):~/work/arduino-ide_2.3.2_Linux_64bit$

I would upload the log as a attachment, but as a new user I am not allowed to. It is not large. I will paste it in here

2024-07-11 18:38:56 Arduino IDE 2.3.2
2024-07-11 18:38:56 Checking for frontend application configuration customizations. Module path: /home/vulpes_vulpes/work/arduino-ide_2.3.2_Linux_64bit/resources/app/lib/backend/electron-main.js, destination 'package.json': /home/vulpes_vulpes/work/arduino-ide_2.3.2_Linux_64bit/resources/app/package.json
2024-07-11 18:38:56 Setting 'theia.frontend.config.appVersion' application configuration value to: "2.3.2" (type of string)
2024-07-11 18:38:56 Setting 'theia.frontend.config.cliVersion' application configuration value to: "0.35.3" (type of string)
2024-07-11 18:38:56 Setting 'theia.frontend.config.buildDate' application configuration value to: "2024-02-20T09:54:08.669Z" (type of string)
2024-07-11 18:38:56 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"}
2024-07-11 18:38:56 Starting backend process. PID: 34506
2024-07-11 18:39:15 Stored workspaces roots: 

That is it. There is no more.

Arduino IDE also not working for me. Is generally working for a time, then crashing. This time, I used the IDE immediately after reboot. This is Flatpak version but I also have the image. That behaves similarly.

run arduino-ide_2.3.2_Linux_64bit.AppImage
bash: run: command not found...
Failed to search for file: GDBus.Error:org.freedesktop.DBus.Error.NameHasNoOwner: Could not activate remote peer 'org.freedesktop.PackageKit': activation request failed: unit is masked
robert@fedora:~$ flatpak run cc.arduino.IDE2
Arduino IDE 2.3.2
Checking for frontend application configuration customizations. Module path: /app/arduino-ide/resources/app/lib/backend/electron-main.js, destination 'package.json': /app/arduino-ide/resources/app/package.json
Gtk-Message: 15:44:58.595: Failed to load module "canberra-gtk-module"
Gtk-Message: 15:44:58.595: Failed to load module "pk-gtk-module"
Gtk-Message: 15:44:58.599: Failed to load module "canberra-gtk-module"
Gtk-Message: 15:44:58.599: Failed to load module "pk-gtk-module"
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: 60
[60 zypak-helper] Using spawn strategy test 1 as set by environment

<--- Last few GCs --->

[60:0x8b0002ec000]       49 ms: Mark-Compact (reduce) 0.7 (2.9) -> 0.7 (1.9) MB, 0.41 / 0.00 ms  (average mu = 0.634, current mu = 0.130) last resort; GC in old space requested
[60:0x8b0002ec000]       50 ms: Mark-Compact (reduce) 0.7 (1.9) -> 0.7 (1.9) MB, 0.53 / 0.00 ms  (average mu = 0.445, current mu = 0.009) last resort; GC in old space requested


<--- JS stacktrace --->


#
# Fatal JavaScript out of memory: CALL_AND_RETRY_LAST
#

Warning: vkCreateInstance: Found no drivers!
Warning: vkCreateInstance failed with VK_ERROR_INCOMPATIBLE_DRIVER
    at CheckVkSuccessImpl (../../third_party/dawn/src/dawn/native/vulkan/VulkanError.cpp:88)
    at CreateVkInstance (../../third_party/dawn/src/dawn/native/vulkan/BackendVk.cpp:458)
    at Initialize (../../third_party/dawn/src/dawn/native/vulkan/BackendVk.cpp:344)
    at Create (../../third_party/dawn/src/dawn/native/vulkan/BackendVk.cpp:266)
    at operator() (../../third_party/dawn/src/dawn/native/vulkan/BackendVk.cpp:521)

I came across the thread while searching the error messages. It occurs to me now that Flatpak apps issues probably aren't something you would be concerned about so I apologise, I left it up but don't want to hi-jack the thread.
I have no logs in the above location for today (18/07), a blank file for 17/07, the log for 16/07 is here should you wish to view it, I suspect my problem is different to the OP though!

OK. Well I found a reason why the IDE may not be working on Fedora Linux. It may not be THE reason.

It seems to throw up several hundred selinux errors, mostly concerning "execheap".

I had a word with our security officer and she will not allow it access.

So that's that.

2 Likes

Interesting
Searching "execheap" finds loads of discussion about various apps having issues.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.