Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OpenStudio will crash if you go to "Control" view in an airloop with an AirLoopHVAC Unitary System #1313

Closed
DavidGoldwasser opened this issue Dec 19, 2014 · 1 comment · Fixed by #1314
Assignees

Comments

@DavidGoldwasser
Copy link
Collaborator

I hit this in a old (0.11) measure test file (picture below) where we were using this for a heat pump, but was able to re-create this in a fresh model in 1.5.3. Make an empty air loop, add a unitary object to the supply side, then switch to "Control". I didn't test every unitary object, but the few I tried all crashed in this test.

Update: steps to crash are easier.

  1. launch OS app
  2. Make empty air loop
  3. Go to Control (should crash)

So maybe it isn't about the unitary object at all, but rather not having something else like setpiont manager?

Update 2:
@kbenne I confirmed, the cause of the crash seems to be the lack of a setpoint manager. If you add a step 4, and add a mix air setpoint manager to the empty loop it no longer crashes when you go to the Control view.

12-19-2014 8-43-51 am

12-19-2014 8-39-54 am

@mbadams5
Copy link
Contributor

It is due to this line...

if( boost::optional<model::SetpointManagerSingleZoneReheat> spm = _spm->optionalCast<model::SetpointManagerSingleZoneReheat>() )

_spm is not initialized before attempting to dereference and optionally cast.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants