# OS App 1.2.1 crashing when running simulation

I am having a variety of issues trying to run a model file that I copied over from another computer. Initially, the weather file and OS results measure (the only measure added) both disappeared. I added the weather file back, but seem to still be having issues.

I get an immediate error if I run without the measure. I have tried every combination of re-adding and deleting the measure from OS and from the model file's measures folder. This removes the error, however OS keeps crashing. Either as soon as I start the simulation, or at the very end (after the output log prints "Complete"), or sometimes even when I save.

When it doesn't crash, I often get an error that one of the subsurfaces is missing a construction, even though I have repeatedly hard-assigned a construction to it.

Any help would be greatly appreciated.

Possibly related to this, I got the same invalid weather file error: https://unmethours.com/question/33543...

Here are some of the errors I'm getting from run.log (if it makes it to the end and crashes, there are no severe errors in eplusout.err):

[14:32:27.194816 ERROR] Found error in state 'initialization' with message ["Cannot find measure OpenStudioResults 1::/ruby/2.7.0/gems/openstudio-workflow-2.2.1/lib/openstudio/workflow/util/measure.rb:155:in block in validate_measures'\n:/ruby/2.7.0/gems/openstudio-workflow-2.2.1/lib/openstudio/workflow/util/measure.rb:141:in each'\n:/ruby/2.7.0/gems/openstudio-workflow-2.2.1/lib/openstudio/workflow/util/measure.rb:141:in each_with_index'\n:/ruby/2.7.0/gems/openstudio-workflow-2.2.1/lib/openstudio/workflow/util/measure.rb:141:in validate_measures'\n:/ruby/2.7.0/gems/openstudio-workflow-2.2.1/lib/openstudio/workflow/jobs/run_initialization.rb:122:in perform'\n:/ruby/2.7.0/gems/openstudio-workflow-2.2.1/lib/openstudio/workflow/run.rb:287:in step'\n:/ruby/2.7.0/gems/openstudio-workflow-2.2.1/lib/openstudio/workflow/run.rb:229:in run'\n:/openstudio_cli.rb:1013:in execute'\n:/openstudio_cli.rb:803:in execute'\n:/openstudio_cli.rb:1797:in <main>'\neval:185:in eval'\neval:185:in require_embedded_absolute'\neval:170:in block in require_embedded'\neval:164:in each'\neval:164:in require_embedded'\neval:123:in require'\neval:3:in <main>'"]}

[13:45:28.182268 WARN] EnergyPlus reported area is 6372 (m^2). OpenStudio reported area is 9723 (m^2).
[13:45:31.163006 WARN] Interior Lighting Summary section failed and was skipped because: Optional not initialized. Detail on error follows: C:/Users/nsimhai/AppData/Local/Temp/osmodel-1636490672-1/resources/measures/OpenStudioResults 1/resources/os_lib_reporting.rb:3355:in get'
C:/Users/nsimhai/AppData/Local/Temp/osmodel-1636490672-1/resources/measures/OpenStudioResults 1/resources/os_lib_reporting.rb:3355:in block in interior_lighting_section'
C:/Users/nsimhai/AppData/Local/Temp/osmodel-1636490672-1/resources/measures/OpenStudioResults 1/resources/os_lib_reporting.rb:3354:in each'
C:/Users/nsimhai/AppData/Local/Temp/osmodel-1636490672-1/resources/measures/OpenStudioResults 1/resources/os_lib_reporting.rb:3354:in interior_lighting_section'
(eval):1:in block in run'
C ...
edit retag close merge delete

Seems to be the same error message as here: https://unmethours.com/question/42037...

( 2021-11-11 12:51:44 -0600 )edit

You are correct, thanks. However that may be a different issue, as I think I actually received that error on a semi-successful run. The first and third messages seem to be the more problematic ones that arise when it actually crashes.

Yesterday, I uninstalled and reinstalled the OS app and reconnected to the BCL to download a fresh copy of the OS results measure. This seemed to have fixed the crashing at/after simulation, but today I am unable to save the model without it crashing, so still looking for any solutions.

( 2021-11-11 12:56:44 -0600 )edit

Are you working on a Windows machine? Wondering if related to this issue when the directory for the is open in windows explorer https://github.com/openstudiocoalitio.... If you are on Windows, can you trying using the most recent OpenStudio Application, if you are not already.

( 2021-11-15 16:44:30 -0600 )edit

@David: Yes, Windows 10. I have made sure not to have the directory open when I do anything. I have uninstalled and reinstalled OS App 1.2.1 (this is the latest version, correct?), and I am getting the same issue on any file I open now, even a brand new .osm with barely any inputs or measures. I'm on a bit of a time crunch, so please let me know if this is better worked through on GitHub or elsewhere

( 2021-11-15 16:50:42 -0600 )edit

If you have not yet, I would restart the computer, to clean up an orphan processes, also try changing the directory you are saving to, specifically avoid any directories that are a network drive or backed up to cloud service like DropBox. Also avoid any special characters or excessively long paths.

( 2021-11-15 17:37:03 -0600 )edit