Observer and crash

Hi all,

I’m experiencing some crashes on my SketchUp 2026 (and 2025) on both Mac and Windows. I only have my extension Addesign installed.

I suspect observers are the cause. I have InstanceObserver, EntityObserver, and EntitiesObserver implemented in my extension.

When I read the documentation, I found this note:

Note:

The methods of this observer fire in such a way that making changes to the model while inside of them is dangerous. If you experience sudden crashes, it could be because of this observer. A potential workaround is to use a ToolsObserver to watch what the user is doing instead.

My observers’ goals are:

  • Identify when a wall (component instance) is moved or deleted → so other walls can adjust their sizes, and windows can follow the wall (window components aren’t inside walls)

  • Identify when a window (component instance) is moved or deleted → to move or remove the opening

  • Identify when a window’s size changes (component definition) → to change the wall opening

Crashes happen suddenly but particularly when the user double-clicks on a group or a component (even if the component doesn’t have any link to any wall or window where observers are attached).

Is there a workaround for observers?

Any advice?

You trigger a movement that triggers another movement. This creates an avalanche of movements, which likely causes the buffer to overflow. Try disabling your observer when you trigger a movement, perform the required movement, and then re-enable your observer.

thanks for your answer but that was not case. its was the Sketchup::EntitiesObserver, that create this crash. I find a way to avoid this EntitiesObserver and its works.