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

    Leopard hang fix

    Scheduled Pinned Locked Moved SketchUp Bug Reporting
    sketchup
    80 Posts 53 Posters 31.4k Views 53 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.
    • I Offline
      inio
      last edited by

      Looks like I was right. The attached "input manager" seem to resolve the freezes as far as I can tell. It causes visual artifacts in a few cases when dragging rectangles, but that hopefully isn't too big of an issue.

      (bare Input Manager obsoleted by dedicated installer package above).

      Here's the source code, if you're interested. If you want the full project, let me know and I'll post it.:

      
      @interface ThawUp ; NSObject 
      {
      }
      @end
      
      #import "APELite.h"
      #import "OpenGL/gl.h"
      #import "OpenGL/OpenGL.h"
      
      static void (*orig_glClear) (GLbitfield mask) = nil;
      static void new_glClear(GLbitfield mask);
      
      static void (*orig_glDrawBuffer) (GLenum mode) = nil;
      static void new_glDrawBuffer(GLenum mode);
      
      static BOOL wasFront;
      
      @implementation ThawUp
      + (void) load
      {
          if(![[[NSBundle mainBundle] bundleIdentifier] hasPrefix;@"com.google.sketchup"]){ return; }
          NSLog(@"ThawUp loaded as input manager");
      	
      	wasFront = FALSE;
      	
      	orig_glClear = APEPatchCreate(glClear, new_glClear);
      	orig_glDrawBuffer = APEPatchCreate(glDrawBuffer, new_glDrawBuffer);
      }
      
      static void new_glClear(GLbitfield mask) {
          if (wasFront) {
      		wasFront = FALSE;
      		NSLog(@"ThawUp causing CGLFlushDrawable");
      		CGLFlushDrawable(CGLGetCurrentContext());
      	}
      	orig_glClear(mask);
      }
      
      static void new_glDrawBuffer(GLenum mode) {
      	if (mode == GL_FRONT) wasFront = TRUE;
      	orig_glDrawBuffer(mode);
      }
      @end
      
      

      ThawUp.zip

      1 Reply Last reply Reply Quote 0
      • B Offline
        bjanzen
        last edited by

        Thanks for trying this with 10.5.2. For now, this patch is the best solution I've seen.

        Barry

        1 Reply Last reply Reply Quote 0
        • M Offline
          markodd
          last edited by

          Hi .... I have recently bought a macbook with leopard (osx 10.5). I want to buy sketchup pro but thought that I would download a trial version to check it out. There are many hang problems which (compared to Sketchup 5 on my old pc) drive me nuts... Its seems that this is a problem experienced by other users and it also seems that there may be a solution... Can you help ? markodd

          1 Reply Last reply Reply Quote 0
          • I Offline
            inio
            last edited by

            @markodd said:

            Hi .... I have recently bought a macbook with leopard (osx 10.5). I want to buy sketchup pro but thought that I would download a trial version to check it out. There are many hang problems which (compared to Sketchup 5 on my old pc) drive me nuts... Its seems that this is a problem experienced by other users and it also seems that there may be a solution... Can you help ? markodd

            Are the hangs related to trying to rectangle select? If so, download the patch in the first post of this thread.

            1 Reply Last reply Reply Quote 0
            • JasonWDJ Offline
              JasonWD
              last edited by

              inio you are a Genius

              I sometimes like to use my girlfriend's macbook at home (I normally use a MacPro at work) and found the hang time on SU was just unbearable.

              Your fix has totally sorted it; amazing... how come Google don't sort this on a release, or even put your patch on the help site?

              It is even making me wonder whether to save the cash on the difference between buying a MacBook Pro vs MacBook for my home machine...

              SketchUp, Thea Render, Vectorworks PC and Mac - Full LayOut workflow Concept>Production

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

                Hi,

                I'm on a MacBook Pro 2.4GHz with Mac OS X 10.5.2 and using SketchUp 6.4.120 (latest version, far as I know).
                Both with and without the patch, I'm getting full system hangs periodically, usually when I pan or orbit. It's not completely debilitating, but it is of course kind of annoying...

                If I leave the system when it hangs, it still seems to save out an Autosave file, but it's otherwise completely unresponsive. Does this sound like the same issue or something different?

                (Also, with the patch installed, I would occasionally get a similar system hang in Adobe InDesign CS3 when switching palettes around...)

                Thanks!

                David

                1 Reply Last reply Reply Quote 0
                • T Offline
                  turgimonster
                  last edited by

                  i'm also getting the hang... 10.5.2 w/all updates + SU 6.4.120

                  i notice it in two situations:

                  1. if there is an image imported. this causes a hang that requires a hard restart about every 15-20 min.
                  2. the beach ball hang... which i can't define with specific actions, but happens pretty frequently hanging for 10-60 seconds at a time.

                  anyone talk to google?

                  i just installed the thaw-up... thanks! i'll post my results...

                  1 Reply Last reply Reply Quote 0
                  • A Offline
                    antioche
                    last edited by

                    I've been looking for a way to sort that beachballing bonanza every time I selected something in Sketchup with a rectangular selection on my Mac Mini Dual-Core. This worked like a charm! The selection is now almost instant!

                    Thanks a lot for working out this great patch!

                    Antioche

                    1 Reply Last reply Reply Quote 0
                    • H Offline
                      howdy
                      last edited by

                      didn't work for me. leopard still beach balling away. really too bad.

                      1 Reply Last reply Reply Quote 0
                      • I Offline
                        inio
                        last edited by

                        You may need to restart, or at lest log out, after installing it for it to take effect.

                        1 Reply Last reply Reply Quote 0
                        • bigstickB Offline
                          bigstick
                          last edited by

                          I too am getting OS X Leopard SU instability and lockups. Mainly due to using the pushpull tool - I think. The fact that people are still posting about this 5 months after you uploaded your fix, leads me to believe that the latest updates haven't fixed the issue. I'm going to try it and see if things improve, even though my issues don't seem to be the same.

                          Thanks for the time you have spent on this inio!

                          1 Reply Last reply Reply Quote 0
                          • I Offline
                            inio
                            last edited by

                            Yeah, I'm a little surprised this issue hasn't been fixed yet. Three OS updates (four if you count the "Graphics Update") and one SketchUp update later :/.

                            (BTW, confirmed to be needed with 10.5.3)

                            1 Reply Last reply Reply Quote 0
                            • P Offline
                              PeterPritchard
                              last edited by

                              hiya

                              currently using macbook pro running su pro 6 and 10.5.3

                              mine hangs when just rotating simple models

                              i assume your fix may help address this - is it a problem you've found

                              peter

                              1 Reply Last reply Reply Quote 0
                              • EdsonE Offline
                                Edson
                                last edited by

                                i've read 10.5.4 fixed the problem.

                                edson mahfuz, architect| porto alegre • brasil
                                http://www.mahfuz.arq.br

                                1 Reply Last reply Reply Quote 0
                                • P Offline
                                  primo
                                  last edited by

                                  Still having the same problem here!
                                  OSx 10.5.4 ans sketchup pro.

                                  Sketchups hangs when rotating a model.

                                  The patch was no help at all, so far, If I disable airport, the problem disapears, no clue what this is!!

                                  1 Reply Last reply Reply Quote 0
                                  • P Offline
                                    primo
                                    last edited by

                                    No clue as to why is Aiport the culprit, but I found this hint online and tried it, and seems to work!

                                    Disabling airport for some minutes before opening SU solves the problem. After a while I can activate airport again, and continue working.

                                    Tried to use little snitch to block SU, but not sure if it works or not.

                                    Not sure but this problem seems to be mainly on old files, on those created on OS 10.4, new ones don't seem to be afected.

                                    Anyone with simmilar issues?

                                    1 Reply Last reply Reply Quote 0
                                    • E Offline
                                      ernest
                                      last edited by

                                      Thanks....

                                      I'm from Indonesia, very useful for me

                                      1 Reply Last reply Reply Quote 0
                                      • R Offline
                                        rand_2304
                                        last edited by

                                        thx.... it solve my problem

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

                                          I am looking for the thaw fix file to download. Where can i go to get it?

                                          Thanks

                                          1 Reply Last reply Reply Quote 0
                                          • R Offline
                                            remus
                                            last edited by

                                            Are you talking about the file referenced in the first post? or is this another file?

                                            http://remusrendering.wordpress.com/

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

                                            Advertisement