Opened 12 years ago

Closed 12 years ago

#2194 closed defect (fixed)

New OMEdit almost not working on Linux

Reported by: ekofman@… Owned by: Adeel Asghar
Priority: high Milestone: 1.9.0
Component: OMEdit Version: trunk
Keywords: Cc:

Description (last modified by Martin Sjölund)

When I open simple text models xxx.mo created with a text editor (Kate), OMEdit produces a Segmentation Fault. The same error occurs if I create a new model with OMEdit and I copy the text (Ctrl+C) when I try to save the model.

I am working on Kubuntu 12.04, and I haven't experienced that problem on previous OMEdit versions.

I copy below a model that provokes the problem I mention:

model boost
  parameter Real C = 1e-4, L = 1e-4, R = 10, U = 24, T = 1e-4, DC = 0.5, ROn = 1e-5, ROff = 1e5;
  discrete Real Rd(start=1e5), Rs(start=1e5), nextT(start=T),lastT,diodeon;
  Real uC,iL,iD;
  
   equation
    iD=(Rs*iL-uC)/(Rd+Rs);
    der(uC) = (iD - uC/R)/C;
    der(iL) =  (U-Rs*(iL-iD))/L;
    
  algorithm
  when time > nextT then
    lastT:=nextT;
    nextT:=nextT+T;
    Rs := ROn;
  end when;

  when time - lastT-DC*T>0 then
      Rs := ROff;
      Rd := ROn;
    diodeon:=1;
  end when;

  when (Rs*iL-uC)/(Rd+Rs)*diodeon<0 then
      Rd := ROff;
    diodeon:=0;
  end when;
end boost;

Attachments (1)

boost.mo (575 bytes ) - added by Martin Sjölund 12 years ago.

Download all attachments as: .zip

Change History (4)

comment:1 by Martin Sjölund, 12 years ago

Description: modified (diff)

I cannot reproduce this right away. Could you try attaching the file so I can see if it is a problem with this file or the 12.04 builds (and in that case which revision was used).

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

Status: newassigned

Ok, I got the file attached via email. It contains tab stops, and for some reason this seems to crash OMEdit. I will attach the file since it is hard to see where the failure is coming from.

by Martin Sjölund, 12 years ago

Attachment: boost.mo added

comment:3 by Adeel Asghar, 12 years ago

Resolution: fixed
Status: assignedclosed

Fixed in r16103.

Note: See TracTickets for help on using tickets.