View Issue Details

IDProjectCategoryView StatusLast Update
0017814MMW 5Skinspublic2021-05-12 21:45
Reporterdrakinite Assigned To 
PriorityurgentSeverityminorReproducibilitysometimes
Status closedResolutionfixed 
Product Version5.0.1 
Target Version5.0.1Fixed in Version5.0.1 
Summary0017814: Startup issues when the main window was maximized before last close
DescriptionI noticed that on my primary install (2401), when any window loads (either on app startup or an extra dialog), for about one second, all text displays in the default serif font before it loads the correct font. The issue disappears when persistent.json is renamed/deleted.

The question now is to figure out *what* in this persistent.json causes the problem - because we wouldn't want this to happen to other users. The problematic persistent.json is attached.
TagsNo tags attached.
Attached Files
persistent_.json..zip (34,448 bytes)
Fixed in build2403

Relationships

related to 0017561 closeddrakinite MM shows up twice in the taskbar when launching 

Activities

Ludek

2021-05-07 10:59

developer   ~0063091

I cannot replicate with your persistent.json, probably because of other dependencies (like particular OS/system config, GPU etc.).
As persistent.json is pretty-printed you can try eliminating individual sections in persistent.json to see which section is causing this (that could shed some light on it)

drakinite

2021-05-08 18:17

developer   ~0063107

Last edited: 2021-05-08 18:17

Strangely, all it takes now is simply to open MediaMonkey in fullscreen and then restart it.

WindowState in persistent.json when the font loads incorrectly:
    "WindowState": {
        "dlgMainWindow": {
            "Left": -1,
            "Top": -1,
            "Width": -1,
            "Height": -1,
            "State": 2,
            "PrevState": 2
        },

WindowState in persistent.json when the font loads correctly:
    "WindowState": {
        "dlgMainWindow": {
            "Left": -1,
            "Top": -1,
            "Width": -1,
            "Height": -1,
            "State": 0,
            "PrevState": 0
        },

I can change the "State" and "PrevState" values from 0 to 2, and back again, and it enables/disables the issue. Can you reproduce by doing the same?

Ludek

2021-05-10 09:52

developer   ~0063114

Last edited: 2021-05-10 10:09

I can confirm that with "State": 2 (which means maximized widnow) the fonts are initially incorrect for 1 second (default serif font before it loads the correct font).
Assigned to Petr to look into it as it sounds like a window management issue.

So steps to replicate are:
1) Open MM5 and maximize the window
2) Restart MM5
=> window repositioning and blinking appears for 1 second + the font is the default font initially (for another second) and then the correct font is shown

So it seems that in case of maximized window the window is shown _earlier_ than it actually should.
This can be also confirmed by seeing the splash screen window still showing while the main window is in the "blinking and incorrect font" loading state.

petr

2021-05-10 16:59

developer   ~0063125

Fixed

drakinite

2021-05-12 21:45

developer   ~0063157

Verified 2404