View Issue Details

IDProjectCategoryView StatusLast Update
0018957MMW 5Otherpublic2022-05-07 07:02
Reporterdrakinite Assigned To 
PriorityurgentSeveritycrashReproducibilityhave not tried
Status resolvedResolutionopen 
Product Version5.0.3 
Target Version5.0.3 
Summary0018957: MM5 window freeze when playing YouTube while MM is minimized
DescriptionLog ID: EB3FB131
Response from user: "I think it was because I hit play on youtube online and then instantly minimized the player. I think I messed with a buffer"
Tagstodoc-KB
Attached Files
image.png (21,730 bytes)   
image-2.png (172,896 bytes)   
Fixed in build

Relationships

related to 0018609 closedLudek Some users can't run MM5 (until HW accelaration is disabled) 
has duplicate 0018959 closedmichal Crash/stall when playing YouTube while MM is minimized 
has duplicate 0018958 closedLudek "Unknown thread" exception after PC wake up on playback restoring 
related to 0018995 closedrusty Consider adding HW acceleration switch to Options > Performance 

Activities

Ludek

2022-04-04 13:04

developer   ~0067417

Last edited: 2022-04-04 14:09

This is same user as in 0018959
It is again UI freeze log ( EB3FB131 )

This time on line
ODS('**** focusControl: ' + this.constructor.name);
in control.js

which is particularly strange as it just tries to output debug message.

Maybe the 'focus' event is called too often for some reason? The DbgView part is missing in the ELF.
If it is still reproducible for the user then please try to catch it in standard debug log using DbgView and attach.

Thx

EDIT: It would be also valuable to try:
1) whether the freeze is reproducible with regular build too? (i.e. not the debug to be sure that it is not a false positive freeze by Eureka)
2) whether the freeze is reproducible with using MediaMonkey_NoGPU.bat (i.e. without HW acceleration)

drakinite

2022-04-05 01:31

developer   ~0067424

He did a bunch more testing, and confirmed that it's actually 2) which stopped the issue from occurring. Couldn't reproduce the UI freezing when running without HW acceleration, but he could reproduce it on both build types when running it normally.

Ludek

2022-04-05 14:33

developer   ~0067426

Last edited: 2022-04-05 14:38

Thx, could you please ask him to put chrome://gpu to the address bar of Chrome browser and share the output?
in case he is using Edge browser then use edge://gpu/

We need to ensure that his GPU isn't blacklisted and if it is then we should add a mechanism to detect blacklisted GPUs and run MM without HW acceleration (related to issue 0018609)

drakinite

2022-04-05 20:16

developer   ~0067442

I think blacklisting the GPU would be more harm than help. For some reason, when he runs MM with HW acceleration disabled, SVG icons are aliased. Additionally, because disabling HW acceleration causes HUGE CPU usage, it should be a last resort.

Asked him for the DbgView log & GPU info now, however.
image-3.png (988 bytes)   
image-4.png (4,471 bytes)   

drakinite

2022-04-05 20:39

developer   ~0067443

I could reproduce the issue by opening a game (The Witcher 3) while MM was minimized playing a YouTube playlist. There's no explicit crash, and it continues to send debug messages to DbgView. The attached log includes about 3-4 minutes of idle messages as I was typing out this note.

I forgot to include this recording he made. Turn the volume up, his voice is quiet. https://files.drakinite.net/2022-04-03_17-53-37.mp4
Youtube.m3u (8,160 bytes)   
gpu crash JL.zip (373,039 bytes)

Ludek

2022-04-06 16:14

developer   ~0067461

Last edited: 2022-04-06 16:57

Based on the gpu.pdf HW acceleration seems fine and enabled for him -- so this shouldn't be an issue.
The log System_hang_while_using_VS_code.LOG isn't of any use, it just outputs our standard messages, but the bug is most probably inside Chromium.

@Petr, could you please create a build with with Chromium debug messages enabled to see more?
@drakinite: Ask Tim to open support ticket to have direct comminication channel with him

Ludek

2022-04-06 17:02

developer   ~0067465

Last edited: 2022-04-06 17:26

BTW: I am unable to replicate, but this one sounds very similar: https://support.google.com/chrome/thread/82011253/chome-freezes-if-i-minimize-then-maximize-the-screen-ie-press-the-little-box-in-top-left?hl=en and disabling HW acceleration in Chrome did the trick. This confirms the user's tests ( 0018957:0067424 ) and that it is something between Chromium and GPU.

Also these links confirms that disabling HW accelaration does the trick for the similar issue:
https://bbs.archlinux.org/viewtopic.php?id=198335
https://askubuntu.com/questions/1300640/20-04-google-chrome-opens-but-freezes-when-i-enter-full-screen-in-youtube-or-wh

Left assigned to Petr to create a build with with Chromium debug messages enabled to see more...

petr

2022-04-07 15:40

developer   ~0067485

Chromium logging enabled for a next build

Ludek

2022-04-14 19:04

developer   ~0067544

Assigning to Jordan to generate debug log using the build with Chromium logging.

drakinite

2022-04-14 21:58

developer   ~0067548

Attaching log from build 2614 with the issue reproduced. It's quite long.
18957-build-2614.zip (95,094 bytes)

Ludek

2022-04-19 20:56

developer   ~0067590

Last edited: 2022-04-21 17:18

I am unable to replicate at all, but findings so far (debugging with Jordan and Tim) are:

1) The freeze occurs when there is YouTube playback and MM5 window is minimized (and is about to be maximized from the taskbar)
2) The freeze occurs also in 5.0.2 -- so not related to recent Chromium update
3) The freeze does not occur with the MediaMonkey_noGPU.bat , i.e. with HW acceleration disabled -- this relates to the links in my previous note 0018957:0067465
4) It is browser process that freezes (not the render) and the last line from browser (B) in the log usually is:
MM5 [15868](B) Activating window file:///mainwindow.html

EDIT re item 4) We added more debug messages into TBrowserWindow.activate and the method seems to be performed as whole, i.e., it does not freeze in the method, but after executing this method (somewhere in the browser process).

Assigned to Petr whether he has an idea (as the window management in the Browser process is his code)

jiri

2022-05-05 13:54

administrator   ~0067997

Per IM discussion with the devs, it might by interesting to try to enabled chrome://flags/#ignore-gpu-blocklist.

Anyway, it looks like an issue that would be 'fixed' by 0018995.

petr

2022-05-06 07:55

developer   ~0068011

Based on tests ignore-gpu-blocklist switch didn't help

drakinite

2022-05-07 07:02

developer   ~0068056

FYI, interesting note.
Adding www.youtube.com as a Web bookmark, then playing songs on the YouTube web player, seems to NOT cause the issue. This means it must be something with the embedded YouTube player MM is using.