View Issue Details

IDProjectCategoryView StatusLast Update
0019964MMADBpublic2023-05-29 14:10
Reporterrusty Assigned To 
PriorityhighSeverityfeatureReproducibilityalways
Status resolvedResolutionreopened 
Product Version2.0.0 
Target Version2.0.0Fixed in Version2.0.0 
Summary0019964: Performance: background tasks use CPU/Battery to generate unneeded video thumbnails
DescriptionMany users only want to use MMA for audio purposes. However, by default it initially scans for both audio and video files and then uses CPU/Battery to generate video thumbnails.

All of this can be prevented by prompting the user what to include in the library when it's first run.
TagsNo tags attached.
Fixed in build1085

Relationships

related to 0020019 closedmartin Endless 'Updating album artwork' notification 
related to 0018866 closedmartin Performance: Libraries are scanned frequently, and takes several minutes (or longer) each time for some 
related to 0019972 newmartin Library Scan settings are overridden by Sync settings 

Activities

rusty

2023-04-27 15:45

administrator   ~0071641

Considering that:
- the issue can be easily resolved by removing a directory via Options > Library > Choose library folders
- it's not desirable to force users to go through another config screen at install/first run

A simple solution would be to optimize this along the following lines:
1) Initially generate ~ 20 video thumbnails from the /Video or /Movies directories
2) After that, only generate x thumbnails each time the user navigates to 'Video' or those specific folders

martin

2023-05-24 10:53

developer   ~0072059

Last edited: 2023-05-24 10:55

Further optimization planned in 0018866
Fixed in build 2.0.0.1085

rusty

2023-05-28 21:56

administrator   ~0072105

With build 1086, I noticed that notifications indicated 'generating thumbnails' for some time and this only disappeared when I ran MMA. This makes it appear to the user as if thumbnail generation is going on in the background for a long time (even though I suspect that it isn't).

Log ID: 3PCXDVJH16

martin

2023-05-29 11:45

developer   ~0072106

According to the log, no thumbnails were created, and only a check was performed(took less than a second). Notification remained displayed for an unknown reason (handled by OS in this case).
I cannot replicate this, fortunately, this has no effect on the battery, hence we can lower the priority for this issue.

martin

2023-05-29 14:10

developer   ~0072115

Similar issue to 0020019

Unfortunately, notifications for those two cases are processed in ForegroundService handled by OS.
There isn't a simple solution on the MMA side, I think on Android 13 this no longer happens and on Android 12 it happens very rarely and a future system update could resolve this.