Kategorie
Bugi

Bug w frameworku Qt

 


Niedawno znalazłem małego buga w frameworku Qt 5.13.0 w pluginie qtserialbus. W momencie gdy klient wysyłał sygnał disconnect do serwera, serwer nie obsługiwał tego sygnału a więc client tak naprawdę nie był rozłączany. W następstwie tego każda kolejna próba połączenia kończyła się niepowodzeniem. Zgłosiłem znajdkę autorowi pluginu i po małej wymianie mejli otrzymałem taką odpowiedż


Hi Piotr

thanks again for your report.

I was finally able to reproduce it. The reason there is no problem with the CAN example is, that there the device is not properly disconnected but rather deleted. Every new connection creates a new device so I didn’t see your bug.

Anyway, the fix is here:

https://codereview.qt-project.org/c/qt/qtserialbus/+/280863

It will go into Qt 5.14.0 hopefully, which is expected quite soon.

If you could test the patch on your machine (by building qtserialbus from source) or at least the next 5.14 snapshot after the patch is merged, that would be super helpful.

Thanks and best regards,

Andre


Nieskromnie się tym chwalę 🙂

Podzespoły na Ceneo.pl