Bug 75442 - weston-launch screws up console printouts
Summary: weston-launch screws up console printouts
Status: RESOLVED NOTABUG
Alias: None
Product: Wayland
Classification: Unclassified
Component: weston (show other bugs)
Version: unspecified
Hardware: All All
: medium minor
Assignee: Wayland bug list
QA Contact:
URL:
Whiteboard:
Keywords:
: 81311 (view as bug list)
Depends on:
Blocks:
 
Reported: 2014-02-24 12:56 UTC by Pekka Paalanen
Modified: 2014-07-23 12:35 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments

Description Pekka Paalanen 2014-02-24 12:56:21 UTC
The easiest way to see the problem is to do on a VT:
$ weston-launch -- --help

I would expect that to print Weston's help text, but it seems to print one line of garbage in the middle of my bash prompt.

If I redirect stdout and stderr to a file, the file gets the correct printouts.

I assume weston-launch is changing the console modes such that printing gets scrambled. I wonder if this is even fixable. It also prevents seeing weston backtraces on the console if weston crashes.

Tested with the latest git revision.
Comment 1 Pekka Paalanen 2014-02-24 13:59:41 UTC
Thanks to mceier, a new hint:

$ clear; weston-launch -- --help

works just fine fine, although it does not print enough lines to trigger scrolling. So it's something about scrolling broken?
Comment 2 Kristian Høgsberg 2014-04-03 17:20:37 UTC
Once we switch the VT to KD_GRAPHICS mode, the console stops working.  X has the same problem if you start it with the -keeptty option.  To keep logs pipe stderr to a file.
Comment 3 Pekka Paalanen 2014-07-23 12:35:14 UTC
*** Bug 81311 has been marked as a duplicate of this bug. ***


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.