How to track BugSplat root cause

Hi guys,

I’m killing myself looking for what could be the BugSplat source cause in my scripts (I can’t post it there, it a hudge project link to a custom home tool)…

I’ve made some research on the community topics and I couldn’t find if there is a way to identify what cause a BugSplat error when a script is run.

Any ideas how to track down that kind on issues ?

Thanks for any help !

Bug Splats are a way of making a detailed report of a program failure to Trimble. Trimble receives the detail.

If you fill in your email address, Trimble will be in touch*

*or so I’ve heard - I’ve never had one myself!

Thanks sjdorst but I was aware of that. I don’t really think that Trimble could contact every Sketchup users that had BugSplat errors, I rather think that it help them to track potential Sketchup bugs encounter by users.

I was just wondering if there is any tool published by Trimble that alow us to be self-governing
on BugSplat error fixing when scripting tools.

If you have a debugger set up try stepping through your code to see where the problem occurs.

Otherwise you can insert a bunch of put statements and narrow it down until you find the problem.

Bug splat just forwards a system-generated crash report to Trimble. If you know where to look you should be able to examine it yourself (I’m on Mac and know where it goes there, but someone else will have to tell you for Windows). In my experience though the crash report is far more helpful to Trimble than to a user. The traceback usually walks through a stack of SketchUp internal and OS functions that don’t say anything about what line your extension code was at when the crash happened. Especially if it is due to a clash with some other extension all you may be able to say is that Ruby was running something.

You will likely get more mileage with diagnostic puts and a Ruby debugger as Neil suggested.

The easiest way to view the reports on Windows is via the Event Viewer. (Start Menu > Administrative Tools)

Otherwise they are in the user "%LocalAppData%\Microsoft\Windows\WER" sub folders.

For more information on Windows Error Reporting search the Microsoft website.

Thanks for your answers.

@Neil_Burkholder, Yes I have a debugguer setup and linked with Sketchup which is running on RubyMine but it’s hard to circumscribe the problem in case of BugSplat that stop everything hardly …

@slbaumgartner : That’s what I was affraid of… So I’ll dig again and mix debugger and ruby puts onto hardrive file.

@DanRathbun : Nothing neither in the Windows Event Viewer nor in the specified directory.

I’ll do as the old fashion way as Neil and slbaumgartner suggested. Thanks anayway for you help.

Another approach could be to look in the API issue tracker after user logged issues related to bugsplats:

The API issue tracker hasn’t been around very long thugh, and issues found before are missing from it.

Correct. We contact only if we need more details to reproduce crashes that rank high.

That being said, if you can PM me the email address you used to submit - along with any part of the description I can try to look it up for you and see if I can narrow it down to what API functions it happens in.

For these types of things I tend to work at it by setting break points - one at the beginning of your code, one in the middle, one at the end. Then you see in what half it crashes and you then insert a new break point half way between that. Effectively a binary search for the crash.

If you can narrow it down to a small reproducible example, log it in our tracker: Issues · SketchUp/api-issue-tracker · GitHub
(Make sure to include SU version and OS)


This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.