Skip to content

Zombie GCC Processes #500

Closed
Closed
@fosskers

Description

@fosskers

I've noticed that during normal use, error/warning detection ("squigglies") disappears (and probably other features stop working too). A restart of HLS fixes this temporarily, but eventually it occurs again. Checking htop, I see:

2020-10-13-115715_956x1041_scrot

And they keep multiplying as I code. No amount of waiting seems to kill them.

Your environment

> haskell-language-server --probe-tools
haskell-language-server version: 0.5.1.0 (GHC: 8.8.4) (PATH: /home/colin/.local/bin/haskell-language-server) (GIT hash: 75c4ebca614bdf45455f3231f388a218b65f2af6)
Tool versions found on the $PATH
cabal:		Not found
stack:		2.6.0
ghc:		Not found

hie.yaml:

cradle:
  stack:
    - path: "."
      component: "versions:lib"
    - path: "./test/"
      component: "versions:test:versions-test"

Steps to reproduce

Code normally. I've noticed it possibly happen when a core data type is changed.

Expected behaviour

Display of errors, etc., should be maintained throughout.

Actual behaviour

Squigglies disappear, and zombie gcc processes multiply.

Include debug information

Execute in the root of your project the command haskell-language-server --debug . and paste the logs here:

Debug output:
haskell-language-server version: 0.5.1.0 (GHC: 8.8.4) (PATH: /home/colin/.local/bin/haskell-language-server) (GIT hash: 75c4ebca614bdf45455f3231f388a218b65f2af6)
(haskell-language-server)Ghcide setup tester in /home/colin/code/haskell/versions.
Report bugs at https://github.com/haskell/haskell-language-server/issues

Tool versions found on the $PATH
cabal:		Not found
stack:		2.6.0
ghc:		Not found


Step 1/4: Finding files to test in /home/colin/code/haskell/versions
Found 2 files

Step 2/4: Looking for hie.yaml files that control setup
Found 1 cradle

Step 3/4: Initializing the IDE

Step 4/4: Type checking the files
[INFO] Consulting the cradle for "Data/Versions.hs"
Output from setting up the cradle Cradle {cradleRootDir = "/home/colin/code/haskell/versions", cradleOptsProg = CradleAction: Stack}
> Configuring GHCi with the following packages: versions
> /home/colin/code/haskell/versions/.stack-work/install/x86_64-linux-tinfo6/b17bf2c31e033c6f365d58cac6e8d3888e805f2f60252ccf9dc896133b121be5/8.8.4/pkgdb:/home/colin/.stack/snapshots/x86_64-linux-tinfo6/b17bf2c31e033c6f365d58cac6e8d3888e805f2f60252ccf9dc896133b121be5/8.8.4/pkgdb:/home/colin/.stack/programs/x86_64-linux/ghc-tinfo6-8.8.4/lib/ghc-8.8.4/package.conf.d
[INFO] Using interface files cache dir: /home/colin/.cache/ghcide/main-db16131c5a5470303746d7250ccb97aacfe28a24
[INFO] Making new HscEnv[main]
[INFO] Consulting the cradle for "test/Test.hs"
Output from setting up the cradle Cradle {cradleRootDir = "/home/colin/code/haskell/versions", cradleOptsProg = CradleAction: Stack}
> Using main module: 1. Package `versions' component versions:test:versions-test with main-is file: /home/colin/code/haskell/versions/test/Test.hs
> versions> Test running disabled by --no-run-tests flag.
> The following GHC options are incompatible with GHCi and have not been passed to it: -threaded
> Configuring GHCi with the following packages: versions
> /home/colin/code/haskell/versions/.stack-work/install/x86_64-linux-tinfo6/b17bf2c31e033c6f365d58cac6e8d3888e805f2f60252ccf9dc896133b121be5/8.8.4/pkgdb:/home/colin/.stack/snapshots/x86_64-linux-tinfo6/b17bf2c31e033c6f365d58cac6e8d3888e805f2f60252ccf9dc896133b121be5/8.8.4/pkgdb:/home/colin/.stack/programs/x86_64-linux/ghc-tinfo6-8.8.4/lib/ghc-8.8.4/package.conf.d
[INFO] Using interface files cache dir: /home/colin/.cache/ghcide/main-a15142860f49e43149e101d7288ef8fc2827fde7
[INFO] Using interface files cache dir: /home/colin/.cache/ghcide/main-a15142860f49e43149e101d7288ef8fc2827fde7
[INFO] Making new HscEnv[main,main]

[INFO] finish: User TypeCheck (took 0.59s)
Completed (2 files worked, 0 files failed)

Metadata

Metadata

Assignees

No one assigned

    Labels

    performanceIssues about memory consumption, responsiveness, etc.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions