Opened 9 years ago

Closed 9 years ago

Last modified 9 years ago

#3580 closed defect (fixed)

Opening a model causes OMEdit to crash

Reported by: massimo ceraolo Owned by: Adeel Asghar
Priority: critical Milestone: 1.9.4
Component: OMEdit Version:
Keywords: Cc:

Description

When I just open a model (that works and simulates in Dymola) OMEdit crashes.
To reproduce:
1) load enclosed "testOM.mo"
2) double click on "test" in order to open it
=> OMEdit stops functioning and is closed by Windows.
Tested with OMEDIT dev-661 on Windows 10.

Attachments (1)

testOM.mo (16.2 KB ) - added by massimo ceraolo 9 years ago.

Download all attachments as: .zip

Change History (7)

by massimo ceraolo, 9 years ago

Attachment: testOM.mo added

comment:1 by massimo ceraolo, 9 years ago

Summary: Openin a model causes OMEdit to crashOpening a model causes OMEdit to crash

comment:2 by Adrian Pop, 9 years ago

Stack trace in gdb, hopefully it will help. Seems it dies in AddConnectionCommand::redo:

(gdb) bt
#0  Component::getRootParentComponent (this=0x0) at Component/Component.cpp:571
#1  0x004d2b3c in AddConnectionCommand::redo (this=0x1d7b0dd8) at Modeling/Commands.cpp:734
#2  0x656dd41a in ZN10QUndoStack4pushEP12QUndoCommand () from f:\openmodelica1.9.4-dev-520-g78ce36e\bin\QtGui4.dll
#3  0x004eafc0 in ModelWidget::getModelConnections (this=0x22bbbff8) at Modeling/ModelWidgetContainer.cpp:3389
#4  0x004eb708 in ModelWidget::loadConnections (this=0x22bbbff8) at Modeling/ModelWidgetContainer.cpp:2437
#5  0x004f91d6 in ModelWidgetContainer::addModelWidget (this=0x1227d678, pModelWidget=0x22bbbff8, checkPreferedView=true) at Modeling/ModelWidgetContainer.cpp:3708
#6  0x004bef40 in LibraryTreeModel::showModelWidget (this=0xeadfdc0, pLibraryTreeItem=0x1d5aa218, text=..., show=true) at Modeling/LibraryTreeWidget.cpp:1536
#7  0x004bf1f5 in LibraryTreeView::mouseDoubleClickEvent (this=0xeaec7e0, event=0x4fad2e4) at Modeling/LibraryTreeWidget.cpp:2682
#8  0x6515924d in ZN7QWidget5eventEP6QEvent () from f:\openmodelica1.9.4-dev-520-g78ce36e\bin\QtGui4.dll
#9  0x654a90b9 in ZN6QFrame5eventEP6QEvent () from f:\openmodelica1.9.4-dev-520-g78ce36e\bin\QtGui4.dll
#10 0x655b835f in ZN17QAbstractItemView13viewportEventEP6QEvent () from f:\openmodelica1.9.4-dev-520-g78ce36e\bin\QtGui4.dll
#11 0x655f1b64 in ZN9QTreeView13viewportEventEP6QEvent () from f:\openmodelica1.9.4-dev-520-g78ce36e\bin\QtGui4.dll
#12 0x6a2c9417 in ZN23QCoreApplicationPrivate29sendThroughObjectEventFiltersEP7QObjectP6QEvent () from f:\openmodelica1.9.4-dev-520-g78ce36e\bin\QtCore4.dll
#13 0x6510fab3 in ZN19QApplicationPrivate13notify_helperEP7QObjectP6QEvent () from f:\openmodelica1.9.4-dev-520-g78ce36e\bin\QtGui4.dll
#14 0x65118dec in ZN12QApplication6notifyEP7QObjectP6QEvent () from f:\openmodelica1.9.4-dev-520-g78ce36e\bin\QtGui4.dll
#15 0x6a2c9cb0 in ZN16QCoreApplication14notifyInternalEP7QObjectP6QEvent () from f:\openmodelica1.9.4-dev-520-g78ce36e\bin\QtCore4.dll
#16 0x65113597 in ZN19QApplicationPrivate14sendMouseEventEP7QWidgetP11QMouseEventS1_S1_PS1_R8QPointerIS0_Eb () from f:\openmodelica1.9.4-dev-520-g78ce36e\bin\QtGui4.dll
#17 0x65175f13 in ZN12QApplication8winFocusEP7QWidgetb () from f:\openmodelica1.9.4-dev-520-g78ce36e\bin\QtGui4.dll
#18 0x6517a09f in ZN19QApplicationPrivate27initializeWidgetPaletteHashEv () from f:\openmodelica1.9.4-dev-520-g78ce36e\bin\QtGui4.dll
#19 0x768162fa in USER32!OffsetRect () from C:\Windows\syswow64\user32.dll
#20 0x768180a9 in USER32!CreateWindowStationW () from C:\Windows\syswow64\user32.dll
#21 0x00030000 in ?? ()
#22 0x76816d3a in USER32!IsWindow () from C:\Windows\syswow64\user32.dll
#23 0x6517973c in ZN19QApplicationPrivate27initializeWidgetPaletteHashEv () from f:\openmodelica1.9.4-dev-520-g78ce36e\bin\QtGui4.dll
#24 0x768177c4 in USER32!AnyPopup () from C:\Windows\syswow64\user32.dll
#25 0x00000000 in ?? ()

comment:3 by Adrian Pop, 9 years ago

Component: BackendOMEdit
Owner: changed from somebody to Adeel Asghar
Status: newassigned

comment:4 by Adeel Asghar, 9 years ago

Resolution: fixed
Status: assignedclosed

Fixed in ad6ae67/OMEdit

comment:5 by Martin Sjölund, 9 years ago

Milestone: 1.9.41.9.4-1.9.x

Milestone renamed

comment:6 by Martin Sjölund, 9 years ago

Milestone: 1.9.4-1.9.x1.9.4

Milestone renamed

Note: See TracTickets for help on using tickets.