-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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 in a program #56134
Comments
Summary: The user is experiencing a Stack Overflow error when parsing a date string using |
Your program is an infinite loop: The creation of a void main() => print(Dto());
class Dto {
Dto ordre = Dto();
} You might want to change |
I'll close the issue because it is all working as intended. @majornuts, feel free to create new issues if things are still not working as expected. |
@majornuts This is not your living room - please avoid using vulgarities. |
Thanks for the advice, and changing the title. |
Steps to reproduce
run main -> watch log for prints.
Expected results
A sorted list of times.
Actual results
Unhandled exception:
Stack Overflow
#0 DateTime._equivalentSeconds (dart:core-patch/date_patch.dart:403:3)
#1 DateTime._timeZoneOffsetInSeconds (dart:core-patch/date_patch.dart:421:29)
#2 DateTime._toLocalTimeOffset (dart:core-patch/date_patch.dart:479:18)
#3 DateTime._brokenDownDateToValue (dart:core-patch/date_patch.dart:330:33)
#4 DateTime.parse (dart:core/date_time.dart:351:20)
#5 new Dto (package:duty_planer/orders/AvailabilityOrdreSystem.dart:77:20)
#6 new Dto (package:duty_planer/orders/AvailabilityOrdreSystem.dart:74:15)
#7 new Dto (package:duty_planer/orders/AvailabilityOrdreSystem.dart:74:15)
Code sample
Code sample
Screenshots or Video
Screenshots / Video demonstration
[Upload media here]
Logs
Logs
[Paste your logs here]
Flutter Doctor output
Doctor summary (to see all details, run flutter doctor -v): [✓] Flutter (Channel stable, 3.22.2, on macOS 14.5 23F79 darwin-arm64, locale en-DK) [✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0) [✓] Xcode - develop for iOS and macOS (Xcode 15.4) [✓] Chrome - develop for the web [✓] Android Studio (version 2024.1) [✓] VS Code (version 1.87.2) [✓] Connected device (5 available) [✓] Network resources
The text was updated successfully, but these errors were encountered: