FossifyOrg / Gallery

Browse your memories without any interruptions with this photo and video gallery
https://www.fossify.org
GNU General Public License v3.0
1.78k stars 61 forks source link

Gallery cause com.google.android.providers.media.module keep running in high CPU #256

Closed GHolk closed 3 months ago

GHolk commented 4 months ago

Checklist

Affected app version

1.1.3

Affected Android/Custom ROM version

Android 13

Affected device model

Fairphone 4

How did you install the app?

F-Droid / IzzyOnDroid

Steps to reproduce the bug

  1. Put a lot of file in a folder in sdcard or somewhere, and add a touch .nomedia in the folder. (I put about 10G and 80000 no-media files)
  2. Launch the Fossify Gallery.
  3. Grant Fossify Gallery the permission to manage all files in storage in dialog inside gallery.
  4. Get redirected to the app permission page, and there is only Manage Media permission. Grant it.
  5. Go back to the Fossify Gallery.

Expected behavior

I put a nomedia in the folder so fossify gallery should not scan that folder.

Actual behavior

  1. The phone heat up. Running top in adb shell show that com.google.android.providers.media.module run in high CPU (100~300%).
  2. killing the app stop com.google.android.providers.media.module running in high cpu.

Screenshots/Screen recordings

Tasks: 850 total,   2 running, 840 sleeping,   0 stopped,   0 zombie    
  Mem:  8000000K total,  7500000K used,   400000K free,   100000K buffers                                                                        
 Swap:  4000000K total,  2000000K used,  1000000K free,  1000000K cached                                                                         
800%cpu  70%user  80%nice  70%sys 550%idle   0%iow   6%irq   1%sirq   0%host                                                                     
  PID USER         PR  NI VIRT  RES  SHR S[%CPU] %MEM     TIME+ ARGS                                                                             
 4000 u0_a100      20   0  16G 111M  37M S  169   1.4  57:05.80 com.google.android.providers.media.module                                        
28167 u0_a101      10 -10  16G 258M 120M S 51.0   3.4   0:30.81 org.fossify.gallery                                                              
   94 root         20   0    0    0    0 S  5.0   0.0   1:09.96 [kswapd-1:0]                                                                     
29613 root         20   0    0    0    0 I  3.0   0.0   0:06.36 [kworker/u16:4-memlat_wq]                                                        
29589 root         20   0    0    0    0 I  2.0   0.0   0:05.44 [kworker/u16:0-memlat_wq]                                                        
 1439 system       18  -2  20G  63M  63M S  1.6   0.8  10:43.40 system_server                                                                    
30419 shell        20   0  12G 4.9M 3.1M R  1.3   0.0   0:00.33 top     
 1017 system       20   0  12G 4.5M 3.1M S  1.0   0.0   0:48.73 android.hardware.sensors@2.0-service.multihal                                    
 2555 u0_a102      20   0  17G 188M  88M S  0.6   2.5   4:07.15 com.android.systemui                                                             
   17 root         RT   0    0    0    0 S  0.6   0.0   0:31.53 [migration/0]                                                                    

Additional information

In fact, I am not sure whether Gallery cause this bug, and lsof (with root) does not show that gallery or providers.media.module is reading the folder.

Aga-C commented 4 months ago

Do you have the same problem while running other gallery apps?

github-actions[bot] commented 3 months ago

This issue has been automatically closed because there has been no response to our request for more information from the original author. With only the information that is currently in the issue, we don't have enough information to take action. Please reach out if you have or find the answers we need so that we can investigate further.