Skip to content

MeasureManager errors on application startup, fails to locate /lib/topolys/model.rb in tbd gem. #679

@jugonzal07

Description

@jugonzal07

Issue overview

Upon loading either OpenStudio Application (both 1.6 and 1.7) I get a similar error-- a pop up window titled Failed to Compute Arguments and text reading "Could not compute arguments for OpenStudio Measure". Even after wiping both my BCL and Measures directory, this still comes up.

I'm unsure if this is coincidental or not, but I started getting this behavior after bundle installing the OpenStudio Standards Gem into Ruby 2.7.8 on Windows 10 x86. Prior to this, the application loaded just fine. I'm unsure why the embedded Ruby 2.7 in OpenStudio application would be affected by this.

Current Behavior

I ran things in debug mode in a powershell CLI and get this error:

& c:\openstudioapplication-1.7.0\bin\OpenStudioApp.exe 2>&1 | Out-Default
[openstudio.XMLValidator] <1> xsdValidate.parseFileError: XML error 17.1871: Element 'tags': This element is not expected. Expected is ( provenances ).
    at C:/Users/Gonz102/BCL/a25386cd-60e4-46bc-8b11-c755f379d916/399308d0-a37b-47d6-9135-b1d595447638/measure.xml:561
[utilities.bcl.BCLXML] <0> Failed to validate measure.xml at C:/Users/Gonz102/BCL/a25386cd-60e4-46bc-8b11-c755f379d916/399308d0-a37b-47d6-9135-b1d595447638/measure.xml
[openstudio.XMLValidator] <1> xsdValidate.parseFileError: XML error 17.1871: Element 'tags': This element is not expected. Expected is ( provenances ).
    at C:/Users/Gonz102/AppData/Local/Temp/a25386cd-60e4-46bc-8b11-c755f379d916/measure.xml:561
[utilities.bcl.BCLXML] <0> Failed to validate measure.xml at C:/Users/Gonz102/AppData/Local/Temp/a25386cd-60e4-46bc-8b11-c755f379d916/measure.xml
[openstudio.XMLValidator] <1> xsdValidate.parseFileError: XML error 17.1871: Element 'tags': This element is not expected. Expected is ( provenances ).
    at C:/Users/Gonz102/BCL/a25386cd-60e4-46bc-8b11-c755f379d916/399308d0-a37b-47d6-9135-b1d595447638/measure.xml:561
[utilities.bcl.BCLXML] <0> Failed to validate measure.xml at C:/Users/Gonz102/BCL/a25386cd-60e4-46bc-8b11-c755f379d916/399308d0-a37b-47d6-9135-b1d595447638/measure.xml
[openstudio.MeasureManager] <2> Error computing arguments: MeasureManager Server encountered an error:
"Embedded file not found ':/ruby/2.7.0/bundler/gems/tbd-8c7a2d4bf19a/lib/topolys/model.rb'"

Expected Behavior

Prior to this, I was able to open OpenStudio application without this error and was testing new measures for OpenStudio Standards no problem. I'm not sure what changed.

Steps to Reproduce

I am unsure how to replicate this. @jmarrec tried to replicate it with a windows VM and has been unsuccessful. What I did--

  1. Had Ruby 2.7.8 installed on Windows 10
  2. Downloaded OpenStudio application 1.6
  3. Performed a bundle install on Ruby 2.7.8 for OpenStudio Standards Gem.(I was just trying to rubocop my measure prior to sending it for a PR)
  4. Open OpenStudio application from start menu (i.e., not from a model) starting resulting in this issue, many of my measures stopped working.

Details

Things I've tried:

  • Wiping measures and BCL directory
  • Uninstalling and reinstalling OpenStudio 1.7 and 1.6 application
  • Running measure like this from OpenStudio SDK 3.7 without an issue (i.e., think it's the OS app?)
    • In one powershell window λ C:\openstudio-3.7.0\bin\openstudio.exe measure -s 4096
    • In another window I did a post request: python -c "import httplib2; conn = httplib2.HTTPConnectionWithTimeout('localhost:4096'); conn.request('POST', '/bcl_measures')"
    • This succeeded with no issues, making us think it's not OpenStudio SDK

The file it's complaining about does appear to be missing:

C:\openstudioapplication-1.7.0\bin
λ openstudio -e "puts EmbeddedScripting::allFileNamesAsString.split(';').grep(/tbd/)"
:/ruby/2.7.0/bundler/gems/tbd-8c7a2d4bf19a/lib/measures/tbd/measure.rb
:/ruby/2.7.0/bundler/gems/tbd-8c7a2d4bf19a/lib/measures/tbd/resources/geo.rb
:/ruby/2.7.0/bundler/gems/tbd-8c7a2d4bf19a/lib/measures/tbd/resources/geometry.rb
:/ruby/2.7.0/bundler/gems/tbd-8c7a2d4bf19a/lib/measures/tbd/resources/model.rb
:/ruby/2.7.0/bundler/gems/tbd-8c7a2d4bf19a/lib/measures/tbd/resources/oslog.rb
:/ruby/2.7.0/bundler/gems/tbd-8c7a2d4bf19a/lib/measures/tbd/resources/psi.rb
:/ruby/2.7.0/bundler/gems/tbd-8c7a2d4bf19a/lib/measures/tbd/resources/tbd.rb
:/ruby/2.7.0/bundler/gems/tbd-8c7a2d4bf19a/lib/measures/tbd/resources/transformation.rb
:/ruby/2.7.0/bundler/gems/tbd-8c7a2d4bf19a/lib/measures/tbd/resources/ua.rb
:/ruby/2.7.0/bundler/gems/tbd-8c7a2d4bf19a/lib/measures/tbd/resources/utils.rb
:/ruby/2.7.0/bundler/gems/tbd-8c7a2d4bf19a/lib/measures/tbd/resources/version.rb
:/ruby/2.7.0/bundler/gems/tbd-8c7a2d4bf19a/lib/measures/tbd/tests/tbd_tests.rb
:/ruby/2.7.0/bundler/gems/tbd-8c7a2d4bf19a/lib/tbd.rb
:/ruby/2.7.0/bundler/gems/tbd-8c7a2d4bf19a/lib/tbd/geo.rb
:/ruby/2.7.0/bundler/gems/tbd-8c7a2d4bf19a/lib/tbd/psi.rb
:/ruby/2.7.0/bundler/gems/tbd-8c7a2d4bf19a/lib/tbd/ua.rb
:/ruby/2.7.0/bundler/gems/tbd-8c7a2d4bf19a/lib/tbd/version.rb
:/ruby/2.7.0/bundler/gems/tbd-8c7a2d4bf19a/spec/spec_helper.rb
:/ruby/2.7.0/bundler/gems/tbd-8c7a2d4bf19a/spec/tbd_spec.rb
:/ruby/2.7.0/bundler/gems/tbd-8c7a2d4bf19a/spec/tbd_tests_spec.rb
:/ruby/2.7.0/bundler/gems/tbd-8c7a2d4bf19a/lib/measures/tbd/README.md.erb
:/ruby/2.7.0/bundler/gems/tbd-8c7a2d4bf19a/sponsors/qc_can.png
:/ruby/2.7.0/bundler/gems/tbd-8c7a2d4bf19a/spec/files/osms/in/5ZoneNoHVAC.osm
:/ruby/2.7.0/bundler/gems/tbd-8c7a2d4bf19a/spec/files/osms/in/5ZoneNoHVAC_btap.osm
:/ruby/2.7.0/bundler/gems/tbd-8c7a2d4bf19a/spec/files/osms/in/midrise_KIVA.osm
:/ruby/2.7.0/bundler/gems/tbd-8c7a2d4bf19a/spec/files/osms/in/resto1.osm
:/ruby/2.7.0/bundler/gems/tbd-8c7a2d4bf19a/spec/files/osms/in/resto2.osm
:/ruby/2.7.0/bundler/gems/tbd-8c7a2d4bf19a/spec/files/osms/in/seb.osm
:/ruby/2.7.0/bundler/gems/tbd-8c7a2d4bf19a/spec/files/osms/in/smalloffice.osm
:/ruby/2.7.0/bundler/gems/tbd-8c7a2d4bf19a/spec/files/osms/in/warehouse.osm
:/ruby/2.7.0/bundler/gems/tbd-8c7a2d4bf19a/json/tbd_5ZoneNoHVAC.json
:/ruby/2.7.0/bundler/gems/tbd-8c7a2d4bf19a/json/tbd_5ZoneNoHVAC_btap.json
:/ruby/2.7.0/bundler/gems/tbd-8c7a2d4bf19a/json/tbd_seb_n2.json
:/ruby/2.7.0/bundler/gems/tbd-8c7a2d4bf19a/json/tbd_seb_n4.json
:/ruby/2.7.0/bundler/gems/tbd-8c7a2d4bf19a/json/tbd_warehouse10.json
:/ruby/2.7.0/bundler/gems/tbd-8c7a2d4bf19a/lib/measures/tbd/tests/tbd_full_PSI.json
:/ruby/2.7.0/bundler/gems/tbd-8c7a2d4bf19a/tbd.schema.json
:/ruby/2.7.0/bundler/gems/tbd-8c7a2d4bf19a/tbd.gemspec
:/ruby/2.7.0/bundler/gems/tbd-8c7a2d4bf19a/.github/workflows/pull_request.yml

Environment

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

  • Windows 10 x86 64 bit
  • Ruby 2.7.8
  • OpenStudio application (both 1.6 and 1.7 have this)

Context

I am unable to check if the measures I'm trying to write for OpenStudio Building Energy Standard Measures Gem work in the OS application.

Metadata

Metadata

Assignees

No one assigned

    Labels

    TriageIssue needs to be assessed and labeled, further information on reported might be needed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions