Skip to content
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

DM 2.6.0.446 not opening after installation (may be not a bug?) #283

Open
sk666 opened this issue Jan 23, 2024 · 23 comments
Open

DM 2.6.0.446 not opening after installation (may be not a bug?) #283

sk666 opened this issue Jan 23, 2024 · 23 comments
Assignees
Labels
bug Something isn't working
Milestone

Comments

@sk666
Copy link

sk666 commented Jan 23, 2024

Describe the bug
I installed the 2.6 version over 2.5.xxx and did a reboot after the installation. After the reboot, I was unable to start it with windows, I was unable to open it manually and I was unable to do the repair in the control pannel. So this ticket is only for your information for futur troubelshoot/investigation. Beacause of that, unfortunately I don't have any logs from DM 2.6 version for this bug.

To fix it, I removed the 2.6 version, manually delete de DM folder in appdata/local, rebooted the computer, install the 2.6 version again, did a second reboot and now it open normally. I did not have the time to fully test it, I will do it later today.

You can close this ticket if you want, problem is solved now for me.

Thank you for your great work Terry :)

FYI:
w10 x64 22h2 fully updated
Nvidia RTX3060

@sk666 sk666 added the bug Something isn't working label Jan 23, 2024
@terrymacdonald
Copy link
Owner

Hmmmm. I think I'll have to uninstall my v2.6, then do a whole heap of testing to see if I can break the v2.5 to v2.6 upgrade. I'm hoping that it was just an issue with your build, but it is very possible it isn't :(. I'll see if I can find anything.

Thanks for bringing this to my attention, and thanks for your kind words!

Terry

@terrymacdonald
Copy link
Owner

Another user has experienced the same issues upgrading from 2.5.0, so I will need to do some more testing this weekend. I'm pretty busy so it may be a few days before I can get time to fix this all.

@sk666
Copy link
Author

sk666 commented Jan 25, 2024

No problem Terry, this problem is fixed for me. Let me know if you need help :)

@sk666
Copy link
Author

sk666 commented Jan 27, 2024

A little update on the 2.6 version. I discovered yesterday that it does not close applications when I turn off surround like it was supposed to do in my case. Do you need log for this?

@terrymacdonald
Copy link
Owner

terrymacdonald commented Jan 27, 2024 via email

@terrymacdonald
Copy link
Owner

@sk666 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

@terrymacdonald
Copy link
Owner

