<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=utf-8">
<meta name=Generator content="Microsoft Word 12 (filtered medium)">
<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:"MS Mincho";
        panose-1:2 2 6 9 4 2 5 8 3 4;}
@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;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:"\@MS Mincho";}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.E-MailFormatvorlage17
        {mso-style-type:personal-reply;
        font-family:"Calibri","serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.Section1
        {page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
 <o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
 <o:shapelayout v:ext="edit">
  <o:idmap v:ext="edit" data="1" />
 </o:shapelayout></xml><![endif]-->
</head>

<body lang=EN-US link=blue vlink=purple>

<div class=Section1>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","serif"'>Is
the shader backend recreated properly after the reset?<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","serif"'><o:p>&nbsp;</o:p></span></p>

<div style='border:none;border-left:solid blue 1.5pt;padding:0in 0in 0in 4.0pt'>

<div>

<div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in'>

<p class=MsoNormal><b><span lang=DE style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span
lang=DE style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>
wine-devel-bounces@winehq.org [mailto:wine-devel-bounces@winehq.org] <b>On
Behalf Of </b>Andrew Fenn<br>
<b>Sent:</b> Sunday, July 20, 2008 11:11 PM<br>
<b>To:</b> H. Verbeet<br>
<b>Cc:</b> wine-devel@winehq.org<br>
<b>Subject:</b> Re: one liner patch to stop crash, everquest2.exe<o:p></o:p></span></p>

</div>

</div>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<div>

<p class=MsoNormal style='margin-bottom:12.0pt'>I think that both calls are
coming from d3d9:IDirect3DDevice9Impl_Reset<br>
<br>
I put some FIXME's in the code and it passes the same function. In the log
below you can see where the crash is happening.<br>
<br>
fixme:d3d9:IDirect3DDevice9Impl_Reset RESET DEVICE<br>
fixme:d3d_shader:shader_glsl_free FREE SHADER<br>
fixme:d3d9:IDirect3DDevice9Impl_Reset RESET DEVICE<br>
fixme:d3d_shader:shader_glsl_free FREE SHADER<br>
wine: Unhandled page fault on read access to 0x00000008 at address 0x7e44ab4c
(thread 0009), starting debugger...<br>
<br>
<br>
Does this mean that the problem resides somewhere in IDirect3DDevice9Impl_Reset
?<o:p></o:p></p>

<div>

<p class=MsoNormal>On Thu, Jul 17, 2008 at 10:44 PM, H. Verbeet &lt;<a
href="mailto:hverbeet@gmail.com">hverbeet@gmail.com</a>&gt; wrote:<o:p></o:p></p>

<div>

<p class=MsoNormal>2008/7/17 Andrew Fenn &lt;<a
href="mailto:andrewfenn@gmail.com">andrewfenn@gmail.com</a>&gt;:<o:p></o:p></p>

</div>

<div>

<p class=MsoNormal>&gt; Here's what I got from the debug log.<br>
&gt;<br>
&gt; Backtrace:<br>
&gt; =&gt;1 0x7e43e9b3 shader_glsl_free+0x23(iface=0x19c4b8)<br>
&gt; [/home/andrew/wine/wine/dlls/wined3d/glsl_shader.c:3491] in wined3d<br>
&gt; (0x0032e918)<br>
&gt; &nbsp; 2 0x7e41f318 IWineD3DDeviceImpl_Reset+0x198(iface=0x19c4b8,<br>
&gt; pPresentationParameters=0x32e9c0)<br>
&gt; [/home/andrew/wine/wine/dlls/wined3d/device.c:7237] in wined3d
(0x0032e998)<br>
&gt; &nbsp; 3 0x7e4f33ce IDirect3DDevice9Impl_Reset+0x1ae(iface=&lt;register
EDI not in<br>
&gt; topmost frame&gt;, pPresentationParameters=0x1b9f848)<br>
&gt; [/home/andrew/wine/wine/dlls/d3d9/device.c:381] in d3d9 (0x0032ea08)<br>
&gt; &nbsp; 4 0x008d31a1 in everquest2 (+0x4d31a1) (0x0032ea3c)<br>
&gt; 0x7e43e9b3 shader_glsl_free+0x23<br>
&gt; [/home/andrew/wine/wine/dlls/wined3d/glsl_shader.c:3491] in wined3d: movl<br>
&gt; 0x8(%esi),%eax<br>
&gt; 3491 &nbsp; &nbsp; &nbsp; &nbsp;if(priv-&gt;depth_blt_glsl_program_id) {<br>
&gt;<o:p></o:p></p>

</div>

<p class=MsoNormal>That's the second one, but where does the previous call come
from?<o:p></o:p></p>

</div>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

</div>

</div>

</div>

</body>

</html>