osate / osate2

Open Source AADL2 Tool Environment
http://osate.org
Eclipse Public License 2.0
39 stars 8 forks source link

Fault Tree Analysis has an infinite loop / gives an unhandled event loop exception #2115

Closed sprocter closed 4 years ago

sprocter commented 4 years ago

Summary

I'm trying to compute a fault tree for part of an aircraft's wheel braking system, but getting an error that there's an infinite loop / stack overflow occurring.

Expected and Current Behavior

Expected: OSATE should generate and display a fault tree.

Actual: A popup box titled "Problem Occurred" appears, and says:

Unhandled event loop exception java.lang.StackOverflowError

The terminal fills up with these lines:

    at org.osate.aadl2.errormodel.faulttree.generation.FTAGenerator.optimizeGates(FTAGenerator.java:543)
    at org.osate.aadl2.errormodel.faulttree.generation.FTAGenerator.optimizeGates(FTAGenerator.java:543)
    at org.osate.aadl2.errormodel.faulttree.generation.FTAGenerator.optimizeGates(FTAGenerator.java:543)

Steps to Reproduce

  1. Load the "GTSE-Examples" project from the GATSE repo into OSATE
  2. Instantiate the bscu.generic system implementation, which is located in GTSE-Examples/ARP4761/advanced/implementation/bscu.aadl
  3. Run the Fault Tree Analysis tool on the model with the following (default) settings: FTA Exception Screenshot

Environment

lwrage commented 4 years ago

The exception happens in OSATE 2.5.1, already, so this is not a newly introduced bug.

reteprelief commented 4 years ago

Addressed by fix for issue #2123 in pull request #2135