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.

Help troubleshooting cache being ignored

See original GitHub issue

I’m currently stuck to version 2.11.4 of Exoplayer. I created a migration path from 2.9 to this version and the database seems to be upgraded properly.

Now, when I try to play the content, it seems to always pick the content from the internet, not loading if I’m offline.

The mediaSource is set based on

dataSourceFactory = new CacheDataSourceFactory(
        pair.second,
        upstreamFactory,
        new FileDataSource.Factory(),
        null,
        CacheDataSource.FLAG_IGNORE_CACHE_ON_ERROR,
        null);
return new ProgressiveMediaSource
        .Factory(dataSourceFactory)
        .createMediaSource(uri);

EDIT: For now the upstream is FileDataSource so I’m sure it won’t use the internet to fetch any missing data.

I’m unsure how to debug to find out what is wrong…

EDIT 18 Feb

I had a partial (or false-positive) success yesterday but most of the problem still happens.

My “success” was when it managed to play the 1st minute of the call but then got errors not finding parts of the stream.

The ActionFile content was saved with a custom Action( #8543 ), with some specifics behaviors on getSegment block. I wonder if I need to port the DESERIALIZER to the newer version to be able to play it properly.

If it works best, feel free to contact me through email.

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
ojw28commented, Mar 10, 2021

Marking as needs more info. As of now it sounds like this is probably an issue with your upgrade procedure from a non-standard previous implementation.

0reactions
sidferreiracommented, Mar 30, 2021

@ojw28 sorry for the long delay, after fixed I had to run against the clock. In the end, using DownloadHelper.createMediaSource(downloadRequest, cacheDataSourceFactory); addressed the missing problems. Thanks for all your help!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Troubleshooting: Clearing Browser Cache & Cookies
The first thing you'll need to do to clear your cookies and cache is determine what browser you're using. You will find browser-specific ......
Read more >
Troubleshoot Cache Issues - Sucuri Docs
1. Clear the Firewall Cache. The first thing to do is to clear the cache from Sucuri Firewall's dashboard. · 2. Clear the...
Read more >
Cache Control gets ignored - java - Stack Overflow
I think I had a similar problem. The size of the cache is set in kilobytes and you are setting it to only...
Read more >
Additional Cache Control Headers in 304 request are ignored
I don't think that we are having issues merging the headers together. It looks like the problem is that the request an response...
Read more >
Debugging and diagnosing cache misses - Gradle User Manual
Testing cache relocatability ; 2, Go to the first checkout directory. ; 3, Clean the project to remove any unwanted leftovers from previous...
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