Open DaveInCaz opened 9 months ago
@DaveInCaz, thanks for bringing this to our attention! I'll take a look when I next get a chance.
Thanks @nealkruis .
FWIW I think I have a second example of the same issue. Attachment added. Its a similar IDF file but the surface coordinates have been changed from the first case. Its still the same surface named Extruded BLD1 \- Building_Basement room_Floor_16_\{00093\}
.
repro2.zip
Issue overview
Noticed a case where a particular floor surface causes energyplus.exe to terminate with an access violation exception. This happens when the surface is using a Foundation Kiva boundary condition.
Details
I've attached a sample file to reproduce this issue. I was running it like follows:
(I didn't attach the weather file because I may not have rights to do so, but any can be used as far as I know.)
The specific geometry which causes the error is in surface
Extruded BLD1 \- Building_Basement room_Floor_16_\{00093\}
as follows:An exaggerated sketch of this shape is:
In reality the lines 8..1 and 4..5 overlap and this seems to cause the failure. The polygon self-intersects.
When EnergyPlus terminates on the command line there is actually no visible error message. But I ran it in the Visual Studio debugger while attached to the EXE and it showed this:
So I guess its a null pointer reference?
The stack trace up to that point is below (may not be useful though since there are no symbols).
Stack trace:
repro.zip