Aleksoid1978 / MPC-BE

MPC-BE – универсальный проигрыватель аудио и видеофайлов для операционной системы Windows.
GNU General Public License v3.0
1.88k stars 83 forks source link

No control panel and crash on latest AMD driver #426

Closed Simbiat closed 3 months ago

Simbiat commented 3 months ago

I've been using MPC-BE for awhile now, and I've been using it with Enhanced Video Render (custom presenter), since it renders subtitles, retains players control panel in full screen (instead of just showing a seek-bar), and allows seamless sync of the config between multiple PCs (where madVR or MPC Renderer requires some extra steps, if something changes). But recently (presumably after GPU driver update to Adrenalin 24.3.1) I've lost the control panel in full screen (having only seek bar) and the player crashes if switching to next or previous file while in full screen. You can see the crash on https://youtu.be/b1uHjElYFe8 (when player minimizes before crash, I am pressing Page Down key). Why I think this is related to drivers? Because when switching to full screen I now get AMD's pop-up about Alt+R to launch the Adrenalin layout, which was not the case before (at least on drivers until and including 23.12.1), and because in event viewer, I can see this:

Faulting application name: mpc-be64.exe, version: 1.6.11.0, time stamp: 0x658b9ea1
Faulting module name: d3d9.dll, version: 10.0.22621.2506, time stamp: 0xac5db609
Exception code: 0xc000041d
Fault offset: 0x000000000002ab0e
Faulting process id: 0x0xF5BC
Faulting application start time: 0x0x1DA87F28FA8AC8A
Faulting application path: C:\Users\simbi\OneDrive\TCUP\Software\MPC-BE64\mpc-be64.exe
Faulting module path: C:\WINDOWS\SYSTEM32\d3d9.dll
Report Id: c51ff93e-0027-475e-b171-9ce0757f0450
Faulting package full name: 
Faulting package-relative application ID: 

And in Windows Error Reporting entry:

Fault bucket 2085812559455396591, type 4
Event Name: APPCRASH
Response: Not available
Cab Id: 0

Problem signature:
P1: mpc-be64.exe
P2: 1.6.11.0
P3: 658b9ea1
P4: d3d9.dll
P5: 10.0.22621.2506
P6: ac5db609
P7: c000041d
P8: 000000000002ab0e
P9: 
P10: 

Attached files:
\\?\C:\ProgramData\Microsoft\Windows\WER\Temp\WER.4db2bc2e-836a-4e7b-9116-65b830208631.tmp.mdmp
\\?\C:\ProgramData\Microsoft\Windows\WE
[Report.zip](https://github.com/Aleksoid1978/MPC-BE/files/14892814/Report.zip)
R\Temp\WER.74bdba57-1d69-4546-9121-4c0f6106360c.tmp.WERInternalMetadata.xml
WPR_initiated_DiagTrackMiniLogger_OneTrace_User_Logger_20240404_1_EC_0_inject.etl
\\?\C:\ProgramData\Microsoft\Windows\WER\Temp\WER.7b2593eb-663f-4476-81aa-a97d8cc54e45.tmp.etl
WPR_initiated_DiagTrackMiniLogger_WPR System Collector_inject.etl
\\?\C:\ProgramData\Microsoft\Windows\WER\Temp\WER.8b1d9970-3219-4681-892c-3e9e5a896260.tmp.etl
\\?\C:\ProgramData\Microsoft\Windows\WER\Temp\WER.cb81c162-b36e-446b-b988-cdfda01abbbc.tmp.csv
\\?\C:\ProgramData\Microsoft\Windows\WER\Temp\WER.1294a3f3-7077-4fc9-96e2-5686bc29aaa2.tmp.txt
\\?\C:\ProgramData\Microsoft\Windows\WER\Temp\WER.98edb363-eb86-4937-8535-a6ae18d29040.tmp.xml

These files may be available here:
\\?\C:\ProgramData\Microsoft\Windows\WER\ReportArchive\AppCrash_mpc-be64.exe_dbe08158d0e6c61ba1e44d9feadacaad16345d10_140c29bf_096643e8-f369-47c0-89a4-17636bdb2c29

Analysis symbol: 
Rechecking for solution: 0
Report Id: c51ff93e-0027-475e-b171-9ce0757f0450
Report Status: 268435456
Hashed bucket: 91e1cb3ac2b4e3cf8cf24b78c26322ef
Cab Guid: 0

Notice d3d9.dll. .wer file can be downloaded here Report.zip

My assumption is that something happens when switching to full screen, and renderer actually fails back to something other than Enhanced Video Render (custom presenter). Although, unclear what is happening and what it switches to. At the same time I do not have anything special in Fullscreen settings: image

Let me know, what other information you need to attempt to debug this.

Simbiat commented 3 months ago

I just tinkered a bit more, and if I change renderer to MPC Video Renderer - then there is no crash. The seek bar also looks to be same as when the issue occurs. This suggests, that Enhanced Video Render (custom presenter) fails and then there is a switch to MPC Video Renderer. At the same time no issues with regular Enhanced Video Render. Tinkering a bit more showed, that disabling Exclusive full screen on additional window option also fixes the the problem.

Aleksoid1978 commented 3 months ago

No control panel - uncheck "Exclusive full screen ...". Maybe this will help with the crash.

Simbiat commented 3 months ago

Even if the issue is solved for me, should this not be investigated? Since I was not seeing the seek bar, but full control panel before, even though the option was enabled, I can assume that Enhanced Video Render (custom presenter) was failing back to Enhanced Video Render (even though subtitles were somehow still recognized and rendered). So the issue is that Enhanced Video Render (custom presenter) fails to some other render when used together with Exclusive full screen on additional window. This does sound like a bug to me. Or, at least, something that needs to be covered in the pop-up, since neither the tooltip image nor the message after checking the box image cover this. And the message, actually does not mention control panel, only context menu, which would explain why I did not think about this option causing issues.