NREL / openstudio-common-measures-gem

Other
8 stars 15 forks source link

view_model and view_data failing for Windows user: failed with "\xC3" from ASCII-8BIT to UTF-8 #27

Open DavidGoldwasser opened 4 years ago

DavidGoldwasser commented 4 years ago

[18:12:57.715833 ERROR] :/ruby/2.5.0/gems/openstudio-workflow-2.0.0/lib/openstudio/workflow/util/measure.rb failed with message Runner error :/ruby/2.5.0/gems/openstudio-workflow-2.0.0/lib/openstudio/workflow/util/measure.rb failed with "\xC3" from ASCII-8BIT to UTF-8, :/ruby/2.5.0/json/common.rb:224:in encode' :/ruby/2.5.0/json/common.rb:224:ingenerate'

Using OpenStudio Application 1.0 and latest version of this measure on BCL, updated for OpenStudio 3.0

DavidGoldwasser commented 4 years ago

I was able to reproduce this with view_data but not with view_model on my mac using OpenStudio Application 1.0. Renaming the file didn't impact this.

"\"\\xC3\" from ASCII-8BIT to UTF-8\n\t:/ruby/2.5.0/json/common.rb:224:inencode'\n\t:/ruby/2.5.0/json/common.rb:224:in generate'\n\t:/ruby/2.5.0/json/common.rb:224:ingenerate'\n\t/private/var/folders/83/rcnbz4dd5qqgf7rpc69354_x0g1kng/T/osmodel-1595454666-1/resources/measures/ViewData/measure.rb:401:in block in run'\n\teval:400:inopen'\n\t/private/var/folders/83/rcnbz4dd5qqgf7rpc69354_x0g1kng/T/osmodel-1595454666-1/resources/measures/ViewData/measure.rb:400:in run'\n\t:/ruby/2.5.0/gems/openstudio-workflow-2.0.0/lib/openstudio/workflow/util/measure.rb:514:inapply_measure'\n\t:/ruby/2.5.0/gems/openstudio-workflow-2.0.0/lib/openstudio/workflow/util/measure.rb:109:in block in apply_measures'\n\t:/ruby/2.5.0/gems/openstudio-workflow-2.0.0/lib/openstudio/workflow/util/measure.rb:67:ineach_index'\n\t:/ruby/2.5.0/gems/openstudio-workflow-2.0.0/lib/openstudio/workflow/util/measure.rb:67:in apply_measures'\n\t:/ruby/2.5.0/gems/openstudio-workflow-2.0.0/lib/openstudio/workflow/jobs/run_reporting_measures.rb:105:inperform'\n\t:/ruby/2.5.0/gems/openstudio-workflow-2.0.0/lib/openstudio/workflow/run.rb:292:in step'\n\t:/ruby/2.5.0/gems/openstudio-workflow-2.0.0/lib/openstudio/workflow/run.rb:234:inrun'\n\t:/openstudio_cli.rb:973:in execute'\n\t:/openstudio_cli.rb:763:inexecute'\n\t:/openstudio_cli.rb:1757:in <main>'\n\teval:149:ineval'\n\teval:149:in require_embedded_absolute'\n\teval:123:inblock in require'\n\teval:117:in each'\n\teval:117:inrequire'\n\teval:3:in <main>'"