Open bolf51 opened 1 year ago
Hi @bolf51,
Unfortunately your log doesn't contain enough information for me to troubleshoot. Can you please edit your Settings_2.5.json file, and change
"LogLevel": "Warn",
line to
"LogLevel": "Trace",
Then please restart DisplayMagician and try to perform a video swap between them. If you can, then please go into DisplayMagician Settings window and click on the 'Create Support ZIP File' button. Upload the ZIP file that is made to this issue through your web browser.
I'll take a closer look then.
Thanks Terry
Hi @bolf51
I actually took a look now. It all looks fine.
Your Surround config has 4 screens connected to your nice new RTX4090, 3 via Displayport, and 1 via HDMI via a DVI dongle? The 3 Displayport devices are in a 1x3 mosaic/Surround group and is 7780x1440 in overall size. Your single screen is showing a desktop 3840x2160 in size. There is a weird NVIDIA setting in here where it thinks your mosaic display settings are only 2560x1440, so I think NVIDIA is grabbing the size of your primary display (which is one of the surrounds screens).
Your normal profile is just the Asus display at 2560x1440.
Both those profiles look ok to me.
Do you have any error message appear on the screen when you have a problem?
Thanks Terry
Hi, thanks for taking a look!
I have 2 displayport monitors with 1 HDMI direct to the video card for the surround group, each at 2560x1440, and the single asus 4k monitor on displayport. I don't see any error messages, just closes the application completely. The only screen i'm able to get to is 'create profile' via right clicking on desktop, and the back button crashes it
I've messed with it a bit more, it seems to be able to switch between them but it crashes after it does so, and I managed to get an error message. I'm not able to get to the main menu or settings after creating the profiles but I changed the .json file to "Trace" log and uploaded a new log file:
** Exception Text ** System.NullReferenceException: Object reference not set to an instance of an object. at DisplayMagician.Program.ApplyProfileTask(ProfileItem profile) at DisplayMagician.UIForms.DisplayProfileForm.Apply_Click(Object sender, EventArgs e) at System.Windows.Forms.Control.OnClick(EventArgs e) at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent) at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks) at System.Windows.Forms.Control.WndProc(Message& m) at System.Windows.Forms.ButtonBase.WndProc(Message& m) at System.Windows.Forms.Button.WndProc(Message& m) at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
** JIT Debugging ** To enable just-in-time (JIT) debugging, the .config file for this application or computer (machine.config) must have the jitDebugging value set in the system.windows.forms section. The application must also be compiled with debugging enabled.
For example:
When JIT debugging is enabled, any unhandled exception will be sent to the JIT debugger registered on the computer rather than be handled by this dialog box.
@bolf51 That helps I think. I think sometimes the NVIDIA driver reports a 0x0 screen, and that is tricking my logic which expects a valid screen size. This is then causing an issue when it attempts to show that display layout:
2023-03-27 00:04:33.6277|TRACE|DisplayMagician.Program|ProfileItem/GetNVIDIAScreenPositions: Processing screen source index #0.|
2023-03-27 00:04:33.6277|TRACE|DisplayMagician.Program|ProfileItem/GetNVIDIAScreenPositions: Processing target screen ID:2147881090.|
2023-03-27 00:04:33.6277|TRACE|DisplayMagician.Program|ProfileItem/GetNVIDIAScreenPositions: The screen ID:2147881090 is NOT part of a cloned group.|
2023-03-27 00:04:33.6277|ERROR|DisplayMagician.Program|ProfileItem/GetNVIDIAScreenPositions: The screen width is 0 and it shouldn't be! Skipping this display id #2147881090.|
2023-03-27 00:04:33.6277|ERROR|DisplayMagician.Program|ProfileItem/GetNVIDIAScreenPositions: The screen height is 0 and it shouldn't be! Skipping this display id #2147881090.|
2023-03-27 00:04:33.6277|TRACE|DisplayMagician.Program|ProfileItem/GetNVIDIAScreenPositions: NVIDIA Screen 2147881090 is the primary monitor.|
2023-03-27 00:04:33.6407|TRACE|DisplayMagician.Program|ProfileItem/GetNVIDIAScreenPositions: Position of the taskbar on display 2147881090 is on the Bottom of the screen.|
2023-03-27 00:04:33.6407|TRACE|DisplayMagician.Program|ProfileItem/GetNVIDIAScreenPositions: (2) Added a non-surround NVIDIA Screen 2147881090 (3840x2160) at position 0,0.|
2023-03-27 00:04:33.6407|TRACE|DisplayMagician.Program|ProfileItem/GetWindowsScreenPositions: Position of the taskbar on display 4353 is on the Bottom of the screen.|
2023-03-27 00:04:33.6407|WARN|DisplayMagician.Program|ProfileItem/GetWindowsScreenPositions: Problem trying to get the position of the taskbar on primary display 4353. Assuming it's on the bottom edge.|
2023-03-27 00:04:33.6407|TRACE|DisplayMagician.Program|ProfileItem/GetWindowsScreenPositions: Added a new Screen (0x0) at position 0,0.|
2023-03-27 00:04:33.6407|TRACE|DisplayMagician.Program|ProfileItem/GetNVIDIAScreenPositions: (3) Added a Windows Screen (0x0) at position 0,0.|
As you can see above, it has Added a new Screen (0x0) at position 0,0
which shouldn't be right. This is also shown here later on in the log file:
2023-03-27 00:05:05.8197|WARN|DisplayMagician.Program|ProfileItem/GetWindowsScreenPositions: Problem trying to get the position of the taskbar on primary display 5120. Assuming it's on the bottom edge.|
2023-03-27 00:05:05.8197|TRACE|DisplayMagician.Program|ProfileItem/GetWindowsScreenPositions: Added a new Screen (0x0) at position 0,0.|
I think this could be part of your issue.... I'll do some more digging, but I will probably ask you to test the video library separately with some other software I have specifically for testing the video libraries. . I'll have a bit more of a look and then I'll send through some instructions for testing the video libraries.
Thanks Terry
Sounds good
@bolf51 I think this issue was related to a bug I recently found in the screen processing logic. I have completely rewritten the logic in this area, and I will be shortly releasing v2.6.0. This should hopefully fix your issue. I will post a link in this issue for you to download a test version of the software. Once you can confirm this fixes things then I'll be hopefully able to release this to the general public.
Expect something in the next 2 weeks.
Thanks Terry
@bolf51 I've created a new test version of DisplayMagician that may fix the issue that you're experiencing, and I've attached it to this Github issue. Please download the attached zip file, extract the msi installer from the zip file, and then run the installer. It should upgrade your existing Display Profiles.
DisplayMagicianSetup-v2.6.0.446.zip
This new version of DisplayMagician has the ability to 'update' Display Profiles - effectively overwriting the display layout with the one that is currently being used. So if you start If you still start having issues with a Display Profile not working, simply:
Your DisplayMagician Display Profile will now be recreated using the current display settings, and they will overwrite the old settings. This will hopefully get rid of any display layout issues, and it doesn't require any changes to your Game Shortcuts. Nice!
There is a single known issue at the moment, which is that the NVIDIALibrary SetDisplayConfig function doesn't work for NVIDIA video cards. Luckily this issue shouldn't have much impact at all as the WindowsLibrary functions should do enough configuration of their own to ensure it all works. If you have some special NVIDIA settings that you use then this version of DisplayMagician may not apply them correctly. You will unfortunately just have to test if that is the case for your particular setup.
I am currently troubleshooting the NVIDIALibrary SetDisplayConfig function error but it looks like it could be a bit of a pain to fix, so I didn't want to hold up the test release; I'd rather get the test version into your hands so I can see what other bugs are in there!
If this fixes your issue please reply here, and if you find another bug please log a new Github issue so I can track them separately.
Thanks Terry
That’s great. I did end up switching my setup around a while ago to where my main monitor is HDMI2.1 and the triples are all displayport which solved itOn Jan 22, 2024, at 9:29 PM, terrymacdonald @.***> wrote: @bolf51 I've created a new test version of DisplayMagician that may fix the issue that you're experiencing, and I've attached it to this Github issue. Please download the attached zip file, extract the msi installer from the zip file, and then run the installer. It should upgrade your existing Display Profiles. DisplayMagicianSetup-v2.6.0.446.zip This new version of DisplayMagician has the ability to 'update' Display Profiles - effectively overwriting the display layout with the one that is currently being used. So if you start If you still start having issues with a Display Profile not working, simply:
setup your display layout the way you want it then open DisplayMagician's Display Profiles Window select on the saved Display Profile you wish to update click the Update button say 'Yes' when asked if you really want to overwrite settings
Your DisplayMagician Display Profile will now be recreated using the current display settings, and they will overwrite the old settings. This will hopefully get rid of any display layout issues, and it doesn't require any changes to your Game Shortcuts. Nice! There is a single known issue at the moment, which is that the NVIDIALibrary SetDisplayConfig function doesn't work for NVIDIA video cards. Luckily this issue shouldn't have much impact at all as the WindowsLibrary functions should do enough configuration of their own to ensure it all works. If you have some special NVIDIA settings that you use then this version of DisplayMagician may not apply them correctly. You will unfortunately just have to test if that is the case for your particular setup. I am currently troubleshooting the NVIDIALibrary SetDisplayConfig function error but it looks like it could be a bit of a pain to fix, so I didn't want to hold up the test release; I'd rather get the test version into your hands so I can see what other bugs are in there! If this fixes your issue please reply here, and if you find another bug please log a new Github issue so I can track them separately. Thanks Terry
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID: @.***>
I've had a report that said that DisplayMagician didn't work after the upgrade. They had to uninstall and then remove the configuration file before it would work.
Is this what you experienced too? Did you have any problems during the install?
Thanks Terry
On Tue, 23 Jan 2024, 23:17 bolf51, @.***> wrote:
That’s great. I did end up switching my setup around a while ago to where my main monitor is HDMI2.1 and the triples are all displayport which solved itOn Jan 22, 2024, at 9:29 PM, terrymacdonald @.***> wrote: @bolf51 I've created a new test version of DisplayMagician that may fix the issue that you're experiencing, and I've attached it to this Github issue. Please download the attached zip file, extract the msi installer from the zip file, and then run the installer. It should upgrade your existing Display Profiles. DisplayMagicianSetup-v2.6.0.446.zip This new version of DisplayMagician has the ability to 'update' Display Profiles - effectively overwriting the display layout with the one that is currently being used. So if you start If you still start having issues with a Display Profile not working, simply:
setup your display layout the way you want it then open DisplayMagician's Display Profiles Window select on the saved Display Profile you wish to update click the Update button say 'Yes' when asked if you really want to overwrite settings
Your DisplayMagician Display Profile will now be recreated using the current display settings, and they will overwrite the old settings. This will hopefully get rid of any display layout issues, and it doesn't require any changes to your Game Shortcuts. Nice! There is a single known issue at the moment, which is that the NVIDIALibrary SetDisplayConfig function doesn't work for NVIDIA video cards. Luckily this issue shouldn't have much impact at all as the WindowsLibrary functions should do enough configuration of their own to ensure it all works. If you have some special NVIDIA settings that you use then this version of DisplayMagician may not apply them correctly. You will unfortunately just have to test if that is the case for your particular setup. I am currently troubleshooting the NVIDIALibrary SetDisplayConfig function error but it looks like it could be a bit of a pain to fix, so I didn't want to hold up the test release; I'd rather get the test version into your hands so I can see what other bugs are in there! If this fixes your issue please reply here, and if you find another bug please log a new Github issue so I can track them separately. Thanks Terry
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID: @.***>
— Reply to this email directly, view it on GitHub https://github.com/terrymacdonald/DisplayMagician/issues/211#issuecomment-1905727237, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABLU5LBEYWAZT47ZGFPFMZLYP6E4VAVCNFSM6AAAAAAWH75II6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMBVG4ZDOMRTG4 . You are receiving this because you were assigned.Message ID: @.***>
It was a while ago but I think I remember just deleting the presets and starting overOn Jan 23, 2024, at 10:05 AM, terrymacdonald @.***> wrote: I've had a report that said that DisplayMagician didn't work after the
upgrade. They had to uninstall and then remove the configuration file
before it would work.
Is this what you experienced too? Did you have any problems during the
install?
Thanks
Terry
On Tue, 23 Jan 2024, 23:17 bolf51, @.***> wrote:
That’s great. I did end up switching my setup around a while ago to where
my main monitor is HDMI2.1 and the triples are all displayport which solved
itOn Jan 22, 2024, at 9:29 PM, terrymacdonald @.***> wrote:
@bolf51 I've created a new test version of DisplayMagician that may fix
the issue that you're experiencing, and I've attached it to this Github
issue. Please download the attached zip file, extract the msi installer
from the zip file, and then run the installer. It should upgrade your
existing Display Profiles.
DisplayMagicianSetup-v2.6.0.446.zip
This new version of DisplayMagician has the ability to 'update' Display
Profiles - effectively overwriting the display layout with the one that is
currently being used. So if you start If you still start having issues with
a Display Profile not working, simply:
setup your display layout the way you want it
then open DisplayMagician's Display Profiles Window
select on the saved Display Profile you wish to update
click the Update button
say 'Yes' when asked if you really want to overwrite settings
Your DisplayMagician Display Profile will now be recreated using the
current display settings, and they will overwrite the old settings. This
will hopefully get rid of any display layout issues, and it doesn't require
any changes to your Game Shortcuts. Nice!
There is a single known issue at the moment, which is that the
NVIDIALibrary SetDisplayConfig function doesn't work for NVIDIA video
cards. Luckily this issue shouldn't have much impact at all as the
WindowsLibrary functions should do enough configuration of their own to
ensure it all works. If you have some special NVIDIA settings that you use
then this version of DisplayMagician may not apply them correctly. You will
unfortunately just have to test if that is the case for your particular
setup.
I am currently troubleshooting the NVIDIALibrary SetDisplayConfig function
error but it looks like it could be a bit of a pain to fix, so I didn't
want to hold up the test release; I'd rather get the test version into your
hands so I can see what other bugs are in there!
If this fixes your issue please reply here, and if you find another bug
please log a new Github issue so I can track them separately.
Thanks
Terry
—Reply to this email directly, view it on GitHub, or unsubscribe.You are
receiving this because you were mentioned.Message ID: @.***>
—
Reply to this email directly, view it on GitHub
https://github.com/terrymacdonald/DisplayMagician/issues/211#issuecomment-1905727237,
or unsubscribe
.
You are receiving this because you were assigned.Message ID:
@.***>
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID: @.***>
@bolf51 I did find some issues with the earlier v2.6.0.446 version. I've made a lot of revisions to how DisplayMagician works in v2.6.0.485 (attached) that should make it way more reliable. But it is highly likely you will need to 'update' your Display Profiles to make them work properly.
I'd recommend first of all applying a Display Profile, and then press the 'update' button. That will recreate the config for the Display Profile and should make it work properly. You'll need to do that to each of your saved Display Profiles. Then please test out changing between your Display Profiles to see if everything works as expected.
Here is the latest test version of DisplayMagician: DisplayMagicianSetup-v2.6.0.485.zip
Thanks for all your help testing.
Terry
@bolf51, I've added in more checks and logic to avoid crashes. Could you please try this latest version? DisplayMagicianSetup-v2.6.0.508.zip
I'm hoping this will work, but at the very least it should allow DisplayMagician to boot up enough for you to create a Support ZIP File. Let's see whether I've fixed it 🤞.
@bolf51 The latest test version should be working properly, and hopefully fixes your issue. Could you please test it for me so I know that it fixes your issue? If it does then I'll be able to close this issue as the fix will be part of the next full release.
DisplayMagicianSetup-V2.6.0.515-No-NvApi_SetDisplayConfig.zip
As I've not really had any feedback from you recently I'll give it a week and then close this issue if I have no further responses. We can always reopen this issue in the future if need be.
Thanks!
Oops I broke the setup with my previous version. This version has a corrected setup that should install everything properly.
DisplayMagicianSetup-v2.6.0.522-corrected-setup.zip
Thanks Terry
Hi All,
Time for an update.
The fix is in the code and works (also we now support 3rd apps and games added to Steam library too!) but my current hold up is actually in the packaging of the application into a windows installer. I've been testing different ways to do this as the move from .net framework 4.8.1 to .net core 8.0.0 has been a massive change. It has resulted in a completely different set of binaries and dlls and other files being created, as well as a different build process too. This is all taking some time to figure out.
I've gone from a WIXv3 based installer to a windows default installer to an NSIS installer then back to a WIXv4 installer all within the last month. It's necessitated me building a brand new way of handling the desktop background context menu, and even down to which libraries are used within the application. It's been a ton of work.
I'm now down to the last few bugs to iron out, and to finish the new packaging process. I think I should have something ready for everyone to test within the next month (assuming there aren't anymore show stoppers.
My goal is to then send out messages through this issues list to get you all to test some DM v2.6.0 test builds, and then once the major bugs are ironed out I will push out the DM v2.6.0 beta to those users who opted in the beta builds. And then I'll finally push the DM v2.6.0 update to the main user group.
Lastly, I've decided to hold back the NVIDIALibrary update for now until DM v2.7.0 as it requires a LOT more work testing and troubleshooting many errors. The Steam beta client changing file structures has forced my hand here a little bit, so a better NVIDIALibrary will just have to wait for now.
Thanks Terry
Describe the bug I can sometimes get into the 'create profile' screen from right clicking on desktop but an icon for displaymagician doesn't appear in my taskbar, and if I click "back" it closes the application. When I start the application from start menu it shows message about loading then disappears. If I delete the files from the appdata folder, it seems to work fine until I save my two profiles the way I want them and test switching between the two, then it starts crashing. displaymagician.zip
Expected behaviour
Screenshots
Reporting Logs
Enviroment (please complete the following information):