Closed jonathanperret closed 1 week ago
https://github.com/AllYarnsAreBeautiful/ayab-firmware/pull/201 should prevent the firmware from sending empty strings, but it's still not great that the desktop app goes into a zombie state when receiving a well-formed (if empty) message.
As mentioned above this is "fixed" in 1.0.0-beta1
since the firmware no longer sends empty messages. Even though the message handling could be improved in the app, I'm closing this since it can't be easily reproduced anymore.
Environment AYAB software version: 1.0-dev Computer/OS: macOS Sonoma 14.5 Knitting machine: KH-910 AYAB hardware: AYAB shield
Describe the bug When I click the "Tools/Test AYAB Device" menu item, nothing seemingly happens. But all the UI and the menus are grayed out, so all I can do is quit the app.
Additional context
An exception is raised in
communication.py
:I tracked this down to be caused by the firmware I had uploaded having an empty version suffix (i.e. no
-beta1
,-rc6
…). In my case the full version had defaulted to0.0.0
because that was a locally-made development build, but this will also happen when official firmware releases have a full version number without a suffix, e.g.1.0.0
.It turns out the desktop app can't deal with a
testRes
message having no content.