[RESOLVED] Crash in PANELS.DLL when using an XML <Texture> element with "Mipmap VC Panels" disabled

Locked
adiemus
Posts: 120
Joined: Fri Mar 16, 2012 4:19 am
Contact:

[RESOLVED] Crash in PANELS.DLL when using an XML <Texture> element with "Mipmap VC Panels" disabled

Post by adiemus »

XML <Texture> elements seem to cause P3D to crash (0xc0000005) if "Mipmap VC Panels" is UNchecked.

We've had this issue since P3D 2.0 all the way through the latest 3.2 release. Only today have we finally sat down and succeeded reproducing it on a stock P3D 3.2 install with a stock P3D 3.2 aircraft that's only lightly modified. (All this time, we assumed it was due to something exotic we were doing in our products, so we'd not reported it)

To reproduce, simply expand the contents of the cab file:

Code: Select all

<P3D>\gauges\Mooney_Acclaim.cab
into the directory:

Code: Select all

<P3D>\gauges\Mooney_Acclaim\
so you can easily edit the XML.

Edit the file:

Code: Select all

<P3D>\gauges\Mooney_Acclaim\g1000_pfd.xml
such that you remove (or comment out) the <CustomDraw> element starting at line 5160, replacing it with the line:

Code: Select all

<Texture id="TestTex" Name="VRSTP_FLIR_VIDEO_TEXTURE" Width="196" Height="166"/>
In context, that looks like:

Code: Select all

    ...
    <Element id="fs9gps:map>
        <FloatPosition>1.000,1.000</FloatPosition>
        <Texture id="TestTex" Name="VRSTP_FLIR_VIDEO_TEXTURE" Width="196" Height="166"/>
    </Element>
    <Element id="Airplane icon">
    ...
If you load the modified Mooney Acclaim with "Mipmap VC Panels" enabled, it'll load normally, and the inset map on the PFD will be solid gray, since it's referencing a texture that doesn't exist. This is as expected.

However, if you UNcheck "Mipmap VC Panels", then quit and reload P3D, and again select the Mooney Acclaim, you'll now get a crash during initial load, in panels.dll around offset 0x00082198. (NOTE: The bug occurs whether or not the referenced texture exists)
User avatar
Beau Hollis
Lockheed Martin
Posts: 2270
Joined: Wed Oct 06, 2010 3:25 pm

Re: Crash in PANELS.DLL when using an XML <Texture> element with "Mipmap VC Panels" disabled

Post by Beau Hollis »

Thank you for posting. I've made a ticket to investigate.
Beau Hollis
Prepar3D Software Architect
adiemus
Posts: 120
Joined: Fri Mar 16, 2012 4:19 am
Contact:

Re: Crash in PANELS.DLL when using an XML <Texture> element with "Mipmap VC Panels" disabled

Post by adiemus »

Much appreciated. If there's any further info I can provide, please let me know.
Kevin Cartrette
Lockheed Martin
Posts: 885
Joined: Tue Aug 14, 2012 6:47 pm

Re: Crash in PANELS.DLL when using an XML <Texture> element with "Mipmap VC Panels" disabled

Post by Kevin Cartrette »

Hey,

Thank you for reporting this issue, it should be resolved in the next release.

Thanks,
-Kevin.
Prepar3D Graphics Software Engineer
adiemus
Posts: 120
Joined: Fri Mar 16, 2012 4:19 am
Contact:

Re: Crash in PANELS.DLL when using an XML <Texture> element with "Mipmap VC Panels" disabled

Post by adiemus »

Glad to hear it. Look forward to testing the next release.
Locked