I am having a super weird problem when compiling an information model, I know for sure that this information model works because it works in another computers.
I wanna ask in this forum because i already tried to uninstall and install codesys again but i am having the same issue...
About the ideas that i have, is there the possibility that my compiler broke somehow? that the location of the boot project is messing my compiler?
Attach you can fin the information model, a couple of screenshots of my error.
please let me know if anyone has an idea how to fix this problem because i need it to work with information models.
Here is the error description:
[INFORMATION] Total allocated memory size for code and data: 12288 bytes [INFORMATION] Memory area 0 contains Data, Input, Output, Memory and Nonsafe data: size: 1048576 bytes, highest used address: 12288, largest contiguous memory gap: 1036288 bytes (98 %) [INFORMATION] Memory area 3 contains Code: size: 1048576 bytes, highest used address: 0, largest contiguous memory gap: 1048576 bytes (100 %) [ERROR] Internal error:System.NullReferenceException: Object reference not set to an instance of an object. at CODESYS.OpcUaSymbolPublishing.Domain.LanguageModelProvision.IecVarAccessInformationModelDecorator.TypeDescInformationModelMetadataDecorator.GetIecSignatureContainingMemberVariables(TypeDescUserDef typeDescDut, IAddressSpaceNode asn) at CODESYS.OpcUaSymbolPublishing.Domain.LanguageModelProvision.IecVarAccessInformationModelDecorator.TypeDescInformationModelMetadataDecorator.CreateMetadataForMembers(TypeDescUserDef typeDescDut, IAddressSpaceNode asn) at CODESYS.OpcUaSymbolPublishing.Domain.LanguageModelProvision.IecVarAccessInformationModelDecorator.TypeDescInformationModelMetadataDecorator.CreateMetadataForMembers(TypeDescUserDef typeDescDut, IAddressSpaceNode asn) at CODESYS.OpcUaSymbolPublishing.Domain.LanguageModelProvision.IecVarAccessInformationModelDecorator.TypeDescInformationModelMetadataDecorator.DecorateWithInformationModelMetadata(IIecVarAccessTypeDesc typeDesc, IAddressSpaceNode uaTypeNode) at CODESYS.OpcUaSymbolPublishing.Domain.LanguageModelProvision.IecVarAccessInformationModelDecorator.TypeDescInformationModelMetadataDecorator.CreateMetadataForMembers(TypeDescUserDef typeDescDut, IAddressSpaceNode asn) at CODESYS.OpcUaSymbolPublishing.Domain.LanguageModelProvision.ConfiguredInstancesLmProvider.AddInstanceToRoot(BranchTreeNode rootNode, PublishedSymbolInfo symbolInfo) at CODESYS.OpcUaSymbolPublishing.Domain.LanguageModelProvision.ConfiguredInstancesLmProvider.AddInstancesToRoot(BranchTreeNode rootNode) at CODESYS.OpcUaSymbolPublishing.Domain.LanguageModelProvision.LanguageModelCreationService.ProvideLateLanguageModel(OpcUaSymbolPublishingObject publishingObject, ILanguageModelBuilder3 lmb, IList1 languageModelList, Func1 lmFactory) at CODESYS.OpcUaSymbolPublishing.Application.EventObserver.CompileService_OnAddLateLanguageModel(Object sender, AddLanguageModelEventArgs e) at _3S.CoDeSys.Core.LanguageModel.AddLanguageModelEventHandler.Invoke(Object sender, AddLanguageModelEventArgs e) at _3S.CoDeSys.LanguageModelManager.LanguageModelManagerConsolidated.OnAddLateLanguageModel(AddLanguageModelEventArgs e) at ..() at ..() at ..()
Build complete -- 1 errors, 0 warnings : No download possible
The project is empty but i dont get the error of 100% allocated memory
Late to the Party, but did you find a fix for the Problem?
I have a similiar issue with "Internal error:System.NullReferenceException: Object reference not set to an instance of an object. at" just with other locations(?) afterwards
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
well there is a temporary fix, in your information modell you need to take out all the enums (some how are not yet supported by codesys) and also try to use as much as objectype as possible. try it out and let me know if this also fixes your problem!
Regards
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I deleted a Visulaization and an UML class-diagram that I couldn't get to run and messed around with some libraries, but I have no clue what really fixed it for me.
Thanks anyway for your quick reply!
π
1
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello Everyone,
I am having a super weird problem when compiling an information model, I know for sure that this information model works because it works in another computers.
I wanna ask in this forum because i already tried to uninstall and install codesys again but i am having the same issue...
About the ideas that i have, is there the possibility that my compiler broke somehow? that the location of the boot project is messing my compiler?
Attach you can fin the information model, a couple of screenshots of my error.
please let me know if anyone has an idea how to fix this problem because i need it to work with information models.
Here is the error description:
[INFORMATION] Total allocated memory size for code and data: 12288 bytes
[INFORMATION] Memory area 0 contains Data, Input, Output, Memory and Nonsafe data: size: 1048576 bytes, highest used address: 12288, largest contiguous memory gap: 1036288 bytes (98 %)
[INFORMATION] Memory area 3 contains Code: size: 1048576 bytes, highest used address: 0, largest contiguous memory gap: 1048576 bytes (100 %)
[ERROR] Internal error:System.NullReferenceException: Object reference not set to an instance of an object. at CODESYS.OpcUaSymbolPublishing.Domain.LanguageModelProvision.IecVarAccessInformationModelDecorator.TypeDescInformationModelMetadataDecorator.GetIecSignatureContainingMemberVariables(TypeDescUserDef typeDescDut, IAddressSpaceNode asn) at CODESYS.OpcUaSymbolPublishing.Domain.LanguageModelProvision.IecVarAccessInformationModelDecorator.TypeDescInformationModelMetadataDecorator.CreateMetadataForMembers(TypeDescUserDef typeDescDut, IAddressSpaceNode asn) at CODESYS.OpcUaSymbolPublishing.Domain.LanguageModelProvision.IecVarAccessInformationModelDecorator.TypeDescInformationModelMetadataDecorator.CreateMetadataForMembers(TypeDescUserDef typeDescDut, IAddressSpaceNode asn) at CODESYS.OpcUaSymbolPublishing.Domain.LanguageModelProvision.IecVarAccessInformationModelDecorator.TypeDescInformationModelMetadataDecorator.DecorateWithInformationModelMetadata(IIecVarAccessTypeDesc typeDesc, IAddressSpaceNode uaTypeNode) at CODESYS.OpcUaSymbolPublishing.Domain.LanguageModelProvision.IecVarAccessInformationModelDecorator.TypeDescInformationModelMetadataDecorator.CreateMetadataForMembers(TypeDescUserDef typeDescDut, IAddressSpaceNode asn) at CODESYS.OpcUaSymbolPublishing.Domain.LanguageModelProvision.ConfiguredInstancesLmProvider.AddInstanceToRoot(BranchTreeNode rootNode, PublishedSymbolInfo symbolInfo) at CODESYS.OpcUaSymbolPublishing.Domain.LanguageModelProvision.ConfiguredInstancesLmProvider.AddInstancesToRoot(BranchTreeNode rootNode) at CODESYS.OpcUaSymbolPublishing.Domain.LanguageModelProvision.LanguageModelCreationService.ProvideLateLanguageModel(OpcUaSymbolPublishingObject publishingObject, ILanguageModelBuilder3 lmb, IList
1 languageModelList, Func
1 lmFactory) at CODESYS.OpcUaSymbolPublishing.Application.EventObserver.CompileService_OnAddLateLanguageModel(Object sender, AddLanguageModelEventArgs e) at _3S.CoDeSys.Core.LanguageModel.AddLanguageModelEventHandler.Invoke(Object sender, AddLanguageModelEventArgs e) at _3S.CoDeSys.LanguageModelManager.LanguageModelManagerConsolidated.OnAddLateLanguageModel(AddLanguageModelEventArgs e) at ..() at ..() at ..()Build complete -- 1 errors, 0 warnings : No download possible
The project is empty but i dont get the error of 100% allocated memory
Best regards
Alebrije
more posts ...
Late to the Party, but did you find a fix for the Problem?
I have a similiar issue with "Internal error:System.NullReferenceException: Object reference not set to an instance of an object. at" just with other locations(?) afterwards
Hi Xenox,
well there is a temporary fix, in your information modell you need to take out all the enums (some how are not yet supported by codesys) and also try to use as much as objectype as possible. try it out and let me know if this also fixes your problem!
Regards
I deleted a Visulaization and an UML class-diagram that I couldn't get to run and messed around with some libraries, but I have no clue what really fixed it for me.
Thanks anyway for your quick reply!
For me, updating to the latest compiler version in the project settings solved the error.