I’m in the process of making sure my extensions work with the latest version of Sketchup (SU25), and I have found that one of them consistently crashes.
I have an extension that has a “batch” mode, where it opens all the SU files in a folder one at a time, and appends a page (with a few viewports) to a LO document for each SU file. I originally wrote this because appending the pages one at time became too slow as the LO file got larger. Doing it in batch mode, I don’t have to open, modify, and save the LO file each time.
I did have problems with this crashing in SU24, but by forcing the ruby console window to be open, it would reliably run to completion (albeit quite a bit slower). Now, even with the ruby console window open, I can do approximately 10 files before SU silently closes.
I’m kind of at a loss here. Without a bugsplat, what clues do I have to help me find out why it’s crashing?
Oh, yes! That seems quite similar. Relief that I’m not alone on this.
However, I am able to create a LO doc and add a single page. Or append a single page to an existing LO doc. SU does not crash if I don’t use the “batch” mode.
I get a similar issue with SU2025, that is, a slient crash of Sketchup, in relation with changing the current model in the Sketchup session. It even crashes Layout silently 40s seconds later.
This is interesting. Usually, crash after running for a long time indicates that some vital resource was used up, such as system memory, stack, etc. What did the crash report say?
Unfortunately the SILENT crash does not say anything!
You can see more, for example an example code to reproduce, in the topic I linked in a second post above.
I don’t know much about how Windows captures crash info, only that on Mac there is a crash report logged even for a silent crash that doesn’t result in a BugSplat. Without inside knowledge of the source code you can’t tell a lot, but a knowledgable person can find out why the crash occurred.
Actually, this is in relation with the Layout API from a live Sketchup session. In my case, the Layout is fully created by API. The crash does not happen if you close everything, and then reopen the model and the Layout document.
By the way, here is how the Layout is produced and how models are switched in the Sketchup session via the API.
I opened a Labs report that is separate from Fredo’s previous report and referenced the two topics here in the forum. We can only wait for Kalpana, @tt_su or @bugra to respond.