Opened 6 years ago

Closed 5 years ago

#5478 closed defect (fixed)

Failed instantiation of world.gravityArrowHead.r_shape

Reported by: dariomangoni@… Owned by: Per Östlund
Priority: low Milestone: Future
Component: Frontend Version: v1.14.0-dev-nightly
Keywords: Cc:

Description

I cannot give a proper name to this issue, but after opening OMEdit, during the opening of the first script I always got (with any version of OpenModelica):

[3] 10:29:44 Translation Error
Internal error - Types.typeOfValue failed: fail()

[4] 10:29:44 Translation Error
Internal error - Types.typeOfValue failed: record 
    T = fail(),
    w = fail()
end ;

[5] 10:29:44 Translation Error
[Modelica.Utilities.Internal: 24:5-26:113]: Instantiation of array component: world.gravityArrowHead.r_shape failed because index modification: world.gravityArrowHead(r_shape[]= = <EMPTY(scope: #graphicsExp#, name: Modelica.Math.Vectors.normalize({0.0, -1.0, 0.0}, 1e-013), ty: Real[3])> * 0.2) is invalid.
        Array component: world.gravityArrowHead.r_shape[] has more dimensions than binding  = <EMPTY(scope: #graphicsExp#, name: Modelica.Math.Vectors.normalize({0.0, -1.0, 0.0}, 1e-013), ty: Real[3])> * 0.2.

[6] 10:30:56 Translation Error
Internal error - Types.typeOfValue failed: fail()

[7] 10:30:56 Translation Error
Internal error - Types.typeOfValue failed: record 
    T = fail(),
    w = fail()
end ;

[8] 10:30:56 Translation Error
[Modelica.Utilities.Internal: 24:5-26:113]: Instantiation of array component: world.gravityArrowHead.r_shape failed because index modification: world.gravityArrowHead(r_shape[]= = <EMPTY(scope: #graphicsExp#, name: Modelica.Math.Vectors.normalize({0.0, -1.0, 0.0}, 1e-013), ty: Real[3])> * 0.2) is invalid.
        Array component: world.gravityArrowHead.r_shape[] has more dimensions than binding  = <EMPTY(scope: #graphicsExp#, name: Modelica.Math.Vectors.normalize({0.0, -1.0, 0.0}, 1e-013), ty: Real[3])> * 0.2.

Change History (2)

comment:1 by Adeel Asghar, 6 years ago

Component: OMEditFrontend
Owner: changed from Adeel Asghar to Per Östlund
Status: newassigned

comment:2 by dariomangoni@…, 5 years ago

Resolution: fixed
Status: assignedclosed

The issue does not show up anymore!

Note: See TracTickets for help on using tickets.