#892 ✓ staged
David Seifried

Processing plugin throwing errors in console

Reported by David Seifried | January 16th, 2012 @ 11:53 AM | in 1.2 (closed)

Currently when the processing plugin is run the following error shows up in the console:

Uncaught Error: Popcorn.Processing: options.sketch is undefined

After a bit of digging this seems to be an issue with the way the tests are setup for the Processing plugin. We are testing to see if Popcorn.plugin.debug is working as intended and in the process seem to be throwing an error. By default, Popcorn.plugin.debug is set to false, meaning that errors that are thrown are being suppressed. We initially create a dummy instance of the plugin ( while debug is still set to false ) and expect no errors to be thrown. The problem lies within the following block of code, seeing that it set's the debug flag to true immediately after, there seems to be a race condition. Take a look at the following and run the tests for yourself to see in action:

// empty track events should be safe
popped.processing({});
 
// debug should log errors on empty track events
Popcorn.plugin.debug = true;
try {
  popped.processing({});
} catch( e ) {
  ok( true, "empty event was caught by debug" );
  plus();
}

Quick fix coming soon.

Comments and changes to this ticket

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

Popcorn.js is an HTML5 video framework that lets you bring elements of the web into your videos.

Popcorn.js is a project of Web Made Movies, Mozilla's Open Video Lab.

Shared Ticket Bins

Referenced by

Pages