-
-
Notifications
You must be signed in to change notification settings - Fork 255
parse and report async gaps #1
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
Conversation
Isn't crashy able to tell us if this fixes things? :) |
This PR does not fix missing async stack traces. It only fixes missing async gaps, should they appear in the stack. I just confirmed using crashy that release builds are indeed missing async stack traces. Will comment in the original issue. |
lib/src/stack_trace.dart
Outdated
frames.addAll(chain.traces[t].frames.map(encodeStackTraceFrame)); | ||
if (t < chain.traces.length - 1) { | ||
frames.add(asynchronousGapFrameJson); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Drop the curly brackets for one-line if
s.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
: new Chain.parse(stackTrace); | ||
|
||
final List<Map<String, dynamic>> frames = <Map<String, dynamic>>[]; | ||
for (int t = 0; t < chain.traces.length; t += 1) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why not t++
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's Flutter style.
Update isolate_error_integration.dart
Related: flutter/flutter#11479