Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: AudioInputBuffer ArrayIndexOutOfBounds #96

Open
ewjmulder opened this issue Oct 18, 2018 · 0 comments
Open

Bug: AudioInputBuffer ArrayIndexOutOfBounds #96

ewjmulder opened this issue Oct 18, 2018 · 0 comments

Comments

@ewjmulder
Copy link
Owner

Context: playing 6 streams simultaniously

2018-10-18 19:36:14 [pool-1-thread-96] LogUtil.logExceptions() - ERROR: Exception during asynchronous task: java.lang.ArrayIndexOutOfBoundsException
	at com.programyourhome.immerse.audiostreaming.mixer.scenario.AudioInputBuffer.align(AudioInputBuffer.java:201)
	at com.programyourhome.immerse.audiostreaming.mixer.scenario.AudioInputBuffer.fill(AudioInputBuffer.java:139)
	at com.programyourhome.immerse.audiostreaming.mixer.step.MixerStep.lambda$readBytes$3(MixerStep.java:230)
	at com.programyourhome.immerse.audiostreaming.util.LogUtil.logExceptions(LogUtil.java:12)
	at com.programyourhome.immerse.audiostreaming.util.AsyncUtil.lambda$submitAsyncTask$0(AsyncUtil.java:18)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
	at java.lang.Thread.run(Thread.java:748)
2018-10-18 19:36:14 [Main Mixer Worker] ImmerseMixer.run() - WARNING: Risk for hickups in playback: actual step millis 6.101943 was bigger than the step pace millis 5.
2018-10-18 19:36:14 [Main Mixer Worker] LogUtil.logExceptions() - ERROR: Exception during asynchronous task: java.lang.ArrayIndexOutOfBoundsException
	at com.programyourhome.immerse.audiostreaming.mixer.scenario.AudioInputBuffer.align(AudioInputBuffer.java:201)
	at com.programyourhome.immerse.audiostreaming.mixer.scenario.AudioInputBuffer.canRead(AudioInputBuffer.java:90)
	at com.programyourhome.immerse.audiostreaming.mixer.step.MixerStep.readBytes(MixerStep.java:225)
	at com.programyourhome.immerse.audiostreaming.mixer.step.MixerStep.readSamples(MixerStep.java:198)
	at one.util.streamex.StreamEx.lambda$mapToEntry$4(StreamEx.java:178)
	at java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:193)
	at java.util.HashMap$KeySpliterator.forEachRemaining(HashMap.java:1553)
	at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:481)
	at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:471)
	at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:545)
	at java.util.stream.AbstractPipeline.evaluateToArrayNode(AbstractPipeline.java:260)
	at java.util.stream.ReferencePipeline.toArray(ReferencePipeline.java:438)
	at one.util.streamex.AbstractStreamEx.toArray(AbstractStreamEx.java:344)
	at one.util.streamex.AbstractStreamEx.toList(AbstractStreamEx.java:1154)
	at com.programyourhome.immerse.audiostreaming.mixer.step.MixerStep.calculateScenarioResults(MixerStep.java:183)
	at com.programyourhome.immerse.audiostreaming.mixer.step.MixerStep.createAudioBuffers(MixerStep.java:156)
	at com.programyourhome.immerse.audiostreaming.mixer.step.MixerStep.calculateBufferData(MixerStep.java:133)
	at com.programyourhome.immerse.audiostreaming.mixer.ImmerseMixer.updateBuffers(ImmerseMixer.java:378)
	at com.programyourhome.immerse.audiostreaming.mixer.ImmerseMixer.run(ImmerseMixer.java:303)
	at com.programyourhome.immerse.audiostreaming.util.LogUtil.logExceptions(LogUtil.java:12)
	at com.programyourhome.immerse.audiostreaming.mixer.ImmerseMixer.lambda$new$0(ImmerseMixer.java:104)
	at java.lang.Thread.run(Thread.java:748)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant