Opened 7 years ago

Closed 7 years ago

#4687 closed defect (fixed)

OMEdit crashes when trying to copy code from the Instantiation window using the NF

Reported by: casella Owned by: adeas31
Priority: critical Milestone: 1.13.0
Component: OMEdit Version:
Keywords: Cc:

Description (last modified by casella)

Steps to reproduce the problem on my PC:

  • open OMEdit and set the flag -d=newInst
  • browse the MSL and open Modelica.Electrical.Analog.Examples.SwitchWithArc
  • click on the Instantiate Model button
  • select the code of the instantiated model in the window and hit Ctrl-C to copy
  • OMEdit crashes

I'm using OMEdit v1.13.0-dev-70-g6399334 (64-bit) connected to v1.13.0-dev-307-g926d8af (64-bit) built for Microsoft Windows [Version 6.1.7601].
The running OS is Windows 10 on x86_64.

Attachments (1)

openmodelica.stacktrace.OMEdit (149.6 KB) - added by casella 7 years ago.

Download all attachments as: .zip

Change History (7)

comment:1 Changed 7 years ago by adeas31

I can't reproduce it.

If OMEdit was crashed then you might have got a file openmodelica.stacktrace.OMEdit in your temp directory. Attach that file.

Changed 7 years ago by casella

comment:2 Changed 7 years ago by casella

There it is

comment:3 Changed 7 years ago by adeas31

This is really strange. The stack trace shows,

#14 0x0000000000529f5e in PlainTextEdit::keyPressEvent (this=0x0, pEvent=0x0) at Editors/BaseEditor.cpp:1631
        isShortcut = false
        ctrlOrShift = <optimized out>
        eow = {static null = {<No data fields>}, d = 0x4ee2e0b0}
#15 0x0000000013ddcb3b in QWidget::event(QEvent*) () from C:\OpenModelica1.13.0-dev-64bit\bin\Qt5Widgets.dll
No symbol table info available.
#16 0x0000000013ebfa8e in QFrame::event(QEvent*) () from C:\OpenModelica1.13.0-dev-64bit\bin\Qt5Widgets.dll
No symbol table info available.

Looks like Qt called the key press event with null pointer.

comment:4 Changed 7 years ago by casella

  • Description modified (diff)

Sorry, I had not described the steps to reproduce the problem correctly. I've now updated the ticket summary, please check it again

comment:5 Changed 7 years ago by casella

  • Description modified (diff)

comment:6 Changed 7 years ago by adeas31

  • Resolution set to fixed
  • Status changed from new to closed

Fixed in 1712744/OMEdit.

Note: See TracTickets for help on using tickets.