I was playing with both Factorissimo2 and Editor Extensions enabled. In EE's map editor mode, while on the default surface, I accidentally deleted a factory building while using the deconstruction planner (which, in map editor mode, completely deletes things rather than placing them back in inventory). This left the factory's unique surface (#11 in this case) in the surfaces list, inaccessible to regular play. Attempting to delete the unused surface in the map editor results in a crash.