Skip to content

Extreme battery drain due to stuck sync #310

@RomanBf

Description

@RomanBf

Environment:

  • MEGA app Version(s): 15.24
  • OS Version(s): Android 16
  • Devices/Simulators: Google Pixel 7 Pro

Describe the bug

Syncing a folder on my Android phone (Obsidian notes vault) with MEGA does not finish, and churns through CPU - draining the battery even if App is running in the background.
I attached a screenshot from adb shell top command where you can see that it probably is in an infinite loop or something when interacting with the Android media module.

The folder I am syncing does contain a hidden ".obsidian" folder and just some markdown files, could the hidden folder possibly be the reason?
The same folder I also sync with MEGA sync Desktop app, where on the desktop MEGA sync App at least, I have to delete an automatically included sync exclusion rule when creating the sync so folders beginning with "." (dot) are synced. Maybe an edge case that is not properly tested when syncing that with Android too.
From the desktop there is then a .megaignore file created too which gets auto-synced to Android.

Reproduction Steps

Add the different steps to reproduce the behavior.

  1. Create an Obsidian vault and store it on Android internal storage -> Documents folder
  2. Sync it to MEGA via Android App
  3. Create a Mega sync Desktop sync to sync to PC
  4. Configure the sync exclusions on desktop to allow folders and files beginning with dot "." to be synced
  5. When changing a file in the vault, and MEGA Android syncs it, it stays in "Syncing" state and never finishes, while draining battery non stop (10-20% in one hour) of the phone.

Expected behavior

Sync should complete properly and no battery drain afterwards.

Screenshots / Logs

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions