<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style>
</head>
<body lang="EN-US" link="blue" vlink="#954F72" style="word-wrap:break-word">
<div class="WordSection1">
<p class="MsoNormal">Hello all,</p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I am trying to track down a  bug I’ve either created or revealed.</p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I’ve implemented a patch to Weston-9 to allow me to rotate my display.</p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">It mostly works.  Occasionally it fails and crashes because the new screen size (<b>1315</b>) requested is too large.</p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Does anyone know where would I find the functions below, like
<a href="mailto:wl_shm_pool@21.create_buffer">wl_shm_pool@21.create_buffer</a>?</p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I’ve searched through the git folder of weston.  I’ve been able to find weston_desktop_xdg_surface_protocol_set_window_geometry, but when I try a simple printf, I never get it in stdout.</p>
<p class="MsoNormal">But, I can put a wl_resource_post_error in the same place and it definitely crashes.  How would I add a log statement and actually get it?</p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I’ve set WAYLAND_DEBUG to 1 and I believe below is the protocol log.</p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">[2077634.996] wl_callback@21.done(156952735)</p>
<p class="MsoNormal">[2077645.484]  -> wl_shm@9.create_pool(new id wl_shm_pool@21, fd 10, 10099200)</p>
<p class="MsoNormal">[2077645.654]  -> <b>wl_shm_pool@21.create_buffer</b>(new id wl_buffer@15, 0, 1920,
<b>1315</b>, 7680, 0)</p>
<p class="MsoNormal">[2077673.186]  -> wl_surface@27.attach(wl_buffer@15, 0, 0)</p>
<p class="MsoNormal">[2077673.303]  -> wl_surface@27.set_buffer_scale(1)</p>
<p class="MsoNormal">[2077673.320]  -> wl_surface@27.damage(0, 0, 1920, <b>1315</b>)</p>
<p class="MsoNormal">[2077673.350]  -> xdg_toplevel@31.set_min_size(686, <b>1315</b>)</p>
<p class="MsoNormal">[2077673.369]  -> xdg_toplevel@31.set_max_size(0, 0)</p>
<p class="MsoNormal">[2077673.388]  -> xdg_surface@29.set_window_geometry(0, 0, 1920,
<b>1315</b>)</p>
<p class="MsoNormal">[2077673.419]  -> wl_compositor@4.create_region(new id wl_region@23)</p>
<p class="MsoNormal">[2077673.437]  -> wl_region@23.add(0, 0, 1920, <b>1315</b>)</p>
<p class="MsoNormal">[2077673.465]  -> wl_surface@27.set_opaque_region(wl_region@23)</p>
<p class="MsoNormal">[2077673.479]  -> wl_region@23.destroy()</p>
<p class="MsoNormal">[2077673.492]  -> wl_compositor@4.create_region(new id wl_region@20)</p>
<p class="MsoNormal">[2077673.509]  -> wl_region@20.add(-10, -10, 1940, 1335)</p>
<p class="MsoNormal">[2077673.537]  -> wl_surface@27.set_input_region(wl_region@20)</p>
<p class="MsoNormal">[2077673.551]  -> wl_region@20.destroy()</p>
<p class="MsoNormal">[2077673.611]  -> wl_surface@27.frame(new id wl_callback@30)</p>
<p class="MsoNormal">[2077673.659]  -> wl_surface@27.commit()</p>
<p class="MsoNormal">[2077678.019] wl_display@1.delete_id(26)</p>
<p class="MsoNormal">[2077678.091] wl_display@1.delete_id(3)</p>
<p class="MsoNormal">[2077678.107] wl_display@1.delete_id(23)</p>
<p class="MsoNormal">[2077678.121] wl_display@1.delete_id(20)</p>
<p class="MsoNormal">[2077678.134] wl_display@1.error(xdg_wm_base@18, 4, "xdg_surface buffer (1920 x
<b>1315</b>) is larger than the configured fullscreen state (1920 x 1088)")</p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Any help would be appreciated.</p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">-dwd</p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">                                                                        
<b><span style="color:red">David Deyo</span><o:p></o:p></b></p>
<table class="MsoNormalTable" border="0" cellspacing="0" cellpadding="0" style="margin-left:.15in;border-collapse:collapse">
<tbody>
<tr>
<td width="150" valign="top" style="width:112.5pt;padding:0in 5.4pt 0in 5.4pt">
<p class="MsoNormal"><img border="0" width="170" height="82" style="width:1.7708in;height:.8541in" id="Picture_x0020_3" src="cid:image002.png@01D7A576.4F841860"><span style="font-size:1.0pt;font-family:"Times New Roman",serif"><o:p></o:p></span></p>
</td>
<td width="474" valign="top" style="width:355.5pt;padding:0in 5.4pt 0in 5.4pt">
<p class="MsoNormal"><span style="font-size:1.0pt;font-family:"Times New Roman",serif"> </span><b><span style="font-size:9.0pt;font-family:"Arial",sans-serif;color:#F52D00;text-transform:uppercase"><o:p></o:p></span></b></p>
<p class="MsoNormal" style="line-height:10.5pt"><b><span style="font-size:9.0pt;font-family:"Arial",sans-serif;color:#121145">Firmware Engineer
<o:p></o:p></span></b></p>
<p class="MsoNormal" style="line-height:10.5pt"><b><span style="font-size:9.0pt;font-family:"Arial",sans-serif;color:#F52D00;text-transform:uppercase">TPI- Tire Profiles<o:p></o:p></span></b></p>
<p class="MsoNormal" style="line-height:10.5pt"><b><span style="font-size:9.0pt;font-family:"Arial",sans-serif;color:#F52D00">O:
</span></b><span style="font-size:9.0pt;font-family:"Arial",sans-serif">214-396-3063<o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:10.5pt"><b><span style="font-size:9.0pt;font-family:"Arial",sans-serif;color:#F52D00">E:</span></b><span style="font-size:9.0pt;font-family:"Arial",sans-serif;color:#121145">  
</span><span style="font-size:9.0pt;font-family:"Arial",sans-serif"><a href="mailto:ddeyo@tireprofiles.com">ddeyo@tireprofiles.com</a></span><span style="font-size:9.0pt;color:#121145">
</span><b><span style="font-size:9.0pt;font-family:"Arial",sans-serif;color:#F52D00">| W:
</span></b><span style="font-size:9.0pt;font-family:"Arial",sans-serif;color:#121145"> </span><a href="http://www.tireprofiles.com/" target="_blank"><span style="font-size:9.0pt;font-family:"Arial",sans-serif;color:#0563C1">www.tireprofiles.com</span></a><span style="font-size:9.0pt"><o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:10.5pt"><b><span style="font-size:9.0pt;font-family:"Arial",sans-serif;color:#F52D00">A:</span></b><span style="font-size:9.0pt;font-family:"Arial",sans-serif;color:#121145"> 3010 Story Rd W, Irving, TX 75038</span><o:p></o:p></p>
</td>
</tr>
</tbody>
</table>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</body>
</html>