Is this issue in gtk backend?

If so, it's a problem of gtk2hs that String will cause speak leak.

I have send a patch to gtk2hs-devel list that use ByteString read
content from huge file.

textBufferSetTextWithByteString :: TextBufferClass buffer => buffer ->
ByteString -> IO ()

then use below code read huge file:

  textBufferSetTextWithByteString textBuffer =<<
  Data.ByteString.readFile "hugeFile"
  
I hope this will help Yi developer fix this problem.

For detail, please ask in gtk2hs-devel list.

Cheers,

  -- Andy

codesite-nore...@google.com writes:

> Status: New
> Owner: ----
> Labels: Type-Defect Priority-Medium
>
> New issue 314 by gordon.sommers: large files cause stack overflow
> http://code.google.com/p/yi-editor/issues/detail?id=314
>
> What steps will reproduce the problem?
> 1. Open a really big file (I was trying to open one 33M)
> 2. Observe yi hang for a while and then report "error: stack overflow"
>
> What is the expected output? What do you see instead?
> expect file to open, or as an intermediate "fix" a warning saying that files 
> of size >= X are
> unsupported maybe.
>
> Please provide relevant version information:
>
> What version of Yi are you using? yi 0.6.2.3
> What version of GHC? The Glorious Glasgow Haskell Compilation System, version 
> 6.12.3
> What version of Cabal? cabal-install version 0.8.2
> using version 1.8.0.6 of the Cabal library
> What operating system/version? linux
>
> Please provide any additional information below.
> thanks for making a cool editor :)
>
> --
> Yi development mailing list
> yi-devel@googlegroups.com
> http://groups.google.com/group/yi-devel

-- 
Yi development mailing list
yi-devel@googlegroups.com
http://groups.google.com/group/yi-devel

Reply via email to