ghostty-org/ghostty

gtk-ng regression: closing window can cause an infinite loop creating new OpenGL contexts

Closed this issue · 1 comments

Reproduction:

  1. Open btop
  2. Close window with "X"
  3. Click "Confirm" close
  4. Watch logs/memory spin out of control

All I've figured out so far is for some reason when we have a process active -- cat is enough -- when the window closes we don't dispose the split tree edit: we do, I had my logging in the wrong place. We are not disposing our surfaces, which leads me to believe there's an extra reference on our tree somehow?