Opened 9 years ago

Closed 7 years ago

#3627 closed defect (fixed)

Mac OMEdit Crashes

Reported by: Adam Dershowitz Owned by: Adrian Pop
Priority: high Milestone: Future
Component: Frontend Version:
Keywords: Cc: Adrian Pop, Per Östlund

Description

I was looking at this ticket: https://trac.openmodelica.org/OpenModelica/ticket/3625 and attempting to recreate the bug. I can load KeyWordIO and TestKeyWordIO, and I can run TestKeyWordIO.RLOn. But, if I try to run RLOn_io I immediately get a Crash Report window. I get the same thing, if I just click instantiate. I have not attached the sample files, as they are already attached to ticket 3625.
If I instantiate the end of omeditcommunication.log
shows:

getNthConnection(TestKeyWordIO.RLOn, 5) 18:27:32:656
{constantvoltage1.p,idealclosingswitchOn.p, ""} 18:27:32:657
Elapsed Time :: 0.001 secs

getNthConnectionAnnotation(TestKeyWordIO.RLOn, 5) 18:27:32:658
{Line(true, {0.0, 0.0}, 0, {{-80.0, 20.0}, {-80.0, 20.3571}, {-60.0, 20.3571}, {-60.0, 20.0}}, {0, 0, 0}, LinePattern.Solid, 0.25, {Arrow.None, Arrow.None}, 3, Smooth.None)} 18:27:32:663
Elapsed Time :: 0.005 secs

getNthConnection(TestKeyWordIO.RLOn, 6) 18:27:32:665
{booleanstep1.y,idealclosingswitchOn.control, ""} 18:27:32:665
Elapsed Time :: 0.001 secs

getNthConnectionAnnotation(TestKeyWordIO.RLOn, 6) 18:27:32:667
{Line(true, {0.0, 0.0}, 0, {{-59, 50}, {-50, 50}, {-50, 27}}, {255, 0, 255}, LinePattern.Solid, 0.25, {Arrow.None, Arrow.None}, 3, Smooth.None)} 18:27:32:671
Elapsed Time :: 0.005 secs

getConnectionCount(TestKeyWordIO.RLOn_io) 18:27:32:673
0 18:27:32:673
Elapsed Time :: 0 secs

getNamedAnnotation(TestKeyWordIO.RLOn_io, preferredView) 18:27:32:695
{} 18:27:32:695
Elapsed Time :: 0 secs

instantiateModel(TestKeyWordIO.RLOn_io) 18:28:03:283
adershowitzMBP15:Scilab_Modelica adershowitz$ tail -n 80 /var/folders/s4/0j3cshj161126ygbpbzsdkmd4h24dl/T/OpenModelica_adershowitz/OMEdit/omeditcommunication.log 
{} 18:27:32:529
Elapsed Time :: 0 secs

getDiagramAnnotation(Modelica.Blocks.Interfaces.partialBooleanSource) 18:27:32:530
{-100.0,-100.0,100.0,100.0,true,0.1,2.0,2.0,{Polygon(true, {0.0, 0.0}, 0, {95, 95, 95}, {95, 95, 95}, LinePattern.Solid, FillPattern.Solid, 0.25, {{-70, 92}, {-76, 70}, {-64, 70}, {-70, 92}}, Smooth.None), Line(true, {0.0, 0.0}, 0, {{-70, 70}, {-70, -88}}, {95, 95, 95}, LinePattern.Solid, 0.25, {Arrow.None, Arrow.None}, 3, Smooth.None), Line(true, {0.0, 0.0}, 0, {{-90, -70}, {68, -70}}, {95, 95, 95}, LinePattern.Solid, 0.25, {Arrow.None, Arrow.None}, 3, Smooth.None), Polygon(true, {0.0, 0.0}, 0, {95, 95, 95}, {95, 95, 95}, LinePattern.Solid, FillPattern.Solid, 0.25, {{90, -70}, {68, -64}, {68, -76}, {90, -70}}, Smooth.None), Text(true, {0.0, 0.0}, 0, {0, 0, 0}, {0, 0, 0}, LinePattern.Solid, FillPattern.None, 0.25, {{54, -80}, {106, -92}}, "time", 0, TextAlignment.Center), Text(true, {0.0, 0.0}, 0, {0, 0, 0}, {0, 0, 0}, LinePattern.Solid, FillPattern.None, 0.25, {{-64, 92}, {-46, 74}}, "y", 0, TextAlignment.Center)}} 18:27:32:544
Elapsed Time :: 0.014 secs

getDiagramAnnotation(Modelica.Blocks.Sources.BooleanStep) 18:27:32:550
{-100.0,-100.0,100.0,100.0,false,0.1,2.0,2.0,{Line(true, {0.0, 0.0}, 0, {{-80, -70}, {0, -70}, {0, 50}, {80, 50}}, {0, 0, 255}, LinePattern.Solid, 0.5, {Arrow.None, Arrow.None}, 3, Smooth.None), Text(true, {0.0, 0.0}, 0, {0, 0, 0}, {0, 0, 0}, LinePattern.Solid, FillPattern.None, 0.25, {{-15, -74}, {20, -82}}, "startTime", 0, TextAlignment.Center), Polygon(true, {0.0, 0.0}, 0, {95, 95, 95}, {95, 95, 95}, LinePattern.Solid, FillPattern.Solid, 0.25, {{2, 50}, {-80, 50}, {2, 50}}, Smooth.None), Text(true, {0.0, 0.0}, 0, {0, 0, 0}, {0, 0, 0}, LinePattern.Solid, FillPattern.None, 0.25, {{-66, 62}, {-22, 48}}, "not startValue", 0, TextAlignment.Center), Text(true, {0.0, 0.0}, 0, {0, 0, 0}, {0, 0, 0}, LinePattern.Solid, FillPattern.None, 0.25, {{-68, -58}, {-36, -72}}, "startValue", 0, TextAlignment.Center)}} 18:27:32:563
Elapsed Time :: 0.013 secs

getDiagramAnnotation(TestKeyWordIO.RLOn_io) 18:27:32:574
{} 18:27:32:574
Elapsed Time :: 0 secs

getConnectionCount(Modelica.Icons.Example) 18:27:32:618
0 18:27:32:619
Elapsed Time :: 0.001 secs

getConnectionCount(TestKeyWordIO.RLOn) 18:27:32:620
6 18:27:32:620
Elapsed Time :: 0 secs

getNthConnection(TestKeyWordIO.RLOn, 1) 18:27:32:620
{constantvoltage1.n,ground.p, ""} 18:27:32:621
Elapsed Time :: 0.001 secs

getNthConnectionAnnotation(TestKeyWordIO.RLOn, 1) 18:27:32:622
{Line(true, {0.0, 0.0}, 0, {{-80.0, 1.22125e-15}, {-80.0, 1.22125e-15}, {-80.0, -20.0}}, {0, 0, 0}, LinePattern.Solid, 0.25, {Arrow.None, Arrow.None}, 3, Smooth.None)} 18:27:32:629
Elapsed Time :: 0.007 secs

getNthConnection(TestKeyWordIO.RLOn, 2) 18:27:32:630
{inductor1.n,constantvoltage1.n, ""} 18:27:32:631
Elapsed Time :: 0.001 secs

getNthConnectionAnnotation(TestKeyWordIO.RLOn, 2) 18:27:32:632
{Line(true, {0.0, 0.0}, 0, {{40.0, 1.22125e-15}, {40.0, 0.0}, {-80.0, 0.0}, {-80.0, 1.22125e-15}}, {0, 0, 0}, LinePattern.Solid, 0.25, {Arrow.None, Arrow.None}, 3, Smooth.None)} 18:27:32:638
Elapsed Time :: 0.006 secs

getNthConnection(TestKeyWordIO.RLOn, 3) 18:27:32:639
{resistor1.n,inductor1.p, ""} 18:27:32:639
Elapsed Time :: 0 secs

getNthConnectionAnnotation(TestKeyWordIO.RLOn, 3) 18:27:32:641
{Line(true, {0.0, 0.0}, 0, {{5.55112e-16, 20.0}, {39.6429, 20.0}, {40.0, 20.0}}, {0, 0, 0}, LinePattern.Solid, 0.25, {Arrow.None, Arrow.None}, 3, Smooth.None)} 18:27:32:647
Elapsed Time :: 0.006 secs

getNthConnection(TestKeyWordIO.RLOn, 4) 18:27:32:648
{idealclosingswitchOn.n,resistor1.p, ""} 18:27:32:649
Elapsed Time :: 0.001 secs

getNthConnectionAnnotation(TestKeyWordIO.RLOn, 4) 18:27:32:650
{Line(true, {0.0, 0.0}, 0, {{-40, 20}, {-20, 20}}, {0, 0, 0}, LinePattern.Solid, 0.25, {Arrow.None, Arrow.None}, 3, Smooth.None)} 18:27:32:655
Elapsed Time :: 0.005 secs

getNthConnection(TestKeyWordIO.RLOn, 5) 18:27:32:656
{constantvoltage1.p,idealclosingswitchOn.p, ""} 18:27:32:657
Elapsed Time :: 0.001 secs

getNthConnectionAnnotation(TestKeyWordIO.RLOn, 5) 18:27:32:658
{Line(true, {0.0, 0.0}, 0, {{-80.0, 20.0}, {-80.0, 20.3571}, {-60.0, 20.3571}, {-60.0, 20.0}}, {0, 0, 0}, LinePattern.Solid, 0.25, {Arrow.None, Arrow.None}, 3, Smooth.None)} 18:27:32:663
Elapsed Time :: 0.005 secs

getNthConnection(TestKeyWordIO.RLOn, 6) 18:27:32:665
{booleanstep1.y,idealclosingswitchOn.control, ""} 18:27:32:665
Elapsed Time :: 0.001 secs

getNthConnectionAnnotation(TestKeyWordIO.RLOn, 6) 18:27:32:667
{Line(true, {0.0, 0.0}, 0, {{-59, 50}, {-50, 50}, {-50, 27}}, {255, 0, 255}, LinePattern.Solid, 0.25, {Arrow.None, Arrow.None}, 3, Smooth.None)} 18:27:32:671
Elapsed Time :: 0.005 secs

getConnectionCount(TestKeyWordIO.RLOn_io) 18:27:32:673
0 18:27:32:673
Elapsed Time :: 0 secs

getNamedAnnotation(TestKeyWordIO.RLOn_io, preferredView) 18:27:32:695
{} 18:27:32:695
Elapsed Time :: 0 secs

instantiateModel(TestKeyWordIO.RLOn_io) 18:28:03:283

If there are other log files that would be useful, I can attach them.
I am currently using 1.9.4~dev-627-g9fda74e_0.

Change History (3)

comment:1 by Adeel Asghar, 9 years ago

Cc: Adrian Pop Per Östlund added
Component: *unknown*Frontend
Owner: changed from somebody to Adrian Pop
Status: newassigned

comment:2 by Martin Sjölund, 7 years ago

Is this still a problem with OMEdit? There were many fixes since 1.9.x

comment:3 by Adam Dershowitz, 7 years ago

Resolution: fixed
Status: assignedclosed

I can now run these.

Note: See TracTickets for help on using tickets.