wordpress-mobile / wordpress-mobile/WordPress-Android

ANR sometimes when adding from free photo library to gallery block.

Open
#13,228 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

[Pri] Low [Type] Bug Media
Dominant language
Kotlin
Stars
3.2k
Forks
1.4k
Avg merge
1d 11h
Merged PRs (30d)
69

Description

Noticed during internal call for testing (comment here pbMoDN-1oy-p2#comment-2763).

Expected behavior

When adding multiple images to a gallery block from Free Photo Library (could possibly happen also with other sources), I would expect those images to be uploaded into the gallery block

Actual behavior

When adding multiple images to a gallery block from Free Photo Library (could possibly happen also with other sources), it has been reported sometimes the app goes ANR.

Steps to reproduce the behavior

There is a suspect it can happen when the post becomes too big, but note I was not able currently to reproduce it. (cc @AmandaRiu )

  • In GB add a gallery block
  • Add images from Free Photo Library
  • App could go in ANR

Tested on [Pixel 3 Emu], Android [API30], WPAndroid [#13216 CI Build]

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the reported flow in the gallery block: add multiple images from Free Photo Library on the Pixel 3 emulator with Android API 30. Investigate whether the app reaches an ANR when the post becomes large, and consider the issue resolved only when multiple images upload without blocking the app.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, kotlin
Domain
mobile, performance
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.