Project configuratuin URI bug

Issue #24 invalid
Павел Бельтюков created an issue

Hi, Andrey!

There is a bug in Beremiz:

  1. When I change PLC URI, sometimes PLC connection tool-bar changes in a way shown on the screenshot: Beremiz31.png

  2. 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)

  1. Andrey Skvortsov

    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?

  2. Павел Бельтюков 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.

  3. Andrey Skvortsov

    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.

  4. Павел Бельтюков 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.

  5. Andrey Skvortsov

    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)?

  6. Log in to comment