René's URL Explorer Experiment


Title: Loading Native Libraries is broken · Issue #9488 · PowerShell/PowerShell · GitHub

Open Graph Title: Loading Native Libraries is broken · Issue #9488 · PowerShell/PowerShell

X Title: Loading Native Libraries is broken · Issue #9488 · PowerShell/PowerShell

Description: Attempting to load a module that requires p/invoke from a third-party native library fails to load the library from the same folder as the DLL doing the p/invoking. This used to work in PowerShell Core 6.1.0 but regressed between 6.2.0-p...

Open Graph Description: Attempting to load a module that requires p/invoke from a third-party native library fails to load the library from the same folder as the DLL doing the p/invoking. This used to work in PowerShell ...

X Description: Attempting to load a module that requires p/invoke from a third-party native library fails to load the library from the same folder as the DLL doing the p/invoking. This used to work in PowerShell ...

Opengraph URL: https://github.com/PowerShell/PowerShell/issues/9488

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Loading Native Libraries is broken","articleBody":"Attempting to load a module that requires p/invoke from a third-party native library fails to load the library from the same folder as the DLL doing the p/invoking.\r\n\r\nThis _used to work_ in PowerShell Core 6.1.0 but regressed between 6.2.0-preview1 and 6.2.0-preview2. It still works in Windows PowerShell.\r\n\r\nThe native library it's failing to locate is located in the same folder as the SkiaSharp.dll that is trying to locate it. See https://github.com/PowerShell/PowerShell/issues/8861#issuecomment-462362391 and that issue thread for why it was done in that fashion.\r\n\r\n# Steps to reproduce\r\n\r\n```powershell\r\nInstall-Module PSWordCloud\r\nNew-WordCloud\r\n```\r\n\r\n# Expected behavior\r\n\r\n```none\r\ncmdlet New-WordCloud at command pipeline position 1\r\nSupply values for the following parameters:\r\nInputObject:\r\n```\r\n\r\n# Actual behavior\r\n\r\n```none\r\nnew-wordcloud : The type initializer for 'PSWordCloud.WCUtils' threw an exception.\r\nAt line:1 char:1\r\n+ new-wordcloud\r\n+ ~~~~~~~~~~~~~\r\n+ CategoryInfo          : NotSpecified: (:) [], TypeInitializationException\r\n+ FullyQualifiedErrorId : System.TypeInitializationException\r\n```\r\n\r\nQuerying for the base exception with `$Error[0].Exception.GetBaseException() | Format-List * -F` yields the following:\r\n\r\n```\r\nMessage        : Unable to load DLL 'libSkiaSharp' or one of its dependencies: The specified module could not be\r\n                 found. (Exception from HRESULT: 0x8007007E)\r\nTypeName       :\r\nData           : {}\r\nInnerException :\r\nTargetSite     : IntPtr sk_fontmgr_ref_default()\r\nStackTrace     :    at SkiaSharp.SkiaApi.sk_fontmgr_ref_default()\r\n                    at SkiaSharp.SKFontManager.get_Default()\r\n                    at PSWordCloud.WCUtils..cctor()\r\nHelpLink       :\r\nSource         : SkiaSharp\r\nHResult        : -2146233052\r\n```\r\n\r\n# Environment data\r\n\r\n\u003c!-- provide the output of $PSVersionTable -->\r\n\r\n```none\r\nName                           Value\r\n----                           -----\r\nPSVersion                      6.2.0\r\nPSEdition                      Core\r\nGitCommitId                    6.2.0\r\nOS                             Microsoft Windows 10.0.17763\r\nPlatform                       Win32NT\r\nPSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}\r\nPSRemotingProtocolVersion      2.3\r\nSerializationVersion           1.1.0.1\r\nWSManStackVersion              3.0\r\n```\r\n\r\n_Note:_ The same was tested in a Mac environment (thanks @steviecoaster!) and also failed in the same way. I suspect it will be identical on Linux distros as well.\r\n\r\n/cc @SteveL-MSFT ","author":{"url":"https://github.com/vexx32","@type":"Person","name":"vexx32"},"datePublished":"2019-04-27T12:37:13Z","url":"https://github.com/PowerShell/PowerShell/issues/9488"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:8f0c0cbc-8987-dbf6-40b4-75cfcbe82cce
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id855C:1FA7D2:A2E82:DE0D2:6AFD4A17
html-safe-nonce26f4a3a22d0ffa05bf603f11c0b06b85d5be63b5ce47cf4b20281f940e71f7e9
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4NTVDOjFGQTdEMjpBMkU4MjpERTBEMjo2QUZENEExNyIsInZpc2l0b3JfaWQiOiI3OTc4NDQwOTM1NzE5Mzg5NzE5IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmacd7d64de9c7d2a62baf18bd26843f53936803827c2725142a97210f9d4cd4dad4
hovercard-subject-tagissue:437939422
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/PowerShell/PowerShell/9488/issue_layout
twitter:imagehttps://opengraph.githubassets.com/514986c867a2e32f5490790f5947a9ce0325fc63384b7565702cb69015a0b4ce/PowerShell/PowerShell/issues/9488
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/514986c867a2e32f5490790f5947a9ce0325fc63384b7565702cb69015a0b4ce/PowerShell/PowerShell/issues/9488
og:image:altAttempting to load a module that requires p/invoke from a third-party native library fails to load the library from the same folder as the DLL doing the p/invoking. This used to work in PowerShell ...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamevexx32
hostnamegithub.com
expected-hostnamegithub.com
None66653c2e55a6fff2930be1bdf07ee4f8aa137e3956d056c822563be6f878755e
turbo-cache-controlno-preview
go-importgithub.com/PowerShell/PowerShell git https://github.com/PowerShell/PowerShell.git
octolytics-dimension-user_id11524380
octolytics-dimension-user_loginPowerShell
octolytics-dimension-repository_id49609581
octolytics-dimension-repository_nwoPowerShell/PowerShell
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id49609581
octolytics-dimension-repository_network_root_nwoPowerShell/PowerShell
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releaseb6f01f7cb9f35f8c09949773241a3d49dd04b340
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/PowerShell/PowerShell/issues/9488#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FPowerShell%2FPowerShell%2Fissues%2F9488
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FPowerShell%2FPowerShell%2Fissues%2F9488
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=PowerShell%2FPowerShell
Reloadhttps://github.com/PowerShell/PowerShell/issues/9488
Reloadhttps://github.com/PowerShell/PowerShell/issues/9488
Reloadhttps://github.com/PowerShell/PowerShell/issues/9488
PowerShellhttps://github.com/PowerShell
PowerShellhttps://github.com/PowerShell/PowerShell
Codehttps://github.com/PowerShell/PowerShell
Issues1.3k (1.3k)https://github.com/PowerShell/PowerShell/issues
Pull requests365 (365)https://github.com/PowerShell/PowerShell/pulls
Discussionshttps://github.com/PowerShell/PowerShell/discussions
Actionshttps://github.com/PowerShell/PowerShell/actions
Projectshttps://github.com/PowerShell/PowerShell/projects
Security and quality3 (3)https://github.com/PowerShell/PowerShell/security
Insightshttps://github.com/PowerShell/PowerShell/insights
https://github.com/PowerShell/PowerShell
New issuehttps://github.com/login?return_to=https://github.com/PowerShell/PowerShell/issues/9488
New issuehttps://github.com/login?return_to=https://github.com/PowerShell/PowerShell/issues/9488
#11032https://github.com/PowerShell/PowerShell/pull/11032
Loading Native Libraries is brokenhttps://github.com/PowerShell/PowerShell/issues/9488#top
#11032https://github.com/PowerShell/PowerShell/pull/11032
Issue-Questionideally support can be provided via other mechanisms, but sometimes folks do open an issue to get ahttps://github.com/PowerShell/PowerShell/issues?q=state%3Aopen%20label%3A%22Issue-Question%22
Resolution-FixedThe issue is fixed.https://github.com/PowerShell/PowerShell/issues?q=state%3Aopen%20label%3A%22Resolution-Fixed%22
7.0-Considerhttps://github.com/PowerShell/PowerShell/milestone/54
https://github.com/vexx32
Rain Sallow (/u/ta11ow) (vexx32)https://github.com/vexx32
on Apr 27, 2019https://github.com/PowerShell/PowerShell/issues/9488#issue-437939422
#8861 (comment)https://github.com/PowerShell/PowerShell/issues/8861#issuecomment-462362391
Stephen Valdinger (@steviecoaster)https://github.com/steviecoaster
Steve Lee (@SteveL-MSFT)https://github.com/SteveL-MSFT
Nexthttps://github.com/PowerShell/PowerShell/issues/9488?timeline_page=1
Rain Sallow (/u/ta11ow) (vexx32)https://github.com/vexx32
Issue-Questionideally support can be provided via other mechanisms, but sometimes folks do open an issue to get ahttps://github.com/PowerShell/PowerShell/issues?q=state%3Aopen%20label%3A%22Issue-Question%22
on Apr 27, 2019https://github.com/PowerShell/PowerShell/issues/9488#event-2304718649
Rain Sallow (/u/ta11ow) (vexx32)https://github.com/vexx32
on Apr 27, 2019https://github.com/PowerShell/PowerShell/issues/9488#event-2304718776
Steve Lee (SteveL-MSFT)https://github.com/SteveL-MSFT
6.2.1-considerhttps://github.com/PowerShell/PowerShell/milestone/57
on Apr 27, 2019https://github.com/PowerShell/PowerShell/issues/9488#event-2304755977
https://github.com/SteveL-MSFT
Steve Lee (SteveL-MSFT)https://github.com/SteveL-MSFT
on Apr 27, 2019https://github.com/PowerShell/PowerShell/issues/9488#issuecomment-487289337
Aditya Patwardhan (@adityapatwardhan)https://github.com/adityapatwardhan
https://github.com/iSazonov
Ilya (iSazonov)https://github.com/iSazonov
on Apr 27, 2019https://github.com/PowerShell/PowerShell/issues/9488#issuecomment-487307539
HintPath https://medium.com/@tonerdo/referencing-a-net-dll-directly-using-the-net-core-toolchain-16f0af46a4dc
https://github.com/vexx32
Rain Sallow (/u/ta11ow) (vexx32)https://github.com/vexx32
on Apr 27, 2019https://github.com/PowerShell/PowerShell/issues/9488#issuecomment-487308081
https://github.com/iSazonov
Ilya (iSazonov)https://github.com/iSazonov
on Apr 27, 2019https://github.com/PowerShell/PowerShell/issues/9488#issuecomment-487308480
https://github.com/vexx32
Rain Sallow (/u/ta11ow) (vexx32)https://github.com/vexx32
on Apr 27, 2019https://github.com/PowerShell/PowerShell/issues/9488#issuecomment-487309299
#8073https://github.com/PowerShell/PowerShell/pull/8073
https://github.com/iSazonov
Ilya (iSazonov)https://github.com/iSazonov
on Apr 27, 2019https://github.com/PowerShell/PowerShell/issues/9488#issuecomment-487313640
https://github.com/vexx32
Rain Sallow (/u/ta11ow) (vexx32)https://github.com/vexx32
on Apr 27, 2019https://github.com/PowerShell/PowerShell/issues/9488#issuecomment-487328136
Ilya (@iSazonov)https://github.com/iSazonov
https://github.com/Jaykul
Joel Bennett (Jaykul)https://github.com/Jaykul
on Apr 28, 2019https://github.com/PowerShell/PowerShell/issues/9488#issuecomment-487340868
https://github.com/vexx32
Rain Sallow (/u/ta11ow) (vexx32)https://github.com/vexx32
on Apr 28, 2019https://github.com/PowerShell/PowerShell/issues/9488#issuecomment-487343189
https://github.com/iSazonov
Ilya (iSazonov)https://github.com/iSazonov
on Apr 28, 2019https://github.com/PowerShell/PowerShell/issues/9488#issuecomment-487343706
Rain Sallow (/u/ta11ow) (@vexx32)https://github.com/vexx32
https://github.com/vexx32
Rain Sallow (/u/ta11ow) (vexx32)https://github.com/vexx32
on Apr 28, 2019https://github.com/PowerShell/PowerShell/issues/9488#issuecomment-487344400
https://github.com/vexx32
Rain Sallow (/u/ta11ow) (vexx32)https://github.com/vexx32
on Apr 28, 2019https://github.com/PowerShell/PowerShell/issues/9488#issuecomment-487348900
Joel Bennett (@Jaykul)https://github.com/Jaykul
herehttps://docs.microsoft.com/en-us/windows/desktop/Dlls/dynamic-link-library-search-order
https://github.com/vexx32
Rain Sallow (/u/ta11ow) (vexx32)https://github.com/vexx32
on Jun 29, 2019https://github.com/PowerShell/PowerShell/issues/9488#issuecomment-506954115
https://github.com/iSazonov
Ilya (iSazonov)https://github.com/iSazonov
on Jun 29, 2019https://github.com/PowerShell/PowerShell/issues/9488#issuecomment-506973857
https://github.com/vexx32
Rain Sallow (/u/ta11ow) (vexx32)https://github.com/vexx32
on Jun 29, 2019https://github.com/PowerShell/PowerShell/issues/9488#issuecomment-506974237
https://github.com/iSazonov
Ilya (iSazonov)https://github.com/iSazonov
on Jun 29, 2019https://github.com/PowerShell/PowerShell/issues/9488#issuecomment-506976587
Travis Plunk (TravisEz13)https://github.com/TravisEz13
6.2.3-considerhttps://github.com/PowerShell/PowerShell/milestone/66
on Jul 15, 2019https://github.com/PowerShell/PowerShell/issues/9488#event-2484395013
Travis Plunk (TravisEz13)https://github.com/TravisEz13
6.2.3-considerhttps://github.com/PowerShell/PowerShell/milestone/66
6.2.4-considerhttps://github.com/PowerShell/PowerShell/milestone/70
on Sep 12, 2019https://github.com/PowerShell/PowerShell/issues/9488#event-2630641785
https://github.com/vexx32
Rain Sallow (/u/ta11ow) (vexx32)https://github.com/vexx32
on Nov 11, 2019https://github.com/PowerShell/PowerShell/issues/9488#issuecomment-552252317
Rob Holt (@rjmholt)https://github.com/rjmholt
https://github.com/vexx32/PSWordCloud/tree/FixPInvokeshttps://github.com/vexx32/PSWordCloud/tree/FixPInvokes
Patrick Meinecke (@SeeminglyScience)https://github.com/SeeminglyScience
https://avatars2.githubusercontent.com/u/32407840?s=400&v=4
https://camo.githubusercontent.com/367743aeb3919fb6453d8d3b9052f46876bfbe1f90944156efcb74377ed6a6f8/68747470733a2f2f6769746875622e6769746875626173736574732e636f6d2f66617669636f6e2e69636f
vexx32/PSWordCloudhttps://github.com/vexx32/PSWordCloud
https://github.com/vexx32
Rain Sallow (/u/ta11ow) (vexx32)https://github.com/vexx32
on Nov 11, 2019https://github.com/PowerShell/PowerShell/issues/9488#issuecomment-552252955
Steve Lee (@SteveL-MSFT)https://github.com/SteveL-MSFT
Steve Lee (SteveL-MSFT)https://github.com/SteveL-MSFT
6.2.4-considerhttps://github.com/PowerShell/PowerShell/milestone/70
7.0-Considerhttps://github.com/PowerShell/PowerShell/milestone/54
on Nov 11, 2019https://github.com/PowerShell/PowerShell/issues/9488#event-2788651740
Dongbo Wang (daxian-dbw)https://github.com/daxian-dbw
completedhttps://github.com/PowerShell/PowerShell/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
#11032https://github.com/PowerShell/PowerShell/pull/11032
on Dec 9, 2019https://github.com/PowerShell/PowerShell/issues/9488#event-2867697106
Ilya (iSazonov)https://github.com/iSazonov
Resolution-FixedThe issue is fixed.https://github.com/PowerShell/PowerShell/issues?q=state%3Aopen%20label%3A%22Resolution-Fixed%22
on Dec 10, 2019https://github.com/PowerShell/PowerShell/issues/9488#event-2868764776
Sign up for freehttps://github.com/signup?return_to=https://github.com/PowerShell/PowerShell/issues/9488
Sign in to commenthttps://github.com/login?return_to=https://github.com/PowerShell/PowerShell/issues/9488
Issue-Questionideally support can be provided via other mechanisms, but sometimes folks do open an issue to get ahttps://github.com/PowerShell/PowerShell/issues?q=state%3Aopen%20label%3A%22Issue-Question%22
Resolution-FixedThe issue is fixed.https://github.com/PowerShell/PowerShell/issues?q=state%3Aopen%20label%3A%22Resolution-Fixed%22
7.0-Considerhttps://github.com/PowerShell/PowerShell/milestone/54
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.