Opened 8 years ago

Closed 8 years ago

Last modified 8 years ago

#3979 closed defect (fixed)

OMEdit 64 bit Windows version crashes when saving models

Reported by: Bernhard Thiele Owned by: Adrian Pop
Priority: blocker Milestone: Future
Component: Interactive Environment Version:
Keywords: Cc: francois.beaude@…, Adrian Pop, Per Östlund

Description

I just got a report of a project collaborator that OMEdit crashes for him (every time) when modifying a model and saving it afterwards.

He experienced this problem with OpenModelica 64 bit v1.9.6 (Windows) and also with a recent nightly build (re)installation (OMEdit v1.10.0-dev-159-g4de9151).

Unfortunately, I can't try to reproduce it, since I don't have Windows 64 bit myself.

Attachments (3)

TestPackage.zip (14.0 KB ) - added by anonymous 8 years ago.
Test package
script.mos (109 bytes ) - added by Adeel Asghar 8 years ago.
bt.txt (248.9 KB ) - added by Adeel Asghar 8 years ago.

Download all attachments as: .zip

Change History (12)

comment:1 by Bernhard Thiele, 8 years ago

Cc: Adrian Pop added

comment:2 by Adrian Pop, 8 years ago

We need more info than this.
Does he has spaces or special characters (i.e. éè) in the path to the model?
Does he try to save the model in a write protected area?

OM 1.9.6 is just 32bit there is no 64bit version for it.
Can he send the contents of the %TEMP%/OpenModelica/OMEdit to us?
Or at least the files from the above directory:
omeditcommands.mos
omeditcommunication.log
omediterror.txt
omeditoutput.txt
openmodelica.stacktrace.OMEdit
if they exist?

comment:3 by Adeel Asghar, 8 years ago

Is there any more information on it OR should I close this ticket?

by anonymous, 8 years ago

Attachment: TestPackage.zip added

Test package

comment:4 by anonymous, 8 years ago

Using the attached test package with OpenModelica 1.9.6 (on Windows 7), the GUI crashes for example when trying to click on "Connectors" to expand this part of the package, or when trying to open TestPackage.Setups.PVGenerator.LoadVar.GeneratorWithLoadVar.

Modifying this model then saving it may also lead to crashes.

by Adeel Asghar, 8 years ago

Attachment: script.mos added

comment:5 by Adeel Asghar, 8 years ago

Cc: Per Östlund added
Component: OMEditInteractive Environment
Owner: changed from Adeel Asghar to Per Östlund
Status: newassigned

The program crashes when doing a lookup. I have attached a minimal script to reproduce the issue.
I have also attached the backtrace for more information.

by Adeel Asghar, 8 years ago

Attachment: bt.txt added

comment:6 by Adrian Pop, 8 years ago

The problem is with:

  import TestPackage.Types "standard TestPackage variable types";

in TestPackage/package.mo
Because Types is already part of TestPackage having it imported is like a self reference.
If you comment that import everything is fine.

comment:7 by Adrian Pop, 8 years ago

Owner: changed from Per Östlund to Adrian Pop
Status: assignedaccepted

comment:8 by Adrian Pop, 8 years ago

Resolution: fixed
Status: acceptedclosed

Fixed in 4f0d761/OMCompiler.

comment:9 by Adrian Pop, 8 years ago

Note: See TracTickets for help on using tickets.