haskell-ide-engine icon indicating copy to clipboard operation
haskell-ide-engine copied to clipboard

HIE crashing: Index too large

Open mdunnio opened this issue 4 years ago • 5 comments

I'm getting the following error in hie:

hie-8.6.5: Data.Text.Internal.Fusion.Common.index: Index too large
CallStack (from HasCallStack):
  error, called at libraries/text/Data/Text/Internal/Fusion/Common.hs:943:24 in text-1.2.3.1:Data.Text.Internal.Fusion.Common

This is showing up in the hie:stderr buffer in my emacs.

I have hie running with the debug log, but it's quite large and might need some help figuring out what I need to look for.

Is there anything else I can add to help debug the issue?

Thanks.

mdunnio avatar Feb 25 '20 17:02 mdunnio

Do you have a repeatable test-case or did it just happen once?

fendor avatar Feb 25 '20 18:02 fendor

It only happened once. I'll keep my eye out and see if it's something that I can easily trigger.

mdunnio avatar Feb 25 '20 22:02 mdunnio

Happened to me today on a quite large but not huge project (64 modules): https://github.com/GaloisInc/what4 (though some modules are fairly huge, e.g. https://github.com/GaloisInc/what4/blob/master/what4/src/What4/Expr/Builder.hs )

It also happened in this issue that was closed: https://github.com/haskell/haskell-ide-engine/issues/518

Ptival avatar Mar 30 '20 13:03 Ptival

This looks almost certainly to be a bug in the text library.

Similar in flavour to https://github.com/haskell/text/pull/230 perhaps.

mpickering avatar Mar 30 '20 13:03 mpickering

Just to give an update: I haven't seen this issue again. Is there anything I can do to possibly trigger it?

mdunnio avatar Mar 30 '20 21:03 mdunnio