terrymacdonald / DisplayMagician

DisplayMagician is an open source tool for automatically configuring your displays and sound for a game or application from a single Windows Shortcut.
https://displaymagician.littlebitbig.com
GNU General Public License v3.0
452 stars 19 forks source link

Profile saving error when changing the 'main display' to secondary monitor #331

Closed LynchRobinson closed 1 month ago

LynchRobinson commented 2 months ago

Hi, great app, been after something like this for a while and just come across it. Works great for many situations but have come across this problem if you could help please.

I'm trying to create a profile that sets a second display to 'main display', and disables the existing main monitor.

When I set up the display arrangement in Windows Display Settings then try to save the profile this results in the following error:

'Unhandled exception has occurred in your application. If you click Continue, the application will ignore this error and attempt to continue. If you click Quit, the application will close immediately.

Parameter is not valid'

There is a large amount of error text following this which I've pasted and uploaded as a text file.

When clicking Continue on the error message, the profile does not save but the app doesn't crash either, everything else carries on working and other profiles load as normal.

To troubleshoot, I tried setting another of my 3 monitors as the solitary main monitor, and that had the same error message when saving the profile. My primary monitor works fine, and it seems I can save any combination of screens as a profile as long as that is set as the main display.

If I try to set the other monitors as the 'main display' but WITHOUT disabling my main monitor, it saves the profile but does not load it.

The two secondary monitors that have errors when saving profiles as the 'main display' have two things in common, so I wonder if one of these could be the cause:

  1. They are both connected the the graphics outputs on the motherboard rather than the graphics card outputs. They do not appear in Nvidia control panel.
  2. They are both using adapters - one (the main one I'm trying to set as a profile) is a CRT monitor using a HDMI to VGA adapter. The other one is using a DP to DVI adapter.

I've uploaded the Support Zip file after the error message occurred if this helps.

Thanks, Rob

DisplayMagician-Support-20240923-1701.zip DisplayMagician unhandled exception 230924.txt

terrymacdonald commented 1 month ago

Hi!

This may be fixed by the brand new version of DisplayMagician I just released. I would suggest that you try to the new DisplayMagician v2.7.0-alpha.1 test build available here: https://github.com/terrymacdonald/DisplayMagician/releases/tag/v2.7.0-alpha.1

It should fix your problem, but it may also cause other problems instead. This version has had a complete backend change, new installer, new features, and so it may have some bugs that need squashing.

Please test it out. and if you find any new problems please log a new issue. If it fixes this issue then please update this issue to tell me and then close this issue (it helps me keep track of what I've still got to fix).

Thanks Terry

LynchRobinson commented 1 month ago

Thanks a lot Terry - that seems to have solved this problem, profiles are now saving and recalling as intended. No major problems with the new alpha yet, but will report if so.

Rob