Skip to content

HLS loops - out of memory? (Assertion `freesize < size' failed.) #1638

@googleson78

Description

@googleson78

hls version

tauren :: git/benchmark/vray-benchmark-service ‹BENCH-1100_poc*› » haskell-language-server-wrapper --version
haskell-language-server version: 1.0.0.0 (GHC: 8.10.4) (PATH: /home/googleson78/.ghcup/bin/haskell-language-server-wrapper-1.0.0) (GIT hash: 4cd1cf934638881e52b3eba9f70157a4b799c0e9)

Your environment

Describe your project (alternative: link to the project): Private project, can't give link unfortunately
Has 5 components:

  • lib
  • exe - generate-data
  • exe - generate-docs
  • exe - vray-benchmark-service
  • tests benchmark-tests

Contents of hie.yaml:

cradle:
  stack:
    - path: "./src"
      component: "vray-benchmark-service:lib"

    - path: "./generate-data/Main.hs"
      component: "vray-benchmark-service:exe:generate-data"

    - path: "./generate-data/Paths_vray_benchmark_service.hs"
      component: "vray-benchmark-service:exe:generate-data"

    - path: "./generate-docs/Main.hs"
      component: "vray-benchmark-service:exe:generate-docs"

    - path: "./generate-docs/Paths_vray_benchmark_service.hs"
      component: "vray-benchmark-service:exe:generate-docs"

    - path: "./app/Main.hs"
      component: "vray-benchmark-service:exe:vray-benchmark-service"

    - path: "./app/Paths_vray_benchmark_service.hs"
      component: "vray-benchmark-service:exe:vray-benchmark-service"

    - path: "./tests"
      component: "vray-benchmark-service:test:benchmark-tests"

Steps to reproduce

The file I'm trying to typecheck does not compile - it has a kind mismatch in it.

type family ConfigFor (ty :: ScoreType) :: Type where

ScoreType actually has a type parameter, but In this type family signature it has not been added yet. GHC properly reports this error, and HLS does too (when called directly via a shell), but after failing it just endlessly attempts to recompile again.

Include debug information

Here's a log of letting hls run until it arbitrarily crashes with an error to stderr (stack overflow error?).

haskell-language-server-8.8.4: allocatestack.c:384: advise_stack_range: Assertion `freesize < size' failed.
haskell-language-server-wrapper: callProcess: /home/googleson78/.ghcup/bin/haskell-language-server-8.8.4 "-d" "-l" "looping.log" "src/ScoreType.hs" (exit -6): failed

I'm including all of the stdout, the stderr, and the output of -d, as the stack overflow error seems to not be present in the -d output.
looping.log (-d output)
loopingstdout.log
loopingstderr.log

Metadata

Metadata

Assignees

No one assigned

    Labels

    build tool: stackperformanceIssues about memory consumption, responsiveness, etc.status: needs infoNot actionable, because there's missing informationtype: 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