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

Any exception or error resulting in Stack Overflow. #20

Closed
purplenoodlesoop opened this issue Nov 16, 2021 · 3 comments
Closed

Any exception or error resulting in Stack Overflow. #20

purplenoodlesoop opened this issue Nov 16, 2021 · 3 comments
Assignees
Labels
bug Something isn't working
Projects

Comments

@purplenoodlesoop
Copy link
Contributor

purplenoodlesoop commented Nov 16, 2021

Hello!

There seems to be a specific combination of options and arguments that results in an uncontrollable Stack Overflow exception. I've managed to reproduce this behavior using the following code:

void main() => l.capture(
      () => runZonedGuarded(
        () => throw Exception(),
        (e, s) => print(e),
      ),
      LogOptions(
        handlePrint: false,
      ),
    );

Using the logger itself as the runZonedGuarded's onError argument or leaving the LogOptions' handlePrint as its default does not trigger the issue. The exception's StackTrace is not very informative, as it points to only two segments repeatedly, and those segments are _CustomZone.print and InnerZonedMixin.capture:

#0      _CustomZone._parentDelegate (dart:async/zone.dart:1150:3)
#1      _CustomZone.print (dart:async/zone.dart:1400:55)
#2      InnerZonedMixin.capture.<anonymous closure> (package:l/src/inner_zoned_mixin.dart:43:20)
#3      _CustomZone.print (dart:async/zone.dart:1402:19)
#4      InnerZonedMixin.capture.<anonymous closure> (package:l/src/inner_zoned_mixin.dart:43:20)
#5      _CustomZone.print (dart:async/zone.dart:1402:19)
#6      InnerZonedMixin.capture.<anonymous closure> (package:l/src/inner_zoned_mixin.dart:43:20)
...
@PlugFox PlugFox self-assigned this Nov 16, 2021
@PlugFox PlugFox added the bug Something isn't working label Nov 16, 2021
@PlugFox PlugFox added this to To do in MAIN via automation Nov 16, 2021
@PlugFox PlugFox moved this from To do to In progress in MAIN Mar 30, 2022
@PlugFox
Copy link
Owner

PlugFox commented Mar 30, 2022

Here we go C:

@PlugFox
Copy link
Owner

PlugFox commented Mar 30, 2022

@purplenoodlesoop check this version with dependencies override:
https://github.com/PlugFox/l/tree/45a4ae74a8570d59210f9eba1fc3eb739222d687

PlugFox added a commit that referenced this issue Mar 30, 2022
@PlugFox
Copy link
Owner

PlugFox commented Mar 30, 2022

I'm closing this issue right now.
If you have additional questions - feel free to post here your questions.

@PlugFox PlugFox closed this as completed Mar 30, 2022
MAIN automation moved this from In progress to Done Mar 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
MAIN
Done
Development

No branches or pull requests

2 participants