@sk666 I've tried one two different computers to debug that error you were getting, but I think my combination of hardware isn't correct to cause an issue :(. I think I need some examples of other peoples config files to test with,

I know that you are having issues, so can you please ZIP up your current DisplayMagician folder into a ZIP file, and then upload it here? I will then replace my own installation with your test files and see if I can make things break. You didn't happen to save your older files that were causing the issue did you? Maybe they're in your recycle bin? Having those files would be the best chance to find this pesky bug.

A fresh DisplayMagician v2.5 install doesn't make things break unfortunately, so it could be a bug that an earlier version of DM introduced into the files? Can you remember what the first version of DisplayMagician you used was? I can try installing the oldest version and continue upgrading to see if that has introduced an error somewhere...

Thanks
Terry

@terrymacdonald
Copy link
Owner

@sk666 Do you know if you have installed the .Net Framework 4.8.1 runtime on your PC? Version 2.6.0 of DisplayMagician uses .Net Framework 4.8.1, and I'm wondering if that's part of the reason it didnt show anything? I've been trying to find out what could have caused the issue, but I haven't been able to trigger it, so it's looking more like something that comes up on other computers, as none of my test computers demonstrate any issues :/. This is a frrustrating thing to troubleshoot.

FYI I've produced a new test version of DisplayMagician that I just compiled with some extra bugfixes I updated last night: DisplayMagicianSetup-v2.6.0.492.zip

Can you please update again and make sure that works for you? Functionally this version is nearly ready to ship I think, but I can't do that until I squash that upgrade bug! All I need is a break with some sort of error message and I can fix it.

Thanks
Terry

terrymacdonald added a commit that referenced this issue Jan 29, 2024
Added extra PInvoke exeption checking to attempt to avoid problems when looking for the AMD dll on non-AMD machines, and the NVIDIA DLLs on non-NVIDIA machines. This *hopefully* makes the DLL detection nice and quiet and stops DisplayMagician crashing on loading.

Should fix #283 and #284
@sk666
Copy link
Author

sk666 commented Jan 30, 2024 via email

@terrymacdonald
Copy link
Owner

terrymacdonald commented Jan 30, 2024 via email

@sk666
Copy link
Author

sk666 commented Jan 30, 2024 via email

@sk666
Copy link
Author

sk666 commented Jan 30, 2024

Hi Tery,

I was able to test it today. But sorry for you, bad news about the .492 version. It wont open at all after installation over .446, even after the reboot, no logs file. I will need to remove it and use the .446.

I'm pretty sure that I don't had the .net framework 4.8.1 so I install it before this test (with a reboot).

I'm not sure what to test now. I will use the .446 for the next days when I will use it.

@terrymacdonald
Copy link
Owner

Thanks @sk666,

Thanks to some help from @ganzoni I think I know what's happening, and I'm currently developing a fix for that. I've attached a new test version of DisplayMagician to this, and hopefully it works ok for you.

DisplayMagicianSetup-v2.6.0.505.zip

The fix has the following checks in it:

  • It checks if the DLL for NVIDIA or AMD is present. If not it just returns a default empty config that that library.
  • If the DLL is present it checks if there is a video card present for NVIDIA or AMD. If not it just returns a default empty config that that library.
  • If the DLL is present it and there is a matching video card for that vendor, it checks if there are any connected displays through NVIDIA or AMD. If not it just returns a default empty config that that library.
  • After those checks it then attempts to get the config.

Previously only the first check was being done, and that would cause issues in desktop PCs with only one vendors card, or in gaming laptops with both AMD and NVIDIA. I'm hoping this will now work.

Thanks
Terry

@sk666
Copy link
Author

sk666 commented Jan 31, 2024

Hi Terry,

Build 505 wont start on my computer. No splashscreen, no syst tray DM icon, no process etc.

@terrymacdonald
Copy link
Owner

terrymacdonald commented Jan 31, 2024 via email

@sk666
Copy link
Author

sk666 commented Jan 31, 2024

For your information, I did a system resrore with my last ghost, so I tested to insyall .505 build over this 2.5 version, may be it can cause the glitch. Or may be not. I installed again .net framewotk 4.8.1 for the 505 build but it wont start it. If i'm not wrong, defender is turned off because I have an independant antivirus software.

@terrymacdonald
Copy link
Owner

ok @sk666, I've added in more checks and logic to avoid crashes. Could you please try this 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 🤞.

@terrymacdonald
Copy link
Owner

terrymacdonald commented Feb 5, 2024

@sk666 Here is a new test version of DisplayMagician. It only uses the CCD API to set the windows positions. I want to see if that helps make setting the taskbar position more reliable or not. Please check it out and report your findings back. You can uninstall this test version then reinstall the previous version again once you're done as it doesn't do anything to the display profile settings.

DisplayMagicianSetup-v2.6.0.512-no-gdi2.zip

Thanks
Terry

@terrymacdonald
Copy link
Owner

@sk666 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

Thanks!

@sk666
Copy link
Author

sk666 commented Feb 8, 2024

Hi Terry,

I will be able to test it next week. I will let you know.

Thank you :)

@terrymacdonald
Copy link
Owner

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

@sk666
Copy link
Author

sk666 commented Feb 14, 2024

Hi Terry,

we made some progress with build 522. Here the list of good and bad news:

  • good news build 522:

    • DM is working again after a direct installation over build 446 (yayyy) so logs working again
    • taskbar position worked great for the may be 4-6 first try
  • bad news:

    • when using shortcut created by DM for launching game, the surround activates most of the time, the game launch also with my specified program, I heard the sound of the game menu but my 3 screen are light black. To fix this' i need to do CTRL+AL+DEL and click on 'cancel" button immediately after and after that, 3 screens are not black anymore.

    • sometimes (I have no idea what cause the issue), using the same shortcut, surround activate, my programs starts, game start but surround turn back off by itself after he was able to start while the game is still on. If I'm not wrong, this issue started since build 446 but may be I can be wrong on that). Sure thing, this is NOT new with build 522, I see it couple of times with build 446.

    • after may be 6 try, the taskbar position not worked anymore. This started when I tried to export log files manually (I forgot that DM has this option in the settings). i don't know why, I replaced the logs in the default folder in DM local files but taskbar position fail over and over again. I don't understand why it was caused by the log files (may be it's not the cause) but it's the only thing I did before the problem appear.

    • I don,t know if it's a bug or not, but the default logging type is very large instead of warning and erros only. Don't remember why this beggins, like I said I forgot this function of DM.
      I was able to give you many log files attached to this post.

thank you
DisplayMagician-Support-20240214-0916.zip

@sk666
Copy link
Author

sk666 commented Feb 26, 2024

FYI, DM seem to fail to activate surround only the first time I use it after a reboot/turning ON my computer. For the black after launching the game, it always happens no matter what I try. I not tried yet to revert back to build .446.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants