moonlight-stream / moonlight-qt

GameStream client for PCs (Windows, Mac, Linux, and Steam Link)
GNU General Public License v3.0
10.84k stars 632 forks source link

Monitor keeps disconnecting and reconnecting when mouse hovers over Moonlight GUI elements and found invalid memory access popup while streaming video #1420

Closed humdogm closed 1 week ago

humdogm commented 1 month ago

Describe the bug A clear and concise description of what the bug is.

Recently updated moonlight from 6.0.1.0 to 6.1.0.0 on Windows, now main monitor continuously loses connection and reconnects every few seconds when Moonlight system picker and application picker is the foreground window.

I have 2 monitors, only my primary 144hz 1440p monitor disconnects, my 60hz 1080p secondary monitor stays fine. Both monitors are connected through a dock, primary one over USB type C cable, and secondary one over HDMI. Dock is connected to a laptop over a USB type C Displayport 1.2 alt-mode.

When I move the moonlight window to my secondary monitor, my primary monitor stops disconnecting. But when I move it back, my primary monitor sometimes immediately starts disconnecting and reconnecting again, or other times it will take a little while and then start disconnecting.

When the moonlight system picker and application picker are a background window, the disconnects do not happen either.

However, if I am eventually able to start streaming video from my other system with Moonlight, by moving the mouse in between the flashing of the screen, the streaming Windows does not cause my monitor to disconnect.

Also, while I was streaming video after awhile I saw a crash pop up essentially saying that there was an invalid memory access to memory address 0xFFFFFFFFFFFFFFFF. The crash created an empty dump file in %TEMP%

Steps to reproduce Any special steps that are required for the bug to appear.

Screenshots If applicable, add screenshots to help explain your problem. If the issue is related to video glitching or poor quality, please include screenshots.

Video attached below https://github.com/user-attachments/assets/9ebdf213-2701-46a2-9b2c-e2f97a93cb9a

Affected games List the games you've tried that exhibit the issue. To see if the issue is game-specific, try streaming Steam Big Picture with Moonlight and see if the issue persists there.

N/A, not related to gameplay

Other Moonlight clients

Moonlight settings (please complete the following information)

Client PC details (please complete the following information)

Server PC details (please complete the following information)

Not important but:

Moonlight Logs (please attach)

Moonlight-1726971619.log

humdogm commented 1 month ago

Update: seems like this happens when my mouse hovers over or clicks elements in the Moonlight GUI

But it still only happens when Moonlight is the focused foreground window, when the Moonlight window is unfocused it doesn't cause this issue. So it makes sense that this doesn't happen when Moonlight is a background window either because the mouse cannot hover over Moonlight's GUI elements.

So I guess I can reliably recreate this issue now.