question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Some videos won't load (and the application doesn't throw any errors)

See original GitHub issue

The Issue

I recently started using LBRY on my Android devices and, on one of them, I am facing a strange problem: when I play certain videos (the ones published by DistroTube and 3Blue1Brown, for example, but the issue isn’t limited to them) the application loads them for some time, and then hangs without starting the playback and without throwing errors (I’ve looked even into the log file, but I couldn’t find any relevant information).

Obviously, I’ve already done some basic troubleshooting: I’ve tried to connect to another network, to restart the device, to delete app data (cache included) and to uninstall and reinstall the application, but nothing worked.

Steps to reproduce

  1. Play a video affected by the problem (DistroTube’s ones are all affected).
  2. Wait while the application loads.
  3. Notice that the playback won’t start.

Expected behaviour

The app should start playing the selected video.

Actual behaviour

The player hangs without throwing errors and without providing further information.

System Configuration

  • Device: Asus Zenfone 4 Max ZC520KL (ASUS_X00HD)
  • Android version: 8.1.0

Anything Else

Application startup log

2020-11-27 15:51:48,990 INFO     lbry.extras.daemon.daemon:485: Starting LBRYNet Daemon
2020-11-27 15:51:48,994 INFO     lbry.extras.daemon.daemon:487: Platform: {
  "processor": "",
  "python_version": "3.7.1",
  "platform": "Android 8.1.0 (API 27)",
  "os_release": "3.18.71-perf-gbeca9a5",
  "os_system": "android",
  "lbrynet_version": "0.82.0",
  "version": "0.82.0",
  "build": "release"
}
2020-11-27 15:51:49,384 INFO     lbry.extras.daemon.daemon:470: detected internet connection is working
2020-11-27 15:51:50,343 INFO     lbry.extras.daemon.daemon:501: RPC server listening on TCP 127.0.0.1:5279
2020-11-27 15:51:50,350 INFO     lbry.extras.daemon.daemon:511: media server listening on TCP 127.0.0.1:5280
2020-11-27 15:51:50,364 INFO     lbry.extras.daemon.components:531: detecting external ip
2020-11-27 15:51:50,372 INFO     lbry.extras.daemon.components:74: Loading databases
2020-11-27 15:51:50,375 INFO     lbry.extras.daemon.components:77: db_revision file not found. Creating it
2020-11-27 15:51:50,378 INFO     lbry.wallet.database:409: connecting to database: /storage/emulated/0/Android/data/io.lbry.browser/files/lbrynet/lbrynet.sqlite
2020-11-27 15:51:50,381 INFO     lbry.extras.daemon.exchange_rate_manager:184: Starting exchange rate manager
2020-11-27 15:51:50,815 WARNING  lbry.file_analysis:93: Unable to locate ffmpeg executable. Path: :/storage/emulated/0/Android/data/io.lbry.browser/files/lbrynet/ffmpeg/bin:/sbin:/system/sbin:/system/bin:/system/xbin:/vendor/bin:/vendor/xbin
2020-11-27 15:51:50,879 INFO     lbry.extras.daemon.components:164: Starting wallet
2020-11-27 15:51:52,230 INFO     lbry.wallet.manager:209: Wallet at default_wallet is empty, generating a default account.
2020-11-27 15:51:52,739 INFO     lbry.wallet.database:409: connecting to database: /storage/emulated/0/Android/data/io.lbry.browser/files/lbryum/lbc_mainnet/blockchain.db
2020-11-27 15:52:03,020 INFO     lbry.wallet.network:382: connected to spv13.lbry.com:50001
2020-11-27 15:52:03,021 INFO     lbry.wallet.network:200: Switching to SPV wallet server: spv13.lbry.com:50001
2020-11-27 15:52:03,054 INFO     lbry.wallet.network:382: connected to spv19.lbry.com:50001
2020-11-27 15:52:03,088 INFO     lbry.wallet.network:382: connected to spv18.lbry.com:50001
2020-11-27 15:52:03,300 INFO     lbry.wallet.network:205: Subscribed to headers: spv13.lbry.com:50001
2020-11-27 15:52:03,303 INFO     lbry.wallet.ledger:344: Subscribing and updating accounts.
2020-11-27 15:52:03,306 INFO     lbry.wallet.ledger:453: Subscribe to 1 accounts
2020-11-27 15:52:03,321 INFO     lbry.wallet.network:382: connected to spv14.lbry.com:50001
2020-11-27 15:52:03,326 INFO     lbry.wallet.network:382: connected to spv15.lbry.com:50001

