Skip to content

HTTPClient issues above 1.0.2 #3347

Closed
Closed
@u4mzu4

Description

@u4mzu4

Hardware:

Board: Olimex ESP32-EVB
Core Installation version: 1.0.4
IDE name: Arduino IDE 1.8.10
Flash Frequency: 80Mhz
PSRAM enabled: no
Upload Speed: 115200
Computer OS: Windows 10

Description:

I try to read some temperatures from ESP8266 webservers via http. It's working properly until 1.0.3/1.0.4. 1.0.2 is the latest stable version for the code below.
Is there any bug in my original code, or there is some unexpected behavior after the core update?
Errors:

  • LoadProhibited
  • InstrFetchProhibited

Sketch:

//Includes
#include <HTTPClient.h>

//Init services
HTTPClient webclient;

void setup() {
  const char* ssid      = "";
  const char* password  = "";

  Serial.begin(115200);
  delay(100);
  
  WiFi.mode(WIFI_STA);
  WiFi.begin (ssid, password);
  while (WiFi.status() != WL_CONNECTED) {
    delay(500);
  }
}

void loop() {
  const char* host = "http://192.168.178.53/";
  float transData;
  
  webclient.begin(host);
  if(HTTP_CODE_OK == webclient.GET()) 
  {
    transData = webclient.getString().toFloat();
  }
  webclient.end();
  Serial.println(transData);
  delay(10000);
}

### Debug Messages:

Rebooting...
ets Jun 8 2016 00:22:57

rst:0xc (SW_CPU_RESET),boot:0x1b (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:1
load:0x3fff0018,len:4
load:0x3fff001c,len:1044
load:0x40078000,len:8896
load:0x40080400,len:5816
entry 0x400806ac
23.40
Guru Meditation Error: Core 1 panic'ed (LoadProhibited). Exception was unhandled.
Core 1 register dump:
PC : 0x4015d2d4 PS : 0x00060430 A0 : 0x800d1b12 A1 : 0x3ffb1ed0
A2 : 0x3ffc1064 A3 : 0x00000002 A4 : 0x3ffc15b0 A5 : 0xf9805d2b
A6 : 0x05000000 A7 : 0x05000000 A8 : 0x05000000 A9 : 0x3ffb1ec0
A10 : 0x3ffba878 A11 : 0x00000000 A12 : 0x0000001c A13 : 0x3ffba848
A14 : 0x00000020 A15 : 0x00000001 SAR : 0x00000014 EXCCAUSE: 0x0000001c
EXCVADDR: 0x00000012 LBEG : 0x4000c46c LEND : 0x4000c477 LCOUNT : 0x00000000

Backtrace: 0x4015d2d4:0x3ffb1ed0 0x400d1b0f:0x3ffb1ef0 0x400d1b81:0x3ffb1f10 0x400d2cc9:0x3ffb1f30 0x400d17cd:0x3ffb1f70 0x400d5e39:0x3ffb1fb0 0x40088b9d:0x3ffb1fd0

Rebooting...
ets Jun 8 2016 00:22:57

rst:0xc (SW_CPU_RESET),boot:0x1b (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:1
load:0x3fff0018,len:4
load:0x3fff001c,len:1044
load:0x40078000,len:8896
load:0x40080400,len:5816
entry 0x400806ac
23.40
Guru Meditation Error: Core 1 panic'ed (InstrFetchProhibited). Exception was unhandled.
Core 1 register dump:
PC : 0x00000081 PS : 0x00060430 A0 : 0x800d1b12 A1 : 0x3ffb1ed0
A2 : 0x3ffc1064 A3 : 0x00000081 A4 : 0x3ffc15b0 A5 : 0x0b59b92e
A6 : 0x05000000 A7 : 0x05000000 A8 : 0x8015d2da A9 : 0x3ffb1ec0
A10 : 0x3ffba7c0 A11 : 0x00000000 A12 : 0x0000001c A13 : 0x3ffba7e0
A14 : 0x00000020 A15 : 0x00000001 SAR : 0x00000014 EXCCAUSE: 0x00000014
EXCVADDR: 0x00000080 LBEG : 0x4000c46c LEND : 0x4000c477 LCOUNT : 0x00000000

Backtrace: 0x00000081:0x3ffb1ed0 0x400d1b0f:0x3ffb1ef0 0x400d1b81:0x3ffb1f10 0x400d2cc9:0x3ffb1f30 0x400d17cd:0x3ffb1f70 0x400d5e39:0x3ffb1fb0 0x40088b9d:0x3ffb1fd0

Decoding stack results
0x4015d2d4: HTTPClient::connected() at C:\Users\Andrew\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.4\libraries\HTTPClient\src\HTTPClient.cpp line 395
0x400d1b0f: HTTPClient::disconnect(bool) at C:\Users\Andrew\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.4\libraries\HTTPClient\src\HTTPClient.cpp line 359
0x400d1b81: HTTPClient::end() at C:\Users\Andrew\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.4\libraries\HTTPClient\src\HTTPClient.cpp line 347
0x400d2cc9: HTTPClient::begin(String) at C:\Users\Andrew\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.4\libraries\HTTPClient\src\HTTPClient.cpp line 216
0x400d17cd: loop() at C:\Users\Andrew\Documents\Arduino\sketch_oct11a/sketch_oct11a.ino line 25
0x400d5e39: loopTask(void*) at C:\Users\Andrew\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.4\cores\esp32\main.cpp line 19
0x40088b9d: vPortTaskWrapper at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/freertos/port.c line 143

Decoding stack results
0x400d1b0f: HTTPClient::disconnect(bool) at C:\Users\Andrew\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.4\libraries\HTTPClient\src\HTTPClient.cpp line 359
0x400d1b81: HTTPClient::end() at C:\Users\Andrew\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.4\libraries\HTTPClient\src\HTTPClient.cpp line 347
0x400d2cc9: HTTPClient::begin(String) at C:\Users\Andrew\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.4\libraries\HTTPClient\src\HTTPClient.cpp line 216
0x400d17cd: loop() at C:\Users\Andrew\Documents\Arduino\sketch_oct11a/sketch_oct11a.ino line 25
0x400d5e39: loopTask(void*) at C:\Users\Andrew\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.4\cores\esp32\main.cpp line 19
0x40088b9d: vPortTaskWrapper at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/freertos/port.c line 143

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions