Uh oh!
There was an error while loading. Please reload this page.
Workaround for #2682 and #2422 by simply clearing the TypeError - #2685
Conversation
YannickJadoul
left a comment
There was a problem hiding this comment.
I think this might be a safer, more localized workaround than #2684, until we have a full fix for #2336 (which needs a little survey, to see in which places the casts are expected to return a nullptr handle and in which cases an exception is expected, given that it's such a central part of pybind11).
albanD
commented
Nov 20, 2020
Thanks for the quick fix! |
YannickJadoul
commented
Nov 20, 2020
albanD
commented
Nov 20, 2020
Yes I can confirm that with the two fixes, the CI for debug cpython 3.8 and 3.9 now run without crashing. |
Uh oh!
There was an error while loading. Please reload this page.
YannickJadoul
commented
Nov 20, 2020
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
henryiii
left a comment
There was a problem hiding this comment.
I think this is safe for now.
EricCousineau-TRI
commented
Mar 5, 2021
FWIW Ran into a similar issue in our fork, but a slightly different edge case ( Just copied this solution there 😅 |
Description
As proposed in #2422 (comment), this PR is a possible solution for the assertion error in cpython debug mode.
Fixes#2682
Fixes#2422
Suggested changelog entry: