Closed Bug 1564082 Opened 5 years ago Closed 5 years ago

The app crash after reopening the recent closed tabs

Categories

(Firefox for Android Graveyard :: Awesomescreen, defect, P1)

ARM
Android
defect

Tracking

(firefox-esr6869+ verified, firefox68 wontfix, firefox69 verified, firefox70 verified)

VERIFIED FIXED
Firefox 70
Tracking Status
firefox-esr68 69+ verified
firefox68 --- wontfix
firefox69 --- verified
firefox70 --- verified

People

(Reporter: stefan.deiac, Assigned: andrei.a.lazar)

Details

(Whiteboard: [fennec68.1] [fennec68.0.x?])

Crash Data

Attachments

(2 files)

Attached file logcat.txt

Environment:
Devices:

  • Xiaomi Mi 8 Lite (Android 9);
  • Samsung Galaxy Tab 3 (Android 8).

Build: RC 68.0 build 3;

Prerequisites:
You have some pages recently closed(+5 pages);

Steps to reproduce:

  1. Go to History -> Recently closed tab;
  2. Tap on "Restore all" button;

Expected result:
All tabs from the list are restored without any problem.

Actual result:
The App crash after trying to Restore all tabs

Notes:

  • Reproducible 1/3 times;
  • Reproducible on Nightly 69.0a1 (2019-07-07) and Beta 68.0b14
Priority: -- → P1
Crash Signature: https://crash-stats.mozilla.org/report/index/583509f4-2279-4049-8bc9-0d21a0190708#tab-details → https://crash-stats.mozilla.org/signature/?product=FennecAndroid&signature=java.lang.IllegalStateException%3A%20at%20android.database.sqlite.SQLiteClosable.acquireReference%28SQLiteClosable.java%29

Adjusting crash signature so it gets picked up in crash stats.

Crash Signature: https://crash-stats.mozilla.org/signature/?product=FennecAndroid&signature=java.lang.IllegalStateException%3A%20at%20android.database.sqlite.SQLiteClosable.acquireReference%28SQLiteClosable.java%29 → [@ java.lang.IllegalStateException: at android.database.sqlite.SQLiteClosable.acquireReference(SQLiteClosable.java)]
Assignee: nobody → andrei.a.lazar

The cursor was trying to move to first record after it was closed which lead into
IllegalStateException.
In order to avoid this exception, we should simply check if the cursor was already
closed before trying to move to the first record.

Keywords: checkin-needed

Pushed by archaeopteryx@coole-files.de:
https://hg.mozilla.org/integration/autoland/rev/723a54f6eb3b
The app crash after reopening the recent closed tabs r=petru

Keywords: checkin-needed
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 70

Please nominate this for Beta and ESR68 approval when you get a chance.

Flags: needinfo?(andrei.a.lazar)

Comment on attachment 9078166 [details]
Bug 1564082 The app crash after reopening the recent closed tabs r=petru

ESR Uplift Approval Request

  • If this is not a sec:{high,crit} bug, please state case for ESR consideration: This is a critical bug, it reproduces 100% of time.
  • User impact if declined: The users will encounter a crash every time they try to open all recent tabs from History.
  • Fix Landed on Version:
  • Risk to taking this patch: Low
  • Why is the change risky/not risky? (and alternatives if risky): This change is not risky because it simply enforces a pattern (to always check if a cursor is not already closed before trying to do anything with it) that is being pushed by Google.
  • String or UUID changes made by this patch:
Flags: needinfo?(andrei.a.lazar)
Attachment #9078166 - Flags: approval-mozilla-esr68?

Hello, I can confirm that the issue is fixed on Nightly 70.a1 (2019-07-17) using Samsung Galaxy S8 (Android 9) and Samsung Galaxy Tab S3 (Android 8.0).

QA Whiteboard: [qa-triaged]

Comment on attachment 9078166 [details]
Bug 1564082 The app crash after reopening the recent closed tabs r=petru

Fixes a frequent Fennec crash. Approved for Beta and 68.1b3. We may want to keep this on the radar for any Fennec 68.0.x point releases as well given the frequency.

Attachment #9078166 - Flags: approval-mozilla-esr68?
Attachment #9078166 - Flags: approval-mozilla-esr68+
Attachment #9078166 - Flags: approval-mozilla-beta+

Hi!
Verified as fixed on Beta 69.0b7 with OnePlus 5T (Android 9), Motorola Nexus 6 (Android 7.1.1).
I will mark this issue as verified on Firefox 69. Thanks!

Verified as fixed on ESR 68.1b3 with OnePlus 5T (Android 9), HTC 10 (Android 8.0.0).
I will mark this issue as verified on Firefox esr68. Thanks!

Status: RESOLVED → VERIFIED
QA Whiteboard: [qa-triaged]
Whiteboard: [fennec68.1] [fennec68.0.x?]
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: