Resource leak in AI matches by ViewWinLose?
Post MTG Forge Related Programming Questions Here
Moderators: timmermac, Blacksmith, KrazyTheFox, Agetian, friarsol, CCGHQ Admins
Resource leak in AI matches by ViewWinLose?
by thomek » 19 Apr 2020, 18:53
Hi,
MatchController.finishGame() eventually calls ViewWinLose.setVisible(true) after running an AI match.
This causes the ViewWinLose object to be stored in FOverlay.overlays.
It looks like setVisible(false) is never called on such ViewWinLose objects (master/2020-04-12).
Therefore they seem to remain forever in FOverlay.overlays.
Thanks,
thomek
MatchController.finishGame() eventually calls ViewWinLose.setVisible(true) after running an AI match.
This causes the ViewWinLose object to be stored in FOverlay.overlays.
It looks like setVisible(false) is never called on such ViewWinLose objects (master/2020-04-12).
Therefore they seem to remain forever in FOverlay.overlays.
Thanks,
thomek
Re: Resource leak in AI matches by ViewWinLose?
by friarsol » 20 Apr 2020, 00:46
view.hide(); looks to be called in all of the three options during the WinLose Dialog. So I think that should appropriately set the window to false.
- friarsol
- Global Moderator
- Posts: 7593
- Joined: 15 May 2010, 04:20
- Has thanked: 243 times
- Been thanked: 965 times
Re: Resource leak in AI matches by ViewWinLose?
by thomek » 20 Apr 2020, 10:54
Thank you for your feedback, friarsol. I provided steps to reproduce with issue #1368.friarsol wrote:view.hide(); looks to be called in all of the three options during the WinLose Dialog. So I think that should appropriately set the window to false.
3 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 20 guests