Skip to content
This repository was archived by the owner on Mar 25, 2025. It is now read-only.
This repository was archived by the owner on Mar 25, 2025. It is now read-only.

[BUG] TcoInspector.normalizeRetries() #535

Closed

Description

@KrisztianOlah

Describe the bug
NormalizeRetries when called on 6 inspectors causes the TC compiler to take ages to compile, however, calling them on 4 or less inspectors don't seem to make much of an impact on the compile time.
This behaviour makes use unfeasible during the development phase or at all if updates are likely. It is of particular concern if multiple instances of such evaluators are required. Can be avoided by splitting inspections into separate evaluators, but then normalization might not take place correctly.

To Reproduce
Steps to reproduce the behavior:

  1. Set up an evaluator with 6 different inspectors
  2. Compile and time with stopwatch

Expected behavior
A slight increase in compile time, particularly when most objects are already compiled.

Screenshots
image

Desktop:

  • OS: Win 11 Pro 21H2 22000.1098
  • Microsoft Visual Studio Professional 2019 Version 16.11.17
  • TwinCAT3 4024.22

Activity

  1. added
    bug
    question
    on Oct 18, 2022
  2. PTKu commented on Oct 18, 2022

    @PTKu
    Member

    Should we report this to Beckohff :)? or rather CoDeSys?
    @kuh0005 did you have similar issue, or maybe it is something particular project/configuration related?
    Will have a look at the normalization method if I can spot something.

  3. KrisztianOlah commented on Oct 18, 2022

    @KrisztianOlah
    CollaboratorAuthor

    I think so, when Blazej showed it to me I added them to all my multiple inspections then I started compiling and went for lunch when I came back it was still compiling/hanging. I have a pair of 6 and a pair of 4 inspectors on my last station.

  4. PTKu commented on Jan 10, 2023

    @PTKu
    Member

    Similar issue was discovered by @mhareznik
    @mhareznik don't forget to report pls

  5. mhareznik commented on Jan 10, 2023

    @mhareznik
    Collaborator

    Yes, I'm having a similar issue, in my case I'm calling Inspect method 12 times, without NormalizeRetries :
    image
    This also leads to a never-ending (very long) compile time.

  6. KrisztianOlah commented on Jan 16, 2023

    @KrisztianOlah
    CollaboratorAuthor

    Current workaround is to split Inspects into a group of maximum 5 and into multiple steps in sequence.

  7. locked and limited conversation to collaborators on Feb 13, 2023
  8. converted this issue into a discussion #581 on Feb 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugknown-issuequestion

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions