• Hi Guest!

    We are extremely excited to announce the release of our first Beta for VaM2, the next generation of Virt-A-Mate which is currently in development.
    To participate in the Beta, a subscription to the Entertainer or Creator Tier is required. Once subscribed, download instructions can be found here.

    Click here for information and guides regarding the VaM2 beta. Join our Discord server for more announcements and community discussion about VaM2.

Solved Texture Load error

CaptainMagnus

New member
Joined
Feb 23, 2025
Messages
5
Solutions
1
Reactions
1
Had a look at previous threads but didn't seem to cover my particular flavour of issue.

Context:
Had zero issues before I updated to (I think) 1.22.0.8, big "uh oh" error below occurred, reverted to 1.22.0.7, error still persists, updated to 1.22.0.12, error still persists.
Made a fresh 1.22.0.12 install on a separate drive, error still persists.

I'm not unpacking VARs or anything like that. Just adding an atom, and trying to add custom textures (same way I've always done with zero issues). If I load a preset from a var then there's no issues, same as if I load a locally saved appearance preset I've created myself, no issues.

If I load an appearance preset (fine) and then select textures from the same directory the preset pulls from, it throws the error.

Haven't touched any settings in vam for a long while so I doubt it's something there, I checked anyway and couldn't see anything that would block anything.

Tried disabling antivirus programs as Access Denied was making me think it was interfering but the error was still there.


I have very little knowledge of coding so when it comes to logs I mainly just skim for keywords or file paths to see if I can bumble my way through logical deduction but alas no.
So hoping some charitable soul can tell me what the gosh dang this means:

!> Error during texture load: System.UnauthorizedAccessException: Access to the path "D:\Games\VR\Virt-A-Mate\Saves\Person\appearance\*Redacted*\eb 2\eb 2_face.jpg" is denied.
at System.IO.FileStream..ctor (System.String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, Boolean anonymous, FileOptions options) [0x00000] in <filename unknown>:0
at System.IO.FileStream..ctor (System.String path, FileMode mode, FileAccess access, FileShare share) [0x00000] in <filename unknown>:0
at (wrapper remoting-invoke-with-check) System.IO.FileStream:.ctor (string,System.IO.FileMode,System.IO.FileAccess,System.IO.FileShare)
at System.IO.File.Open (System.String path, FileMode mode, FileAccess access, FileShare share) [0x00000] in <filename unknown>:0
at MVR.FileManagement.SystemFileEntryStream..ctor (MVR.FileManagement.SystemFileEntry entry) [0x00000] in <filename unknown>:0
at MVR.FileManagement.FileManager.OpenStream (MVR.FileManagement.FileEntry fe) [0x00000] in <filename unknown>:0
at MVR.FileManagement.FileManager.OpenStream (System.String path, Boolean restrictPath) [0x00000] in <filename unknown>:0
at ImageLoaderThreaded+QueuedImage.Process () [0x00000] in <filename unknown>:0

All help appreciated lads/ladettes!
 
Solution
Found the culprit!
Turns out my vam folder kept getting set to read only no matter how many times I turned it off. Uninstalled my antivrus completely to make sure that wasn't doing it but no change.
Went for a more blanket approach with removing attributes with Elevated CMD:

Windows key + R, CMD, Ctrl+Shift+Enter.
Then: c:\ windows\system32>attrib -r +s "D:\Games\VR\Virt-A-Mate" [<<<"whatever your Vam filepath is"]
Enter

No more issues!
Not sure what was causing it but it's fixed and working enough for now while I work out WTH it's problem is!

Hopefully this helps someone else out!
You're trying to load a texture file from Saves\Person\appearance. That's the wrong place. The new security features are telling you about a System.UnauthorizedAccessException in that location. Local texture files are supposed to go in Custom\Atom\Person\Textures\<Your_Name>.
 
Upvote 0
Was never a problem before, when did that become a thing?

Anyway, copy pasted the folder to the path you suggested, same issue though



!> Error during texture load: System.UnauthorizedAccessException: Access to the path "D:\Games\VR\Virt-A-Mate\Custom\Atom\Person\Textures\*Redacted*\eb 2\eb 2_face.jpg" is denied.
at System.IO.FileStream..ctor (System.String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, Boolean anonymous, FileOptions options) [0x00000] in <filename unknown>:0
at System.IO.FileStream..ctor (System.String path, FileMode mode, FileAccess access, FileShare share) [0x00000] in <filename unknown>:0
at (wrapper remoting-invoke-with-check) System.IO.FileStream:.ctor (string,System.IO.FileMode,System.IO.FileAccess,System.IO.FileShare)
at System.IO.File.Open (System.String path, FileMode mode, FileAccess access, FileShare share) [0x00000] in <filename unknown>:0
at MVR.FileManagement.SystemFileEntryStream..ctor (MVR.FileManagement.SystemFileEntry entry) [0x00000] in <filename unknown>:0
at MVR.FileManagement.FileManager.OpenStream (MVR.FileManagement.FileEntry fe) [0x00000] in <filename unknown>:0
at MVR.FileManagement.FileManager.OpenStream (System.String path, Boolean restrictPath) [0x00000] in <filename unknown>:0
at ImageLoaderThreaded+QueuedImage.Process () [0x00000] in <filename unknown>:0
 
Upvote 0
MeshedVR has made several security patches recently. You must be violating one of them. Check the permissions on the folder. If it's somewhere other than your main Vam install, that could be a problem too.
 
Upvote 0
Nope it's not that Slimer : )
\Custom and \Saves are fair game, they are the folder you can do whatever you want in. Read and write.

The message is clear here, Access to the path "..." is denied. There is something wrong with the admin rights on the folder.
Ensure to verify and eventually update your user rights on that folder.
 
Upvote 0
When I googled the issue initially, another page popped up albeit for an unrelated subject but a similar looking issue. Checked the fix for that and it did mention something about folder/file permissions, I changed the main VAM folder for full access on "authenticated users" as it was the only didn't already have it enabled and it didn't fix the issue (probably didn't apply to subfolders, hence changing nothing).

I'll check all folders along that file path to see if anything's amiss and come back with my findings!
 
Upvote 0
  • Check the file itself at that path. Ensure it is working.
  • If it is. It might be incorrect. Try saving/re-exporting the jpg file. Some people are renaming the extension thinking it's how file formats works which confuses the hell out of apps that are waiting for the actual proper file format.
  • Check the whole path, if there is any special char remove them
  • Avoid special chars, including white spaces. Use alpha numerical character, - _ and that's all.
 
Upvote 0
  • Check the file itself at that path. Ensure it is working.
  • If it is. It might be incorrect. Try saving/re-exporting the jpg file. Some people are renaming the extension thinking it's how file formats works which confuses the hell out of apps that are waiting for the actual proper file format.
  • Check the whole path, if there is any special char remove them
  • Avoid special chars, including white spaces. Use alpha numerical character, - _ and that's all.
File opens normally in paint, photoshop etc. Re saved as a jpg again, removed the space in the filename, checked the permissions for the whole vam folder (screen attached).

Permissions.jpg


No special characters in the redacted sections, just bog standard boring latin.

I don't know what to tell you, was fine till I updated and it's been borked ever since regardless of what I do.
It's not just this file, it's any texture file I manually select. I'm just not allowed to have nice things I guess :(

I'll do some more internet spelunking but if you've got any ideas/leads, I'm all ears!

Same error but here you go anyway:

!> Error during texture load: System.UnauthorizedAccessException: Access to the path "D:\Games\VR\Virt-A-Mate\Saves\Person\appearance\*Redacted*\eb 2\eb2_face.jpg" is denied.
at System.IO.FileStream..ctor (System.String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, Boolean anonymous, FileOptions options) [0x00000] in <filename unknown>:0
at System.IO.FileStream..ctor (System.String path, FileMode mode, FileAccess access, FileShare share) [0x00000] in <filename unknown>:0
at (wrapper remoting-invoke-with-check) System.IO.FileStream:.ctor (string,System.IO.FileMode,System.IO.FileAccess,System.IO.FileShare)
at System.IO.File.Open (System.String path, FileMode mode, FileAccess access, FileShare share) [0x00000] in <filename unknown>:0
at MVR.FileManagement.SystemFileEntryStream..ctor (MVR.FileManagement.SystemFileEntry entry) [0x00000] in <filename unknown>:0
at MVR.FileManagement.FileManager.OpenStream (MVR.FileManagement.FileEntry fe) [0x00000] in <filename unknown>:0
at MVR.FileManagement.FileManager.OpenStream (System.String path, Boolean restrictPath) [0x00000] in <filename unknown>:0
at ImageLoaderThreaded+QueuedImage.Process () [0x00000] in <filename unknown>:0
 
Last edited:
Upvote 0
Found the culprit!
Turns out my vam folder kept getting set to read only no matter how many times I turned it off. Uninstalled my antivrus completely to make sure that wasn't doing it but no change.
Went for a more blanket approach with removing attributes with Elevated CMD:

Windows key + R, CMD, Ctrl+Shift+Enter.
Then: c:\ windows\system32>attrib -r +s "D:\Games\VR\Virt-A-Mate" [<<<"whatever your Vam filepath is"]
Enter

No more issues!
Not sure what was causing it but it's fixed and working enough for now while I work out WTH it's problem is!

Hopefully this helps someone else out!
 
Upvote 0
Solution
Back
Top Bottom