Skip to content

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

Merged
Zylphrex merged 6 commits intomasterfrom
txiao/fix/handle-non-frame-types-in-profiler
Mar 20, 2023
Merged

fix(profiling): Handle non frame types in profiler#1965
Zylphrex merged 6 commits intomasterfrom
txiao/fix/handle-non-frame-types-in-profiler

Conversation

@Zylphrex
Copy link
Copy Markdown
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