Deleting duplicate scene crashes SU 2022

I have 2 scenes named Scene 1 and Scene 2.

I already have an imported dwg file in the model.

After importing another dwg file, I notice that there is now a new Scene 1 tab in third position. I never added that scene, it appeared all by itself with the exact same name as the first scene.

If I delete it, SU crashes.

It has happened to me other times. Apparently it is possible to have scenes with the same name although internally they are different (probably their name or description). Have you tried changing the name to one of them before deleting it?

Yes, I tried changing the name. Then I try to delete the renamed file → Crash.

What is funny is that I have this layout of Scenes Tabs:

Before importing a dwg file: Scene 1 Scene 2

After importing the dwg file: Scene 1 Scene 2 Scene 1

If I rename the rightmost Scene 1 to Scene 3, I get: Scene 3 Scene 2 Scene 1.

Although I edit the third tab, it is the first one that reacts and the third one doesn’t change.

If I right click on the third tab to delete it, the first one is deleted, the second tab slide in first position and the dummy third one, still named Scene 1, slides in second position. If I click on it, SU crashes.

BTW, after seeing this duplicate Scene 1 tab appears, I opened the Scenes Window. This extra tab doesn’t show. I only see the genuine Scene 1 and Scene 2 tabs in the list.

try this in ruby console:

model = Sketchup.active_model
pages = model.pages
puts "number of scenes:"
puts pages.count
pages.each do |page|
  puts "scene name: " + page.name
  puts "scene label: "+ page.label
end

It could be related to name and label of the scenes when importing them from cad