Title: When IterableWrapper iterates up to the middle of list, System.AccessViolationException occurs. by JakeJP · Pull Request #2280 · pythonnet/pythonnet · GitHub
Open Graph Title: When IterableWrapper iterates up to the middle of list, System.AccessViolationException occurs. by JakeJP · Pull Request #2280 · pythonnet/pythonnet
X Title: When IterableWrapper iterates up to the middle of list, System.AccessViolationException occurs. by JakeJP · Pull Request #2280 · pythonnet/pythonnet
Description: System.AccessViolationException occurs when iteration quits in the middle of list before reaching the end.
Environment
Pythonnet version: 3.0.3
Python version: 3.12.0
Operating System: Windows 11
.NET Runtime: .NET Framework 4.8
Reproduce the problem
I'm trying to pass a list from python to .NET method via List Codec.
mylist = ["a","b","c"]
dotnet.method( mylist )
Conversion(decode) is successful and mylist is wrapped by ListWrapper.
.NET code receives the list like this.
void method( IList
Open Graph Description: System.AccessViolationException occurs when iteration quits in the middle of list before reaching the end. Environment Pythonnet version: 3.0.3 Python version: 3.12.0 Operating System: Windows 11 ...
X Description: System.AccessViolationException occurs when iteration quits in the middle of list before reaching the end. Environment Pythonnet version: 3.0.3 Python version: 3.12.0 Operating System: Windows 11 ...
Opengraph URL: https://github.com/pythonnet/pythonnet/pull/2280
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/checks(.:format) |
| route-controller | pull_requests |
| route-action | checks |
| fetch-nonce | v2:1d85b3b2-1b5c-ca7f-0963-bd86806f6bff |
| current-catalog-service-hash | 87dc3bc62d9b466312751bfd5f889726f4f1337bdff4e8be7da7c93d6c00a25a |
| request-id | D82A:3CD5B7:BB2523:1051C21:6970BB23 |
| html-safe-nonce | 7f0598ac84148c110c9c1e3602cb1d6dd0aae78c27cf9326c9af6770a28b0b60 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEODJBOjNDRDVCNzpCQjI1MjM6MTA1MUMyMTo2OTcwQkIyMyIsInZpc2l0b3JfaWQiOiI5MjA0MDA2ODcyODk5Njk3NDQzIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 9aa71d2616ef3f18db16cd233b8c365cf78189ec89e7be37aad24b7dd4688ac2 |
| hovercard-subject-tag | pull_request:1590757574 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,checks,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/pythonnet/pythonnet/pull/2280/checks |
| twitter:image | https://avatars.githubusercontent.com/u/318651?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/318651?s=400&v=4 |
| og:image:alt | System.AccessViolationException occurs when iteration quits in the middle of list before reaching the end. Environment Pythonnet version: 3.0.3 Python version: 3.12.0 Operating System: Windows 11 ... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 8e0be80373b724b033cdf8a7b1f78bf5fb6a5d7a2182a9a403aa30894606e390 |
| turbo-cache-control | no-preview |
| go-import | github.com/pythonnet/pythonnet git https://github.com/pythonnet/pythonnet.git |
| octolytics-dimension-user_id | 6050430 |
| octolytics-dimension-user_login | pythonnet |
| octolytics-dimension-repository_id | 14748123 |
| octolytics-dimension-repository_nwo | pythonnet/pythonnet |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 14748123 |
| octolytics-dimension-repository_network_root_nwo | pythonnet/pythonnet |
| turbo-body-classes | logged-out env-production page-responsive full-width full-width-p-0 |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 84d9d5bf3b01412ea10f7c2429cbfc735ccce9ce |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width