Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'<stdin>: hGetBufSome: resource exhausted (Not enough space)' when running on Windows #93

Open
ncreep opened this issue Oct 14, 2015 · 4 comments

Comments

@ncreep
Copy link

ncreep commented Oct 14, 2015

Continuing the discussion from here.

Running on a Windows 7 64bit, I get the following when running stack ide start on a project:

{"tag":"ResponseWelcome","contents":[0,1,1]}
{"tag":"ResponseLog","contents":"[Info] Initializing ide-backend session @(ideba_FcNvVmq71td3LXgYeLF4lp:IdeSession.Update .\\IdeSession\\Update.hs:197:3)\n"}
{"tag":"ResponseLog","contents":"[Debug] Session dir = D:\\linear-extra\\session.4796 @(ideba_FcNvVmq71td3LXgYeLF4lp:IdeSession.Update .\\IdeSession\\Update.hs:210:3)\n"}
{"tag":"ResponseLog","contents":"[Debug] Dist dir = D:\\linear-extra\\.stack-work\\dist\\d96ab9d9\\ @(ideba_FcNvVmq71td3LXgYeLF4lp:IdeSession.Update .\\IdeSession\\Update.hs:212:3)\n"}
{"tag":"ResponseLog","contents":"[Debug] Local working dir = D:\\linear-extra\\ @(ideba_FcNvVmq71td3LXgYeLF4lp:IdeSession.Update .\\IdeSession\\Update.hs:219:17)\n"}
{"tag":"ResponseLog","contents":"[Info] Searching for ide-backend-server on this path: D:\\linear-extra\\.stack-work\\install\\x86_64-windows\\lts-3.7\\7.10.2\\bin\\:C:\\Users\\Daniel\\AppData\\Roaming\\stack\\snapshots\\x86_64-windows\\lts-3.7\\7.10.2\\bin\\ @(ideba_FcNvVmq71td3LXgYeLF4lp:IdeSession.RPC.Client .\\IdeSession\\RPC\\Client.hs:319:5)\n"}
{"tag":"ResponseLog","contents":"[Info] Found ide-backend-server - using this one: C:\\Users\\Daniel\\AppData\\Roaming\\local\\bin\\ide-backend-server.exe @(ideba_FcNvVmq71td3LXgYeLF4lp:IdeSession.RPC.Client .\\IdeSession\\RPC\\Client.hs:321:5)\n"}
{"tag":"ResponseLog","contents":"[Debug] Recompile required, starting... @(ideba_FcNvVmq71td3LXgYeLF4lp:IdeSession.Update.ExecuteSessionUpdate .\\IdeSession\\Update\\ExecuteSessionUpdate.hs:223:5)\n"}
{"tag":"ResponseFatalError","contents":"<stdin>: hGetBufSome: resource exhausted (Not enough space)"}

Process exited with ExitFailure 1: C:\Users\Daniel\AppData\Roaming\local\bin\stack-ide.exe 
--verbose 
--include=D:\linear-extra\;D:\linear-extra\src\;D:\linear-extra\.stack-work\dist\d96ab9d9\build\autogen\;D:\linear-extra\.stack-work\dist\d96ab9d9\build\;D:\linear-extra\;D:\linear-extra\test\;D:\linear-extra\.stack-work\dist\d96ab9d9\build\autogen\;D:\linear-extra\.stack-work\dist\d96ab9d9\build\ 
--local-work-dir=D:\linear-extra\ 
--ide-backend-tools-path=D:\linear-extra\.stack-work\install\x86_64-windows\lts-3.7\7.10.2\bin\;C:\Users\Daniel\AppData\Roaming\stack\snapshots\x86_64-windows\lts-3.7\7.10.2\bin\;
--dist-dir=D:\linear-extra\.stack-work\dist\d96ab9d9\ 
--ghc-option=-hide-all-packages 
--ghc-option=-iD:\linear-extra\ 
--ghc-option=-iD:\linear-extra\src\ 
--ghc-option=-iD:\linear-extra\.stack-work\dist\d96ab9d9\build\autogen\ 
--ghc-option=-iD:\linear-extra\.stack-work\dist\d96ab9d9\build\ 
--ghc-option=-stubdir=D:\linear-extra\.stack-work\dist\d96ab9d9\build\ 
--ghc-option=-package=base 
--ghc-option=-package=binary-0.7.5.0 
--ghc-option=-package=lens-4.12.3 
--ghc-option=-package=linear-1.19.1.3 
--ghc-option=-rtsopts 
--ghc-option=-with-rtsopts=-N 
--ghc-option=-iD:\linear-extra\ 
--ghc-option=-iD:\linear-extra\test\ 
--ghc-option=-iD:\linear-extra\.stack-work\dist\d96ab9d9\build\autogen\ 
--ghc-option=-iD:\linear-extra\.stack-work\dist\d96ab9d9\build\ 
--ghc-option=-stubdir=D:\linear-extra\.stack-work\dist\d96ab9d9\build\ 
--ghc-option=-package=base 
--package-db=C:\Users\Daniel\AppData\Roaming\stack\snapshots\x86_64-windows\lts-3.7\7.10.2\pkgdb\;D:\linear-extra\.stack-work\install\x86_64-windows\lts-3.7\7.10.2\pkgdb\         

The source of the exception is this line in ValueStream.hs.

@ncreep
Copy link
Author

ncreep commented Oct 17, 2015

I found a similar issue on the bytestring issue tracker. I submitted a minimal example, that doesn't depend on stack-ide, that fails in the same way (see here).

@lukexi
Copy link
Contributor

lukexi commented Oct 17, 2015

I wonder what the differences are in our environment — I'm running under MSYS2 using Cmder on Windows 8 x64.

@ncreep
Copy link
Author

ncreep commented Oct 17, 2015

I'm using Cmder as well, but I'm on a Windows 7 x64. Though I see the same error when I use plain cmd.

@ncreep
Copy link
Author

ncreep commented Oct 17, 2015

Even more strangely, the error goes away when using WinGhci

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants