Opened 7 years ago

Last modified 7 years ago

#4687 closed defect

OMEdit crashes when trying to copy code from the Instantiation window using the NF — at Version 4

Reported by: Francesco Casella Owned by: Adeel Asghar
Priority: critical Milestone: 1.13.0
Component: OMEdit Version:
Keywords: Cc:

Description (last modified by Francesco 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
  • 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.

Change History (5)

comment:1 by Adeel Asghar, 7 years ago

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.

by Francesco Casella, 7 years ago

comment:2 by Francesco Casella, 7 years ago

There it is

comment:3 by Adeel Asghar, 7 years ago

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 by Francesco Casella, 7 years ago

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

Note: See TracTickets for help on using tickets.