ORNL-Modelica / UnrealEngine-FMIPlugin

27 stars 5 forks source link

Check for FMU License instead of unreal crash: Unhandled exception: 0xe06d7363 #12

Open lewinj opened 3 years ago

lewinj commented 3 years ago

When play is pressed the Unreal editor crashes leaving the error message "unhandled exception: 0xe06d7363" This occurs when the A_fmi object containing a simple pendulum FMU is in the level. The FMU used is below simplependulum.zip

greenwoodms06 commented 3 years ago

What was that FMU created with?

greenwoodms06 commented 3 years ago

If you have the modelica source code and can share that it'd likely be much easier to pinpoint the issue.

greenwoodms06 commented 3 years ago

So a quick check of the fmu using the FMPy GUI gave an error. This could very well be the problem.

image

lewinj commented 3 years ago

Sorry about the late reply, I'm using Dymola 2021x version 4.0.0 and Microsoft visual studio 2019 version 16.8.4 is the compiler. As for the license, I use my school's license server. Would including the license file in the project folder help?

greenwoodms06 commented 3 years ago

No no no. Don't share license info. With Dymola there is a "binary export license" that is required to create FMUs that do not require a license to run. One issue already is that Unreal likely has no idea how to access that. So before going down that rabbit hole you either need to make sure to export your FMU with that license turned on or share the source code so I can compile the FMU myself as I have the binary license.

lewinj commented 3 years ago

I used the Binary export license when making the new FMU, that fixed the issue. Thank you so much! I'm new both to Modelica and Unreal so the help is greatly appreciated.

greenwoodms06 commented 3 years ago

So the FMU now works in Unreal and this issue should be closed? Or just the license issue is fixed and we still have the Unreal issue?

lewinj commented 3 years ago

the unreal issue was fixed

greenwoodms06 commented 3 years ago

alright. great. Since the issue is pressing I won't dive into it now but I'll update the title of this issue to reflect that having a check for a license a capability we need to look at.