It is currently 14 Jul 2025, 21:38
   
Text Size

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?

Postby 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
thomek
 
Posts: 8
Joined: 18 Apr 2020, 10:39
Has thanked: 0 time
Been thanked: 2 times

Re: Resource leak in AI matches by ViewWinLose?

Postby 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?

Postby thomek » 20 Apr 2020, 10:54

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.
Thank you for your feedback, friarsol. I provided steps to reproduce with issue #1368.
thomek
 
Posts: 8
Joined: 18 Apr 2020, 10:39
Has thanked: 0 time
Been thanked: 2 times


Return to Developer's Corner

Who is online

Users browsing this forum: No registered users and 58 guests

Main Menu

User Menu

Our Partners


Who is online

In total there are 58 users online :: 0 registered, 0 hidden and 58 guests (based on users active over the past 10 minutes)
Most users ever online was 5050 on 26 Jun 2025, 06:02

Users browsing this forum: No registered users and 58 guests

Login Form