XayahSuSuSu / Android-DataBackup

DataBackup for Android 7.0+
https://DataBackupOfficial.github.io
GNU General Public License v3.0
3.73k stars 146 forks source link

[Bug] App crash caused by large sized icon #302

Closed Explorare closed 2 months ago

Explorare commented 2 months ago

Describe the bug The application would crash while rendering / restoring the specific app, for example in app list or app restore view.

To Reproduce

  1. Place the backup file under \DataBackup\apps
  2. Open restore view and the app will crash if the icon is rendered in that view. If not, open the restore app view and scroll down to trigger the rendering, which will lead to immediately crash.

Expected behavior

Screenshots Screenshot_20240904-143120_DataBackup

Smartphone (please complete the following information):

XayahSuSuSu commented 2 months ago

Weird icon size, can you clear the data and cache then try it again? I didn't reproduce this issue using your zip file image

Explorare commented 2 months ago

The app will crash if that icon showed in the preview. Remove it from backup folder and clear data and cache will fix the issue. Add the backup will introduce the crash issue again. I've tried 100+ apps and only this one causing the issue. Maybe it's a system specific issue. The backup is made in H2OS 10 and restored in LOS 21. So maybe the icon format is incompatible.

XayahSuSuSu commented 2 months ago

Can you send the icon.tar in DataBackup/configs dir?

Explorare commented 2 months ago

The size of the icon causing the issue is 1.2MB, double the size of others. icon.tar

XayahSuSuSu commented 2 months ago

Will fix in next build

XayahSuSuSu commented 2 months ago

Should be fixed in https://github.com/XayahSuSuSu/Android-DataBackup/actions/runs/10757628047