Hey CatBoyFeme,
Thanks for the report — I was able to trace the issue.
The crash is caused by AbandonedRuins keeping a queued ruin spawn for a surface that Warp Drive Machine deletes shortly afterwards. When the queue is processed, the stored LuaSurface is already invalid and the core currently treats that as a fatal error.
I added a compatibility guard in AbandonedRuins-Combined 0.3.11:
internal WDM surfaces are excluded from ruin spawning
normal WDM planets can still spawn ruins
when leaving a temporary planet, Combined blocks further ruin spawns before WDM removes the surface
This should prevent the issue in normal WDM gameplay.
There is still one small fix needed in the AbandonedRuins core for a fully generic solution: queued entries should simply be discarded when queue_item.surface is no longer valid, instead of raising Invalid surface provided. Ideally the queue should also be cleaned during on_pre_surface_deleted.
So 0.3.11 provides the compatibility workaround on our side, while the core change would make the system robust for any mod that dynamically creates and deletes surfaces.
Greetings
MoSII