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

fix(profiling): Handle non frame types in profiler #1965

Merged
merged 6 commits into from
Mar 20, 2023

Conversation

Zylphrex
Copy link
Member

@Zylphrex Zylphrex commented Mar 20, 2023

We've received report that occasionally, there's AttributeError on f_back. It's unclear what exactly causes this issue because the source of the frame is from a system libray. This avoids the AttributeError by wrapping the line in question with a try ... except .... And whenever it does encounter this error, we should continue with what frames we have.

Closes #1958

We've received report that occasionally, there's `AttributeError` on `f_back`.
It's unclear what exactly causes this issue because the source of the frame is
from a system libray. This avoids the `AttributeError` by wrapping the line in
question with a `try ... except ...`. And whenever it does encounter this error,
we should continue with what frames we have.
@Zylphrex Zylphrex force-pushed the txiao/fix/handle-non-frame-types-in-profiler branch from 39627bc to 1b62252 Compare March 20, 2023 18:13
@Zylphrex Zylphrex marked this pull request as ready for review March 20, 2023 18:13
@Zylphrex Zylphrex merged commit 871c437 into master Mar 20, 2023
@Zylphrex Zylphrex deleted the txiao/fix/handle-non-frame-types-in-profiler branch March 20, 2023 20:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

AttributeError: 'dict' object has no attribute 'f_back' in profiler thread
2 participants