Skip to content

Comments

Handle R_Srcref set to C-level NULL#1047

Open
lionel- wants to merge 1 commit intomainfrom
bugfix/browser-crash
Open

Handle R_Srcref set to C-level NULL#1047
lionel- wants to merge 1 commit intomainfrom
bugfix/browser-crash

Conversation

@lionel-
Copy link
Contributor

@lionel- lionel- commented Feb 18, 2026

Addresses posit-dev/positron#8979
Addresses posit-dev/positron#12021

Even though I'm quite curious about it, I haven't taken the time to investigate why R_Srcref becomes NULL in the dplyr mask evaluation context.

@lionel- lionel- requested a review from DavisVaughan February 18, 2026 17:59
Copy link
Contributor

@DavisVaughan DavisVaughan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very odd

@lionel-
Copy link
Contributor Author

lionel- commented Feb 19, 2026

There are 3 places where it is set to C level NULL, all related to builtins?

And guarded by profiling checks, so I think we're not getting through there in this case?

@lionel- lionel- force-pushed the bugfix/browser-crash branch from 6b37f66 to 24b91f2 Compare February 19, 2026 07:28
@DavisVaughan
Copy link
Contributor

2 of the 3 are R_Profiling || not R_Profiling && so i think it is still possible

Comment on lines +51 to +52
# See https://github.com/posit-dev/positron/issues/8979
frame <- frame %||% frame_info_fallback()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
# See https://github.com/posit-dev/positron/issues/8979
frame <- frame %||% frame_info_fallback()
# See https://github.com/posit-dev/positron/issues/8979
# and https://github.com/posit-dev/positron/issues/12021
frame <- frame %||% frame_info_fallback()

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.

2 participants