Last modified: 2014-10-21 19:15:30 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T68732, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 66732 - App occasionally closes when too much Activity state is stored.
App occasionally closes when too much Activity state is stored.
Status: RESOLVED FIXED
Product: Wikipedia App
Classification: Unclassified
Android App (Other open bugs)
Beta
All All
: Unprioritized minor
: ---
Assigned To: Dmitry Brant
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-06-17 18:08 UTC by Dmitry Brant
Modified: 2014-10-21 19:15 UTC (History)
4 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Dmitry Brant 2014-06-17 18:08:09 UTC
When the Android OS garbage-collects our PageActivity, we store the entire Page object (with the full text content of the page) in the saveInstanceState.  For exceedingly large pages, or when multiple large pages are stored, this can create a "TransactionTooLargeException", which would force the OS to close our app entirely (and not even show the crash dialog).

This can be reproduced by turning on "don't keep activities" and using the app for a while, making sure to switch between different activities often.

The solution should eventually be to find a more efficient way to store the page contents/state (compress / store limited pages / etc).
Comment 1 Gerrit Notification Bot 2014-08-04 21:28:06 UTC
Change 151779 had a related patch set uploaded by Dbrant:
[WIP] Don't store whole Page contents in savedInstanceState.

https://gerrit.wikimedia.org/r/151779
Comment 2 Gerrit Notification Bot 2014-10-07 15:18:01 UTC
Change 151779 abandoned by Dbrant:
[WIP] Don't store whole Page contents in savedInstanceState.

Reason:
superseded by more recent patches.

https://gerrit.wikimedia.org/r/151779
Comment 3 Dmitry Brant 2014-10-13 02:56:12 UTC
https://gerrit.wikimedia.org/r/161483

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links