Skip to content

Invalid argument: Maximum call stack size exceeded (bug in dart compiler) #1713

Description

@TreyThomas93

Edit: This is a dart web compiler bug, only for the debug web compiler, you can get around it by developing on desktop and testing / deploying a release build on web.
Upvote this issue: dart-lang/sdk#50119

Describe the bug
Getting this error for Flutter web with Riverpod version 2.0:

 Invalid argument: Maximum call stack size exceeded
├┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄
│ #0   packages/riverpod/src/framework/auto_dispose.dart 7:24                                                            <computed>
│ #1   packages/riverpod/src/provider/base.dart 259:27                                                                   __
│ #2   packages/riverpod/src/provider/auto_dispose.dart 34:7     

Version 1.0.3 worked fine on web, but using version 2.0 seems to be giving me this error.
No issues found on Android/iOS. Just web so far.

To Reproduce
I am not really sure how to reproduce this for the provider file is quite lengthy. I am actively looking for the source but thought I should post this for the time being.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingdart-bugMarks a bug that is actually a bug in the dart or flutter tooling

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions