matchwood / ghcjs-stack-dist

24 stars 7 forks source link

uncaught exception in Haskell thread: Error: invalid big integer: incorrect number of limbs #11

Open RobertFischer opened 6 years ago

RobertFischer commented 6 years ago

Getting a bunch of these issues using this build:

resolver: lts-9.21
compiler: ghcjs-0.2.1.9009021_ghc-8.0.2
compiler-check: match-exact
setup-info:
  ghcjs:
    source:
      ghcjs-0.2.1.9009021_ghc-8.0.2:
        url: https://github.com/matchwood/ghcjs-stack-dist/raw/master/ghcjs-0.2.1.9009021.tar.gz
        sha1: b1740c3c99e5039ac306702894cd6e58283f4d31

Here is what the errors look like:

h$ghcjsbn_assertValid_b@http://localhost:8080/ghcjs.js:19825:11 h$ghcjsbn_quotRem_bw@http://localhost:8080/ghcjs.js:20376:3 h$_hs_bytestring_long_long_uint_dec@http://localhost:8080/ghcjs.js:26191:9 h$$bCB@http://localhost:8080/ghcjs.js:100197:11 h$runThreadSlice@http://localhost:8080/ghcjs.js:8049:11 h$runThreadSliceCatch@http://localhost:8080/ghcjs.js:7999:12 h$mainLoop@http://localhost:8080/ghcjs.js:7994:9 run@webpack-internal:///./node_modules/setimmediate/setImmediate.js:48:9 runIfPresent@webpack-internal:///./node_modules/setimmediate/setImmediate.js:83:11 onGlobalMessage@webpack-internal:///./node_modules/setimmediate/setImmediate.js:125:9

Any tips on what's going on and how to work around it?

matchwood commented 6 years ago

Can you provide some info about your environment? Windows/Linux etc?

RobertFischer commented 6 years ago

Ubuntu Linux.

LSB Version:    core-9.20160110ubuntu0.2-amd64:core-9.20160110ubuntu0.2-noarch:printing-9.20160110ubuntu0.2-amd64:printing-9.20160110ubuntu0.2-noarch:security-9.20160110ubuntu0.2-amd64:security-9.20160110ubuntu0.2-noarch
Distributor ID: Ubuntu
Description:    Ubuntu 16.04.4 LTS
Release:    16.04
Codename:   xenial

Let me know if anything else is helpful.

RobertFischer commented 6 years ago

Looks like it was an issue with the bytestring shim: https://github.com/ghcjs/ghcjs/issues/662 Do we need to do anything to get this shim into ghcjs-0.2.1.9009021_ghc-8.0.2?

matchwood commented 6 years ago

Ah good work. I was only asking for the distro in case it was a Windows issue.

We do indeed need to do something - I need to rebuild the stack release against the new shim. I'll try to get this done in the next day or two (you are also welcome to do it! I can give pointers if you like).

RobertFischer commented 6 years ago

Can I throw you some cash to make this happen faster? I kinda need it ASAP.

matchwood commented 6 years ago

Haha I will try to do it now.