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.

Console error when calling capturer.stop()

See original GitHub issue

Hi, First I want to say thank you for your effort building this useful library! I’m using ccapture.all.min.js to record my canvas animation. Everything works fine except for the last step. When I’m calling capturer.stop(), I see an error in the browser and I believe it’s preventing me from downloading the video. Any ideas? BTW my canvas size doesn’t change at all throughout the process.

screen shot 2018-02-25 at 9 48 10 pm

Below is my code for drawing:

function draw {
  background(19,19,19, 200);
  var waveform = fft.analyze(64);
  var w = width;
  var h = height;
  noStroke();

  for (var i = 0; i <= 32; i++) {
    var x = map(i, 0, 32, w / 5, w/5 * 4);
    var y = map(waveform[i+12], 0, 255, h / 4 * 3, h/4);
    circles[i].x = x;
    circles[i].y = y;
    circles[i].show();
  }
  for (var n = 0; n <= 32; n++) {
    if (n < 32) {
      lines[n].x = circles[n].x;
      lines[n].y = circles[n].y;
      lines[n].x2 = circles[n+1].x
      lines[n].y2 = circles[n+1].y
      lines[n].show(200,200,200,100);
    }
    lines[n+32].show(100,100,100,80);
  }
  capturer.capture(document.getElementById('defaultCanvas0'));
}

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
Carlovancommented, Mar 7, 2018

Had the same problem, but using the files in the src/ folder solved it… maybe you need to rebuild everything.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to report console.error with Sentry? - Stack Overflow
At the end you JS code to setup Sentry looks as follows: import * as Sentry from '@sentry/browser'; import { CaptureConsole } from ......
Read more >
Make console.error (and warn?) log a stack trace and ... - GitHub
the package callsites does not use Error.captureStackTrace() internally, what do you think if we get rid of the dependency and call Error.
Read more >
Handling Errors in JavaScript : Detailed Guide - KnowledgeHut
Note on best practices: When logging errors to the console inside a catch block, it is advisable to use console.error() rather than ...
Read more >
console - LogRocket Docs
console.error. LogRocket's console capture can be modified with the options below. isEnabled optional - boolean. Disable this boolean to prevent logging of ...
Read more >
JavaScript Errors and Stack Traces in Depth - Lucas F. Costa
In order to better demonstrate this behavior, we will use console.trace() , which prints the current stack trace to the console. Also, you ......
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