google-code-export / earth-api-samples

Automatically exported from code.google.com/p/earth-api-samples
1 stars 1 forks source link

GEPlugin hard crash in 1.009 relating to initial visibility #694

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
IMPORTANT:  Before filing a new bug report, check the existing bugs i

What steps will reproduce the problem?

Unfortunately it involves a network link refresh. Through the process of 
elimination, I've narrowed the issue down having to do with Visibility.

2 KML examples are included below, the first causes a hard crash in GE Plugin, 
the second does not. The only difference is the Visibility setting for the 
Placemark.

What is the expected output or behavior? What do you see instead?

For GE plugins 1.006, 1.007, and 1.008 I see no crash, and our C# + GE Plugin 
app continues. 

For the latest GE Plugin 1.009, I see a hard crash in GE Plugin.

Which plugin version are you using?

Version 6.1.0.5001 1.009

Which browsers and operating systems are affected?

Testing on Win7 x64 and IE9

Please provide any additional information (code snippets/links) below.

Crash.kml
<?xml version="1.0" encoding="utf-8"?>
<kml xmlns="http://earth.google.com/kml/2.2">
  <NetworkLinkControl>
    <Update>
      <targetHref>http://localhost:9142/overlays_linkSession_0.kml</targetHref>
      <Create>
        <Document targetId="OverlayFolder">
          <Folder id="_0">
            <name>Polyline</name>
            <visibility>1</visibility>
            <description><![CDATA[Polyline]]></description>
            <Placemark id="_6">
              <name>Polyline</name>
              <visibility>0</visibility>
              <description>
              </description>
              <MultiGeometry id="_5">
              </MultiGeometry>
            </Placemark>
          </Folder>
        </Document>
      </Create>
    </Update>
  </NetworkLinkControl>
</kml>

NoCrash.kml
<?xml version="1.0" encoding="utf-8"?>
<kml xmlns="http://earth.google.com/kml/2.2">
  <NetworkLinkControl>
    <Update>
      <targetHref>http://localhost:9142/overlays_linkSession_0.kml</targetHref>
      <Create>
        <Document targetId="OverlayFolder">
          <Folder id="_0">
            <name>Polyline</name>
            <visibility>1</visibility>
            <description><![CDATA[Polyline]]></description>
            <Placemark id="_6">
              <name>Name</name>
              <visibility>1</visibility>
              <description>
              </description>
              <MultiGeometry id="_5">
              </MultiGeometry>
            </Placemark>
          </Folder>
        </Document>
      </Create>
    </Update>
  </NetworkLinkControl>
</kml>

Visual Studio output and stack trace

The thread 'Win32 Thread' (0x3d48) has exited with code 0 (0x0).
First-chance exception at 0x4c6c656e in geplugin.exe: 0xC0000005: Access 
violation.
Unhandled exception at 0x4c6c656e in geplugin.exe: 0xC0000005: Access violation.

    4c6c656e()  
    googleearth_free.dll!015298e0()     
    [Frames below may be incorrect and/or missing, no symbols loaded for googleearth_free.dll]  
>   googleearth_free.dll!0172ab40()     
    googleearth_free.dll!0172a1a4()     
    googleearth_free.dll!019f6181()     
    googleearth_free.dll!019f95da()     
    googleearth_free.dll!01486130()     
    googleearth_free.dll!0272b4f5()     
    googleearth_free.dll!019a9d7e()     
    googleearth_free.dll!01738163()     
    googleearth_free.dll!01738370()     
    googleearth_free.dll!01a3e0d9()     
    googleearth_free.dll!02147031()     
    googleearth_free.dll!0214a6f3()     
    googleearth_free.dll!01a99e80()     
    user32.dll!75b96381()   
    user32.dll!75b90751()   
    user32.dll!75b8788a()   
    googleearth_free.dll!01a9b62a()     
    nvd3dum.dll!6a599464()  
    nvd3dum.dll!6a599e9d()  
    nvd3dum.dll!6a59a27d()  
    nvd3dum.dll!6a48eb53()  
    nvd3dum.dll!6a59b0bb()  
    nvd3dum.dll!6a491bae()  
    nvd3dum.dll!6a48bc79()  
    nvd3dum.dll!6a48f58a()  
    nvd3dum.dll!6a48f5b4()  
    nvd3dum.dll!6a59b153()  
    nvd3dum.dll!6a491c7c()  
    nvd3dum.dll!6a48b91d()  
    msvcr100.dll!5260068a()     
    msvcr100.dll!5260068a()     
    msvcr100.dll!526006c2()     
    nvd3dum.dll!6a4b04ab()  
    nvd3dum.dll!6a4b1254()  
    nvd3dum.dll!6a79e16f()  
    nvd3dum.dll!6a48bdab()  
    nvd3dum.dll!6a4afbd1()  
    nvd3dum.dll!6a48dc06()  
    nvd3dum.dll!6a48d6bf()  
    nvd3dum.dll!6a48a8f0()  
    nvd3dum.dll!6a48acba()  
    nvd3dum.dll!6a48ae2a()  
    nvd3dum.dll!6a569022()  
    nvd3dum.dll!6a4463db()  
    nvd3dum.dll!6a5f4a6b()  
    nvd3dum.dll!6a60b55a()  
    user32.dll!75b87634()   
    user32.dll!75b8767f()   
    nView.dll!10041e05()    
    nvd3dum.dll!6a59b121()  
    nvd3dum.dll!6a491e5b()  
    ntdll.dll!77e1fe92()    
    KernelBase.dll!76eee266()   
    kernel32.dll!75d0b420()     
    ntdll.dll!77e1fe92()    
    KernelBase.dll!76eee266()   
    kernel32.dll!75cffc64()     
    ntdll.dll!77e1fe92()    
    KernelBase.dll!76eee266()   
    googleearth_free.dll!01a42fb2()     
    ntdll.dll!77e1fada()    
    KernelBase.dll!76ee7495()   
    ntdll.dll!77e1fb2a()    
    KernelBase.dll!76ee74f0()   
    googleearth_free.dll!01aa61dd()     
    googleearth_free.dll!01a6547b()     
    googleearth_free.dll!01431d0e()     
    geplugin.exe!013e12e6()     
    msvcr100.dll!5260068a()     
    geplugin.exe!013e296b()     

Original issue reported on code.google.com by oddt...@gmail.com on 1 Nov 2011 at 6:49

GoogleCodeExporter commented 9 years ago
Thanks for filing this. Can you provide the referenced 
overlays_linkSession_0.kml file?

Original comment by bcke...@google.com on 2 Nov 2011 at 12:13

GoogleCodeExporter commented 9 years ago
http://localhost:9142/overlays_linkSession_0.kml

<kml xmlns="http://earth.google.com/kml/2.2">
 <Document id="OverlayFolder">
   <name>OverlayFolder</name>
   <NetworkLink id="UpdateLink">
      <name>Update Link</name>
         <Link>
            <href>http://localhost:9142/updateOverlays_linkSession_0.kml</href>
            <refreshMode>onInterval</refreshMode>
            <refreshInterval>0.1</refreshInterval>
         </Link>
   </NetworkLink>   
 </Document>
</kml>

Original comment by oddt...@gmail.com on 2 Nov 2011 at 1:10