Skip to content

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

Open
@MartinSStewart

Description

@MartinSStewart

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
        }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions