Title: [Bug]: `split_bezier_intersecting_with_closedpath` fails to return · Issue #27753 · matplotlib/matplotlib · GitHub
Open Graph Title: [Bug]: `split_bezier_intersecting_with_closedpath` fails to return · Issue #27753 · matplotlib/matplotlib
X Title: [Bug]: `split_bezier_intersecting_with_closedpath` fails to return · Issue #27753 · matplotlib/matplotlib
Description: Bug summary It looks like, for some inputs, split_bezier_intersecting_with_closedpath never returns, as the while True: loop inside find_bezier_t_intersecting_with_closedpath fails to converge. Code for reproduction from matplotlib.patch...
Open Graph Description: Bug summary It looks like, for some inputs, split_bezier_intersecting_with_closedpath never returns, as the while True: loop inside find_bezier_t_intersecting_with_closedpath fails to converge. Cod...
X Description: Bug summary It looks like, for some inputs, split_bezier_intersecting_with_closedpath never returns, as the while True: loop inside find_bezier_t_intersecting_with_closedpath fails to converge. Cod...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/27753
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[Bug]: `split_bezier_intersecting_with_closedpath` fails to return","articleBody":"### Bug summary\n\nIt looks like, for some inputs, `split_bezier_intersecting_with_closedpath` never returns, as the `while True:` loop inside `find_bezier_t_intersecting_with_closedpath` fails to converge.\n\n### Code for reproduction\n\n```python\nfrom matplotlib.patches import inside_circle, split_bezier_intersecting_with_closedpath\r\n\r\narrow_path = [(96950809781500.0, 804.7503795623779), (96950809781500.0, 859.6242585800646), (96950809781500.0, 914.4981375977513)]\r\nin_f = inside_circle(96950809781500.0, 804.7503795623779, 0.06)\r\nsplit_bezier_intersecting_with_closedpath(arrow_path, in_f)\n```\n\n\n### Actual outcome\n\nThe call to `split_bezier_intersecting_with_closedpath` never returns.\n\n### Expected outcome\n\nThe call to `split_bezier_intersecting_with_closedpath` should return the split segment.\n\n### Additional information\n\n_No response_\n\n### Operating system\n\nconfirmed on Arch and Ubuntu 22.04 LTS\n\n### Matplotlib Version\n\n3.8.2\n\n### Matplotlib Backend\n\nagg\n\n### Python version\n\n3.11.6 (Arch) and 3.10.12 (Ubuntu)\n\n### Jupyter version\n\n4.0.11 (note: reproducible outside jupyter)\n\n### Installation\n\nNone","author":{"url":"https://github.com/setrofim","@type":"Person","name":"setrofim"},"datePublished":"2024-02-07T16:54:47.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/27753/matplotlib/issues/27753"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:6fc8e7f2-cbc1-965b-6c6e-359060692945 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | CCFE:171DD4:1082059:160F91A:6A529795 |
| html-safe-nonce | 582dff13a2edbf93c568f926558f32d1e46de2813c754b5fffb2b920ae622c62 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDQ0ZFOjE3MURENDoxMDgyMDU5OjE2MEY5MUE6NkE1Mjk3OTUiLCJ2aXNpdG9yX2lkIjoiOTIzMjAwOTg4Njc2MDAzNzMzIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 59040453d5f13e74d39b3ea67f3028d34388f4faf2b057e6693eb83d9c52bf61 |
| hovercard-subject-tag | issue:2123471179 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/matplotlib/matplotlib/27753/issue_layout |
| twitter:image | https://opengraph.githubassets.com/41f08342b0a5b06796c64743e9ec6254c47a5890b1a01c7c3223b3228aae2882/matplotlib/matplotlib/issues/27753 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/41f08342b0a5b06796c64743e9ec6254c47a5890b1a01c7c3223b3228aae2882/matplotlib/matplotlib/issues/27753 |
| og:image:alt | Bug summary It looks like, for some inputs, split_bezier_intersecting_with_closedpath never returns, as the while True: loop inside find_bezier_t_intersecting_with_closedpath fails to converge. Cod... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | setrofim |
| hostname | github.com |
| expected-hostname | github.com |
| None | b9a586c06a05a7a86fc7e3f4dbd03e42f6869085879aa184aa6369456dbd50fb |
| turbo-cache-control | no-preview |
| go-import | github.com/matplotlib/matplotlib git https://github.com/matplotlib/matplotlib.git |
| octolytics-dimension-user_id | 215947 |
| octolytics-dimension-user_login | matplotlib |
| octolytics-dimension-repository_id | 1385122 |
| octolytics-dimension-repository_nwo | matplotlib/matplotlib |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 1385122 |
| octolytics-dimension-repository_network_root_nwo | matplotlib/matplotlib |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 07a982c1d40157c619b364352b704c3ce66bb332 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width