lbryio / lbryio/lbry-android

crashes on opening video

Open
#1,228 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Java
Stars
2.4k
Forks
110
PR merge metrics
No merged PRs in 30d

Description

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

Contributor guide

No contributing guide indexed for this repository

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 at Claim.fromSearchJSONObject in Claim.java:371, following the call from Lighthouse.search and LighthouseSearchTask.doInBackground shown in the crash log. Reproduce by opening videos on the listed Android 11 device, then verify that opening multiple videos no longer crashes and that the project builds successfully.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, java
Domain
mobile
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
50/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.