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

    Catching Console errors upon crash

    Scheduled Pinned Locked Moved Developers' Forum
    6 Posts 3 Posters 192 Views 3 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.
    • thomthomT Offline
      thomthom
      last edited by

      I'm experiencing an bugsplat which I have a hard time tracking down.

      After I execute a specific action from my script, then go File->New to create a new scene, then once more File->New yet again SU bugsplats. I'm wondering about methods to debug that. I wonder if the Consoles outputs anything as it crashes which I won't be able to read before the window disappear.

      Anyone got ideas?

      Thomas Thomassen — SketchUp Monkey & Coding addict
      List of my plugins and link to the CookieWare fund

      1 Reply Last reply Reply Quote 0
      • J Offline
        Jim
        last edited by

        Not sure thomthom, but try starting Sketchup.exe with a batch file like this:

        
        sketchup.exe > log.txt 2>&1
        
        

        Hi

        1 Reply Last reply Reply Quote 0
        • thomthomT Offline
          thomthom
          last edited by

          that does generate a log.txt file, but the output to that file seem to end quickly.

          Thomas Thomassen — SketchUp Monkey & Coding addict
          List of my plugins and link to the CookieWare fund

          1 Reply Last reply Reply Quote 0
          • J Offline
            Jim
            last edited by

            Maybe it's just buffering until something flushed it?

            Hi

            1 Reply Last reply Reply Quote 0
            • AdamBA Offline
              AdamB
              last edited by

              These are very tough to track down.

              It sounds like stale data. Classic one is referencing duff data as SU tears down the parts hierarchy of a model. My general rule is never hang on to references; I know you've been digging deep into Observers recently.

              Adam

              [BTW What you building in there!]

              Developer of LightUp Click for website

              1 Reply Last reply Reply Quote 0
              • thomthomT Offline
                thomthom
                last edited by

                It's odd that it happens on the second File->New as in the first one, nothing is done.

                And yes, I do have quite a few observers and references. Though, I thought I was resetting everything onNewModel.

                I think I'll have to release a developers alpha, see if anyone can spot the culprit in my code.

                What I'm building is a plugin that allows cutout components to also cut through an opposite faced face. It does taht by creating a new invisible cutout. That's the simple stuff. The complicated stuff is making sure the extra cutout syncs with move,rotate,edits etc. That required allot more work than expected. Especially since I ran into so many bugs in the SU Ruby API requiring workaround upon workaround.

                Thomas Thomassen — SketchUp Monkey & Coding addict
                List of my plugins and link to the CookieWare fund

                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