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.

.play() throws error - Cannot read property 'length' of undefined - RingBuffer.push()

See original GitHub issue

/** [p5.sound] Version: 0.3.12 - 2020-01-06 */

A new problem arose yesterday or the day before. I’ve been using the same code for a couple of weeks with no problems.

If you call .play() after .loadSound(), the following error/stack is thrown:

730ccbef-3078-419b-80e3-0b3b03baca05:75 Uncaught TypeError: Cannot read property 'length' of undefined at RingBuffer.push (730ccbef-3078-419b-80e3-0b3b03baca05:75) at AudioWorkletProcessor.process (730ccbef-3078-419b-80e3-0b3b03baca05:170) push @ 730ccbef-3078-419b-80e3-0b3b03baca05:75 process @ 730ccbef-3078-419b-80e3-0b3b03baca05:170

This can be observed on the official p5js.org website here: https://p5js.org/reference/#/p5.EQ Click on the ‘lows’ button to throw the error

I’ve tested this on multiple browsers with the same error. Currently I’m testing on Chrome (Version 84.0.4147.105 (Official Build) (64-bit)).

I’ve never submitted before, so I don’t know if I’m reporting this properly, or if this is already known/tracked.

Issue Analytics

  • State:open
  • Created 3 years ago
  • Reactions:3
  • Comments:26 (4 by maintainers)

github_iconTop GitHub Comments

13reactions
casperleerinkcommented, Apr 1, 2021

I’m still having this issue, as well as cracking sounds in version 1.3.1 as well! Hope for a fix soon!

I dont know why this issue is closed because it is not fixed.

12reactions
paraclete-pizzacommented, Apr 26, 2021

This issue should not be closed, as the issue still occurs.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Cannot read properties of undefined (reading 'length') - TrackJS
This message indicates that our code expects to have an object with a length property, but that object was not present.
Read more >
Error when playing SoundFile - Libraries
As soon as I call audioStream.play() I get the following error: Uncaught TypeError: Cannot read property 'length' of undefined at RingBuffer.push ...
Read more >
Cannot read property 'length' of undefined - Error in JavaScript
In my console.log(dataText) each string in my array is executed correctly. The error comes at the moment the loop is executed. This is...
Read more >
Tweets with replies by Daniel Massey (@pichiste) / Twitter
This prototype introduces four major features that push SoftspaceAR from fun toy ... .play() throws error - Cannot read property 'length' of undefined...
Read more >
Task processing fails with error Cannot read property length
DrDD H265 MKV AC3 audio subtitles [QSV & NVENC]☒Plugin error! TypeError: Cannot read property 'length' of undefined.
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