RangeError 0x0000000531810c is not id value - Error opening .skp file

Issue #13 resolved
Peter Ellis created an issue

This error is reported by users after saving their model using the SketchUp File/Save menu command (which saves the .skp file, but also triggers the .idf file to be saved), and then attempting to reopen the .skp file with the SketchUp File/Open command.

The correct process is to NOT USE the SketchUp Save and Open commands. Instead, use the Euclid menu options to save and open the EnergyPlus .idf file. Save the EnergyPlus file using the menu command Extensions/Euclid/Save. Open the EnergyPlus file using the menu command Extensions/Euclid/Open...

This bug is that attempting to use the SketchUp Save/Open commands should not result in an error message. Instead it would be most helpful to the user to show a dialog with an informative message telling them to use Euclid's Save/Open commands, if it looks like the user is unknowingly using the SketchUp commands. Euclid could detect if any geometry has been changed and then intercept SketchUp's save process.

ERROR:
RangeError
0x0000000531810c is not id value

BACKTRACE:
C:/Projects/Euclid/euclid-master~/build/output/extension/euclid/lib/legacy_openstudio/sketchup/Sketchup.rb:101:in `_id2ref'
C:/Projects/Euclid/euclid-master~/build/output/extension/euclid/lib/legacy_openstudio/sketchup/Sketchup.rb:101:in `drawing_interface'
C:/Projects/Euclid/euclid-master~/build/output/extension/euclid/lib/legacy_openstudio/lib/interfaces/Zone.rb:136:in `block in update_entity'
C:/Projects/Euclid/euclid-master~/build/output/extension/euclid/lib/legacy_openstudio/lib/interfaces/Zone.rb:135:in `each'
C:/Projects/Euclid/euclid-master~/build/output/extension/euclid/lib/legacy_openstudio/lib/interfaces/Zone.rb:135:in `update_entity'
C:/Projects/Euclid/euclid-master~/build/output/extension/euclid/lib/legacy_openstudio/lib/interfaces/DrawingInterface.rb:80:in `draw_entity'
C:/Projects/Euclid/euclid-master~/build/output/extension/euclid/lib/legacy_openstudio/lib/interfaces/ModelInterface.rb:204:in `block in update_model'
C:/Projects/Euclid/euclid-master~/build/output/extension/euclid/lib/legacy_openstudio/lib/interfaces/ModelInterface.rb:200:in `each'
C:/Projects/Euclid/euclid-master~/build/output/extension/euclid/lib/legacy_openstudio/lib/interfaces/ModelInterface.rb:200:in `each_with_index'
C:/Projects/Euclid/euclid-master~/build/output/extension/euclid/lib/legacy_openstudio/lib/interfaces/ModelInterface.rb:200:in `update_model'
C:/Projects/Euclid/euclid-master~/build/output/extension/euclid/lib/legacy_openstudio/lib/interfaces/ModelInterface.rb:117:in `draw_model'
C:/Projects/Euclid/euclid-master~/build/output/extension/euclid/lib/legacy_openstudio/lib/ModelManager.rb:182:in `open_input_file'
C:/Projects/Euclid/euclid-master~/build/output/extension/euclid/lib/legacy_openstudio/lib/ModelManager.rb:65:in `attach_input_file'
C:/Projects/Euclid/euclid-master~/build/output/extension/euclid/lib/legacy_openstudio/lib/ModelManager.rb:57:in `start'
C:/Projects/Euclid/euclid-master~/build/output/extension/euclid/lib/legacy_openstudio/lib/PluginManager.rb:141:in `new_model'
C:/Projects/Euclid/euclid-master~/build/output/extension/euclid/lib/legacy_openstudio/lib/observers/AppObserver.rb:41:in `onOpenModel'

CONFIGURATION:
Euclid 0.9.4
SketchUp 17.2.2555 64-bit
Ruby 2.2.4 x64-mingw32

Comments (3)

  1. Peter Ellis reporter

    Fixed with commit 9fa2c55. This changes the process to never associate the .idf file with the .skp file in the first place. It also adds a warning that is shown when the user tries to save the .skp file to remind them to use Euclid's own Save and Open commands.

  2. Log in to comment