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

TooMuchSpace (0x00000042003b4f82,S {currPtr = 0x000000420033e22f, usedBits = 3}) #12

Closed
chrisdone opened this issue May 18, 2019 · 7 comments

Comments

@chrisdone
Copy link

chrisdone commented May 18, 2019

I was trying out flat because persist fails with some other bug minad/persist#4

flat passed compilation but while loading in with unflat bugs out with:

Loading library ghc-prim ...
prana-interpreter-test: TooMuchSpace (0x00000042003b4f82,S {currPtr = 0x000000420033e22f, usedBits = 3})

My attempt branch is here. I'm really just literally calling flat to a file and then unflat later, in place of my binary encode/decode calls.

I'll go back to store for now and put up with the long build time of store, but hope this helps in some way.

@tittoassini
Copy link
Collaborator

tittoassini commented May 19, 2019 via email

@tittoassini
Copy link
Collaborator

tittoassini commented May 19, 2019 via email

@tittoassini
Copy link
Collaborator

tittoassini commented May 19, 2019

Otherwise, you could just pass me a prana file that fails to unflat correctly together with the Show of the serialised value.

@chrisdone
Copy link
Author

Hey @tittoassini - I'll upload a .prana file somewhere tomorrow. A Show output would be rather large. The .prana files are (from binary output, so probably not far in size from flat):

-rw-rw-r-- 1 chris chris 188K May 18 23:57 array-0.5.2.0-1FiLBhZbipg6s3baXWC5Ht.prana
-rw-rw-r-- 1 chris chris 4.5M May 18 23:57 base.prana
-rw-rw-r-- 1 chris chris 212K May 18 23:57 binary-0.8.5.1-J1oTqOZ6cfj7Duv8BXo2tc.prana
-rw-rw-r-- 1 chris chris 476K May 18 23:57 bytestring-0.10.8.2-5bsbHjF6sk83Yu4qlrBKDW.prana
-rw-rw-r-- 1 chris chris 1.5M May 18 23:57 containers-0.5.11.0-J7gwdYVQDE78l47BUAoDPy.prana
-rw-rw-r-- 1 chris chris  36K May 18 23:57 deepseq-1.4.3.0-Glu4YldqTa11PW3JZTxBiV.prana
-rw-rw-r-- 1 chris chris 2.8M May 18 23:57 ghc-prim.prana
-rw-rw-r-- 1 chris chris 166K May 18 23:57 integer-gmp.prana

I'll try the deepseq one.

@tittoassini
Copy link
Collaborator

Yes, please do.

I am eager to squash any remaining bugs in flat :-)

@tittoassini
Copy link
Collaborator

Hi Chris, we never got to fix this.

I have released a new version of flat (0.4.2), with many additional tests, in case you want to have a second go at it.

Best

@tittoassini
Copy link
Collaborator

This might have been caused by #23 that is now fixed.

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