iMediaSandboxing / iMedia

The Karelia iMedia Browser, framework and application for browsing media on Mac OS X
http://www.karelia.com/imedia/
Other
18 stars 12 forks source link

Icons for Photos nodes are missing #102

Closed gloubibou closed 6 years ago

gloubibou commented 6 years ago

Lately the icons for nodes in the Photos library are often missing. Reloading helps.

This appears to be a bug in the Media Library framework. The -[MLMediaGroup iconImage] accessor appears to notify IMBAppleMediaLibraryPropertySynchronizer before the value is actually available.

Pausing in the debugger makes the problem disappear. This seems to give the MediaLibrary framework time to complete loading.

Pausing the parser using sleep() also improves the situation. E.g. adding this:

        // FUGLY hack to give iconImage a better chance to load
        if (parentGroup.parent == nil)
        {
            sleep(1);
        }
        // FUGLY hack to give iconImage a better chance to load
        sleep(1);

at IMBAppleMediaLibraryParser.m:170 greatly improves the chance to get group icons.

Is anybody else observing this issue? This is on 10.13.5.