View Issue Details

IDProjectCategoryView StatusLast Update
0018609MMW 5Generalpublic2024-04-08 12:35
ReporterLudek Assigned To 
PriorityurgentSeveritymajorReproducibilityunable to reproduce
Status closedResolutionreopened 
Product Version5.0 
Target Version5.0.3Fixed in Version5.0.3 
Summary0018609: Some users can't run MM5 (until HW accelaration is disabled)
DescriptionUser from ticket [# 3232] reported an issue that MM5 won't load.

It was shown that using command line:
MediaMonkey.exe --use-gl=swiftshader
(that disables HW accerelation solved the issue.

Possible solutions:

1) Enable SW acceleration by default and possibly add a new checkbox to
Options > Performance > '[ ] Enable HW acceleration'
=> cons: probably too technical and enabling it would result in inability to run MM5 anyway

2) Somehow detect this situation and auto-switch to SW acceleration in this case
=> pros: ideal solution though might be tricky

3) Add a '.bat' file including
MediaMonkey.exe --use-gl=swiftshader
to the MM5 install folder as a temporal solution/workaround for the affected ussers

4) Test whether SW acceleration indeed results in slower performance and possibly enable it by default for all users
Additional InformationOther tickets: # 2794 , # 3232
TagsNo tags attached.
Fixed in build2616

Relationships

related to 0018283 closedpetr Crash or Black screen on resume from sleep/hibernation (5.0.2 logi ID 4AD4000) 
related to 0018847 closedpetr Update Chromium to v98 
related to 0018957 resolvedpetr MM5 window freeze when playing YouTube while MM is minimized 
related to 0018995 closedrusty Consider adding HW acceleration switch to Options > Performance 
related to 0020785 closedLudek 3010 Won't Start at All (with HW acceleration disabled) 

Activities

Ludek

2021-11-30 20:40

developer   ~0066178

Last edited: 2021-11-30 21:53

Possibly same issue is with user EagleScout -- [Ticket # 3217] and forum post https://www.mediamonkey.com/forum/viewtopic.php?f=30&t=100740

Wating for confirmation via the ticket...

EDIT: For the user from [Ticket # 3217] it was another issue, for him installing the MM5 outside of 'C:\Program Files (86)' folder helped, so probably a permission issue, gathering further info via the ticket...

Ludek

2021-12-01 11:18

developer   ~0066199

Last edited: 2021-12-01 13:00

5) I suppose that once it is HW/driver issue we can't actually fix the problem, we might just try to somehow detect this situation and auto-switch to SW acceleration (solution 2)

So far only the user in ticket 3232 (with NVidia) confirmed that it is the HW acceleration issue (I'll ask him to try 5.0.1 and the alternate NVidia driver), the other user [Ticket # 3217] resolved it by installing outside of PF folder -- gathering more info via the ticket.

EDIT: I noticed that Chromium actually creates /GPUCache/ subfolder in the MM5 install folder.
My theory is that if MM5 is installed in C:\Program Files (x 86)\Mediamonkey 5\ then MM5 probably don't have enough rights to write to the /GPUCache/ subfolder and this may be cause of the issue ?
To be confirmed.

EDIT2: It seems that clearing the GPUCache folder might also do the trick for some users per https://freepctech.com/browser/google-chrome-black-screen/ (item 3 there)

Ludek

2021-12-01 11:38

developer   ~0066201

Assigned to Petr to move the GPUCache subfolder from the install folder to the system temp (or MM temp).

Ludek

2021-12-01 14:11

developer   ~0066206

Petr has moved the GPUCache to the temp dir, resolving to test in 2524 by the affected users whether it does the trick.

Ludek

2021-12-10 16:12

developer   ~0066345

Last edited: 2021-12-10 16:19

FYI: HW acceleration is enabled in both Chrome and MM5 by default (to decrease CPU load and increase GPU load)
but this can result in MM5 not able to be run in some specific environments (like in case of ticket [# 3232] )

I think that we sould just create KB article about how to disable HW acceleration

i.e. all is needed is to create MediaMonkey.bat in the MM5 install folder with the following content:
MediaMonkey.exe --use-gl=swiftshader
which disables the HW accelaration on the problematic PCs.

BTW: we could include this BAT in the installer, I am just a little bit out of ideas how to call the *.bat
Something like 'MediaMonkey without HW acceleration.bat' seems cumbersome ;-)

Ludek

2021-12-10 17:18

developer   ~0066351

Added MediaMonkey_NoGPU.bat in build 2527

rusty

2021-12-10 20:46

administrator   ~0066354

1) Tested the batch file on 2527 and it works. BUT is there a way of automatically closing the terminal window?

peke

2021-12-11 23:02

developer   ~0066361

Last edited: 2021-12-11 23:03

1) Updated "MediaMonkey_NoGPU.bat" so that no CMD window is shown

peke

2021-12-11 23:04

developer   ~0066362

3) Confirmed that BAT workaround work on My old HP Proliant server with Windows Server 2012.

