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

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

Postby adiemus » Fri Mar 18, 2016 9:41 pm

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: 1887
Joined: Wed Oct 06, 2010 3:25 pm

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

Postby Beau Hollis » Fri Apr 01, 2016 2:40 am

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

Postby adiemus » Fri Apr 01, 2016 2:30 pm

Much appreciated. If there's any further info I can provide, please let me know.

Kevin Cartrette
Lockheed Martin
Posts: 539
Joined: Tue Aug 14, 2012 6:47 pm

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

Postby Kevin Cartrette » Mon May 02, 2016 10:13 pm

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

Postby adiemus » Mon May 02, 2016 10:29 pm

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


Return to “Software Development Kit (SDK) Questions”

Who is online

Users browsing this forum: No registered users and 7 guests