cegui / ceed-cpp

CEGUI unified editor (CEED) for editing layout files and more
GNU General Public License v3.0
68 stars 12 forks source link

Crash on dangling activeWindow in live preview #110

Closed vorlov-playrix closed 2 years ago

vorlov-playrix commented 2 years ago
  1. Make a layout with a FrameWindow as the root
  2. Switch to live preview
  3. Activate a frame window (e.g. drag it)
  4. Switch to visual editor
  5. Switch back to live preview
  6. Interaction with the window will crash an editor
vorlov-playrix commented 2 years ago

The problem is in Titlebar, which is an active window actually. When destroying FW, TB is destroyed as a child, but makes its parent (FW) an active window. Context in FW is not cleared yet at this point, so FW becomes active despite being already destroyed!

vorlov-playrix commented 2 years ago

Fixed in CEGUI