Opened 10 years ago

Closed 10 years ago

Last modified 10 years ago

#3003 closed defect (fixed)

OMEdit crashes when trying to open a Modelica file

Reported by: Christian Kral <dr.christian.kral@…> Owned by: Adeel Asghar
Priority: high Milestone: 1.9.2
Component: OMEdit Version: trunk
Keywords: Cc:

Description

The nightly built version 23549 crashes when I try open a Modelica file. This happens both by clicking on the open icon and choosing Open from the File menu.

If I open a file listed under recent files, OMEdit opens the file without problems.

The error refers to Ubuntu 12.04 32 bit.

Change History (10)

comment:1 by Martin Sjölund, 10 years ago

For me it worked fine using Ubuntu 14.04 64-bit and 12.04 32-bit (Unity and Gnome Classic)...

comment:2 by Martin Sjölund, 10 years ago

I will try to make omc/OMEdit be built by gcc instead of clang 3.0 to see if that resolves the issues.

I remember the crash happened first on my computer on Friday Nov. 21.

Happens to coincide with OMEdit and omc sharing the same address space. But the stacktrace suggests it is not the issue.

comment:3 by Christian Kral <dr.christian.kral@…>, 10 years ago

I tried it with

  • Gnome Classic
  • Unity
  • XFCE

and they all lead to a crash of OMEdit.

comment:4 by Martin Sjölund, 10 years ago

Adeel: When can I get a stacktrace of all active threads in the crash logs?

comment:5 by Christian Kral <dr.christian.kral@…>, 10 years ago

No more crash in r23584. Opening a Modelica file now works without problems. Thanks a lot for fixing this issue.

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

Milestone: Future1.9.2
Resolution: fixed
Status: newclosed

OK. Then I believe it was an issue with clang 3.0 requiring some flag to disable an optimization. But since I could not reproduce the issue, I can't disable this optimization. Just hope people don't use clang 3.0 to compile omc...

comment:7 by Christian Kral <dr.christian.kral@…>, 10 years ago

A new issue arouse in r23584. and I am not sure how it is related to this ticket. In r23584 some simulation examples are simulating with no problems. Other simulation examples fail -- but worked with previous versions of OpenModelica. An example of a failing example is
Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL
Failing means: the modelica file gets compiled but simulation hangs after a few seconds, so that the progress bar is frozen and the simulation is not completed.

Martin, could you please check if you can reproduce this issue.

comment:8 by Martin Sjölund, 10 years ago

It's sort of related. gcc 4.6 is used now. And it seems the dassl routine doesn't like the GNU compiler... It's spinning somewhere in the lapack routines of dassl.
On 14.04 it works fine (uses clang). I assume if you change solver method, it works fine in 12.04?

comment:9 by Christian Kral <dr.christian.kral@…>, 10 years ago

For Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL I tried a couple different integration methods (Ubuntu 12.04 32 bit):

  • Euler
  • Rungekutta
  • Radau3
  • Radau5
  • Lobatto2
  • Lobatto4

None of these worked. Three different failure scenarios occurred:

  1. The simulation terminated after a couple integration steps
  2. The simulation terminated after the switch closed
  3. The simulation terminated normally, but the results were wrong (showed DC current instead of AC line current)

comment:10 by Christian Kral <dr.christian.kral@…>, 10 years ago

I switched from Ubuntu 12.04 to 14.04 in order to avoid this issue. Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL now works fine.

I wonder whether this ticket can be closed...

Note: See TracTickets for help on using tickets.