Skip to content

[arch] Added fallback for Windows plugin loading when MAX_PATH is exceeded#4047

Open
DuncanHopkinsFoundry wants to merge 1 commit intoPixarAnimationStudios:devfrom
DuncanHopkinsFoundry:dlh/windows_long_paths
Open

[arch] Added fallback for Windows plugin loading when MAX_PATH is exceeded#4047
DuncanHopkinsFoundry wants to merge 1 commit intoPixarAnimationStudios:devfrom
DuncanHopkinsFoundry:dlh/windows_long_paths

Conversation

@DuncanHopkinsFoundry
Copy link
Copy Markdown

Description of Change(s)

Added second LoadLibrary call on windows, if the first one fails. The seconds call will add the Windows UNC header to an abs file path: "\?". If the first failure was related to the path being too long, then this fixes the issue. Without changing the original behaviour.

Fixes Issue(s)

Fixes #4046

Checklist

…eeded.

Added second LoadLibrary call on windows, if the first one fails.
The seconds call will add the Windows UNC header to an abs file path: "\\?\".
If the first failure was related to the path being too long, then this fixes the issue. Without changing the original behaviour.

Fixes PixarAnimationStudios#4046
@jesschimein
Copy link
Copy Markdown
Collaborator

Filed as internal issue #USD-12104

❗ Please make sure that a signed CLA has been submitted!

(This is an automated message. See here for more information.)

@spiffmon
Copy link
Copy Markdown
Member

I suspect the answer is no, but @DuncanHopkinsFoundry , would this fix be subsumed or obviated by PR #2239 , which we have queued to pull in this year?

@DuncanHopkinsFoundry
Copy link
Copy Markdown
Author

DuncanHopkinsFoundry commented Apr 21, 2026

would this fix be subsumed or obviated by PR #2239

It definitely looks like the same sort of thing. At a very quick browse I am not seeing the ArchLibraryOpen() being called with the adjusted name, but I would need to run the code to make sure (Which I have not done).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

When a plugin/DLL is located deeper than MAX_PATH in the Windows files it fails to load.

3 participants