Question-and-Answer Resource for the Building Energy Modeling Community
Get started with the Help page
Ask Your Question
1

Open Studio App still crashing...

asked 2022-04-25 16:10:03 -0600

TheEnergyTutor's avatar

I took some time off after how unstable OS App was and today I downloaded it for some work assigned to me. Not even 5 minutes into it, it has deleted my work and crashes, just like the old days. I thought this had been fixed. I have made a video here https://youtu.be/TW4PyVjiDt8. In the old days i got around this by using the external floorplan.json editor directly. Do i still need to do that? https://nrel.github.io/floorspace.js/ Is there any way for it to restore the work i've done? Why did it delete it? i tried to attach the floorplan.json but i guess it's a blocked file type, so i pasted it below..

Thanks

{"application":{"currentSelections":{"story":null,"story_id":"5","subselection_ids":{"5":"73"},"component_id":null,"component_definition_id":null,"component_instance_id":null,"space_property_id":null,"tool":"Rectangle","mode":"spaces","snapMode":"grid-strict","modeTab":"floorplan","subselectionType":"spaces"},"modes":["spaces","shading","building_units","thermal_zones","pitched_roofs","space_types","images"],"tools":["Pan","Drag","Rectangle","Polygon","Eraser","Select","Map","Fill","Place Component","Image","Apply Property"],"scale":{"x":{"pixels":1467,"rwuRange":[-12.5,262.5]},"y":{"pixels":796,"rwuRange":[-14.608043626448534,134.60804362644853]}}},"project":{"config":{"units":"ip","unitsEditable":true,"language":"EN-US"},"north_axis":0,"ground":{"floor_offset":0,"azimuth_angle":0,"tilt_slope":0},"grid":{"visible":true,"spacing":1},"view":{"min_x":82.22303784108631,"min_y":-907.8950230029586,"max_x":244.6095287876479,"max_y":-819.7834709965078},"map":{"initialized":false,"enabled":false,"visible":true,"latitude":39.7653,"longitude":-104.9863,"zoom":4.5,"rotation":0,"elevation":0},"previous_story":{"visible":true},"show_import_export":false,"preview3D":{"enabled":false}},"stories":[{"id":"5","handle":null,"name":"Story 1","image_visible":true,"below_floor_plenum_height":0,"floor_to_ceiling_height":8,"above_ceiling_plenum_height":0,"multiplier":1,"color":"#332288","geometry":{"id":"6","vertices":[{"id":"9","x":0,"y":0,"edge_ids":["16","84"]},{"id":"10","x":250,"y":0,"edge_ids":["22","25"]},{"id":"11","x":250,"y":120,"edge_ids":["15","32"]},{"id":"12","x":0,"y":120,"edge_ids":["15","16"]},{"id":"26","x":236,"y":0,"edge_ids":["30","22","49"]},{"id":"27","x":236,"y":20,"edge_ids":["30","31","47"]},{"id":"28","x":250,"y":20,"edge_ids":["31","32","25"]},{"id":"50","x":222,"y":0,"edge_ids":["53","49","60","63"]},{"id":"51","x":222,"y":20,"edge_ids":["53","47","70"]},{"id":"64","x":205,"y":0,"edge_ids":["60","77","80","90"]},{"id":"65","x":205,"y":27,"edge_ids":["69","87"]},{"id":"66","x":222,"y":27,"edge_ids":["69","70","63"]},{"id":"81","x":193,"y":0,"edge_ids":["84","85","77"]},{"id":"82","x":193,"y":20,"edge_ids":["85","86"]},{"id":"83","x":205,"y":20,"edge_ids":["86","87","80","91"]}],"edges":[{"id":"15","vertex_ids":["11","12"],"face_ids":["17"]},{"id":"16","vertex_ids":["12","9"],"face_ids":["17"]},{"id":"30","vertex_ids":["26","27"],"face_ids":["33","55"]},{"id":"31","vertex_ids":["27","28"],"face_ids":["17","33"]},{"id":"32","vertex_ids":["28","11"],"face_ids":["17"]},{"id":"22","vertex_ids":["10","26"],"face_ids":["33"]},{"id":"25","vertex_ids":["28","10"],"face_ids":["33"]},{"id":"53","vertex_ids":["50","51"],"face_ids":["55"]},{"id":"47","vertex_ids":["27","51"],"face_ids":["17","55"]},{"id":"49","vertex_ids":["50","26"],"face_ids":["55"]},{"id ... (more)

edit retag flag offensive close merge delete

Comments

@TheEnergyTutor sorry about that, you're correct that Unmet Hours only allows image files (.jpg, .png, etc.) to be attached to question and answer posts (not comments). To get around that, you can save your floorspace.js file (or any kind of file) on Dropbox, Google Drive, or a similar file-hosting service and then share the link to that file here for others to access.

Aaron Boranian's avatar Aaron Boranian  ( 2022-04-25 17:25:41 -0600 )edit

I uploaded two new videos of this issue. the most recent is the full creation video. It only takes 1 minute and 5 spaces for it to crash and it happens every time. very repeatable. https://youtu.be/_0T9zXlpO3g

I'm curious what is going on because i've used this in the past with much better success. i've never seen this problem before. I promised i client i would do this for them, but it appears there is no chance for me to succeed. :(

TheEnergyTutor's avatar TheEnergyTutor  ( 2022-04-26 07:59:30 -0600 )edit

2 Answers

Sort by ยป oldest newest most voted
0

answered 2022-04-26 13:40:05 -0600

TheEnergyTutor's avatar

Thanks to Eric for identifying the shortcoming of the geometry editor. I was able to modify the creation approach and posted the solution here.

https://youtu.be/30i0UUVqe94

It's obviously frustrating. Not only does it fail, but it erases all my work if you do the other way.

edit flag offensive delete link more
4

answered 2022-04-26 03:11:31 -0600

updated 2022-04-26 03:13:45 -0600

If you mean to report what you clearly think is a bug, don't do it here please, go directly to https://github.com/openstudiocoalitio..., and provide as much factual information as possible.

Anyways, here your json is broken, it's missing the geometry. How that happened? I wouldn't know and couldn't guess.

You could also try the steps here: https://github.com/openstudiocoalitio.... You'd see that trying to load your floorplan.json fails already in floorspace:

Critical: A vertex is referenced by a face, but does not exist! {"id":"6","faces":[{"id":"17","edgeRefs": 
[ ...truncated... ] {"id":"83","x":205,"y":20,"edge_ids":["86","87","80","91"]}]} (qrc:///library/geometry_preview.html:252, (null))

If you try to load your json in the OpenStudio CLI, you'll see that it crashes in the OpenStudio SDK, not in the OpenStudioApp.

$ openstudio.exe -e "p = 'floorplan.json'; floorPlan = OpenStudio::FloorplanJS::load(p).get; scene = floorPlan.toThreeScene(true)"

[BOOST_ASSERT] <2> Assertion vertex2 failed on line 553 of void openstudio::FloorplanJS::makeGeometries(const Json::Value&, const Json::Value&, bool, bool, double, double, double, const Json::Value&, const Json::Value&, const Json::Value&, const string&, bool, std::vector<openstudio::ThreeGeometry>&, std::vector<openstudio::ThreeSceneChild>&, bool) const in file /srv/jenkins/openstudio/git/nightly/ubuntu_2004/src/utilities/geometry/FloorplanJS.cpp.

eval:48: [BUG] Segmentation fault at 0x0000000000000008
ruby 2.7.2p137 (2020-10-01 revision 5445e04352) [x86_64-linux]

-- Control frame information -----------------------------------------------
c:0015 p:---- s:0087 e:000086 CFUNC  :toThreeScene

The OpenStudio SDK could probably do more validity checking on a json file to handle gracefully the case where a broken json file is supplied, but that's about it.


I also suggest you start using git for version control of your modeling files. It works very well since json, IDF, OSMs, etc are text files. And you can easily go back in time should something bad arise.

edit flag offensive delete link more

Comments

No i'm not intending to submit a bug. i'm not able to determine what is a bug and what isn't. Additionally, I don't think Floorspace is accepting bug reports - last i checked, it was a dead product. Today I ran floorspace directly from the website and tried to create the geometry and the same exact thing happened. When i tried to create the 5th space, it deleted all my work. i was able to capture it in this new video. https://youtu.be/XGfJJIvDmAA

What should i do? I'm a production consultant, not a researcher or education and i need to accomplish this task swiftly. Thank you.

TheEnergyTutor's avatar TheEnergyTutor  ( 2022-04-26 07:37:05 -0600 )edit

The file corruption seems to be happening when drawing Lobby: the line separating Lobby from Men is not dashed - it hasn't been registered as an interior wall. Try drawing your smaller spaces before drawing the larger enclosing Cargo space. I'd also save frequently, so you don't lose all your work.

ericringold's avatar ericringold  ( 2022-04-26 10:20:19 -0600 )edit

If you are producing work then use SketchUp, drawing.tool, or Revit to create geometry. There are more options than excuses :)

Luis Lara's avatar Luis Lara  ( 2022-04-26 10:31:54 -0600 )edit

Instead of drawing one big space and carving it up into smaller ones, draw the smaller spaces first, then the bigger one, without overlapping.

ericringold's avatar ericringold  ( 2022-04-26 11:49:26 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Training Workshops

Careers

Question Tools

1 follower

Stats

Asked: 2022-04-25 16:10:03 -0600

Seen: 430 times

Last updated: Apr 28 '22