cacaxine totally broken in terminals
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
xine-ui (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
cacaxine works fine when it opens its own window, but is totally broken if it's asked to run inside a terminal.
To reproduce, execute:
$ unset DISPLAY
$ cacaxine any_movie_file
Expected: should work in the terminal just as when it does in its own window if you don't unset the DISPLAY.
Actual: Works for about a second, then the screen contents start falling apart. Tons of string that look like ANSI escape sequences (like "38;5;8" or similar) are printed on the screen. It even might cause the terminal to resize, move or iconify itself (it accidentally emits such escape sequences).
Usually, cacaxine segfaults a bit later.
Reproducible under any terminal emulator. (Note, however, that the incorrect sequences it prints might cause gnome-terminal to segfault: https:/
Running under "script" and looking at the typescript file reveals it prints tons of "\e[\e[40m.34m" or similar sequences which is obviously incorrect. Apparently two escape sequences interleave each other. (Maybe it uses multiple threads without proper locking? Maybe xine is a multithreaded app and libcaca is not prepared for this?)
ProblemType: Bug
DistroRelease: Ubuntu 14.04
Package: xine-console 0.99.7-1
ProcVersionSign
Uname: Linux 3.13.0-24-generic x86_64
ApportVersion: 2.14.1-0ubuntu3.1
Architecture: amd64
CurrentDesktop: Unity
Date: Thu May 22 21:52:51 2014
InstallationDate: Installed on 2012-05-30 (722 days ago)
InstallationMedia: Ubuntu 12.04 LTS "Precise Pangolin" - Release amd64 (20120425)
SourcePackage: xine-ui
UpgradeStatus: Upgraded to trusty on 2014-03-25 (58 days ago)