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

Maximum call stack size exceeded when running --debug #90

Open
MartinSStewart opened this issue Nov 3, 2019 · 2 comments
Open

Maximum call stack size exceeded when running --debug #90

MartinSStewart opened this issue Nov 3, 2019 · 2 comments

Comments

@MartinSStewart
Copy link

The following app will throw a stack overflow exception on start up when the debugger is enabled. This occurs in both elm/browser 1.0.1 and 1.0.2

module Main exposing (main)

import Browser
import Html exposing (Html)
import Task
import WebGL exposing (Mesh)


init : ( Mesh Int, Cmd () )
init =
    ( List.repeat 10000 0 |> WebGL.triangleFan
    , Task.succeed () |> Task.perform (\_ -> ())
    )


main : Program () (Mesh Int) ()
main =
    Browser.element
        { init = \_ -> init
        , view = \_ -> Html.text ""
        , update = \_ model -> ( model, Cmd.none )
        , subscriptions = \_ -> Sub.none
        }
@jerith666
Copy link

@jerith666
Copy link

Looks like a duplicate of #104 (which also has a fix, #95).

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