Skip to content

Fix the coroutine debugger in the IDE #2694

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

Closed
wants to merge 1 commit into from

Conversation

dkhalanskyjb
Copy link
Collaborator

#2461 introduced a problem where the coroutine debugger in the IDE would crash.

According to @nikita-nazarov, the coroutine debugger crashes at a point where a stack trace is already available and the IDE plugin attempts to look up every class listed in the stack trace.

The new classes listed in the artificial stack frames were never loaded, as only their names were accessed. Now, we force these classes to be loaded at the point where DebugProbesImpl is, and it seems like the crash disappears.

Fixes #2690

#2461 introduced
a problem where the coroutine debugger in the IDE would crash:
#2690

According to @nikita-nazarov, the coroutine debugger crashes at a
point where a stack trace is already available and the IDE plugin
attempts to look up every class listed in the stack trace.

The new classes listed in the artificial stack frames were never
loaded, as only their names were accessed. Now, we force these
classes to be loaded, and it seems like the crash disappears.
@dkhalanskyjb dkhalanskyjb requested a review from qwwdfsad May 11, 2021 11:40
@dkhalanskyjb
Copy link
Collaborator Author

A problem this has compared to 1.4.3 is that the coroutine creation stack traces are displayed by the IDE in a broken manner:
2021-05-11-145312_869x530_scrot

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.

1 participant