crashes on opening video #1228

Open
opened 2021-12-23 03:54:47 +01:00 by u6aab · 0 comments
u6aab commented 2021-12-23 03:54:47 +01:00 (Migrated from github.com)

The Issue

sometimes when i open videos, the app crashes

Steps to reproduce

1.open video
2.open another if it doesnt crash
3.it will eventually crash

Expected behaviour

no crashes

Actual behaviour

crashes

System Configuration

  • Device: pixel 4a 5g
  • Android version: 11 (calyxos)

Anything Else

here is the crash log:

FATAL EXCEPTION: AsyncTask #12
Process: io.lbry.browser, PID: 9107
java.lang.RuntimeException: An error occurred while executing doInBackground()
at android.os.AsyncTask$4.done(AsyncTask.java:415)
at java.util.concurrent.FutureTask.finishCompletion(FutureTask.java:383)
at java.util.concurrent.FutureTask.setException(FutureTask.java:252)
at java.util.concurrent.FutureTask.run(FutureTask.java:271)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
at java.lang.Thread.run(Thread.java:923)
Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'int java.lang.String.length()' on a null object reference
at java.text.SimpleDateFormat.parseInternal(SimpleDateFormat.java:1741)
at java.text.SimpleDateFormat.parse(SimpleDateFormat.java:1728)
at java.text.DateFormat.parse(DateFormat.java:360)
at io.lbry.browser.model.Claim.fromSearchJSONObject(Claim.java:371)
at io.lbry.browser.utils.Lighthouse.search(Lighthouse.java:65)
at io.lbry.browser.tasks.LighthouseSearchTask.doInBackground(LighthouseSearchTask.java:40)
at io.lbry.browser.tasks.LighthouseSearchTask.doInBackground(LighthouseSearchTask.java:16)
at android.os.AsyncTask$3.call(AsyncTask.java:394)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
... 3 more

Screenshots

Internal Use

Acceptance Criteria

Definition of Done

  • Tested against acceptance criteria
  • Tested against the assumptions of the user story
  • The project builds without errors
  • Unit tests are written and passing
  • Tests on devices/browsers listed in the issue have passed
  • QA performed & issues resolved
  • Refactoring completed
  • Any configuration or build changes documented
  • Documentation updated
  • Peer Code Review performed
<!-- Thanks for reporting an issue to LBRY and helping us improve! To make it possible for us to help you, please fill out below information carefully. Before reporting any issues, please make sure that you're using the latest version. We are also available on live chat at https://chat.lbry.com --> ## The Issue sometimes when i open videos, the app crashes ### Steps to reproduce 1.open video 2.open another if it doesnt crash 3.it will eventually crash ### Expected behaviour no crashes ### Actual behaviour crashes ## System Configuration - Device: pixel 4a 5g - Android version: 11 (calyxos) ## Anything Else <!-- Include anything else that does not fit into the above sections --> here is the crash log: >FATAL EXCEPTION: AsyncTask #12 >Process: io.lbry.browser, PID: 9107 >java.lang.RuntimeException: An error occurred while executing doInBackground() at android.os.AsyncTask$4.done(AsyncTask.java:415) at java.util.concurrent.FutureTask.finishCompletion(FutureTask.java:383) at java.util.concurrent.FutureTask.setException(FutureTask.java:252) at java.util.concurrent.FutureTask.run(FutureTask.java:271) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641) at java.lang.Thread.run(Thread.java:923) Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'int java.lang.String.length()' on a null object reference at java.text.SimpleDateFormat.parseInternal(SimpleDateFormat.java:1741) at java.text.SimpleDateFormat.parse(SimpleDateFormat.java:1728) at java.text.DateFormat.parse(DateFormat.java:360) at io.lbry.browser.model.Claim.fromSearchJSONObject(Claim.java:371) at io.lbry.browser.utils.Lighthouse.search(Lighthouse.java:65) at io.lbry.browser.tasks.LighthouseSearchTask.doInBackground(LighthouseSearchTask.java:40) at io.lbry.browser.tasks.LighthouseSearchTask.doInBackground(LighthouseSearchTask.java:16) at android.os.AsyncTask$3.call(AsyncTask.java:394) at java.util.concurrent.FutureTask.run(FutureTask.java:266) ... 3 more ## Screenshots <!-- If a screenshot would help explain the bug, please include one or two here --> ## Internal Use ### Acceptance Criteria 1. 2. 3. ### Definition of Done - [ ] Tested against acceptance criteria - [ ] Tested against the assumptions of the user story - [ ] The project builds without errors - [ ] Unit tests are written and passing - [ ] Tests on devices/browsers listed in the issue have passed - [ ] QA performed & issues resolved - [ ] Refactoring completed - [ ] Any configuration or build changes documented - [ ] Documentation updated - [ ] Peer Code Review performed
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: LBRYCommunity/lbry-android#1228
No description provided.