-
Notifications
You must be signed in to change notification settings - Fork 67
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] Could not export DLSS dll #246
Comments
Hey @sodgaard , Also are you trying to export the file directly into a game directory? |
Hi Brad. 1.0.5 I believe it is named - the latest. I go to the list with all the downloads, and press the vertical Down Arrow to download. When that appears the horizontal arrow appears, and I try to press that. When doing that I get the error. Last month I managed to update MSFS2020 DLSS with no problem. Now MSFS2024 also shows up and I wanted to download the latest DLSS for that. BR Stephen |
From the first part of the log it looks like you tried to swap the DLSS dll (from the games menu) for MSFS (unsure of 2020 or 2024) and it was open so then it failed.
But then the next parts looks like it is defaulting to system32 for some reason and it should not be trying to touch that.
I think you are, but just to confirm, are you using the portable version? |
I just gave you the entire log file. Yes there seem to be a sharing violation in the first line. |
Just tried on my gaming laptop as well. Its exactly the same behaviour... |
One thing I have updated since the previous successfull use is upgrade to W11 24H2. |
Hey @sodgaard , I have been able to use it on Win 11 24H2 and 23H2 and didn't have the problems. However I was able to replicate the issue running DLSS Swapper as admin. We did have this problem appear previously with #120 where I signed off saying that the issue should be fixed 😅 If you can confirm that running not as admin fixes it for you I'll try get that fixed for the next build. If that is the case running as non-admin should allow you to export. If that isn't the case you can normally download DLSS files from TechPowerUp or from our own DLSS archive which is where DLSS Swapper loads from. |
As you point out it seem to be some kind of permissions problem. I had placed the files in a folder below Program Files (x86). I have now moved the folder out of (x86) and under C:/utils/DLSS Swapper. Here it functions fine.. |
I have the same issue. It must be a more recent patch to Windows 11 24H2 that is causing the problem. Portable works but the installed version will not. Edit: So after reinstalling DLSS Swapper several times to different places and drives with no success. I installed DLSS Swapper and then moved the portable version over and overwrote all the files. It works now and I can just search for DLSS Swapper in the start menu. So there is something different between the 2 versions. |
I'll try go re-verify 24H2 with the installer version installed to its default location, but by the sounds of it the two of you are doing things that are not intended to be done.
Yeah, if you want it in
Yep! When the two versions are compiled different parts of the code are toggled. The main change is where files are stored. Portable version stores its files relative to the executable in the The reason the installer puts files here is because it is recommended where apps put changing files (eg, config files) as they can't access EDIT: But regardless of putting portable version into Either way, this should not be happening, so I'll see what I can do to fix that. |
I had it in the stock folder, desktop, on the D drive in the root of the drive. Nothing worked even if running it as Admin. The portable version works no issue. So it must be some new weird permissions or protection in the appdata folder. Let me disable Windows defender and give it a try when I get home later. |
When you say nothing worked, do you mean nothing nothing? Couldn't swap DLSS for Steam games, couldn't download DLSS, couldn't export DLSS |
Swapping was fine. Just exporting didn't work. Sorry I wasn't more precise. Left it out cuz we were in a thread about exporting. The only thing in my log are the "[ERR] LibraryPage.xaml.cs:726 ExportRecordAsync -" even though I set it to verbose logging. |
Ah, I see what you mean now. All good. I'll try replicate those on my 24H2 machine later. As for verbose logging, I would have imagined there should be more. I'll double check that with mine as well to see. |
Just to add more stuff to think about. I did a full windows update. It had some cumulative updates as well as a couple .net framework updates and it started to export. I rolled back to a previous system restore point without them and it no longer works. So I'm not sure if it's a cumulative update or one of the .net updates. I'm troubleshooting trying to find out which one of these updates is killing my performance in Star Citizen (Which is why I wiped my computer and reinstalled windows 11 in the first place) so I'll try and figure out which update fixes the issue. |
I don't think it should be that, but weird things are happening so I am open to anything being funky :P I wouldn't imagine it is those .NET updates. While the project is written in .NET it is published with self-contained so it does not need .NET installed to run it as it has its own bundled version. EDIT: But with any problem, more information is always a good thing so thanks for providing that. |
Alright. I BELIEVE it was KB5045934 .net update that installed and it works now. It's either that one or the KB5048162. I thought I wrote down which one it was but I think I got side tracked and didn't paste it to my notepad before I rebooted. But one of those fixed the problem for me. |
I checked on my 24H2 (26100.2454) machine, it has both KB5045934 and KB5048162 installed. With a fresh copy of portable downloaded and running from Downloads folder on Moving that folder to root of Moving that folder to DLSS Swapper installer version that is installed to Uninstalled and re-installed to The only way I can replicate is if I run the executable as administrator for either portable or installable version.
There is other stuff added at startup under the informational level and higher such as,
It could be possible settings didn't save when you re-launched it (due to these permissions errors) and it never actually stayed in its verbose mode. Future versions of DLSS Swapper add bannners when running as administrator (#225) which would help confirm if it is running as administrator or not. Task manager details tab has an elevated column to show if it is running as adminstrator or not. |
Ok, update. I debugger the code, and it looks like it fails when I tried to show the export dialog ( When I can add that, this should fix the errors that say
(side note, annoying that the actual error here even when I debug it is a blank string) I am still looking into the errors that say
|
Thanks. Brad. After moving the folder location and not running as Admin all works fine. :-) |
I encountered the same issues running the latest portable version. I have extracted the .zip to a subfolder of my This also happens if I run DLSS Swapper via the start menu search box in non-elevated mode. It picks up the .exe from my Downloads folder. I don't have the installer variant installed. If I run the portable .exe from its directory using Windows Explorer, all is fine. Previously downloaded DLLs are there and swapping works. Do you use the current working directory to build paths in the portable version, e.g. by using relative paths? My guess is that the working directory is not set when the .exe is started in elevated mode or by other means like the start menu and it somehow defaults to |
Thanks for the extra info, that is very helpful to help me debug. From we were getting the path of the executable as getting the current working directory would return very weird stuff like what we are currently seeing. That is with AppContext.BaseDirectory. There is longer comments here of what I should do. Considering I ended that thread with "This should be fixed in v1.0.2" I will revisit. |
Just to pile it on here... ;) Encountered this with 1.0.5.0 and 1.0.5.1 with the installed version, both as admin and non-admin. Didn't seem to matter where the application was installed (Program Files (x86) or with install folder at root of D:). Was able to work around it by using the portable version (1.0.5.0) in D:\DLSS Swapper\ Windows 10 22H2 (19045.5011) also have Windows Desktop Runtime version 6.0.33, 8.0.7 and 8.0.8 installed. not sure if relevant. |
Unable to unpack newly downloaded DLSS versions.
Program version 1.0.5
A clear and concise description of what the bug is.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
From the log file:
2024-11-24 18:17:17.066 +01:00 [ERR] FileVersionInfoExtensions.cs:24 GetMD5Hash - C:\Program Files\WindowsApps\Microsoft.Limitless_1.1.9.0_x64__8wekyb3d8bbwe\nvngx_dlss.dll, The process cannot access the file 'C:\Program Files\WindowsApps\Microsoft.Limitless_1.1.9.0_x64__8wekyb3d8bbwe\nvngx_dlss.dll' because it is being used by another process.
2024-11-24 18:51:46.973 +01:00 [ERR] LibraryPage.xaml.cs:726 ExportRecordAsync -
2024-11-24 18:51:55.130 +01:00 [ERR] LocalRecord.cs:177 Delete - Could not find a part of the path 'C:\WINDOWS\system32\StoredData\dlss_zip\3.8.10.0_AED94E7029846C356882DB166B824F5E.zip'.
2024-11-24 18:52:10.204 +01:00 [ERR] LibraryPage.xaml.cs:273 ExportAllAsync -
2024-11-24 18:54:04.327 +01:00 [ERR] LibraryPage.xaml.cs:726 ExportRecordAsync -
2024-11-24 18:54:58.937 +01:00 [ERR] LibraryPage.xaml.cs:273 ExportAllAsync -
2024-11-24 18:55:01.945 +01:00 [ERR] LibraryPage.xaml.cs:726 ExportRecordAsync -
2024-11-24 18:56:09.298 +01:00 [ERR] LibraryPage.xaml.cs:726 ExportRecordAsync -
2024-11-24 18:56:20.853 +01:00 [ERR] LibraryPage.xaml.cs:726 ExportRecordAsync -
2024-11-24 23:16:49.945 +01:00 [ERR] LibraryPage.xaml.cs:726 ExportRecordAsync -
2024-11-24 23:17:07.192 +01:00 [ERR] LibraryPage.xaml.cs:726 ExportRecordAsync -
2024-11-24 23:22:09.612 +01:00 [ERR] LibraryPage.xaml.cs:726 ExportRecordAsync -
The text was updated successfully, but these errors were encountered: