Skip to content

Ping Timeout error while compiling #2218

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
3 tasks done
ve3sjk opened this issue Sep 5, 2023 · 17 comments
Open
3 tasks done

Ping Timeout error while compiling #2218

ve3sjk opened this issue Sep 5, 2023 · 17 comments
Assignees
Labels
topic: code Related to content of the project itself type: imperfection Perceived defect in any part of project

Comments

@ve3sjk
Copy link

ve3sjk commented Sep 5, 2023

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

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
@ve3sjk ve3sjk added the type: imperfection Perceived defect in any part of project label Sep 5, 2023
@StevenAMC

This comment was marked as duplicate.

@scottbob09

This comment was marked as duplicate.

@arduino arduino locked as too heated and limited conversation to collaborators Sep 9, 2023
@per1234
Copy link
Contributor

per1234 commented Sep 24, 2023

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:

  • Which board do you have selected in Arduino IDE?
  • Where exactly are you seeing the "ping timeout" errors?

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.

@per1234 per1234 self-assigned this Sep 24, 2023
@per1234 per1234 added the status: waiting for information More information must be provided before work can proceed label Sep 24, 2023
@per1234 per1234 changed the title Ping Timeout error with Latest Version 2.2.1 Ping Timeout error while compiling Sep 26, 2023
@arduino arduino unlocked this conversation Sep 27, 2023
@furynick
Copy link

Same problem here when compiling on slow computers or large projects, IDE tells it's in offline mode and build process is interrupted.
image

image

@furynick
Copy link

furynick commented Sep 28, 2023

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)

@per1234 per1234 added topic: code Related to content of the project itself and removed status: waiting for information More information must be provided before work can proceed labels Sep 29, 2023
@MauricioEmilio
Copy link

My CPU also running as hell... =/

@ednieuw
Copy link

ednieuw commented Oct 24, 2023

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

@fjmsouza
Copy link

fjmsouza commented Dec 2, 2023

By downgrading we get around the problem in 1.8.19 version.

@ednieuw
Copy link

ednieuw commented Dec 4, 2023

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.

@fjmsouza
Copy link

fjmsouza commented Dec 5, 2023

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?

@ednieuw
Copy link

ednieuw commented Dec 5, 2023

I just upgraded the IDE2 to 2.2.1 and ESP32 board to 2.0.14.
Windows 11 is also up to date.

@fjmsouza
Copy link

fjmsouza commented Dec 6, 2023

Thank you for your attention, @ednieuw
To me, no way. Same settings, but in Ubuntu 20.04.6 LTS.

@ednieuw
Copy link

ednieuw commented Dec 7, 2023

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.

@jgregoire
Copy link

jgregoire commented Jan 11, 2024

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?"

@Otaremwa
Copy link

Otaremwa commented Apr 27, 2024

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);
      }
    }
  }
}

@andreea-mgh
Copy link

Same ping timeout error with various ESP projects. It goes online for 1 second and a popup shows that error, then the compilation stops entirely without any error message in the logs. Why a sane compiler would be in any way affected by a network issue is beyond me.

@iotricity
Copy link

iotricity commented Sep 27, 2024

Upgraded to IDE 2.3.3 on Windows today, receiving the same Ping Timeout error and disconnected message. Compiling stuck at about 1/3 of the progress bar.
image

ESP32S3 Module, boards manager Espressif esp32 v.2.0.14

-EDIT-
There's some conflicting going on when using the new lvgl 9.x library. Using the latest lvgl 8.4 library solved the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic: code Related to content of the project itself type: imperfection Perceived defect in any part of project
Projects
None yet
Development

No branches or pull requests