{"action":"created","issue":{"url":"https://api.github.com/repos/letscontrolit/ESPEasy/issues/1625","repository_url":"https://api.github.com/repos/letscontrolit/ESPEasy","labels_url":"https://api.github.com/repos/letscontrolit/ESPEasy/issues/1625/labels{/name}","comments_url":"https://api.github.com/repos/letscontrolit/ESPEasy/issues/1625/comments","events_url":"https://api.github.com/repos/letscontrolit/ESPEasy/issues/1625/events","html_url":"https://github.com/letscontrolit/ESPEasy/issues/1625","id":347333652,"node_id":"MDU6SXNzdWUzNDczMzM2NTI=","number":1625,"title":"[OpenHAB MQTT] Crash due to yield panic","user":{"login":"TD-er","id":3751318,"node_id":"MDQ6VXNlcjM3NTEzMTg=","avatar_url":"https://avatars3.githubusercontent.com/u/3751318?v=4","gravatar_id":"","url":"https://api.github.com/users/TD-er","html_url":"https://github.com/TD-er","followers_url":"https://api.github.com/users/TD-er/followers","following_url":"https://api.github.com/users/TD-er/following{/other_user}","gists_url":"https://api.github.com/users/TD-er/gists{/gist_id}","starred_url":"https://api.github.com/users/TD-er/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TD-er/subscriptions","organizations_url":"https://api.github.com/users/TD-er/orgs","repos_url":"https://api.github.com/users/TD-er/repos","events_url":"https://api.github.com/users/TD-er/events{/privacy}","received_events_url":"https://api.github.com/users/TD-er/received_events","type":"User","site_admin":false},"labels":[{"id":587074027,"node_id":"MDU6TGFiZWw1ODcwNzQwMjc=","url":"https://api.github.com/repos/letscontrolit/ESPEasy/labels/Category:%20Controller","name":"Category: Controller","color":"5319e7","default":false},{"id":855470727,"node_id":"MDU6TGFiZWw4NTU0NzA3Mjc=","url":"https://api.github.com/repos/letscontrolit/ESPEasy/labels/Category:%20Stabiliy","name":"Category: Stabiliy","color":"5319e7","default":false},{"id":257820027,"node_id":"MDU6TGFiZWwyNTc4MjAwMjc=","url":"https://api.github.com/repos/letscontrolit/ESPEasy/labels/Status:%20In%20Progress","name":"Status: In Progress","color":"c2e0c6","default":false},{"id":257820023,"node_id":"MDU6TGFiZWwyNTc4MjAwMjM=","url":"https://api.github.com/repos/letscontrolit/ESPEasy/labels/Type:%20Bug","name":"Type: Bug","color":"cc4543","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":41,"created_at":"2018-08-03T09:54:21Z","updated_at":"2018-08-07T19:45:30Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"As reported here: https://github.com/letscontrolit/ESPEasy/issues/1574#issuecomment-410065300\r\n\r\nSuggested fix:\r\nMake the callback function just register handling of the MQTT as a new job in the scheduler.\r\nThis will result in all calls made during processing of the MQTT message being called from the `loop()` and thus be allowed to call `yield()` or `delay()`\r\n\r\n> It's due to a panic reboot. Happened after a MQTT publish to my Openhab home automation system. Here's the log:\r\n\r\n\r\n```\r\n11514348 : NEXTION075 : code: |s,i16,sOff\r\n11514353 : EVENT: NEXTION#idx=16.00\r\n11514394 : ACT  : Publish /ESPEZ_Laundry/NEXTION/idx,16\r\n11514408 : Command: publish\r\n\r\nPanic C:\\Users\\Tom\\AppData\\Local\\Arduino15\\packages\\esp8266\\\r\nhardware\\esp8266\\2.4.1\\cores\\esp8266\\core_esp8266_main.cpp:99 __yield\r\n\r\nctx: cont \r\nsp: 3fff3e00 end: 3fff4750 offset: 01b0\r\n\r\n>>>stack>>>\r\n3fff3fb0:  00000001 00000001 3fff40f4 3fff2419  \r\n3fff3fc0:  00000001 00000001 3fff899c 4025fab8  \r\n3fff3fd0:  00000001 00000001 3fff899c 40241651  \r\n3fff3fe0:  00000c01 00000000 00000000 40100200  \r\n3fff3ff0:  00000000 00000010 00000000 00000000  \r\n3fff4000:  00000000 00000000 3fff8b14 0000000f  \r\n3fff4010:  00000000 3fff8b2c 0000000f 00000000  \r\n3fff4020:  3fff8b44 0000000f 00000000 3fff8b5c  \r\n3fff4030:  0000000f 00000000 3fff8b74 0000000f  \r\n3fff4040:  00000000 00000000 6c627550 00687369  \r\n3fff4050:  00000046 3fff4110 0000000d 402173d7  \r\n3fff4060:  00000600 4c5f1800 00000000 4e2f7901  \r\n3fff4070:  00000000 00000010 00000000 00000000  \r\n3fff4080:  00000000 00000000 00000000 00000000  \r\n3fff4090:  00000000 00000000 50003600 4c5f5a45  \r\n3fff40a0:  646e7561 4e2f7972 49545845 692f4e4f  \r\n3fff40b0:  00007864 00000000 00000000 00000000  \r\n3fff40c0:  00000000 00000000 0000032d 4025ea7b  \r\n3fff40d0:  312c7864 00000036 3fff41dc 4025eaad  \r\n3fff40e0:  3fff41dc 00000000 3fff26ae 00000006  \r\n3fff40f0:  00000001 3fff8afc 0000000f 00000000  \r\n3fff4100:  00000001 00000001 00000001 40241dd5  \r\n3fff4110:  00000c00 00000000 00000000 3fff5300  \r\n3fff4120:  00000000 00000010 00000000 00000000  \r\n3fff4130:  00000000 00000000 3fff8a34 0000000f  \r\n3fff4140:  00000000 3fff8a4c 0000000f 00000000  \r\n3fff4150:  3fff8a7c 0000000f 00000000 3fff8a94  \r\n3fff4160:  0000000f 00000000 3fff8aac 0000000f  \r\n3fff4170:  00000000 00000000 4e5b2c78 49545845  \r\n3fff4180:  69234e4f 0d5d7864 6520200a 6669646e  \r\n3fff4190:  20200a0d 5b206669 5458454e 234e4f49  \r\n3fff41a0:  5d786469 30353d3e 2f202030 6f54202f  \r\n3fff41b0:  20686375 6e657645 40107b10 00000000  \r\n3fff41c0:  000003e8 00000000 3fff87fc 3fff883c  \r\n3fff41d0:  00000000 00000000 00000000 3fff8ac4  \r\n3fff41e0:  0000002f 00000025 3fff89d4 0000002f  \r\n3fff41f0:  00000025 3fff899c 0000002f 00000025  \r\n3fff4200:  3fff87e4 0000000f 00000000 3fff8964  \r\n3fff4210:  0000002f 00000025 3fff891c 0000003f  \r\n3fff4220:  00000025 3fff8a0c 0000001f 0000001b  \r\n3fff4230:  00000001 00000001 00000001 00000001  \r\n3fff4240:  3fff42d0 00000010 3fff4280 00000040  \r\n3fff4250:  00000000 3fff2419 3fff428c 4025ebb0  \r\n3fff4260:  3fff0031 3fff2419 00000001 00afb1f1  \r\n3fff4270:  3fff42d0 3fff2419 00000001 40241f93  \r\n3fff4280:  00000000 00000000 00000000 3fff87cc  \r\n3fff4290:  0000000f 0000000a 3fff879c 0000000f  \r\n3fff42a0:  0000000a 00000030 3fff42d0 4025f058  \r\n3fff42b0:  3fff259e 00000000 00000000 00000005  \r\n3fff42c0:  00000010 00000004 00000000 40242b55  \r\n3fff42d0:  3fff8774 0000001f 00000011 4010020c  \r\n3fff42e0:  3fff23c4 3fff0e58 3fff4310 40100690  \r\n3fff42f0:  00000000 00000000 00000000 00000011  \r\n3fff4300:  3fff1b68 3fff26a8 3fff4610 40244435  \r\n3fff4310:  00000000 00000000 00000000 00000011  \r\n3fff4320:  3fff1b68 3fff0e58 3fff4610 40264db4  \r\n3fff4330:  ae4f0759 3fff0e58 3fff4560 40262844  \r\n3fff4340:  3fff0030 3fff0e58 3fff45a8 00000011  \r\n3fff4350:  3fff1b68 3fff0e58 3fff4610 4024a0c7  \r\n3fff4360:  692c737c 732c3631 0066664f 0083126e  \r\n3fff4370:  3fff5ccc 3fff4670 3fff4478 00000030  \r\n3fff4380:  4021515a 3fff4670 3fff64b4 3fff645c  \r\n3fff4390:  0000072f 0000002f 00000000 00000089  \r\n3fff43a0:  00000000 00000000 0000001f 40104ec9  \r\n3fff43b0:  4000050c 3fff1b00 3fff4470 00000030  \r\n3fff43c0:  40000f83 00000030 00000000 ffffffff  \r\n3fff43d0:  40285942 00000023 3fffbff8 00000e71  \r\n3fff43e0:  000006b0 00000e70 00000001 3fff8a78  \r\n3fff43f0:  000000c2 3fff64dc 00000001 3fff4b5c  \r\n3fff4400:  3fff3640 00000000 00007388 00000030  \r\n3fff4410:  40103e13 3ffef740 50800000 4000050c  \r\n3fff4420:  3fffc278 40101f8c 3fffc200 00000022  \r\n3fff4430:  3fff4440 00000023 3fff84fc 40214afa  \r\n3fff4440:  ffffe660 00000020 00000000 4010053d  \r\n3fff4450:  401004ba 00000023 00000003 3fff4490  \r\n3fff4460:  3fff1b00 3fff4468 3fff4670 40214bbc  \r\n3fff4470:  3fff4470 3fff4470 3fff4478 3fff4478  \r\n3fff4480:  3fff4480 3fff4480 3fff4488 3fff4488  \r\n3fff4490:  3fff4490 3fff4490 3fff4498 3fff4498  \r\n3fff44a0:  3fff44a0 3fff44a0 3fff44a8 3fff44a8  \r\n3fff44b0:  3fff44b0 3fff44b0 3fff44b8 401071ee  \r\n3fff44c0:  3fff44c0 3fff44c0 3fff4610 40210069  \r\n3fff44d0:  3fff44d0 3fff44d0 3fff44d8 40244d60  \r\n3fff44e0:  3fff44e0 3fff44e0 3fff44e8 3fff44e8  \r\n3fff44f0:  3fff44f0 3fff44f0 3fff44f8 3fff44f8  \r\n3fff4500:  00000000 000006c0 000006c0 4010020c  \r\n3fff4510:  3fff3640 000006c0 000006c0 00000046  \r\n3fff4520:  3fff3648 00000000 3fff16d0 40285968  \r\n3fff4530:  00000014 000035d8 000006bb 40207b90  \r\n3fff4540:  00000010 00000010 3fff178c 4028f34f  \r\n3fff4550:  4025d1f4 3fff4610 3fff178c 4025ebb0  \r\n3fff4560:  00000000 00000000 00000000 4020b47c  \r\n3fff4570:  3fff3640 000006bb 000006bb 4010020c  \r\n3fff4580:  00000004 3fff4610 3fff45b0 40100690  \r\n3fff4590:  3fff875c 0000000f 0000000b 3fff8744  \r\n3fff45a0:  0000000f 00000000 3fff8r‚)ŠLþ\b\r\nôŒ\r\nJE0¸\r\n†´ˆˆ9!9¯„ù„!\b\bÁÎ\bì)ÿ18Áù526 : INIT : Free RAM:21328\r\n527 : INIT : I2C\r\n527 : INIT : SPI not enabled\r\n541 : NEXTION075 : serial pin config RX:13, TX:15, Plugin Enabled\r\n543 : NEXTION075 : Using software serial\r\n599 : INFO : Plugins: 71 [Normal] [Testing] (ESP82xx Core 2_4_1, NONOS SDK 2.2.1(cfd48f3), LWIP: 2.0.3)\r\n696 : EVENT: System#Wake\r\n745 : WIFI : Set WiFi to STA\r\n```"},"comment":{"url":"https://api.github.com/repos/letscontrolit/ESPEasy/issues/comments/411178453","html_url":"https://github.com/letscontrolit/ESPEasy/issues/1625#issuecomment-411178453","issue_url":"https://api.github.com/repos/letscontrolit/ESPEasy/issues/1625","id":411178453,"node_id":"MDEyOklzc3VlQ29tbWVudDQxMTE3ODQ1Mw==","user":{"login":"thomastech","id":10354989,"node_id":"MDQ6VXNlcjEwMzU0OTg5","avatar_url":"https://avatars2.githubusercontent.com/u/10354989?v=4","gravatar_id":"","url":"https://api.github.com/users/thomastech","html_url":"https://github.com/thomastech","followers_url":"https://api.github.com/users/thomastech/followers","following_url":"https://api.github.com/users/thomastech/following{/other_user}","gists_url":"https://api.github.com/users/thomastech/gists{/gist_id}","starred_url":"https://api.github.com/users/thomastech/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thomastech/subscriptions","organizations_url":"https://api.github.com/users/thomastech/orgs","repos_url":"https://api.github.com/users/thomastech/repos","events_url":"https://api.github.com/users/thomastech/events{/privacy}","received_events_url":"https://api.github.com/users/thomastech/received_events","type":"User","site_admin":false},"created_at":"2018-08-07T19:45:30Z","updated_at":"2018-08-07T19:45:30Z","author_association":"CONTRIBUTOR","body":"Looks like we're all suffering in similar ways;  Fixing software bugs is a welcome distraction.\r\n\r\nI've flashed with your ESP_Easy_mega-20180804-11-g7783cf4_test_ESP8266_4096.bin. It reverted to AP mode and I had to reload config and rules. The \"20180804\" date in the name seems odd, so hopefully I used the correct file.\r\n\r\nI'm doing the usual testing. If there's anything special you want me to do then let me know.\r\n\r\n- Thomas\r\n\r\n"}}
{"actor":{"display_login":"thomastech"}}