Skip to content

Instantly share code, notes, and snippets.

@jameswhite
Created February 28, 2016 00:10
Show Gist options
  • Save jameswhite/c2773afdc7e45cfdf4f6 to your computer and use it in GitHub Desktop.
Save jameswhite/c2773afdc7e45cfdf4f6 to your computer and use it in GitHub Desktop.

chatops kept getting the error

miracle_grue: submodule/json-cpp/src/lib_json/json_value.cpp:1189: const Json::Value& Json::Value::operator[](const char*) const: Assertion `type_ == nullValue || type_ == objectValue' failed.
make: *** [/opt/make-me/data/print.gcode] Error 134

so we added an strace -fo /tmp/wtf to https://github.com/jfryman/make-me/blob/master/Makefile#L42 and a std::cout << key << std::endl; before https://github.com/makerbot/json-cpp/blob/6ffeba338646ab2fc632b8964699eff1a4152e46/src/lib_json/json_value.cpp#L1187 which showed us that the submodule was erroring out right as it tried to get the value for feedrate which was not in the grue-make-me.config referenced in the makefile https://github.com/jfryman/make-me/blob/master/Makefile#L42 by replacing grue-$(GRUE_CONFIG).config with grue-default.config it allowed us to print with chatops, but the raft and supports features will not work as those are evidently features of the grue-make-me-config generated by MakeMe::MiracleGrueConfigurator.new here https://github.com/jfryman/make-me/blob/master/server/app.rb#L130

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