Skip to content

Model Mesh cache never cleared after demo playback causing crash #477

@betsruner

Description

@betsruner

Whenever playing back a demo model mesh data is loaded and never unloaded. Playing back multiple demos consecutively eventually leaves too much data in the model mesh cache which causes the game to crash. It's possible to observe this directly by using the in-game command cache_print_summary.

Output of the command before playing back any demos:
Image

Output after playing back a demo:
Image

By the time you've played back about half the single player campaign it will crash on the next demo:
Image

Here is a video of the issue. In the video I'm playing a bunch of very short (1 second) demos which cover the first 32 maps in the game. When I go to play the demo of the 33rd map the game crashes.

Model.Mesh.Cache.issue.mp4

The model mesh cache doesn't grow from playing demos of the same map repeatedly. It only grows per new map played back. Issue exists on both windows and linux versions of the game.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions