-
Notifications
You must be signed in to change notification settings - Fork 3
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
[glance_integration_test][android] Incorrect stack traces with stub code #10
Comments
It's weird that it works fine on the example, which is the same as this scenario, simulates the expensive function call in the click event. |
I finally identified the cause of the issue, which is likely related to the Flutter build cache, filed bug in this GitHub issue. The problem occurs because the debug symbols are not being regenerated, leading to the use of outdated symbols and resulting in incorrect stack traces. This explains why the issue appears on the second run. To resolve this, run |
When I run the test
example/glance_integration_test/touch_event_jank_test.dart
multiple times locally, the issue typically occurs on the second runThe stack traces may include lines referencing
stub xxx
code, which leads to incorrect stack traces. An example of such a stack trace is shown below:It's not sure if it is related to logic in the Dart SDK https://github.com/dart-lang/sdk/blob/8fa0f56f453a1e22406f0e057be27787bf49b3be/runtime/vm/profiler.cc#L1370, but it most likely that there is no way check the stub code outside the Dart VM.
The text was updated successfully, but these errors were encountered: