Project configuratuin URI bug
Hi, Andrey!
There is a bug in Beremiz:
-
When I change PLC URI, sometimes PLC connection tool-bar changes in a way shown on the screenshot:
-
When I press disconnect button, I get unhandled exception (see bug report file).
As I understand the bug must be in ProjectController.py.
Best regards, Paul Beltyukov
Comments (8)
-
-
reporter It looks like your attached backtrace is related to non-latin name of task in your resource configuration.
Sorry, It must be my mistake.
-
reporter I'll test it a bit more.
-
reporter Here is the correct one bug_report_Tue_Apr__4_15-41-38_2017.txt
-
You write you get unhandled exception, when you press disconnect button, but the latest attached backtrace is for transfer action.
It looks like _connector in ProjectController is None (PLC is disconnected), but for some reason your buttons are still available for user. Buttons usually are updated according to PLCstatus in ProjectController.UpdateMethodsFromPLCStatus, but if self_connector is None, then PLCstatus is set to "Disconnected".
Your screenshot shows exactly this. PLCstatus is Disconnected, but buttons are still active for some reason.
Sorry. Couldn't reproduce your issue.
-
reporter The bug is not deterministic.
I had to change URI dozens of times before it appeared.
Unfortunately the bug was reproduced by at least three people on Linux and on Windows.
All the time most recent beremiz was used we used.
-
The main question is can you reproduce this on stock and not tainted (I mean without your additional code) Beremiz? If so, what the steps are (even if the bug is not deterministic)?
-
- changed status to invalid
Most likely doesn't affect stock Beremiz
- Log in to comment
Could you reproduce this on stock Beremiz?
It looks like your attached backtrace is related to non-latin name of task in your resource configuration. This is not allowed by standard and is already fixed. Is it?