The issue occurs when observer AppObserver is attached to the Sketchup and the method onNewModel prints to console or issue an UI.messagebox. After drawing to the model and then selecting File-> New from the menu, the Sketchup produces a bugsplat. The bugsplating doesn't happen every time, but after repeating the steps several times it happens sooner or later. The issue only happens in Sketchup 2024 and not in 2023 and earlier versions.
SketchUp/LayOut Version: 24.0.594 x64
OS Platform: Windows
Steps to reproduce.
Attach an AppObserver obesrver to Sketchup:
class MyAppObserver < Sketchup::AppObserver
def onNewModel(model)
puts "onNewModel called"
end
end
Sketchup.add_observer(MyAppObserver.new)
or
class MyAppObserver < Sketchup::AppObserver
def onNewModel(model)
UI.messagebox("onNewModel called", MB_OK)
end
end
Sketchup.add_observer(MyAppObserver.new)
Open ruby console
Open default tray
Open Tags section in Default tray
Draw something in the model (a rectangle, circle, etc.)
Select File->New from the menu
Repeat 5. and 6.
Sooner or later, the Sketchup will bugsplat.
Workaround
Wrapping the code in onNewModel in seems to prevent bugsplats:
class MyAppObserver < Sketchup::AppObserver
def onNewModel(model)
UI.start_timer(0, false) { UI.messagebox("onNewModel called", MB_OK) }
end
end
The issue occurs when observer AppObserver is attached to the Sketchup and the method
onNewModel
prints to console or issue anUI.messagebox
. After drawing to the model and then selectingFile-> New
from the menu, the Sketchup produces a bugsplat. The bugsplating doesn't happen every time, but after repeating the steps several times it happens sooner or later. The issue only happens in Sketchup 2024 and not in 2023 and earlier versions.Steps to reproduce.
or
Tags
section in Default trayFile->New
from the menuSooner or later, the Sketchup will bugsplat.
Workaround
Wrapping the code in
onNewModel
in seems to prevent bugsplats: