Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Max recursion exceeded in code generation for variable type #127

Open
izonfreak opened this issue May 4, 2023 · 5 comments
Open

Max recursion exceeded in code generation for variable type #127

izonfreak opened this issue May 4, 2023 · 5 comments
Labels

Comments

@izonfreak
Copy link

izonfreak commented May 4, 2023

Hello,

I am trying to compile a node set that uses an information model that has a variable type that reference itself as an optional component e.i. the variable can have a component of itself.

When I run the compiler I get the error "max recursion exceeded. Check model." Because of this error the classes are not generated. The funny thing is that it shows the error as in another property on the variable type and not in the optional recursive component which would be deceiving to most people.

As far as I know this type of recursion is allow inside OPC UA.

@izonfreak izonfreak changed the title Max recursion exceeded Max recursion exceeded in code generation for variable type May 4, 2023
@opcfoundation-org
Copy link
Contributor

opcfoundation-org commented May 4, 2023

It is allowed in OPC UA, however, many technically permitted constructs are problematic for code generators.

The ModelCompiler does not support this kind of recursion and it is not clear at this point if it possible to support but that will require more investigation.

Is this a published companion specification nodeset?

@izonfreak
Copy link
Author

izonfreak commented May 4, 2023

Not yet, it is a release candidate. It is the "OPC UA for Machine Vision - Part 2 AMCM" The problematic variable type node is SEMI_E10SystemStateType.

@opcfoundation-org
Copy link
Contributor

The WG should provide the OPC-F with an RC to see if the ModelCompiler can be updated before to release.

@izonfreak
Copy link
Author

Could you please provide me the contact information to where I need to send the nodeset ?

@izonfreak izonfreak reopened this May 30, 2023
@opcfoundation-org
Copy link
Contributor

Sorry this issue was missed.
Did you find a way to provide the NodeSet?
2.3 should fix the some recursion issue.s

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants