Title: Assert failure in `Finalizer.DisposeAll` -> `XDecref` · Issue #1561 · pythonnet/pythonnet · GitHub
Open Graph Title: Assert failure in `Finalizer.DisposeAll` -> `XDecref` · Issue #1561 · pythonnet/pythonnet
X Title: Assert failure in `Finalizer.DisposeAll` -> `XDecref` · Issue #1561 · pythonnet/pythonnet
Description: Refcount(op) 0 new PyObject(new BorrowedReference(op)).GetPythonType()
Open Graph Description: Refcount(op) 0 new PyObject(new BorrowedReference(op)).GetPythonType()
X Description: Refcount(op) 0 new PyObject(new BorrowedReference(op)).GetPythonType() <class 'CLR.CLR Metatype'> DebuggerDisplay: "<class 'CLR.CLR Metatype'>" Handle: 0x098c1...
Opengraph URL: https://github.com/pythonnet/pythonnet/issues/1561
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Assert failure in `Finalizer.DisposeAll` -\u003e `XDecref`","articleBody":"```\r\nRefcount(op)\r\n0\r\nnew PyObject(new BorrowedReference(op)).GetPythonType()\r\n\u003cclass 'CLR.CLR Metatype'\u003e\r\n DebuggerDisplay: \"\u003cclass 'CLR.CLR Metatype'\u003e\"\r\n Handle: 0x098c15b8\r\n IsDisposed: false\r\n Refcount: 23\r\n Reference: {Python.Runtime.BorrowedReference}\r\n obj: 0x098c15b8\r\n Results View: Expanding the Results View will enumerate the IEnumerable\r\n Dynamic View: Expanding the Dynamic View will get the dynamic members for the object\r\nnew PyObject(new BorrowedReference(op)).ToString()\r\n\"\u003cclass 'OverloadResolution'\u003e\"\r\n```\r\n\r\nThis seems to indicate, that there's a reference count imbalance for reflected .NET types in some scenarios.","author":{"url":"https://github.com/lostmsu","@type":"Person","name":"lostmsu"},"datePublished":"2021-09-22T06:00:59.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/1561/pythonnet/issues/1561"}
| 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:361344e7-e4fd-7adc-4ab4-3181d67cc7a0 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E6CA:1568EB:121464:199865:69709BB3 |
| html-safe-nonce | ab908e2f3971568fedd72c0a0a8716554d73cd97581490657b7423771aea90d7 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFNkNBOjE1NjhFQjoxMjE0NjQ6MTk5ODY1OjY5NzA5QkIzIiwidmlzaXRvcl9pZCI6IjI1NTk2MjE0OTU5NDgwOTAyOTEiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 9f60b4d303d8033da25a8f8fe600fd9b36d7a143592737a868df6b223e80d0b5 |
| hovercard-subject-tag | issue:1003849418 |
| 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/pythonnet/pythonnet/1561/issue_layout |
| twitter:image | https://opengraph.githubassets.com/315defb2ebda40acd8b7e1f8769db6dadb824ef8bd8bee0d3f84c9efefb66bd4/pythonnet/pythonnet/issues/1561 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/315defb2ebda40acd8b7e1f8769db6dadb824ef8bd8bee0d3f84c9efefb66bd4/pythonnet/pythonnet/issues/1561 |
| og:image:alt | Refcount(op) 0 new PyObject(new BorrowedReference(op)).GetPythonType() |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | lostmsu |
| hostname | github.com |
| expected-hostname | github.com |
| None | 9920a62ba22d06470388e2904804fb7e5ec51c9e35f81784e9191394c74b2bd2 |
| 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 |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 7d6181066430cc06553c8396ca201e194ae33cb9 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width