Opened 4 years ago

Last modified 4 years ago

#6430 new defect

Error -1073741819 at solving initiation (after complete compilation)

Reported by: hubertblervaque@… Owned by: somebody
Priority: high Milestone: NeedsInput
Component: *unknown* Version: 1.18.0-dev
Keywords: Cc:

Description

Hi,

We encounter a stranger error called -1073741819 on Windows x64. It appears in the "Output" tab in the Simulation windows. The full message is (in red) :
"Process crashed
Process crashed
Simulation process failed. Exited with code -1073741819. "

The model working on several computers makes a crash on one computer. Different OpenModelica version were tested on this machine and error is the same.

Attachments (3)

image.png (126.6 KB) - added by hubertblervaque@… 4 years ago.
Error description
SystemInfo.pdf (143.4 KB) - added by hubertblervaque@… 4 years ago.
SystemInformation
Nr6430 DryAirNasa.mo (1.1 KB) - added by hubertblervaque@… 4 years ago.
ErrorSimpleModel

Download all attachments as: .zip

Change History (8)

Changed 4 years ago by hubertblervaque@…

Error description

comment:1 follow-up: Changed 4 years ago by casella

OK, we really need to do something with these exit codes, see #6242. Basically, the error is an exadecimal 32 bit code which is printed out as a signed integer, making it completely unrecognizable. If you add 232 and convert it to hex it becomes 0xC0000005, or binary 0b11000000000000000000000000000101, which only has four non-zero bits and make a lot more sense.

Error codes are available here. It means STATUS_ACCESS_VIOLATION, probably some memory was accessed illegally.

If the error can be somewhat reproduced, it would be useful to get a model to test it ourselves with gdb, to try pinpointing the root cause.

comment:2 in reply to: ↑ 1 Changed 4 years ago by perost

Replying to casella:

OK, we really need to do something with these exit codes, see #6242.

I made a PR (#7316) that should hopefully fix this.

For the issue in this ticket I don't think we can do much without a way to reproduce it though.

comment:3 Changed 4 years ago by casella

Thanks Per :)

comment:4 Changed 4 years ago by hubertblervaque@…

Thank you for your replies.
We are trying to find the missing dll and we will give you a feedback on this error.

Changed 4 years ago by hubertblervaque@…

SystemInformation

Changed 4 years ago by hubertblervaque@…

ErrorSimpleModel

comment:5 Changed 4 years ago by hubertblervaque@…

Hi OpenModelica team,
We succeeded in finding the bug origin. We made a simplified model to explain the error (see "ErrorSimpleModel.mo"). On one specific machine (system information are given in "SystemINformation.pdf"), we have the error code -1073741819 ("STATUS_ACCESS_VIOLATION") in the "Output" tab in the Simulation windows when the Medium is Modelica.Media.Air.DryAirNasa, but it works with ReferenceAir.Air_dT (and also with SimpleAir).
So we will switch to ReferenceAir. If you manage (to spend time) to reproduce the error and to understand it, we are interested in it.
Thank you for your works

Note: See TracTickets for help on using tickets.