Opened 5 years ago
Closed 5 years ago
#5663 closed defect (fixed)
OMEdit hangs when opening attached example
Reported by: | 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)
Change History (3)
by , 5 years ago
Attachment: | TestExample.mo added |
---|
comment:1 by , 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.
Test model causing OMEdit to hang