z24 / tty2gif

record your scripts into a gif
157 stars 11 forks source link

Rendering GIFs on Ubuntu on terminator or gnome-terminal crashes (core dumped) or produces empty gif , xterm works #4

Open CristianCantoro opened 9 years ago

CristianCantoro commented 9 years ago

Downloaded tty2gif and compiled it with no errors.

This is what I obtain if I launch the following command:

./tty2gif test test.gif

When I type exit in the sub-terminal I get (weird formatting included):

tty2gif: unable to read X window image `0x4000005': Resource temporarily unavailable @ error/xwindow.c/XImportImage/5000.                                                                                                                      
                                                                                                                         terminate called after throwing an instance of 'Magick::WarningImage'
                                                                                                                                                                                                what():  tty2gif: No image was loaded.
                                                                                                                                                                                                                                      [1]    12512 abort (core dumped)  ./tty2gif test test.gif
                                                %    

I can reproduce this behaviour with the terminator terminal and gnome-terminal it seems that I get it when the terminal window is fullscreen. When the window is not fullscreen I get no errors but I get a 1px times 1px gif. With xterm everything works nicely.

Furthermore if I do not produce the gif I do not get any error (e.g. running just ./tty2gif test2) and then I can use xterm to produce the gif using the previous recording.

dmitry-saritasa commented 8 years ago

Confirmed the same issue on Fedora 23. Compiled but core dump inside terminal. Works in xterm

agauniyal commented 8 years ago

Same here!

tty2gif: unable to read X window image `0x1400007': Resource temporarily unavailable @ error/xwindow.c/XImportImage/4983.
 terminate called after throwing an instance of 'Magick::WarningImage'
                                                                        what():  tty2gif: No image was loaded.
                                                                                                              Aborted (core dumped)
laoshaw commented 8 years ago

Same here. Can't use it other than in xterm

probonopd commented 7 years ago

Same here