tav/asciinema2gif

asciinema2gif failed to read pixel

michaelbarkdoll opened this issue · 5 comments

$ asciinema2gif -s big 104105

Dimensions: 1463.9375x1312
Preparing window ...
Generating screenshots ...
Progress: 0%
Progress: 0.3430794820830282%
Progress: 100%
Done!
Generating GIF…
gifsicle: warning: huge GIF, conserving memory (processing may take a while)
gifsicle::#434: read error: missing 1632188 pixels of image data
gifsicle:asciicast.gif:#434: read error: missing 1632188 pixels of image data
gifsicle: warning: trivial adaptive palette (only 46 colors in source)
$

I cannot reproduce. When making a bug report, please don’t just dump whatever came out of your command.

  • All the Progress lines can be removed. They’re just taking up space.
  • What is the version of your:
    • OS
    • asciinema2gif
    • imagemagick
    • gifsicle
    • npm
    • phantomjs

$ dpkg -l | grep gifsicle
ii gifsicle 1.78-1 amd64 Tool for manipulating GIF images
$ dpkg -l | grep phantomjs
ii phantomjs 1.9.0-1 amd64 minimalistic headless WebKit-based with JavaScript API
$ dpkg -l | grep imagemagick
ii imagemagick 8:6.7.7.10-6ubuntu3.6 amd64 image manipulation programs
ii imagemagick-common 8:6.7.7.10-6ubuntu3.6 all image manipulation programs -- infrastructure
$ uname -a
Linux asura 3.13.0-110-generic #157-Ubuntu SMP Mon Feb 20 11:54:05 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
$ cat /etc/issue
Ubuntu 14.04.5 LTS \n \l

Looks like version 0.5 of asciinema2gif:
~/.linuxbrew/Cellar/asciinema2gif/0.5$ cat INSTALL_RECEIPT.json
{"homebrew_version":null,"used_options":[],"unused_options":[],"built_as_bottle":true,"poured_from_bottle":true,"installed_as_dependency":false,"installed_on_request":true,"changed_files":null,"time":1490907026,"source_modified_time":1475983283,"HEAD":null,"stdlib":null,"compiler":"gcc-4.8","runtime_dependencies":null,"source":{"path":"/home/user/.linuxbrew/Library/Taps/homebrew/homebrew-core/Formula/asciinema2gif.rb","tap":"homebrew/core","spec":"stable","versions":{"stable":"0.5","devel":null,"head":"HEAD","version_scheme":0}}}

$ npm -version
1.3.10

Everything but asciinema2gif is outdated.

$ sudo apt-cache policy gifsicle
gifsicle:
Installed: 1.78-1
Candidate: 1.78-1
Version table:
*** 1.78-1 0
500 http://us.archive.ubuntu.com/ubuntu/ trusty/universe amd64 Packages
100 /var/lib/dpkg/status
$ sudo apt-cache policy phantomjs
phantomjs:
Installed: 1.9.0-1
Candidate: 1.9.0-1
Version table:
*** 1.9.0-1 0
500 http://us.archive.ubuntu.com/ubuntu/ trusty/universe amd64 Packages
100 /var/lib/dpkg/status
$ sudo apt-cache policy imagemagick
imagemagick:
Installed: 8:6.7.7.10-6ubuntu3.6
Candidate: 8:6.7.7.10-6ubuntu3.6
Version table:
*** 8:6.7.7.10-6ubuntu3.6 0
500 http://us.archive.ubuntu.com/ubuntu/ trusty-updates/main amd64 Packages
500 http://security.ubuntu.com/ubuntu/ trusty-security/main amd64 Packages
100 /var/lib/dpkg/status
8:6.7.7.10-6ubuntu3 0
500 http://us.archive.ubuntu.com/ubuntu/ trusty/main amd64 Packages
$ sudo apt-cache policy npm
npm:
Installed: 1.3.10dfsg-1
Candidate: 1.3.10
dfsg-1
Version table:
*** 1.3.10~dfsg-1 0
500 http://us.archive.ubuntu.com/ubuntu/ trusty/universe amd64 Packages
100 /var/lib/dpkg/status
$

There’s no point in showing me what the latest available packages are for your distro. It doesn’t change the fact those are all outdated by at least one major version. Point being if you’re using outdated software, it’s less likely you’ll get support.

Your own distro is three years old, LTS or not.

Also, please stop just posting the unformatted output of your shell. That’s hard to read.