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

[1.8.0-rc3] Crash when new or revert to saved after apply measure now to a model. #753

Closed
jmarrec opened this issue Sep 13, 2024 · 3 comments

Comments

@jmarrec
Copy link
Collaborator

jmarrec commented Sep 13, 2024

Issue overview

Current Behavior

The application crashes and closes unexpectedly when attempting to perform File > "New," "Open," or "Revert to Saved" after applying a measure to an open mod

Expected Behavior

Shouldn't crash!

Steps to Reproduce

I was able to reproduce on a Clean Windows 10 20H2 VM with the following steps:

  1. Open OpenStudioApp 1.8.0-rc3
  2. Do File > Example > Example Model
  3. Save the model.
  4. Find Measure on BCL, download "Exterior wall thermal properties percent change" (a random measure)
  5. Do "Apply Measure Now" (I'm on the "Site / Location" tab still)
  6. Apply that Exterior Wall Thermal Percent Change with 15 for Exterior wall Total R-value Percentage Change
  7. Accept changes
  8. Model is marked as changed because I haven't saved it, but I do "File > Revert to Saved" with Discard changes
  9. It crashes, and the OpenStudio CLI process is orphaned!

Possible Solution

Details

Environment

Some additional details about your environment for this issue (if relevant):

  • Platform (Operating system, version): At least Windows 10, 22H2 and 20H2
  • Version of OpenStudioApplication (if using an intermediate build, include SHA): 1.8.0-rc3
@jmarrec
Copy link
Collaborator Author

jmarrec commented Sep 13, 2024

Couple of datapoints:

  • It works on Ubuntu 24.04 (I even attached a debugger)
  • On Windows, if I revert to saved when I did a change but not apply a measure, it doesn't crash.
  • On Windows, if I "Apply Now", save the model, do another change (Change Calendar Year for eg) and Revert to saved, it still crashes.
  • On Windows, OPENSTUDIO_APPLICATION_DEBUG=1 doesn't reveal useful info, will need a debugger.

@jmarrec
Copy link
Collaborator Author

jmarrec commented Sep 13, 2024

I think this may be fixed via this PR as I couldn't reproduce it by building locally...

@jmarrec
Copy link
Collaborator Author

jmarrec commented Sep 13, 2024

Confirmed I do not get the crash by using the latest installer from develop https://github.com/openstudiocoalition/OpenStudioApplication/actions/runs/10723955812

@jmarrec jmarrec closed this as completed Sep 13, 2024
@jmarrec jmarrec self-assigned this Sep 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant