Skip to content

Space leak caused by stan plugin #4515

Open
kowainik/stan
#586
@TeofilC

Description

@TeofilC

Your environment

Which OS do you use? NixOS Linux x86_64

Which version of GHC do you use and how did you install it? 9.8.2 from haskell.nix

How is your project built (alternative: link to the project)? cabal-install

Which LSP client (editor/plugin) do you use? emacs+lsp-mode

Which version of HLS do you use and how did you install it?

Have you configured HLS in any way (especially: a hie.yaml file)? Yeah just:

cradle:
  cabal:

Steps to reproduce

Run HLS with -hi profiling with the stan plugin enabled. You will notice that that the heap profile shows THUNKs from stan, and that lots of other closures follow the shape of this thunk, suggesting a space leak.

If you run without stan, this goes away.

Debug information

Image

This is the biggest closure size, note that it mirrors the stan closure:

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    component: hls-stan-plugintype: bugSomething isn't right: doesn't work as intended, documentation is missing/outdated, etc..

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions