Opened 5 years ago

Closed 5 years ago

#5663 closed defect (fixed)

OMEdit hangs when opening attached example

Reported by: Christian Kral <dr.christian.kral@…> Owned by: Adeel Asghar
Priority: blocker Milestone: 1.14.0
Component: OMEdit Version: v1.14.0-dev-nightly
Keywords: Cc:

Description

Open the attached package and make a double click on the model TestExample.SimpleLossTable. From that point on OMEdit hangs and does not respond to the user. I performed my test with:

Connected to OpenModelica 1.14.0~dev-26780-ga2df68d
Connected to OMSimulator unknown-linux

Attachments (1)

TestExample.mo (5.2 KB ) - added by Christian Kral <dr.christian.kral@…> 5 years ago.
Test model causing OMEdit to hang

Download all attachments as: .zip

Change History (3)

by Christian Kral <dr.christian.kral@…>, 5 years ago

Attachment: TestExample.mo added

Test model causing OMEdit to hang

comment:1 by Adrian Pop, 5 years ago

Works fine if I replace "%%" in the .mo file with "%".

The problem is here:
https://github.com/OpenModelica/OpenModelica/blob/master/OMEdit/OMEdit/OMEditGUI/Annotations/TextAnnotation.cpp#L530
it never exits that loop if mTextString="%%" and the function is called with updateTextStringHelper(QRegExp("(%%|%\\w*)"));

Seems to be some error in the logic of that function. I will leave Adeel to handle this.

comment:2 by Adeel Asghar, 5 years ago

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.