xcomfortd-go icon indicating copy to clipboard operation
xcomfortd-go copied to clipboard

Multiple simultaneous commands crash addon

Open ChristopherSkarsethstuen opened this issue 2 years ago • 7 comments

I am having problems with the addon crashing when multiple simultaneous commands are sent

Example 1: 7 automations trigger to send current temp from RCT to heating actuators Example 2: Turn on/off all the lights on the first floor (8Devices)

Both will often result in the addon crashing with error: panic: runtime error: slice bounds out of range [1:0]

Log: runtime error.txt

Not sure what causes that, but I've pushed a change in 0.55 that should at least prevent the crash. Something appears to be going wrong, though. Set logging to verbose and see if you can provoke the error again?

karloygard avatar Oct 07 '22 21:10 karloygard

Ah, wrong fix. Issuing new fix shortly.

karloygard avatar Oct 08 '22 14:10 karloygard

Pushed 0.56. Test and report back.

karloygard avatar Oct 08 '22 15:10 karloygard

Seems to work perfect. Thank you for the super fast fix Karl Anders 👍

Should be logging an error; "ignoring unexpected input", can your find that?

karloygard avatar Oct 08 '22 19:10 karloygard

Tried sending alot of commands but cannot find that in the logs Not in regular log or verbose