View Issue Details

IDProjectCategoryView StatusLast Update
0020936MMW 5Generalpublic2024-06-05 22:52
Reporterzvezdan Assigned To 
PriorityurgentSeveritycrashReproducibilityalways
Status closedResolutionreopened 
Product Version5.1 
Target Version5.1Fixed in Version5.1 
Summary0020936: Uncaught Error: Cannot read properties of null
DescriptionI am getting this error when changing skin in 3021, but not with 3005.

Portable installation, default empty Portable folder without added database file, any script or skin, only having added persistent.json and mediamonkey.m3u8 files attached here. In fact, mediamonkey.m3u8 could have anything inside, references to existing or non-existing files, but it should exists. That persistent.json is trimmed down my file form old installation, after I located which its part causes the error followed by a lot of experiments.

So, copy these two files into Portable folder, start the program and switch from Material Design to Flat Monkey -> error. If you don't get it, let me know and I will make a debug log since I could reproduce it always, but I am sure you will get that error as well.
TagsNo tags attached.
Attached Files
persistent.json (2,708 bytes)   
{
    "layout_state_Desktop": {
        "subNodesState": {
            "mainContentDiv": {
                "subNodesState": {
                    "innerbodyFlex": {
                        "state": {
                            "hasSplitters": true
                        },
                        "subNodesState": {
                            "nowplayingVerticalSplitter": {
                                "siblings": {
                                    "mainpanel": {
                                        "flexGrow": "962"
                                    },
                                    "nowplaying": {
                                        "width": "220px"
                                    }
                                }
                            },
                            "nowplaying": {
                                "state": {
                                    "hasSplitters": true,
                                    "manualVisibilityState": true
                                },
                                "subNodesState": {
                                    "nowplayinglistContainer": {
                                        "layout": "list",
                                        "layoutState": {
                                            "NowPlayingTracklist": {
                                                "focusedIndex": -1,
                                                "itemCount": 10,
                                                "scrollOffset": 0,
                                                "popupShown": false
                                            }
                                        }
                                    },
                                    "splitterForartWindow": {
                                        "siblings": {
                                            "nowplayinglistContainer": {
                                                "flexGrow": "285"
                                            },
                                            "artWindow": {
                                                "height": ""
                                            }
                                        }
                                    },
                                    "artWindow": {
                                        "mode": "selectedTrack",
                                        "layout": "advanced",
                                        "visible": true
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
persistent.json (2,708 bytes)   
mediamonkey.m3u8 (102 bytes)   
#EXTM3U
#EXTINF:265,Peter Gabriel - Solsbury Hill
..\..\..\Music\Peter Gabriel - Solsbury Hill.ogg
mediamonkey.m3u8 (102 bytes)   
Fixed in build3028

Relationships

related to 0020980 closedLudek Home view is empty after install (when MM is blocked by firewall) 
related to 0020981 closedLudek Program is not reloading after changing skin 
related to 0020931 closedpetr Crash when visualization is set to Windowed mode [regression] 

Activities

Ludek

2024-05-24 09:49

developer   ~0075533

Fixed in 3023

peke

2024-05-27 00:18

developer   ~0075553

Verified 3024

zvezdan

2024-05-30 15:46

updater   ~0075639

The new version works fine my old Portable folder with its db/json and other files. However, the fresh installation still has an issue with the json file that I have posted.

Steps:
- Install program in portable mode to the new folder;
- choose No on the end of installation to skip start of the program;
- copy the posted json file to the Portable folder (.m3u8 file doesn't matter);
- start the program and choose Cancel to skip adding an old database and another Cancel to skip Wizard -> Home view shows nothing;
- switch to Flat Monkey -> the program disappears and doesn't show up anymore, leaving all processes in memory.

It is not a big deal since the program is working fine now with my full json file from my previous installation, but I thought maybe you could see why this thing is happening with that truncated json file.

Ludek

2024-06-03 20:23

developer   ~0075704

Last edited: 2024-06-03 20:23

Good catch, actually debugging this and
it is not related to the current persistent.json, but to a bug in closing embedded windows (those used for web pages).

The similar can be easily reproduced like this:
1) Run MM5
2) Switch to Web node
3) Switch out of web node (to close the embedded web window)
4) Switch skin
=> nothing happens

Ludek

2024-06-03 20:36

developer   ~0075705

Fixed in 3028

zvezdan

2024-06-03 20:37

updater   ~0075706

Last edited: 2024-06-03 20:43

So, is it related to the 0020981 issue? Similar testing environment, but without any persistent.json file copied to the Portable folder.

And I suppose the another issue that I reported is related as well (0020980).

peke

2024-06-05 22:52

developer   ~0075790

Verified 3028