bevacqua / shots

:gun: pull down the entire Internet into a single animated gif.
https://ponyfoo.com
MIT License
728 stars 15 forks source link

add troubleshooting of cairo errors #1

Closed jimthedev closed 8 years ago

jimthedev commented 8 years ago

Cairo is required by canvas. If your *nix build doesn't have it, you should install it.

This adds a troubleshooting section with the error and the solution for OSX.

bevacqua commented 8 years ago

I'd rather not include a long section in troubleshooting common errors that stem from dependencies. Maybe a reference link would do?

millette commented 8 years ago

On Debian Jessie (GNU/Linux), I had to install the following to build shots:

millette commented 8 years ago

Well, it built, it runs, grabs the versions from archive.org (in pages/) but screenshots/ ends up empty and so are the generated .gif and png images.

bevacqua commented 8 years ago

It takes a while for the screenshots to be taken. Use -v in the CLI or DEBUG=shots node app to print diagnostic info

millette commented 8 years ago

Looking at the code, I'm not sure where the .png images are supposed to come from. Just running waybackpack generates html files, but no html.png files. So maybe my problem is with that dependency. Sorry for all the noise.

jimthedev commented 8 years ago

@bevacqua I have having the same problem. I never get screenshots. The process exits right away and I get the following when using DEBUG=shots:

$ DEBUG=shots node shot.js
  shots pmkdirp(pages) +0ms
  shots pmkdirp(screenshots) +2ms
  shots pmkdirp(diffs) +2ms
  shots pmkdirp(output) +0ms
  shots rglob('resources/shots/pages/*.html') +6ms
  shots rglob('resources/shots/pages/*.html') +2ms
  shots rglob('resources/shots/screenshots/*.html.png') +0ms
  shots shot chunk(sources) and filter, len=0 +1ms
  shots shot chunk reducer, len=0 +1ms
  shots rglob('resources/shots/screenshots/*.html.png') +0ms
  shots sortBySize(sortByDomains(domainSlugs, screenshotFiles)) +1ms
  shots diff chunk(comparisions, concurrency), len=0 +0ms
  shots diff chunk reducer, len=0 +0ms
  shots rglob('resources/shots/screenshots/*.html.png'), ignore=0 +0ms
  shots found 0/0 relevant screenshots (0 ignored) +1ms
  shots creating 1024x768 spritesheet +0ms
  shots creating 1024x768 gif +397ms
  shots done. +2ms
bevacqua commented 8 years ago

What does shot.js contain? Please create a separate issue.

jimthedev commented 8 years ago

@bevacqua Good idea. Created #3 to dig more into this.