fiqanna
November 18, 2023, 4:06pm
1
Continuing the discussion from Arduino 2.0.3 stuck on loading screen :
Hi ptillisch,
I have similar problem, please help. Below are the log, but only allowed 4 lines as a new user:
C:\Users\LENOVO\AppData\Local\Programs\Arduino IDE> Arduino IDE 2.2.1
Checking for frontend application configuration customizations. Module path: C:\Users\LENOVO\AppData\Local\Programs\Arduino IDE\resources\app\lib\backend\electron-main.js, destination 'package.json':
Hi @fiqanna . We need the full log content. The snippet you provided doesn't contain any useful information.
This is incorrect. There is no special maximum post length restriction for new users. They can make post of up to 120000 characters just like ever other user.
However, it does sometimes happen that the log output produced by Arduino IDE exceeds this limit. In that case, you can instead save it to a .txt
file and then attach that file to a reply here:
Open any text editor program.
Paste the copied output into the text editor.
Save the file in .txt
format.
Open a forum reply here by clicking the "Reply " button.
Click the "Upload" icon ( ) on the post composer toolbar:
A dialog will open.
In the dialog, select the .txt
file you saved.
Click the "Open " button.
Click the "Reply " button to publish the post.
Alternatively, instead of using the "Upload" icon on the post composer toolbar as described in steps (5) - (7) above, you can simply drag and drop the .txt
file onto the post composer field to attach it.
fiqanna
November 19, 2023, 4:01am
3
Thank for response. Here is the attachment
Windows PowerShell.txt (17.6 KB)
This is the relevant section of the logs from the Windows PowerShell.txt
file you shared:
fiqanna:
2023-11-18T09:37:46.880Z root ERROR Detected an error response during the gRPC core client initialization: code: 3, message: Error downloading index 'https://downloads.arduino.cc/libraries/library_index.tar.bz2': Get "https://downloads.arduino.cc/libraries/library_index.tar.bz2": dial tcp: lookup downloads.arduino.cc: no such host
2023-11-18T09:37:47.002Z root ERROR Detected an error response during the gRPC core client initialization: code: 9, message: Loading index file: loading json index file C:\Users\LENOVO\AppData\Local\Arduino15\package_index.json: open C:\Users\LENOVO\AppData\Local\Arduino15\package_index.json: The system cannot find the file specified.
2023-11-18T09:37:47.035Z root ERROR Detected an error response during the gRPC core client initialization: code: 9, message: Error loading hardware platform: discovery builtin:serial-discovery not found
2023-11-18T09:37:47.060Z root ERROR Detected an error response during the gRPC core client initialization: code: 9, message: Error loading hardware platform: discovery builtin:mdns-discovery not found
2023-11-18T09:37:47.068Z root ERROR Detected an error response during the gRPC core client initialization: code: 9, message: Loading index file: reading library_index.json: open C:\Users\LENOVO\AppData\Local\Arduino15\library_index.json: The system cannot find the file specified.
2023-11-18T09:37:47.147Z root ERROR The primary packages indexes are missing. Running indexes update before initializing the core gRPC client The index of the cores and libraries must be updated before initializing the core gRPC client.
On the first run after a fresh installation, Arduino IDE downloads some additional essential components from the Internet and installs them. If it can't install those components then the startup fails. So the computer must have access to the Internet on the first startup.
The errors indicate Arduino IDE is not able to access the Internet. If it is not already, please connect your computer to the Internet, close the Arduino IDE window, then start Arduino IDE again. This time it should start up successfully.
After that first run, an Internet connection is not required. However, there are some supplemental features such as "Library Manager " that have an inherent dependency on the Internet. Those features will not be usable while your computer is offline. But the essential functionality of editing, compiling, and uploading sketches will be available even without an Internet connection.
fiqanna
November 20, 2023, 2:45pm
5
Thanks @ptillisch , it works. Last experience installing Anduino IDE on Win 7, does not connect with internet, it run - of course that was older version.
But, thank again for your help.
You are welcome. I'm glad it is working now.
Yeah, Arduino IDE 1.x did not have this first run dependency on an Internet connection (though it would have the same loss of Internet-dependent features as Arduino IDE 2.x once running). This was accomplished by bundling all additional components with the Arduino IDE 1.x installation.
That approach posed two problems:
The bundled components were from the time of the IDE release, meaning the users often missed important enhancements and fixes made to those components since the time of the IDE release.
The only way to distribute a new release of any component was an entire new release of the IDE. In cases where there wasn't a compelling reason to make a new release of the IDE application itself, making such releases was wasteful of the developers' time and wasteful of Arduino's bandwidth.
With the new system, users always have the latest version of the components and distributing new releases of those components is much easier and more efficient for Arduino.
Regards,
Per
I should add that, even if there are good reasons for the first run Internet connection dependency, we need to improve the user experience in the case where that dependency is not met.
The hang on startup under these conditions is actually a bug in Arduino IDE, which is tracked by the developers here:
opened 12:42AM - 04 May 23 UTC
topic: code
type: imperfection
### Describe the problem
On the first run after a fresh installation, Arduino… IDE downloads some files from the Internet:
- The `builtin:serial-discovery` [pluggable discovery](https://arduino.github.io/arduino-cli/latest/pluggable-discovery-specification/) tool
- The `builtin:mdns-discovery` pluggable discovery tool
- The Library Manager index
- The primary Boards Manager package index
🐛 If the download of these files is not possible due to lack of Internet access, the startup hangs.
This is a change from Arduino IDE 1.x, which is in a fully functional state from the start with no hard dependency on an Internet connection (though obviously Library/Boards Manager can't be used).
### To reproduce
1. Select **File > Quit** from the Arduino IDE menus if it is running.
1. Rename or delete (:warning: cautiously) the following folder to effectively simulate the environment of a first run:
- **If you are using Windows:**
```text
C:\Users\<username>\AppData\Local\Arduino15
```
(where `<username>` is your Windows username)
- **If you are using Linux:**
```text
~/.arduino15
```
- **If you are using macOS:**
```text
~/Library/Arduino15
```
1. Disconnect your computer from the Internet.
1. Start Arduino IDE.
🐛 Startup hangs at the startup animation.
🐛 The cause of the hang is not communicated to the user.
### Expected behavior
Complete startup even when the essential resources could not be installed.
This is important because, once it has started up, Arduino IDE shows notifications that communicate the Internet access dependency to the user.
- Record whether the `arduino:avr` and "Arduino_BuiltIn" installations were successful, and if not then retry on subsequent startups.
- Note: This must be done based on a dedicated record, and not on the presence/absence of these installations because users may have later removed unwanted installations after they were successfully installed automatically.
### Arduino IDE version
097c92d904ca9b126e54b6a58030b5f4c650f075
### Operating system
Windows
### Operating system version
11
### Additional context
The regression was introduced at https://github.com/arduino/arduino-ide/commit/a36524e02ab5fbc2ef333ff67a047dfe5718b306
---
The logs include this:
```text
2023-05-03T23:57:19.823Z root ERROR Uncaught Exception:
2023-05-03T23:57:19.823Z root ERROR Error: The index of the cores and libraries must be updated before initializing the core gRPC client.
The following problems were detected during the gRPC client initialization:
[platform-index] - code: 9, message: Loading index file: loading json index file C:\Users\per\AppData\Local\Arduino15\package_index.json: open C:\Users\per\AppData\Local\Arduino15\package_index.json: The system cannot find the file specified.
[platform-index] - code: 9, message: Error loading hardware platform: discovery builtin:serial-discovery not found
[platform-index] - code: 9, message: Error loading hardware platform: discovery builtin:mdns-discovery not found
[library-index] - code: 9, message: Loading index file: reading library_index.json: open C:\Users\per\AppData\Local\Arduino15\library_index.json: The system cannot find the file specified.
at isIndexUpdateRequiredBeforeInit (C:\arduino-tools\193-097c92d\resources\app\node_modules\arduino-ide-extension\lib\node\core-client-provider.js:388:11)
at CoreClientProvider.evaluateErrorStatus (C:\arduino-tools\193-097c92d\resources\app\node_modules\arduino-ide-extension\lib\node\core-client-provider.js:200:16)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async ClientReadableStreamImpl.<anonymous> (C:\arduino-tools\193-097c92d\resources\app\node_modules\arduino-ide-extension\lib\node\core-client-provider.js:184:31)
```
#### Related
- https://github.com/arduino/arduino-ide/issues/784
- https://github.com/arduino/arduino-ide/issues/786
#### Additional reports:
- https://github.com/arduino/arduino-ide/issues/2306
- https://forum.arduino.cc/t/arduino-2-0-will-not-start-past-the-loading-screen/1049023/1
- https://forum.arduino.cc/t/arduino-2-0-will-not-start-past-the-loading-screen/1049023/31
- https://forum.arduino.cc/t/arduino-2-0-will-not-start-past-the-loading-screen/1049023/56
- https://forum.arduino.cc/t/arduino-2-0-will-not-start-past-the-loading-screen/1049023/101
- https://forum.arduino.cc/t/arduino-ide-wont-start-on-the-windows-10/1052335
- https://forum.arduino.cc/t/arduino-ide-doesnt-get-any-further-than-splash-screen/1084721
- https://forum.arduino.cc/t/arduino-is-not-starting-hangs-on-launch-up-animation/1093871
- https://forum.arduino.cc/t/arduino-ide-2-04-not-starting-up-stuck-on-logo/1102153
- https://forum.arduino.cc/t/stuck-on-loading-screen-on-arduino-2-0-4/1101395
- https://forum.arduino.cc/t/arduino-2-0-4-not-starting/1097641
- https://forum.arduino.cc/t/macos-m1-arduino-ide-2-0-3-is-not-working-anymore/1078952/11
- https://forum.arduino.cc/t/arduino-ide-2-1-1-not-running-after-installation-in-windows-10/1158693
- https://forum.arduino.cc/t/ide-wont-start-after-installation-on-computer-without-internet-connection/1168203/1
- https://forum.arduino.cc/t/ide-wont-start-after-installation-on-computer-without-internet-connection/1168203/9
- https://forum.arduino.cc/t/ide-wont-start-after-installation-on-computer-without-internet-connection/1168203/10
- https://forum.arduino.cc/t/arduino-2-0-3-stuck-on-loading-screen/1083198/1
- https://forum.arduino.cc/t/arduino-2-0-3-stuck-on-loading-screen/1083198/11
- https://forum.arduino.cc/t/arduino-2-0-3-stuck-on-loading-screen/1083198/15
- https://forum.arduino.cc/t/arduino-2-0-3-stuck-on-loading-screen/1083198/21
- https://forum.arduino.cc/t/ide-hangs-on-startup-error-loading-hardware-platform-discovery-builtin-serial-discovery-not-found/1188386
- https://forum.arduino.cc/t/ide-2-2-1-stuck/1165487
- https://forum.arduino.cc/t/arduino-2-1-1-0-stuck-at-start-up/1163600
- https://forum.arduino.cc/t/ide-dosnt-work/1198917
- https://forum.arduino.cc/t/ide-hangs-on-startup-discovery-builtin-serial-discovery-not-found/1188347
- https://forum.arduino.cc/t/ide-2-2-1-wont-load/1170617/1
- https://forum.arduino.cc/t/stuck-on-loading-screen-for-arduino-ide-2-1-0/1156448
- https://forum.arduino.cc/t/ide-hangs-on-startup-error-loading-hardware-platform-discovery-builtin-serial-discovery-not-found/1188383
- https://forum.arduino.cc/t/ide-hangs-on-startup-error-loading-hardware-platform-discovery-builtin-serial-discovery-not-found/1188371
- https://forum.arduino.cc/t/arduino-ide-2-04-not-starting-up-stuck-on-logo/1102153
- https://forum.arduino.cc/t/arduino-is-not-starting-hangs-on-launch-up-animation/1093871
- https://forum.arduino.cc/t/ide-hangs-on-startup-error-loading-hardware-platform-discovery-builtin-serial-discovery-not-found/1188362
### Issue checklist
- [X] I searched for previous reports in [the issue tracker](https://github.com/arduino/arduino-ide/issues?q=)
- [X] I verified the problem still occurs when using the latest [nightly build](https://www.arduino.cc/en/software#nightly-builds)
- [X] My report contains all necessary details
Prior to that regression, Arduino IDE was able to start up fully and display a message that communicated to the users that the IDE required access to the Internet to be in a fully functional state. Even though that intended behavior is a significantly better user experience than the current hang, it might be that it could be improved even further from that. This task is tracked by the Arduino IDE developers here:
opened 07:42AM - 28 Jan 22 UTC
type: enhancement
topic: code
### Describe the problem
On the first run, Arduino IDE must download some fil… es from the Internet:
- `builtin:serial-discovery`
- `builtin:mdns-discovery`
- `builtin:ctags`
- The "Arduino AVR Boards" platform
- The standard libraries
If the IDE does not have Internet access at that time, it can not reach a functional state. There is currently no communication to the user in this situation.
This is a change from Arduino IDE 1.x, which is in a fully functional state from the start with no hard dependency on an Internet connection (though obviously Library/Boards Manager can't be used).
### To reproduce
1. Quit the IDE if it is running.
1. Rename or delete (:warning: cautiously) the following folders to simulate the environment of a first run:
- Windows:
```
C:\Users\<username>\.arduinoIDE
```
```
C:\Users\<user name>\AppData\Local\Arduino15
```
```
C:\Users\<user name>\AppData\Roaming\arduino-ide
```
```
C:\Users\<user name>\Documents\Arduino
```
- Linux:
```
~/.arduinoIDE
```
```
~/.arduino15
```
```
~/.config/arduino-ide
```
```
~/Arduino
```
- macOS:
```
~/.arduinoIDE
```
```
~/Library/Arduino15
```
```
~/Library/Application Support/arduino-ide
```
```
~/Arduino
```
1. Disconnect your computer from the Internet.
1. Start the Arduino IDE.
1. Wait as long as you need to feel confident the IDE has finished doing all first run procedures.
1. Connect an Arduino board to your computer.
1. Open the board/port selector.
:bug: Notice that the board and port are not listed.
1. Select **Tools > Board** from the Arduino IDE menus.
:bug: Notice that the expected "Arduino AVR Boards" menu item is not present.
1. Open the **Tools > Port** menu.
:bug: Notice that the port of your board is not listed.
1. Open the **Sketch > Include Library** menu.
:bug: Notice that there are no libraries.
After you connect to the Internet and restart the IDE, the discoveries will be installed, so the missing ports issue will resolve itself at that time 🙂. However, the missing "Arduino AVR Boards" platform and libraries condition is persistent :bug: because this is only attempted on the first run, whether or not it fails.
### Expected behavior
- Communicate to the user when resources could not be installed on first run.
- Record whether the `arduino:avr` and "Arduino_BuiltIn" installations were successful, and if not then retry on subsequent startups.
- Note: This must be done based on a dedicated record, and not on the presence/absence of these installations because users may have later removed unwanted installations after they were successfully installed automatically.
### Arduino IDE version
#### Original report
2.0.0-rc3-snapshot.1d88263
#### Last verified with
9a6a457bc44fb16f646b9e61a9e8b336b3666412
### Operating system
Windows
### Operating system version
10
### Additional context
At one time, the IDE showed a notification when there was no Internet connection (https://github.com/arduino/arduino-ide/pull/266), which was cryptic but at least gave some feedback:
```
Request loadSketch failed with message: 2 UNKNOWN: downloading builtin:[email protected] tool: Get "https://downloads.arduino.cc/tools/ctags-5.8-arduino11-pm-i686-mingw32.zip": dial tcp: lookup downloads.arduino.cc: no such host
```
But that notification is no longer shown (probably because the system has been made more tolerant of error conditions).
---
Additional reports:
- https://forum.arduino.cc/t/arduino-ide-2-not-working/1077381
- https://forum.arduino.cc/t/arduino-ide-2-0-3-hangs-up-on-start/1088609
- https://forum.arduino.cc/t/no-ports-discovered-of-ide-2-0-0-rc9-rc9-1/1018669
- https://forum.arduino.cc/t/ports-not-showing-on-2-0-1-ide-menu/1052816
- https://forum.arduino.cc/t/ide-2-1-0-appimage-fails-first-launch-without-network-connection/1139226
- https://forum.arduino.cc/t/ide-v2-is-useless-without-internet/1142346
- https://forum.arduino.cc/t/ide-wont-start-after-installation-on-computer-without-internet-connection/1168203/8
### Issue checklist
- [X] I searched for previous reports in [the issue tracker](https://github.com/arduino/arduino-ide/issues?q=)
- [X] I verified the problem still occurs when using the latest [nightly build](https://www.arduino.cc/en/software#nightly-builds)
- [X] My report contains all necessary details
system
Closed
November 14, 2024, 1:29am
9
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.