SU crashes on mac plugins!
-
I have several scripts all having the same problem. The script works fine on windows, works fine on mac. Except when it needs to do a lot of things (bigger models) on mac. Result is SU crashes! When do SU crash? SU crashes when the real memory size SketchUp uses become around the 2.8 GB (on my machine).
I thick the the problem is the ruby version used in de mac version of Sketchup. It uses ruby v1.8.5, the windows version uses 1.8.6. Ruby 1.8.5 is 7 years old. Has lot of problems with big arrays and with garbage collection.
I made a video of a script that crashes. On the left you see the model. On the right you see the memory use of sketchup. On the right below you see the script. What does this script do, it loops through the model and checks every group or component if it's manifold and hide the group if it's manifold.
Notes:
AW_lib.isValid? checks if the entity is a group or a component instance and that the entity is not deleted.
AW_lib.nestedGroups? checks if there are other groups or components inside the group or component
I have also expanded the Sketchup::ComponentDefinition class with a .entities so .entities works the same on a component instance like on a group. -
hi Guy,
not sure I can help here, but have some thoughts, I may disclose, with more info...
can you add a screenshot , to this post showing, the 'Outliner' window with as much structure of a failing .skp, showing as possible.I have tried the standard instal ruby with some 'group sorting' problem scripts and it didn't appear to help, your milage my vary, but I think problems on the 'C' side...
So, other then the usual, general advice,
Close all supplementary windows, eliminate 'SU' trying to refresh the view, ie have it really small, on an empty scene.If you can provide a snippet that fails more advice could be given,
john
Advertisement