Welcome to our new forum
All users of the legacy CODESYS Forums, please create a new account at account.codesys.com. But make sure to use the same E-Mail address as in the old Forum. Then your posts will be matched. Close

Error by compiling Information Model

alebrije
2022-05-09
2023-05-02
  • alebrije - 2022-05-09

    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:

                ------ Build started: Application: Device.Application -------
                Typify code...
    

    [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

    Best regards
    Alebrije

     
  • xenox - 2023-03-20

    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

     
  • alebrije - 2023-03-21

    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

     
    • xenox - 2023-03-21

      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
  • dokohler - 2023-05-02

    For me, updating to the latest compiler version in the project settings solved the error.

     
    πŸ‘
    1

Log in to post a comment.