SketchUp version : 2019 Skatter version (Skatter dialog > Options > About) : 1.4.7 OS : w10 Description of the issue :
If i started a new project, skatter will work perfectly, but when i opened an oldest file (like 2017/2018 with the same plugin) it gives me a ruby error in the begining and not working
Are you able to reproduce the issue every time? (If yes, how?) : Error in Ruby Console? (Window > Ruby Console) :
Error: #<IndexError: index 268435456 too big>
C:/ProgramData/SketchUp/SketchUp 2019/SketchUp/Plugins/jbb_skatter/rb/generate_points.rb:201:in cpp_generate_uniform_points' C:/ProgramData/SketchUp/SketchUp 2019/SketchUp/Plugins/jbb_skatter/rb/generate_points.rb:201:inblock in generate_points’
C:/ProgramData/SketchUp/SketchUp 2019/SketchUp/Plugins/jbb_skatter/rb/generate_points.rb:143:in each' C:/ProgramData/SketchUp/SketchUp 2019/SketchUp/Plugins/jbb_skatter/rb/generate_points.rb:143:ingenerate_points’
C:/ProgramData/SketchUp/SketchUp 2019/SketchUp/Plugins/jbb_skatter/rb/methods.rb:889:in refresh' C:/ProgramData/SketchUp/SketchUp 2019/SketchUp/Plugins/jbb_skatter/rb/methods.rb:730:inrefresh_from_attributes’
C:/ProgramData/SketchUp/SketchUp 2019/SketchUp/Plugins/jbb_skatter/rb/methods.rb:606:in block (2 levels) in startup' C:/ProgramData/SketchUp/SketchUp 2019/SketchUp/Plugins/jbb_skatter/rb/methods.rb:603:ineach’
C:/ProgramData/SketchUp/SketchUp 2019/SketchUp/Plugins/jbb_skatter/rb/methods.rb:603:in block in startup' c:/users/utilizador/appdata/roaming/sketchup/sketchup 2019/sketchup/plugins/su_dynamiccomponents/ruby/dcobservers.rbe:175:inis_online’
c:/users/utilizador/appdata/roaming/sketchup/sketchup 2019/sketchup/plugins/su_dynamiccomponents/ruby/dcobservers.rbe:175:in initialize' c:/users/utilizador/appdata/roaming/sketchup/sketchup 2019/sketchup/plugins/su_dynamiccomponents/ruby/dcobservers.rbe:1054:innew’
c:/users/utilizador/appdata/roaming/sketchup/sketchup 2019/sketchup/plugins/su_dynamiccomponents/ruby/dcobservers.rbe:1054:in <main>' c:/users/utilizador/appdata/roaming/sketchup/sketchup 2019/sketchup/plugins/su_dynamiccomponents/ruby/dcloader.rbe:16:ineval’
c:/users/utilizador/appdata/roaming/sketchup/sketchup 2019/sketchup/plugins/su_dynamiccomponents/ruby/dcloader.rbe:16:in require' c:/users/utilizador/appdata/roaming/sketchup/sketchup 2019/sketchup/plugins/su_dynamiccomponents/ruby/dcloader.rbe:16:in’
C:/Program Files/SketchUp/SketchUp 2019/Tools/extensions.rb:197:in eval' C:/Program Files/SketchUp/SketchUp 2019/Tools/extensions.rb:197:inrequire’
C:/Program Files/SketchUp/SketchUp 2019/Tools/extensions.rb:197:in load' C:/Users/utilizador/AppData/Roaming/SketchUp/SketchUp 2019/SketchUp/Plugins/su_dynamiccomponents.rb:47:inregister_extension’
…
Do you have any other non-confidential models from the same time period that can reproduce this issue? Otherwise it will be tricky for us to investigate.
Alternatively, you can maybe try to install an older version of Skatter to see if the compatibility is better.
Thanks for the file sent via email.
You have a Skatter setup that is trying to create way too many objects. It is the “PERSONNAGE” setup.
You have set the density to 0.2 obj/unit while the model unit is centimeters. This means you will have 400 objects per square-meter.
Since your surface is 1085574331.2 cm², that’s more than 200 millions objects! Skatter is not able to handle such a huge amount of data.
Did you switch the model unit from meters to centimeters at some point?
To fix your file:
Open a blank SketchUp file
Disable Skatter in the Extensions Manager
Restart SketchUp and open your file
Open the Ruby Console from the Window menu
Paste this line of code in the console and press Enter: Sketchup.active_model.attribute_dictionaries.delete('jbb_skatter_087608c3-43df-42de-997f-6ac1b92de594')
I indeed switched at some point. I needed to work on this file so i copy/pasted on an other file all of it and did the skatters again, but for next time i will know!