Koenkk / zigbee2mqtt

Zigbee 🐝 to MQTT bridge 🌉, get rid of your proprietary Zigbee bridges 🔨
https://www.zigbee2mqtt.io
GNU General Public License v3.0
12.16k stars 1.68k forks source link

Zigbee2Mqtt crashes once in a while #22270

Open UBHC opened 7 months ago

UBHC commented 7 months ago

What happened?

I use Windows 11 and my application has been developed by myself in C# using some NuGet modules as an example to have a MQTT server. I have done a little program to verify if zigbee2mqtt has died in order to launch it again. But this issues cause an interruption of service. Thus, I have downloaded como0com and I have developed a little program to connect to a CONBEE II dongle in one side and zigbee2mqtt in the other. The little program read and write messages in both directions. Then, I have seen CONBEE II was unexpectedly close due to a crash in my program when reading available number of bytes in reception buffer because of the CONBEE II serial port was closed, but my program doesn't close any serial port before the exit point after typing ESC. However, I have programed an Open before using the serial port of CONBEE II in order to avoid it were closed when it is going to be used and I think the problem is missing. I think the dongle closed the port when certain circumstances arrive. I have then increase the four buffer to 16384 bytes, although I don't know if this las measure is useful.

What did you expect to happen?

I haven't seen your code. I suppose yo can write a serial port open in any place according to the structure of zigbee2mqtt.

How to reproduce it (minimal and precise)

It is only a question of time (in my system).

Zigbee2MQTT version

1.36.0

Adapter firmware version

Last in deconz ftp site

Adapter

CONBEE II

Setup

EXE from surveillance EXE

Debug log

No response

github-actions[bot] commented 4 weeks ago

This issue is stale because it has been open 180 days with no activity. Remove stale label or comment or this will be closed in 30 days