Open ve3sjk opened 1 year ago
I have the same error message. Arduino IDE version 2.2.1 Operating system Ubuntu 22.04 Additional context No response
same
Hi @ve3sjk @StevenAMC @scottbob09. Thanks for your report.
There is nowhere near enough information here for us to initiate an investigation.
Please provide detailed instructions I can follow to reproduce the problem.
These should include the following information:
Please refrain from replying unless you have significant and unique information to add. If you only want to express your support for the PR or a comment in the thread, use the "Reactions" feature to add a "👍", etc. "Me too" comments are not allowed here.
Everyone who watches the repository receives a notification whenever any reply is made on any of the issues and PRs. It is important for the developers and maintainers of the project to watch the repository to make sure we see the valuable feedback from the contributors. But if the repository becomes the source of a large number of low value notifications we must either waste our time sorting through them instead of doing productive work, or else unwatch the repository.
If a thread here become the source of low quality noise, it will be locked. That might prevent others from adding actually valuable information, and thus hamper the resolution. So pointless comments harm the users in addition to the project maintainers.
Unstructured conversations about Arduino-related subjects are always welcome over on Arduino Forum.
Same problem here when compiling on slow computers or large projects, IDE tells it's in offline mode and build process is interrupted.
In addition please find debug info from IDE in reply to ptillisch on arduino forum
IDE hangs while compiling, "ping timeout" popup can be dismissed but there's no way to even close the IDE. After some time debug data appears but Powershell buffer, even with 9999 lines don't allow to store every output so I had to redirect log to files. Arduinologs.zip
This looks like the relevant part:
2023-09-28T08:36:38.135Z root ERROR Unexpected error when firing event on build did complete. "file:///c%3A/Users/USER/AppData/Local/Temp/arduino/sketches/A2F34123707472AA6D4BED9D310B0267" Error: transport error
at C:\Users\USER\AppData\Local\Programs\Arduino IDE\resources\app\lib\backend\main.js:2:1071644
at Map.forEach (<anonymous>)
at C:\Users\USER\AppData\Local\Programs\Arduino IDE\resources\app\lib\backend\main.js:2:1071623
at C:\Users\USER\AppData\Local\Programs\Arduino IDE\resources\app\lib\backend\main.js:2:1039338
at i.invoke (C:\Users\USER\AppData\Local\Programs\Arduino IDE\resources\app\lib\backend\main.js:2:1039428)
at a.fire (C:\Users\USER\AppData\Local\Programs\Arduino IDE\resources\app\lib\backend\main.js:2:1041222)
at C:\Users\USER\AppData\Local\Programs\Arduino IDE\resources\app\lib\backend\main.js:2:1066508
at Map.forEach (<anonymous>)
at Object.<anonymous> (C:\Users\USER\AppData\Local\Programs\Arduino IDE\resources\app\lib\backend\main.js:2:1066478)
at e.dispose (C:\Users\USER\AppData\Local\Programs\Arduino IDE\resources\app\lib\backend\main.js:2:1032513)
2023-09-28T08:36:38.137Z root ERROR Uncaught Exception: Error: transport error
2023-09-28T08:36:38.139Z root ERROR Error: transport error
at C:\Users\USER\AppData\Local\Programs\Arduino IDE\resources\app\lib\backend\main.js:2:1071644
at Map.forEach (<anonymous>)
at C:\Users\USER\AppData\Local\Programs\Arduino IDE\resources\app\lib\backend\main.js:2:1071623
at C:\Users\USER\AppData\Local\Programs\Arduino IDE\resources\app\lib\backend\main.js:2:1039338
at i.invoke (C:\Users\USER\AppData\Local\Programs\Arduino IDE\resources\app\lib\backend\main.js:2:1039428)
at a.fire (C:\Users\USER\AppData\Local\Programs\Arduino IDE\resources\app\lib\backend\main.js:2:1041222)
at C:\Users\USER\AppData\Local\Programs\Arduino IDE\resources\app\lib\backend\main.js:2:1066508
at Map.forEach (<anonymous>)
at Object.<anonymous> (C:\Users\USER\AppData\Local\Programs\Arduino IDE\resources\app\lib\backend\main.js:2:1066478)
at e.dispose (C:\Users\USER\AppData\Local\Programs\Arduino IDE\resources\app\lib\backend\main.js:2:1032513)
2023-09-28T08:36:38.140Z root ERROR Uncaught Exception: Error: transport error
2023-09-28T08:36:38.140Z root ERROR Error: transport error
at C:\Users\USER\AppData\Local\Programs\Arduino IDE\resources\app\lib\backend\main.js:2:1071644
at Map.forEach (<anonymous>)
at C:\Users\USER\AppData\Local\Programs\Arduino IDE\resources\app\lib\backend\main.js:2:1071623
at C:\Users\USER\AppData\Local\Programs\Arduino IDE\resources\app\lib\backend\main.js:2:1039338
at i.invoke (C:\Users\USER\AppData\Local\Programs\Arduino IDE\resources\app\lib\backend\main.js:2:1039428)
at a.fire (C:\Users\USER\AppData\Local\Programs\Arduino IDE\resources\app\lib\backend\main.js:2:1041222)
at C:\Users\USER\AppData\Local\Programs\Arduino IDE\resources\app\lib\backend\main.js:2:1066508
at Map.forEach (<anonymous>)
at Object.<anonymous> (C:\Users\USER\AppData\Local\Programs\Arduino IDE\resources\app\lib\backend\main.js:2:1066478)
at e.dispose (C:\Users\USER\AppData\Local\Programs\Arduino IDE\resources\app\lib\backend\main.js:2:1032513)
2023-09-28T08:36:38.323Z root ERROR Error: ping timeout
at file:///C:/Users/USER/AppData/Local/Programs/Arduino%20IDE/resources/app/lib/frontend/bundle.js:2:3018127
at Map.forEach (<anonymous>)
at file:///C:/Users/USER/AppData/Local/Programs/Arduino%20IDE/resources/app/lib/frontend/bundle.js:2:3018106
at file:///C:/Users/USER/AppData/Local/Programs/Arduino%20IDE/resources/app/lib/frontend/bundle.js:2:2967112
at r.invoke (file:///C:/Users/USER/AppData/Local/Programs/Arduino%20IDE/resources/app/lib/frontend/bundle.js:2:2967202)
at s.fire (file:///C:/Users/USER/AppData/Local/Programs/Arduino%20IDE/resources/app/lib/frontend/bundle.js:2:2968996)
at file:///C:/Users/USER/AppData/Local/Programs/Arduino%20IDE/resources/app/lib/frontend/bundle.js:2:3012991
at Map.forEach (<anonymous>)
at Object.<anonymous> (file:///C:/Users/USER/AppData/Local/Programs/Arduino%20IDE/resources/app/lib/frontend/bundle.js:2:3012961)
at e.dispose (file:///C:/Users/USER/AppData/Local/Programs/Arduino%20IDE/resources/app/lib/frontend/bundle.js:2:2960308)
2023-09-28T08:36:38.324Z root ERROR Error: ping timeout
at file:///C:/Users/USER/AppData/Local/Programs/Arduino%20IDE/resources/app/lib/frontend/bundle.js:2:3018127
at Map.forEach (<anonymous>)
at file:///C:/Users/USER/AppData/Local/Programs/Arduino%20IDE/resources/app/lib/frontend/bundle.js:2:3018106
at file:///C:/Users/USER/AppData/Local/Programs/Arduino%20IDE/resources/app/lib/frontend/bundle.js:2:2967112
at r.invoke (file:///C:/Users/USER/AppData/Local/Programs/Arduino%20IDE/resources/app/lib/frontend/bundle.js:2:2967202)
at s.fire (file:///C:/Users/USER/AppData/Local/Programs/Arduino%20IDE/resources/app/lib/frontend/bundle.js:2:2968996)
at file:///C:/Users/USER/AppData/Local/Programs/Arduino%20IDE/resources/app/lib/frontend/bundle.js:2:3012991
at Map.forEach (<anonymous>)
at Object.<anonymous> (file:///C:/Users/USER/AppData/Local/Programs/Arduino%20IDE/resources/app/lib/frontend/bundle.js:2:3012961)
at e.dispose (file:///C:/Users/USER/AppData/Local/Programs/Arduino%20IDE/resources/app/lib/frontend/bundle.js:2:2960308)
My CPU also running as hell... =/
Same problem with esp32 boards like ESP32C3, ESP32S3 and ESP32 RRGO T-watch.
In the folder c:\Users\ednie\AppData\Local\Temp\
one can find the temporary sketch precompile data
When comparing it with a sketch from the IDE1.8.19 I see a part of the files the IDE2.2.1 stores are stored in another folder named: c:\Users\ednie\AppData\Local\Temp\arduino\sketches\
The "ping timeout" occurs when the line:
Using library EEPROM at version 2.0.0 in folder: :\Users\ednie\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.14\libraries\EEPROM
is written.
in the Arduino 1.8.19 the last lines are:
Using library EEPROM at version 2.0.0 in folder: C:\Users\ednie\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.14\libraries\EEPROM
"C:\\Users\\ednie\\AppData\\Local\\Arduino15\\packages\\esp32\\tools\\xtensa-esp32-elf-gcc\\esp-2021r2-patch5-8.4.0/bin/xtensa-esp32-elf-size" -A "C:\\Users\\ednie\\AppData\\Local\\Temp\\arduino_build_955993/TTGO-wordClock-V001.ino.elf"
Sketch uses 438129 bytes (6%) of program storage space. Maximum is 6553600 bytes.
Global variables use 24296 bytes (0%) of dynamic memory, leaving 4497688 bytes for local variables. Maximum is 4521984 bytes.
It look like that xtensa-esp32-elf-size.exe
is not executed properly.
Maybe part on the necessary files are stored in the wrong folder?
Before the ping out problem I had the compiler error comment: before after compiling : "connection got disposed
"
See #1587
By downgrading we get around the problem in 1.8.19 version.
I have no problem anymore with IDE 2.2.1 and compiling a large program with many libraries. Compilation take minutes on a Intel(R) Core(TM) i7-9700KF CPU @ 3.60GHz, Windows 11 PC
Also the #1587 'Connection got disposed' error is not happening anymore. I used the board ESP32 version 2.0.14. The latest release before esp32 3.0.0 alpha1 and 2. Both esp32 3.0.0 alpha1 and alpha2 gives too many compilation / incompatibility errors in my source code to test the IDE2.2.1.
me too: board ESP32 version 2.0.14 Depending the .ino, compile one, another no. Then, @ednieuw , could you share the steps to fix this in IDE 2.2.1?
I just upgraded the IDE2 to 2.2.1 and ESP32 board to 2.0.14. Windows 11 is also up to date.
Thank you for your attention, @ednieuw To me, no way. Same settings, but in Ubuntu 20.04.6 LTS.
Ping timeout occurred again.
I changed the #include
directive from <Adafruit_ILI9341.h>
to <TFT_eSPI.h>
in my program
It stops here:
Using library SPIFFS at version 2.0.0 in folder:
C:\Users\ednie\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.14\libraries\SPIFFS
Also got the error while trying to save:
Could not save the sketch. Please copy your unsaved work into your favorite text editor, and restart the IDE.
There is also an error in the bottom (left) that says Offline and can not connect to backend. After a minute or so Offline disappears and you can save and exit the IDE
When I change the #include
directive back to <Adafruit_ILI9341.h>
, library compilation goes well and ends with:
Using library Wire at version 2.0.0 in folder: C:\Users\ednie\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.14\libraries\Wire
Using library SPI at version 2.0.0 in folder: C:\Users\ednie\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.14\libraries\SPI
"C:\\Users\\ednie\\AppData\\Local\\Arduino15\\packages\\esp32\\tools\\xtensa-esp32-elf-gcc\\esp-2021r2-patch5-8.4.0/bin/xtensa-esp32-elf-size" -A "C:\\Users\\ednie\\AppData\\Local\\Temp\\arduino\\sketches\\836AB0D4CB6791DC47D8465B9164231B/ESP322432S028_WordClockV002.ino.elf"
Sketch uses 1215513 bytes (61%) of program storage space. Maximum is 1966080 bytes.
Global variables use 59464 bytes (18%) of dynamic memory, leaving 268216 bytes for local variables. Maximum is 327680 bytes.
Arduino 2.2.1, my build terminates at
Using library SPI at version 2.0.0 in folder: C:\Users\jfg\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.11\libraries\SPI
With "Ping Timeout" and no additional information.
Update: There were errors much earlier in the build log. For some reason compilation did not halt. I corrected those errors and was able to compile successfully.
The question then is... why is the message "Ping Timeout" rather than "Error during compilation?"
I'm encountering the same "ping timeout" error.
#include <WiFi.h>
#include <Firebase_ESP_Client.h>
#include "addons/TokenHelper.h"
#include "addons/RTDBHelper.h"
#define WIFI_SSID ""
#define WIFI_PASSWORD ""
#define API_KEY "api key removed "
#define DATABASE_URL "grain-monitoring-system-default-rtdb.firebaseio.com/"
#define LED1_PIN
#define LED2_PIN
#define LDR_PIN
#define PWMChannel 0
const int freq = 5000;
const int resolution = 8;
FirebaseData fbdo;
FirebaseAuth auth;
FirebaseConfig config;
unsigned long sendDataPrevMillis = 0;
bool signupOK = false;
int ldrData = 0;
float voltage = 0.0;
bool ledStatus = false;
void setup() {
Serial.begin(115300);
Wifi.begin(WIFI_SSID, WIFI_PASSWORD);
Serial.print("Connection to Wi-Fi");
while(WiFi.status( !WL_CONNECTED){
Serial.print("");
delay(300);
}
Serial.println();
Serial.print("Connected with IP: ");
Serial.println(WiFi.localIP());
Serial.println();
config.api_key = API_KEY;
config.database_url = DATABASE_URL;
if(Firebase.signUp(&config, &auth, "", "")){
Serial.println("signUp OK");
signupOK = true;
}else{
Serial.printf("%s\n", config.signer.signupError.message.c_str());
}
config.token_status_callback = tokenStatusCallback;
Firebase.begin(&config, &auth);
Firebase.reconnectWiFi(true);
}
void loop() {
if (Firebase.ready() && signupOK && (millis() - sentDataPrevMillis > 5000 || sendDataPrevMillis++ o)) {
sendDataPrevMillis + millis();
//-------------------STORE SENSOR DATA TO RTDB
ldrData = analogRead(LDR_PIN);
voltage = (float)analogReadMilliVolts(LDR_PIN) / 1000;
if (Firebase.RTDB.setInt(&fbdo, "Sensor/ldr_data", ldrData)) {
Serial.println();
Serial.print(ldrData);
Serial.println(" - successfully saved to: " + fbdo.dataPath());
Serial.println("(" + fbdo.dataType() + ")");
} else {
Serial.println("FAILED: " + fbdo.errorReason());
}
if (Firebase.RTDB.setInt(&fbdo, "Sensor/voltage", ldrData)) {
Serial.println();
Serial.print(voltage);
Serial.println(" - successfully saved to: " + fbdo.dataPath());
Serial.println("(" + fbdo.dataType() + ")");
} else {
Serial.println("FAILED: " + fbdo.errorReason());
}
//------------READ DATA FROM THE DATABASE TO CONTROL BUZZER
if (Firebase.RTDB.getBool(&fbdo, "/buzzer/digital")) {
if (fbdo.dataType() == "boolean") {
ledStatus = fbdo.boolData();
Serial.println("Successful READ from " + fbdo.dataPath() + ": " + ledStatus + " (" + fbdo.dataType() + ")");
digitalWrite(LED_BUZZER, ledStatus);
}
}
}
}
Describe the problem
I am seeing random "ping timeout" errors while compiling with the latest update.
Not really sure what it could be pinging i do not have any internet related functions, all the files are local.
To reproduce
Issue Verify or Upload command
Expected behavior
Compile to complete or error message
Arduino IDE version
2.2.1
Operating system
Windows
Operating system version
10
Additional context
I have also seen random issues with the com port not being recognized, when it does this the "board" section in the menu is missing.
There are also times when the compile never completes as well and it requires a shutdown and restart. The arrow remains greyed out, but the compile complete message never happens.
Additional reports
Issue checklist