Skip to content

[BUGFIX] Prevent game from becoming ghost background process - #6885

Merged
Hundrec merged 1 commit into
FunkinCrew:dummy/develop-v0.8.3from
AnimatingLegend:bugfix/background-task-after-close
Mar 4, 2026
Merged

[BUGFIX] Prevent game from becoming ghost background process#6885
Hundrec merged 1 commit into
FunkinCrew:dummy/develop-v0.8.3from
AnimatingLegend:bugfix/background-task-after-close

Conversation

@AnimatingLegend

@AnimatingLegend AnimatingLegend commented Feb 5, 2026

Copy link
Copy Markdown
Contributor

Linked Issues

Closes #6801 (Issue where game becomes a Background Task after closing)

Description

This PR fixes 'ghost' background processing upon closing the game.
(For some odd reason BG Threads (e.g., VLC or Discord) aren't always shutting down properly when the window closed).

Key Changes

  • Added an exit listener to lime.app.Application.
  • Included a Handle.dispose() call for hxvlc and discord_rpc to clean up video and rich presence resources.

Screenshots/Videos

Original Bug Report

image

Bug Fix

ghost_bg_process_BUGFIX.mp4

@github-actions github-actions Bot added status: pending triage Awaiting review. size: medium A medium pull request with 100 or fewer changes. pr: haxe PR modifies game code. and removed size: medium A medium pull request with 100 or fewer changes. labels Feb 5, 2026
@Hundrec Hundrec added type: minor bug Involves a minor bug or issue. size: medium A medium pull request with 100 or fewer changes. labels Feb 5, 2026
@AbnormalPoof
AbnormalPoof changed the base branch from main to develop February 5, 2026 03:19
@AbnormalPoof
AbnormalPoof force-pushed the bugfix/background-task-after-close branch from 527cb1c to 0dc0302 Compare February 5, 2026 03:19
@Hundrec Hundrec changed the title [BUGFIX] - ghost process in task manager [BUGFIX] Prevent game from becoming ghost background process Feb 6, 2026
@KaiCodesLol

Copy link
Copy Markdown

YESSS
FINALLY
A BUGFIX FOR THIS THAT MIGHT BE PULLED

THANK FUCKING GODDD
THE FUNKLINGS WILL STOP EATING MY CPU

@AnimatingLegend
AnimatingLegend force-pushed the bugfix/background-task-after-close branch from 1920162 to 527cb1c Compare February 8, 2026 04:23
@AnimatingLegend
AnimatingLegend force-pushed the bugfix/background-task-after-close branch from 527cb1c to 8bace3d Compare March 1, 2026 03:20
@github-actions github-actions Bot added size: huge A huge pull request with more than 500 changes. size: medium A medium pull request with 100 or fewer changes. pr: documentation PR modifies documentation or README files. pr: github PR modifies GitHub metadata files. and removed size: medium A medium pull request with 100 or fewer changes. labels Mar 1, 2026
@AnimatingLegend
AnimatingLegend force-pushed the bugfix/background-task-after-close branch from 8bace3d to 31dbd68 Compare March 1, 2026 03:21
@github-actions github-actions Bot added size: tiny A tiny pull request with 4 or fewer changes. and removed size: medium A medium pull request with 100 or fewer changes. size: huge A huge pull request with more than 500 changes. labels Mar 1, 2026
@github-actions github-actions Bot added size: medium A medium pull request with 100 or fewer changes. and removed size: medium A medium pull request with 100 or fewer changes. pr: documentation PR modifies documentation or README files. pr: github PR modifies GitHub metadata files. size: tiny A tiny pull request with 4 or fewer changes. labels Mar 1, 2026
@Kade-github
Kade-github force-pushed the bugfix/background-task-after-close branch from eb7bdbe to d944e2c Compare March 2, 2026 20:50

@Kade-github Kade-github left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

true

@Hundrec Hundrec added status: reviewing internally Under consideration and testing. and removed status: pending triage Awaiting review. labels Mar 3, 2026
@Hundrec
Hundrec changed the base branch from develop to dummy/develop-v0.8.3 March 4, 2026 08:30
@Hundrec Hundrec added status: accepted PR was approved for contribution. If it's not already merged, it may be merged on a private branch. and removed status: reviewing internally Under consideration and testing. labels Mar 4, 2026
@Hundrec Hundrec added this to the 0.8.4 milestone Mar 4, 2026
@Hundrec
Hundrec merged commit d3351cb into FunkinCrew:dummy/develop-v0.8.3 Mar 4, 2026
6 checks passed
@AnimatingLegend
AnimatingLegend deleted the bugfix/background-task-after-close branch March 11, 2026 03:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr: haxe PR modifies game code. size: medium A medium pull request with 100 or fewer changes. status: accepted PR was approved for contribution. If it's not already merged, it may be merged on a private branch. type: minor bug Involves a minor bug or issue.

Development

Successfully merging this pull request may close these issues.

Bug Report: Game becomes a Background Task after closing

4 participants