It is currently 19 Apr 2024, 11:49
   
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: 7
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: 7
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: Google [Bot] and 56 guests


Who is online

In total there are 57 users online :: 1 registered, 0 hidden and 56 guests (based on users active over the past 10 minutes)
Most users ever online was 4143 on 23 Jan 2024, 08:21

Users browsing this forum: Google [Bot] and 56 guests

Login Form