Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem accessing ComponentVector in CreateScheduleLibrary test (Bugzilla #1005) #239

Closed
axelstudios opened this issue Jul 19, 2013 · 3 comments
Assignees

Comments

@axelstudios
Copy link
Member

On 2012-12-13 12:08:36, @macumber wrote:

http://my.cdash.org/testDetails.php?test=10117877&build=423551

ruby "-I." "openstudio_test.rb" "--name=test_CreateScheduleLibrary"

Loading OpenStudio ruby binaries from C:/working/openstudioTrunk/build/OpenStudioCore-prefix/src/OpenStudioCore-build/Products/ruby/Release/
Loading OpenStudio shared libraries from C:/working/openstudioTrunk/build/OpenStudioCore-prefix/src/OpenStudioCore-build/Products/Release/
Loaded suite openstudio_test
Started
C:/ruby-msvc/bin/ruby -I'C:/working/openstudioTrunk/build/OpenStudioCore-prefix/src/OpenStudioCore-build/ruby/Release/' 'C:/working/openstudioTrunk/openstudiocore/ruby/openstudio/examples/CreateScheduleLibrary.rb' 'C:/working/openstudioTrunk/build/OpenStudioCore-prefix/src/OpenStudioCore-build/resources/model/example/in.osm' ./scheduleLibrary.osp
C:/working/openstudioTrunk/openstudiocore/ruby/openstudio/examples/CreateScheduleLibrary.rb:81: [BUG] Segmentation fault
ruby 1.8.6 (2009-06-08) [i386-mswin32]

This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information.
Loading OpenStudio ruby binaries from C:/working/openstudioTrunk/build/OpenStudioCore-prefix/src/OpenStudioCore-build/Products/ruby/Release/
Loading OpenStudio shared libraries from C:/working/openstudioTrunk/build/OpenStudioCore-prefix/src/OpenStudioCore-build/Products/Release/
./scheduleLibrary.osp
./scheduleLibrary-run.db
Creating components for 10 schedules.
Saving 10 components to ./scheduleLibrary.osp.
F
Finished in 4.725095 seconds.

  1. Failure:
    test_CreateScheduleLibrary(CreateScheduleLibrary_Test) [C:/working/openstudioTrunk/openstudiocore/ruby/openstudio/examples/test/CreateScheduleLibrary_Test.rb:45]:
    is not true.

1 tests, 1 assertions, 1 failures, 0 errors

On 2013-01-10 11:37:04, @DavidGoldwasser wrote:

<batch comment: added this to Pivotal Epic, https://www.pivotaltracker.com/epic/show/458473>

@ghost ghost assigned lefticus Jul 19, 2013
@macumber
Copy link
Contributor

When the code tries to loop over all the components, this code is used to get the type name for the objects in the vector, this returns the name successfully:

namespace swig {
template <> struct traits<openstudio::model::Component > {
typedef pointer_category category;
static const char* type_name() { return"openstudio::model::Component"; }
};
}

However, this code then tries to look up the swig_type_info corresponding to that name, this fails but I am not sure why:

static swig_type_info *type_info() {
  static swig_type_info *info = type_query(type_name<Type>());
  return info;
}

The code crashes because swig_type_info *info is 0.

@lefticus
Copy link
Contributor

IIRC there's a similar failure in one of Elaine's old libraries that we never managed to figure out. That's basically all I have to add to the discussion right now.

@elainethale
Copy link
Member

@lefticus I think this is that old failure.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants