<html>
    <head>
      <base href="https://bugs.freedesktop.org/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Priority</th>
          <td>medium
          </td>
        </tr>

        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - [bug] Multihead+output transform+record corrupts and locks-up Weston-drm"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=56697">56697</a>
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>wayland-bugs@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>[bug] Multihead+output transform+record corrupts and locks-up Weston-drm
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>major
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>ullysses.a.eoff@intel.com
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>Other
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>unspecified
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>weston
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>Wayland
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=69461" name="attach_69461" title="weston configuration file">attachment 69461</a> <a href="attachment.cgi?id=69461&action=edit" title="weston configuration file">[details]</a></span>
weston configuration file

Recording on multihead display configuration with weston-drm is unstable and
unpredictable...

On my sandybridge ultrabook with an LVDS+VGA multihead setup I have the LVDS
transform set to 90 degrees and VGA at default settings.  When running
Weston-drm in this configuration, an attempt to record via <Super>+r more than
once in the same Weston-drm session causes Weston to lock-up or crash.  Also,
during the first recording instance, moving the mouse over the
weston-desktop-shell toolbar on the VGA output results in garbled/corrupted
rendering.

See attachments.

Steps
------
Using the attached weston.ini configuration file and a LVDS+VGA display
setup...
1. Launch weston-drm: weston --backend=drm-backend.so
2. Start recording with <Super>+r
3. Move mouse over the desktop toolbar on the VGA display.
   Issue: toolbar rendering becomes garbled/corrupted
4. Stop recording with <Super>+r
   Issue: weston logs "stopping recorder, total file size 1M, 0 frames"
   Issue: desktop rendering on VGA remains corrupted in some cases.
5. Start recording with <Super>+r
   Issue: weston will either crash at this point or lock-up

Software stack
--------------
cairo [image] (master) 1f4d05b55c96347aa4240190fda27f951b00c539
dri2proto (master) 4eeacce4c4a300b938b7e3fb78a8e443c491780b
drm (master) e32fff8e9ea8d522679eaab21a9555cab134fb36
glproto (master) ec1eec4355ee4a6c5134f2178192f10b6d28a87a
kbproto (master) 391a1f6de6315fc0196d407d800597488315cccb
libX11 (master) f2a8def423a46d52e834cf7ea49fa0079427663a
libxkbcommon (master) 998c957a3c7c861093f3f71f34989c258ed3073b
macros (master) 0890e4003aacfa7113ab3f4e3ad7c5636f8e922a
mesa (master) ebf0a96250050e1ed842598c7b2b3897c7f829b3
pixman (master) 4b91f6ca72db3e8cbd7e97e9ef44be2f8994040d
wayland (master) c4857e92321e85afe40fb66902cdddc14fbae05a
weston (master) 7109cc8b063fa32000810206b1f36f57d4d0c43b</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>