rusty

2021-12-14 18:46

administrator   ~0066383

Verified that the batch file in 2528 works as intended.

peke

2021-12-15 01:53

developer   ~0066390

Last edited: 2021-12-15 02:04

Closing Verified again in 2528 and with one of users by using .bat from 2528 file on 2526.

TEST NOTE: If .bat file do not resolve MM stating it is most likely different issue.

Ludek

2022-02-14 16:20

developer   ~0066963

Last edited: 2022-02-14 16:30

FYI: There are three other cases of this after recent Chromium update in 2606:

Tickets: # 3732, # 3722, # 3751 , forum https://www.mediamonkey.com/forum/viewtopic.php?p=494368#p494368

Do we have a KB article covering this issue already?

peke

2022-02-15 23:11

developer   ~0066989

Last edited: 2022-02-15 23:12

No, We do not have dedicated KB article. Adding ToDOC Tag.

Is there any way that apron MM start results from chrome://gpu gets logged somewhere and in case of freeze we can pull this up for debugging?

EDIT: It could be usefull for users that observe issue to get results from EDGE by entering "edge://gpu/" in address bar.

Ludek

2022-02-16 20:30

developer   ~0066999

Last edited: 2022-02-17 01:06

It was shown that the Chrome/Edge version for the user from ticket # 3732 is also 98.0 , but the Chrome/Edge output is this:
image.png (44,127 bytes)   
image.png (44,127 bytes)   

Ludek

2022-02-16 20:33

developer   ~0067001

i.e. Chrome/Edge can detect the missing capability and can run without HW accelaration automatically.

To be found how they are doing it.
image-2.png (11,186 bytes)   
image-2.png (11,186 bytes)   

Ludek

2022-02-16 21:07

developer   ~0067002

Last edited: 2022-02-16 21:08

BTW: Here is tutorial how to enable HW acceleration: https://www.youtube.com/watch?v=5IqETseKAK4

Ludek

2022-02-16 21:48

developer   ~0067004

Last edited: 2022-02-16 21:48

User from ticket # 3732 confirmed that command line switcher --ignore-gpu-blocklist does the trick.
So the way should be to use this switcher by default.

peke

2022-02-17 01:04

developer   ~0067007

Maybe adding another BAT file based on https://wiki.archlinux.org/title/chromium#Force_GPU_acceleration in order to force GPU HW acceleration

eg.: MediaMonkey_ForceGPU.bat
--------
START MediaMonkey.exe --ignore-gpu-blocklist
--------

Ludek

2022-02-17 13:56

developer   ~0067017

Last edited: 2022-02-17 14:21

The users that reported the issue after Chromium update in 2606 confirmed that --ignore-gpu-blocklist param resolves the issue.

So I added the --ignore-gpu-blocklist for the render process as default in build 2608.

The MediaMonkey_NoGPU.bat is left there and still can be used for tests whenever a blacklisted GPU has some issues, but mostly it is just about driver's release date.
And asked affected users for the tests.

peke

2022-02-19 12:06

developer   ~0067041

Users confirmed that adding switch to Shortcut fixes problems and I verified 2608 that it does not introduce any regressions with GPUs that already supported HW acceleration.

lowlander

2022-03-10 20:44

developer   ~0067225

Added as: https://www.mediamonkey.com/support/knowledge-base/mediamonkey-install-config/mediamonkey-wont-open/

Ludek

2022-04-20 15:11

developer   ~0067612

Re-opened to fix a regresion in 2608: Running without HW acceleration (using the MediaMonkey_NoGPU.bat) now renders buttons/icons without anti-aliasing:
image-3.png (1,162 bytes)   
image-3.png (1,162 bytes)   

Ludek

2022-04-20 15:45

developer   ~0067613

Fixed the anti-aliasing regression in build 2616

peke

2022-04-20 22:17

developer   ~0067643

Verified 2616

Icons/buttons are Anti-aliased.