Events logged while loading the video

2020-11-27 16:29:56,272 INFO     lbry.file.file_manager:198: starting download for lbry://a-first-look-at-garuda-linux-kde#bad9658e5c8282c18aa100bac3321538fbd23ce5
2020-11-27 16:29:56,274 INFO     lbry.stream.managed_stream:151: start downloader for stream (sd hash: 14c649ccd3213c77dd31345a916b7ad07b5d91570a1470a50ab11e5852814fd41f1f28d77faa0f1fcd8dd07e63718deb)
2020-11-27 16:29:56,369 INFO     lbry.stream.downloader:103: searching for peers for stream 14c649ccd3213c77dd31345a916b7ad07b5d91570a1470a50ab11e5852814fd41f1f28d77faa0f1fcd8dd07e63718deb
2020-11-27 16:29:56,602 INFO     lbry.blob_exchange.client:159: downloaded 14c649cc from 51.91.64.44:5567 at 0.110000MB/s
2020-11-27 16:29:56,605 INFO     lbry.stream.downloader:82: downloaded sd blob 14c649ccd3213c77dd31345a916b7ad07b5d91570a1470a50ab11e5852814fd41f1f28d77faa0f1fcd8dd07e63718deb
2020-11-27 16:29:56,628 INFO     lbry.stream.downloader:91: loaded stream manifest 14c649ccd3213c77dd31345a916b7ad07b5d91570a1470a50ab11e5852814fd41f1f28d77faa0f1fcd8dd07e63718deb
2020-11-27 16:29:56,629 INFO     lbry.stream.downloader:110: added head blob to peer search for stream 14c649ccd3213c77dd31345a916b7ad07b5d91570a1470a50ab11e5852814fd41f1f28d77faa0f1fcd8dd07e63718deb
2020-11-27 16:29:56,999 INFO     lbry.stream.managed_stream:202: stream file to browser for lbry://a-first-look-at-garuda-linux-kde#bad9658e5c8282c18aa100bac3321538fbd23ce5 (sd hash 14c649...)
2020-11-27 16:29:59,604 INFO     lbry.blob_exchange.client:159: downloaded de9bb593 from 51.91.64.44:5567 at 0.810000MB/s
2020-11-27 16:29:59,890 INFO     lbry.stream.managed_stream:229: sent browser blob 1/86
2020-11-27 16:30:03,161 INFO     lbry.blob_exchange.client:159: downloaded a631468e from 51.91.64.44:5567 at 0.640000MB/s
2020-11-27 16:30:04,892 INFO     lbry.stream.managed_stream:395: stopping inactive download for lbry://a-first-look-at-garuda-linux-kde#bad9658e5c8282c18aa100bac3321538fbd23ce5 (14c649...)

Screenshots

Player hanging after loading the video (affected by the problem)

Player hanging after loading the video

Video that works fine

Video that works fine

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

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
tzarebczancommented, Dec 7, 2020

Thank you! They do play on my device (Oneplus 6T), so I think it will be a combination of the 60FPS + certain devices. We’ll have to dig on some issues on the player we use to see if there’s anything we can do about it.

0reactions
tzarebczancommented, Feb 17, 2021

These should be fixed now with the latest update.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Fixing 'Error in Loading Media: File Could Not Be Played'
Here are some easy solutions you can try to fix 'Error in Loading Media: File Could Not Be Played' on your Windows, Mac,...
Read more >
Solved: YouTube videos won't load. 'An error occurred, try ...
Methods to fix YouTube videos won't load or show error · 1. Clear cached data in your browser · 2. Update browser to...
Read more >
Fix videos & games that won't play - Google Chrome Help
Fix videos & games that won't play ; Step 1: Update Chrome. Videos and games sometimes need the latest version of Chrome. ;...
Read more >
iPhone Couldn't Load a Higher Quality Version of Video
If your iPhone says that "An error occurred while loading a higher quality version of this video", set camera record settings to 1080p....
Read more >
Video File Cannot Be Played? Fix Different Video Error Codes
The video you are trying to play can be corrupted. · There might be some issues with the media player installed on your...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found