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

Stack overflow when link TH #422

Closed
NCrashed opened this issue Nov 9, 2018 · 3 comments
Closed

Stack overflow when link TH #422

NCrashed opened this issue Nov 9, 2018 · 3 comments
Labels

Comments

@NCrashed
Copy link
Contributor

NCrashed commented Nov 9, 2018

I updated to a721a26 rev of reflex-platform and started to get strange stack overflow errrors (example for data-dword package):

[3 of 3] Compiling Data.DoubleWord  ( src/Data/DoubleWord.hs, dist/build/Data/DoubleWord.js_o )
Linking Template Haskell ()
Linking Template Haskell (Data.DoubleWord.Base,Data.DoubleWord.TH,ThRunner1)
stack overflow: use +RTS -K<size> to increase it

Workaround that can be helpful for thoose who will google the issue:

{
increaseGhcStack = drv: overrideCabal drv (drv: let
    flags = ["--ghcjs-option=+RTS" "--ghcjs-option=-K512M" "--ghcjs-option=-RTS"];
    in {
      buildFlags = (drv.buildFlags or []) ++ flags;
    });
}
@ElvishJerricco
Copy link
Contributor

Is this related to ghcjs/ghcjs#657?

@NCrashed
Copy link
Contributor Author

It perhaps related, but it is always fail for me after upgrade to new platform (major update, ghcjs version changed).

@ali-abrar
Copy link
Member

This appears to be working as of #506. Please reopen if you continue to encounter issues.

matthewbauer pushed a commit that referenced this issue Nov 20, 2019
* release/0.1.1.0: (45 commits)
  Fix release.nix; release v0.1.1.0
  Add changelog for forced-packing of thunks; update warning message
  Update README.md
  Add option to force pack thunks
  Add `dynRouteLink`
  Allow skeleton's obelisk to be overridden and fix release.nix (#420)
  Accept android sdk license for hydra (#422)
  Add HasFrontendConfigs on Performable in ObeliskWidget
  Fix PerformEvent instance for FrontendConfigsT
  Fix frontend configs in right hand side of prerender
  Use data- attribute to identify config key/value pairs
  Fix selftest
  Update ChangeLog.md for executable-config changes
  Split out backend and frontend monad transformers for config lookup
  Update ChangeLog.md for removing MonadIO from ObeliskWidget
  Only remove configs from head in GHCJS / ob run
  Remove MonadIO in prerendering
  Remove old "get" config function and move getFrontendConfigs out of Internal
  Make getFrontendConfigs return a Map and abstract out directory listing
  Remove some unused imports
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants