Console error when calling capturer.stop()
See original GitHub issueHi, 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.
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:
- Created 6 years ago
- Comments:7 (4 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Had the same problem, but using the files in the
src/
folder solved it… maybe you need to rebuild everything.Possibly fixed with https://github.com/spite/ccapture.js/commit/a6cafcc8371055cb0344c06999cb588063003037