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

Any experience with the following Openstudio crash? "An unhandled exception has occurred. Access violation - no RTTI data!"

asked 2015-08-05 19:05:19 -0600

NickC's avatar

updated 2015-08-06 10:51:09 -0600

Hello Unmet hours; first question, so thanks in advance for any/all assistance with the forum and the aforementioned error!

Background: I've generated a fairly large model in SketchUp (no input file errors/warnings), assigned various space types (189.1-2009 Secondary School), and grouped spaces into thermal zones. Launched the Ruby Console and reopened the *.osm filec as a final check; everything seemed OK so I launched OS with plans to assign air/plant loops. I started working through all the OS tabs at LEFT (site, schedules, constructions, etc.), and upon clicking the Facility tab received the following error.

"Unhandled Exception An unhandled exception has occurred. Access violation - no RTTI data!"

Lots of head scratching, resetting of thermal zones, etc but nothing I tried resolved the error. Searching Unmet Hours, I found one somewhat similar question and another, but the answer requires @Kyle Benne to manually fix your model!

When I open a previous version of the model (post- assigned space types and pre-thermal zoning), I am able to launch OS and view the Facilities tab, so my best guess is the error has something to do with the thermal zoning... Also, using the previous version, I tried the "Add New Thermal Zone For Spaces With No Thermal Zone". With each space now having its own thermal zone, I couldn't repeat the error.

I'd upload photos of the model and thermal zoning, but don't have enough Karma yet. I'd like to understand what is causing the error so I can avoid it in the future, and hopefully save all the work between the old model version and the most recent one!

-Nick

Some additional details:

  • envelope generation in SketchUp Pro 2015
  • SketchUp plug-in for setting construction/space types/ thermal zoning
  • OpenStudio version 1.8.0
  • All running on 64-bit Windows 7 machine
edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
5

answered 2015-08-06 10:37:16 -0600

This type of error is generated when dereferencing an unset optional or a bad pointer, so it is usually the result of a bug in OpenStudio. So sending the file to the OpenStudio team helps us find and fix this bug (in addition to getting you unstuck on your work). If you are able to, please send this file to OpenStudio@nrel.gov. We will create an issue and look into it for you.

edit flag offensive delete link more

Comments

Thanks for the response! As suggested, I've sent an email along with the pre and post error files. Once the issue gets sorted out, I'll post an update. -N

NickC's avatar NickC  ( 2015-08-06 11:09:38 -0600 )edit
1

Hi @NickC, we have filed bugs #1755 and #1763 and are looking into these. The issue seems to start with a malformed zoneHVACEquipmentList for a ThermalZone. I am not clear yet how the model got this way and what the workaround would be, I imagine we could write a measure that would fix the model.

@Kyle Benne@Julien Marrec FYI

macumber's avatar macumber  ( 2015-08-12 16:46:06 -0600 )edit

@NickC I have repaired your file. The version named "FHS_v3-12 (Thermal Zoning)4.osm" as it seemed to be the most recent file. I will send it back through email. In order to help us identify the root cause can you try to recall your steps? What was your workflow? Did you create the zones in sketchUp or in the OS App?

Kyle Benne's avatar Kyle Benne  ( 2015-08-13 11:05:44 -0600 )edit

Hello @macumber and @Kyle Benne , apologies for the delayed response. Thanks for the filling the bugs and for repairing the model! I've been working with it this morning and there's no sign of the original issue.

Regarding workflow, for both model versions sent in, I was assigning thermal zones in SketchUp. Some zones I had assigned manually using the "Set Attributes for Selected Spaces" tool; others were assigned using the supplied measure "Add New Thermal Zones for Spaces with no Thermal Zone".

I uncovered the bug much later, in terms of workflow, when I had transitioned to OS.

NickC's avatar NickC  ( 2015-08-17 09:05:01 -0600 )edit

I haven't been able to reproduce this issue with your model, I think I have code that would prevent it from happening in the future but there is no way to really know :-/

macumber's avatar macumber  ( 2015-08-17 10:34:24 -0600 )edit
2

answered 2015-08-13 06:57:16 -0600

Until this is fixed, you should look into how many OS:ThermalZone you have and how many OS:Sizing:Zone objects you have (do a search for these keywords in notepad++ to get the number of matches).

If you happen to have one more OS:Sizing:Zone objects than OS:ThermalZone, which was my case, Mark Adams gave me a workaround that fixes the problem here:

A workaround for the moment that I found is to delete the OS:Sizing:Zone and OS:ZoneHVAC:EquipmentList that are causing the problem. You have one more OS:Sizing:Zone object than number of OS:ThermalZone objects.

Look at your OSM in a text editor for the OS:Sizing:Zone that does not have a "Zone or ZoneList Name" UUID in it.

Then delete that object, the OS:ZoneHVAC:EquipmentList below it, the two OS:PortList above it, one OS:Connection above it, and one OS:Node above it.

edit flag offensive delete link more

Comments

1

I just want to mention, what I wrote for the workaround for @Julien Marrec is specific to his model. The general principle is the same for all models though. Make sure to clean up any malformed OS:Sizing:Zone objects (aka ones without OS:ThermalZone attached). Then do the same for OS:ZoneHVAC:EquipmentList objects that don't have any OS:ThermalZone in the list. You may need to clean up some OS:PortList, OS:Connection, and OS:Node objects. Word of warning, make sure to save your osm as a different file first since you can easily mess up your model deleting things in a text editor.

MarkAdams's avatar MarkAdams  ( 2015-08-13 07:51:45 -0600 )edit

@Julien Marrec and @NickC, did either of you use the plugin to create ThermalZones for your models? If so, what method did you use to make the zones? Did you happen to make any zones after seeing the message about "unknown error has occurred, please restart SketchUp"?

macumber's avatar macumber  ( 2015-08-13 10:42:54 -0600 )edit

I started by manually creating a couple of zones because those had two or more spaces.

Then I did use "create thermal zones for spaces without thermal zones". I also used "Rename thermal zones like space name".

As far as making zones after crash, I can't say for certain but if I did I really didn't mean to.

Julien Marrec's avatar Julien Marrec  ( 2015-08-13 10:49:01 -0600 )edit

How did you create the first couple of zones, using the plus button in the inspector?

macumber's avatar macumber  ( 2015-08-13 10:54:50 -0600 )edit

Select spaces > Set Attributes for Selected Spaces

Julien Marrec's avatar Julien Marrec  ( 2015-08-13 12:32:03 -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: 2015-08-05 19:05:19 -0600

Seen: 1,050 times

Last updated: Aug 13 '15