If you don't find an answer, please click here to post your question.
Reply
Advisor
Posts: 18
Registered: ‎11-11-2016

Android App Crashes on tapping multiple files continuously

Hello,

 

I use Ooyala SDK to play videos in an Android App.

I have a list of videos in my application.

Now if I go on tapping multiple files continuously then application crashes in rare scenario.

 

Is this Ooyala issue?

 

With regards,

Bhushan

Community Manager
Posts: 28
Registered: ‎11-08-2016

Re: Android App Crashes on tapping multiple files continuously

Hello Bhushan_k,

 

What Android SDK version are you using for your app? could you provide some examples of content IDs you are trying to play? what Android Device/s are you currently testing on?

 

Regards,

 

Paulo Padilla

Oyaala Technical Support

Advisor
Posts: 18
Registered: ‎11-11-2016

Re: Android App Crashes on tapping multiple files continuously

Android SDK 19 and above.
Devices: Moto and Samsung devices.

 

App crashing:

New Scenario: (Have videos downloaded in offline mode)

1. Open a video

2. Press back, come out of the screen

3. Do step 1, and continue..

 After a while the app crashes.

 

Crash Report:

FATAL EXCEPTION: ExoPlayerImplInternal:Handler
Process: yml.fs.com.learningapp, PID: 10497
java.lang.OutOfMemoryError: Failed to allocate a 65548 byte allocation with 58001 free bytes and 56KB until OOM
at com.google.android.exoplayer.upstream.DefaultAllocator.allocate(DefaultAllocator.java:79)
at com.google.android.exoplayer.extractor.RollingSampleBuffer.prepareForAppend(RollingSampleBuffer.java:439)
at com.google.android.exoplayer.extractor.RollingSampleBuffer.appendData(RollingSampleBuffer.java:387)
at com.google.android.exoplayer.extractor.DefaultTrackOutput.sampleData(DefaultTrackOutput.java:256)
at com.google.android.exoplayer.extractor.mp4.Mp4Extractor.readSample(Mp4Extractor.java:397)
at com.google.android.exoplayer.extractor.mp4.Mp4Extractor.read(Mp4Extractor.java:135)
at com.google.android.exoplayer.extractor.ExtractorSampleSource$ExtractingLoadable.load(ExtractorSampleSource.java:836)
at com.google.android.exoplayer.upstream.Loader$LoadTask.run(Loader.java:209)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:422)
at java.util.concurrent.FutureTask.run(FutureTask.java:237)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
at java.lang.Thread.run(Thread.java:818)

Advisor
Posts: 18
Registered: ‎11-11-2016

Re: Android App Crashes on tapping multiple files continuously

Here are some Content ID's :

Zyb3lnNzE6CnDY1L2Uy9ZmUWLXIbTDN3

c5b3lnNzE6CbV2bMlJQEuxipt3JJD9Ru

c1b3lnNzE6R5yEEcOMtrg2pw9AFPZKGx

d5bnlnNzE6laaJhI25-60vDo7pnZxKYo

cxb3lnNzE6PViNPvnLFKQBe9ORl0mqud
Advisor
Posts: 18
Registered: ‎11-11-2016

Re: Android App Crashes on tapping multiple files continuously

App crashes by clicking on videos multiple times.

First play a video.

Now, click on other video and immediately another video.
Here app crashes..

 

Here is the log file:

 


11-25 13:14:33.287 20430-21742/yml.fs.com.learningapp D/com.ooyala.android.OoyalaPlayer: Error while fetching video
com.ooyala.android.OoyalaException: Not able to retrieve content tree
at com.ooyala.android.ServerTaskVideo.run(ServerTaskVideo.java:90)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:422)
at java.util.concurrent.FutureTask.run(FutureTask.java:237)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
at java.lang.Thread.run(Thread.java:818)
Caused by: java.lang.InterruptedException
at java.util.concurrent.FutureTask.awaitDone(FutureTask.java:375)
at java.util.concurrent.FutureTask.get(FutureTask.java:174)
at com.ooyala.android.ServerTaskVideo.run(ServerTaskVideo.java:66)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:422) 
at java.util.concurrent.FutureTask.run(FutureTask.java:237) 
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112) 
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587) 
at java.lang.Thread.run(Thread.java:818) 
11-25 13:14:33.288 20430-21742/yml.fs.com.learningapp D/PlayerInterfaceUtil: player set state ERROR, old state was INIT

 

11-25 13:14:33.577 20430-21279/yml.fs.com.learningapp E/com.ooyala.android.OoyalaAPIHelper: Caught!
java.io.InterruptedIOException
at com.android.okio.Deadline.throwIfReached(Deadline.java:56)
at com.android.okio.Okio$2.read(Okio.java:110)
at com.android.okio.RealBufferedSource.read(RealBufferedSource.java:48)
at com.android.okhttp.internal.http.HttpConnection$FixedLengthSource.read(HttpConnection.java:446)
at com.android.okio.RealBufferedSource$1.read(RealBufferedSource.java:168)
at java.io.InputStreamReader.read(InputStreamReader.java:231)
at java.io.BufferedReader.fillBuf(BufferedReader.java:145)
at java.io.BufferedReader.readLine(BufferedReader.java:397)
at com.ooyala.android.OoyalaAPIHelper.jsonForAPI(OoyalaAPIHelper.java:49)
at com.ooyala.android.OoyalaAPIHelper.objectForAPI(OoyalaAPIHelper.java:33)
at com.ooyala.android.OoyalaAPIHelper.objectForAPI(OoyalaAPIHelper.java:27)
at com.ooyala.android.PlayerAPIClient.authorizeEmbedCodes(PlayerAPIClient.java:290)
at com.ooyala.android.PlayerAPIClient.authorizeEmbedCodes(PlayerAPIClient.java:253)
at com.ooyala.android.SubTaskAuthorization.call(SubTaskAuthorization.java:17)
at com.ooyala.android.SubTaskAuthorization.call(SubTaskAuthorization.java:10)
at java.util.concurrent.FutureTask.run(FutureTask.java:237)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
at java.lang.Thread.run(Thread.java:818)
11-25 13:14:33.579 20430-21279/yml.fs.com.learningapp I/System.out: JSONException: org.json.JSONException: End of input at character 0 of

Advisor
Posts: 25
Registered: ‎08-10-2018

Re: Android App Crashes on tapping multiple files continuously

it was working smooth on my android phone when it was running on android version 6.0.1 however as I have updated to android version 7.1.1 whenever now I am opening the app it only loads a blank screen on the start up and crashes after a while automatically. How do I fix it?

 

Advisor
Posts: 25
Registered: ‎08-10-2018

Re: Android App Crashes on tapping multiple files continuously

it was working smooth on my android phone when it was running on android version 6.0.1 however as I have updated to android version 7.1.1 whenever now I am opening the app it only loads a blank screen on the start up and crashes after a while automatically. How do I fix it?