Closed Bug 1213240 Opened 9 years ago Closed 8 years ago

JSONException caused by RecentTabsPanel$RecentTabsCursorLoader.loadCursor

Categories

(Firefox for Android Graveyard :: General, defect)

41 Branch
ARM
Android
defect
Not set
normal

Tracking

(firefox46 fixed)

RESOLVED FIXED
Firefox 46
Tracking Status
firefox46 --- fixed

People

(Reporter: linuxhippy, Unassigned)

Details

Attachments

(1 file)

User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:42.0) Gecko/20100101 Firefox/42.0
Build ID: 20151005144425
Firefox for Android

Steps to reproduce:

While my phone was connected to my PC for displaying the debug logs, I discovered the following exception while using FF 41 for Android:

10-09 12:52:13.104 4825-21263/? E/GeckoSessionParser: JSON error
10-09 12:52:13.104 4825-21263/? E/GeckoSessionParser: org.json.JSONException: Index 0 out of range [0..0)
10-09 12:52:13.104 4825-21263/? E/GeckoSessionParser:     at org.json.JSONArray.get(JSONArray.java:282)
10-09 12:52:13.104 4825-21263/? E/GeckoSessionParser:     at org.json.JSONArray.getJSONObject(JSONArray.java:510)
10-09 12:52:13.104 4825-21263/? E/GeckoSessionParser:     at org.mozilla.gecko.SessionParser.parse(SessionParser.java:70)
10-09 12:52:13.104 4825-21263/? E/GeckoSessionParser:     at org.mozilla.gecko.home.RecentTabsPanel$RecentTabsCursorLoader.loadCursor(RecentTabsPanel.java:319)
10-09 12:52:13.104 4825-21263/? E/GeckoSessionParser:     at org.mozilla.gecko.home.SimpleCursorLoader.loadInBackground(SimpleCursorLoader.java:44)
10-09 12:52:13.104 4825-21263/? E/GeckoSessionParser:     at org.mozilla.gecko.home.SimpleCursorLoader.loadInBackground(SimpleCursorLoader.java:26)
10-09 12:52:13.104 4825-21263/? E/GeckoSessionParser:     at android.support.v4.content.AsyncTaskLoader$LoadTask.doInBackground$42af7916(Unknown Source)
10-09 12:52:13.104 4825-21263/? E/GeckoSessionParser:     at android.support.v4.content.ModernAsyncTask$2.call(Unknown Source)
10-09 12:52:13.104 4825-21263/? E/GeckoSessionParser:     at java.util.concurrent.FutureTask.run(FutureTask.java:237)
10-09 12:52:13.104 4825-21263/? E/GeckoSessionParser:     at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
10-09 12:52:13.104 4825-21263/? E/GeckoSessionParser:     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
10-09 12:52:13.104 4825-21263/? E/GeckoSessionParser:     at java.lang.Thread.run(Thread.java:841)


Actual results:

Exception


Expected results:

No Exception
OS: Unspecified → Android
Hardware: Unspecified → ARM
Component: Untriaged → General
Product: Firefox → Firefox for Android
Version: 41 Branch → Firefox 41
This is touching org.mozilla.gecko.SessionParser.parse, vivek you were the last to touch the file. Any thoughts about this bug?
Flags: needinfo?(vivekb.balakrishnan)
Comment on attachment 8705308 [details]
MozReview Request: Bug 1213240 : Avoid parsing sessions json when empty r?bnicholson

https://reviewboard.mozilla.org/r/29925/#review26751

Looks great!
Attachment #8705308 - Flags: review?(bnicholson) → review+
Flags: needinfo?(vivekb.balakrishnan)
https://hg.mozilla.org/mozilla-central/rev/a54da7831cfc
Status: UNCONFIRMED → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 46
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

Created:
Updated:
Size: