Code Monkey home page Code Monkey logo

Comments (11)

martin-ger avatar martin-ger commented on May 24, 2024 1

Maybe a stack issue - could you try to replace the _onData function in uMQTTBroker.cpp with this version:

   void uMQTTBroker::_onData(uint32_t *args, const char* topic, uint32_t topic_len, const char *data, uint32_t length) {
	char *topic_str;
	
	if ((topic_str = (char *)malloc(topic_len+1)) == NULL)
	  return;

	os_memcpy(topic_str, topic, topic_len);
	topic_str[topic_len] = '\0';
	TheBroker->onData((String)topic_str, data, length);
	free(topic_str);
    }

from umqttbroker.

andrewgierens avatar andrewgierens commented on May 24, 2024

Same-ish error

Ill keep looking on my end.

Exception 9: LoadStoreAlignmentCause: Load or store to an unaligned address
PC: 0x40209292: uMQTTBroker::_onData(unsigned int*, char const*, unsigned int, char const*, unsigned int) at C:\Users\agierens\Documents\Arduino\libraries\uMQTTBroker-master\src\uMQTTBroker.cpp line 33
EXCVADDR: 0x666e6f6f

Decoding stack results
0x40209282: uMQTTBroker::_onData(unsigned int*, char const*, unsigned int, char const*, unsigned int) at C:\Users\agierens\Documents\Arduino\libraries\uMQTTBroker-master\src\uMQTTBroker.cpp line 32
0x40209254: uMQTTBroker::_onData(unsigned int*, char const*, unsigned int, char const*, unsigned int) at C:\Users\agierens\Documents\Arduino\libraries\uMQTTBroker-master\src\uMQTTBroker.cpp line 25
0x40209274: uMQTTBroker::_onData(unsigned int*, char const*, unsigned int, char const*, unsigned int) at C:\Users\agierens\Documents\Arduino\libraries\uMQTTBroker-master\src\uMQTTBroker.cpp line 28
0x4021c67c: ethernet_output at netif/ethernet.c line 312
0x40101238: umm_poison_free_fl(void*, char const*, int) at C:\Users\agierens\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.7.4\cores\esp8266\umm_malloc/umm_local.c line 149
0x40209254: uMQTTBroker::_onData(unsigned int*, char const*, unsigned int, char const*, unsigned int) at C:\Users\agierens\Documents\Arduino\libraries\uMQTTBroker-master\src\uMQTTBroker.cpp line 25
0x402367f0: publish_topic at C:\Users\agierens\Documents\Arduino\libraries\uMQTTBroker-master\src\mqtt_server.c line 65
0x40100f49: check_poison_neighbors(uint16_t) at C:\Users\agierens\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.7.4\cores\esp8266\umm_malloc/umm_local.c line 71
0x40101005: umm_malloc_core(size_t) at C:\Users\agierens\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.7.4\cores\esp8266\umm_malloc\umm_malloc.cpp line 458
0x402378cc: find_topic at C:\Users\agierens\Documents\Arduino\libraries\uMQTTBroker-master\src\mqtt_topiclist.c line 73
0x402367b4: publish_topic at C:\Users\agierens\Documents\Arduino\libraries\uMQTTBroker-master\src\mqtt_server.c line 58
0x4023751c: MQTT_ClientCon_recv_cb at C:\Users\agierens\Documents\Arduino\libraries\uMQTTBroker-master\src\mqtt_server.c line 351

from umqttbroker.

martin-ger avatar martin-ger commented on May 24, 2024

Seems to be in the copying of the topic string. Anything special with your topic str?

from umqttbroker.

andrewgierens avatar andrewgierens commented on May 24, 2024

Nope, I just call subscribe("configure")

from umqttbroker.

pottendo avatar pottendo commented on May 24, 2024

hi Andrew,
which tool are you using to decode the stack?
I have the some tool 'ESP decoder' (sorry, don't have the name at hand now) which seems to work for esp32, but maybe not usable for esp8266 stacks.
thanks in advance,
pottendo

from umqttbroker.

andrewgierens avatar andrewgierens commented on May 24, 2024

I use https://github.com/me-no-dev/EspExceptionDecoder

Seems to look to work for ESP8266? Let me know if you want anymore info, sorry just a bit confused by your question

from umqttbroker.

navdeepssidhu avatar navdeepssidhu commented on May 24, 2024

Hi,
i am also facing the same issue, could you please share how you resolved the issue?
thanks

from umqttbroker.

pottendo avatar pottendo commented on May 24, 2024

from umqttbroker.

navdeepssidhu avatar navdeepssidhu commented on May 24, 2024

Thanks for the suggestion. I am interested in ESP broker (connected to cloud through GSM module) and would like to connect couple of Tasmota devices. Any help would be appreciated.
Thanks

from umqttbroker.

pottendo avatar pottendo commented on May 24, 2024

from umqttbroker.

VovanPitersky avatar VovanPitersky commented on May 24, 2024

Hi,
i am also facing the same issue, could you please share how you resolved the issue?
thanks

Hi,
i am also facing the same issue, could you please share how you resolved the issue?
thanks )))))

from umqttbroker.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.