Skip to content
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

Disabling an already disabled receiver triggers an exception #5

Merged
merged 1 commit into from
May 16, 2021

Conversation

NorthernMan54
Copy link

@NorthernMan54 NorthernMan54 commented May 15, 2021

When using the Active Receiver version of OpenMQTTGateway the second signal transmission triggers an exception when trying to disable an already disabled receiver.

Guru Meditation Error: Core  1 panic'ed (InstrFetchProhibited). Exception was unhandled.
Core 1 register dump:
PC      : 0x011d2501  PS      : 0x00060830  A0      : 0x80108615  A1      : 0x3ffb1a60  
A2      : 0x4012810c  A3      : 0x3ff00270  A4      : 0x00000006  A5      : 0x00000001  
A6      : 0x00060820  A7      : 0x00000000  A8      : 0x801830bc  A9      : 0x3ffb1a50  
A10     : 0x4012810c  A11     : 0x4012810c  A12     : 0x00000003  A13     : 0x3fe00aff  
A14     : 0x00000000  A15     : 0x00000002  SAR     : 0x0000001e  EXCCAUSE: 0x00000014  
EXCVADDR: 0x011d2500  LBEG    : 0x400014fd  LEND    : 0x4000150d  LCOUNT  : 0xffffffff  

ELF file SHA256: 0000000000000000

Backtrace: 0x011d2501:0x3ffb1a60 0x40108612:0x3ffb1a80 0x40106caa:0x3ffb1aa0 0x400e1802:0x3ffb1ac0 0x400dc705:0x3ffb1ae0 0x400dd71c:0x3ffb1b70 0x400dd7af:0x3ffb1ef0 0x401820cf:0x3ffb1f10 0x400de616:0x3ffb1f30 0x400de77d:0x3ffb1f60 0x400ddbf3:0x3ffb1f90 0x40108519:0x3ffb1fb0 0x4008a916:0x3ffb1fd0
  #0  0x011d2501:0x3ffb1a60 in ?? ??:0
  #1  0x40108612:0x3ffb1a80 in std::function<void ()>::~function() at /Users//.platformio/packages/toolchain-xtensa32/xtensa-esp32-elf/include/c++/5.2.0/functional:2271
      (inlined by) InterruptArgStructure::~InterruptArgStructure() at /Users//.platformio/packages/framework-arduinoespressif32/cores/esp32/FunctionalInterrupt.h:26
      (inlined by) cleanupFunctional at /Users//.platformio/packages/framework-arduinoespressif32/cores/esp32/FunctionalInterrupt.cpp:51
  #2  0x40106caa:0x3ffb1aa0 in __detachInterrupt at /Users//.platformio/packages/framework-arduinoespressif32/cores/esp32/esp32-hal-gpio.c:286
  #3  0x400e1802:0x3ffb1ac0 in RCSwitch::disableReceive() at .pio/libdeps/esp32dev_rtl_433/rc-switch/src/RCSwitch.cpp:979
  #4  0x400dc705:0x3ffb1ae0 in MQTTtoRF(char*, ArduinoJson::JsonObject&) at main/ZgatewayRF.ino:197
  #5  0x400dd71c:0x3ffb1b70 in receivingMQTT(char*, char*) at main/main.ino:1541
  #6  0x400dd7af:0x3ffb1ef0 in callback(char*, unsigned char*, unsigned int) at main/main.ino:543
  #7  0x401820cf:0x3ffb1f10 in std::_Function_handler<void (char*, unsigned char*, unsigned int), void (*)(char*, unsigned char*, unsigned int)>::_M_invoke(std::_Any_data const&, char*&&, unsigned char*&&, unsigned int&&) at /Users//.platformio/packages/toolchain-xtensa32/xtensa-esp32-elf/include/c++/5.2.0/functional:1871
  #8  0x400de616:0x3ffb1f30 in std::function<void (char*, unsigned char*, unsigned int)>::operator()(char*, unsigned char*, unsigned int) const at .pio/libdeps/esp32dev_rtl_433/PubSubClient/src/PubSubClient.cpp:761
  #9  0x400de77d:0x3ffb1f60 in PubSubClient::loop() at .pio/libdeps/esp32dev_rtl_433/PubSubClient/src/PubSubClient.cpp:761
  #10 0x400ddbf3:0x3ffb1f90 in loop() at main/main.ino:1229
  #11 0x40108519:0x3ffb1fb0 in loopTask(void*) at /Users//.platformio/packages/framework-arduinoespressif32/cores/esp32/main.cpp:37
  #12 0x4008a916:0x3ffb1fd0 in vPortTaskWrapper at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/freertos/port.c:355 (discriminator 1)

Rebooting...
����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������N: 

@1technophile
Copy link
Owner

Thanks

@1technophile 1technophile merged commit 36dfb45 into 1technophile:dev May 16, 2021
@NorthernMan54 NorthernMan54 deleted the patch-1 branch May 16, 2021 01:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants