sketchucation logo sketchucation
    • Login
    ℹ️ Licensed Extensions | FredoBatch, ElevationProfile, FredoSketch, LayOps, MatSim and Pic2Shape will require license from Sept 1st More Info

    SU crashes on mac plugins!

    Scheduled Pinned Locked Moved Plugins
    2 Posts 2 Posters 125 Views 2 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • G Offline
      GWD
      last edited by

      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.

      1 Reply Last reply Reply Quote 0
      • D Offline
        driven
        last edited by

        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

        learn from the mistakes of others, you may not live long enough to make them all yourself...

        1 Reply Last reply Reply Quote 0
        • 1 / 1
        • First post
          Last post
        Buy SketchPlus
        Buy SUbD
        Buy WrapR
        Buy eBook
        Buy Modelur
        Buy Vertex Tools
        Buy SketchCuisine
        Buy FormFonts

        Advertisement