Title: illegal use of GetDelegateFromFunctionPointer causes problems on mono 6.12 · Issue #1323 · pythonnet/pythonnet · GitHub
Open Graph Title: illegal use of GetDelegateFromFunctionPointer causes problems on mono 6.12 · Issue #1323 · pythonnet/pythonnet
X Title: illegal use of GetDelegateFromFunctionPointer causes problems on mono 6.12 · Issue #1323 · pythonnet/pythonnet
Description: Environment Pythonnet version: master Python version: 3.7 (probably any) Operating System: mono on any platform, not dotnet on any platform Details Describe what you were trying to get done. Working on the reload improvements, we find th...
Open Graph Description: Environment Pythonnet version: master Python version: 3.7 (probably any) Operating System: mono on any platform, not dotnet on any platform Details Describe what you were trying to get done. Workin...
X Description: Environment Pythonnet version: master Python version: 3.7 (probably any) Operating System: mono on any platform, not dotnet on any platform Details Describe what you were trying to get done. Workin...
Opengraph URL: https://github.com/pythonnet/pythonnet/issues/1323
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"illegal use of GetDelegateFromFunctionPointer causes problems on mono 6.12","articleBody":"### Environment\r\n\r\n- Pythonnet version: master\r\n- Python version: 3.7 (probably any)\r\n- Operating System: mono on any platform, not dotnet on any platform\r\n\r\n### Details\r\n\r\n- Describe what you were trying to get done.\r\n\r\nWorking on the reload improvements, we find that GetDelegateFromFunctionPointer is sometimes returning weird types that can't be casted to the proper delegate type. This is apparently a known issue in pythonnet on dotnet as well though we haven't hit that problem on that platform:\r\nhttps://github.com/dotnet/runtime/issues/9074\r\n\r\nhttps://docs.microsoft.com/en-us/dotnet/api/system.runtime.interopservices.marshal.getdelegateforfunctionpointer?view=net-5.0\r\n\"You can use this method only for pure unmanaged function pointers.\"\r\n\r\nWe'd need to change users of NativeCall to make sure they are only calling non-managed functions, or else undefined behaviour can happen.\r\n\r\n- What commands did you run to trigger this issue? If you can provide a\r\n\r\nUnit tests for the reload work that @BadSingleton is working on (#1287)\r\n","author":{"url":"https://github.com/benoithudson","@type":"Person","name":"benoithudson"},"datePublished":"2020-12-15T18:10:12.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/1323/pythonnet/issues/1323"}
| 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:c7ceffe3-72a7-7324-7dfc-ef8a6b2851ce |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | BE42:184028:31539AA:31F76D7:69702D88 |
| html-safe-nonce | a82c8d71220339ecf77b927903b9fca820396a8b2beeddbbfd342a1ef82bbebc |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCRTQyOjE4NDAyODozMTUzOUFBOjMxRjc2RDc6Njk3MDJEODgiLCJ2aXNpdG9yX2lkIjoiNDA3MjY2MDgxNzAyNTE4MzExMiIsInJlZ2lvbl9lZGdlIjoic2VhIiwicmVnaW9uX3JlbmRlciI6InNlYSJ9 |
| visitor-hmac | 3994e5340616621afe3d42b4b2f162681f11408ec19269fc7c60c8096151c2ff |
| hovercard-subject-tag | issue:767949509 |
| 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/1323/issue_layout |
| twitter:image | https://opengraph.githubassets.com/d531ed3973816f200f12485d8cbc744237eebbf7dad1adc702163b30c4862c95/pythonnet/pythonnet/issues/1323 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/d531ed3973816f200f12485d8cbc744237eebbf7dad1adc702163b30c4862c95/pythonnet/pythonnet/issues/1323 |
| og:image:alt | Environment Pythonnet version: master Python version: 3.7 (probably any) Operating System: mono on any platform, not dotnet on any platform Details Describe what you were trying to get done. Workin... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | benoithudson |
| hostname | github.com |
| expected-hostname | github.com |
| None | 01fa379f5de85ef8e791d09724e69709ce9eb9595278316e0a921312dc88e0bc |
| 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 | dda91974c069382b0dfa47b2da7e28bd061c8331 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width