jcteague / kml-samples

Automatically exported from code.google.com/p/kml-samples
0 stars 0 forks source link

"cannot modify array element" message does not describe problem #151

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago

Comments: 
Because arrays are not mentioned in the KML 2.2 definition, this error is 
probably being emitted within a programming context. The context of the object 
being manipulated should be described, so a problem with a URL, identifier, 
object, or element can be identified.

Discussion took place in this "Discussions > KML Server Side Scripting" thread. 
When test KML is loaded with a manually-created Network Link it works, but not 
when loaded with a web browser (because web browser stores KML in a file and 
gives file to Earth). Solution in this situation is to only download a Network 
Link, per TFM.

This array error message has often been seen and the descriptions being given 
by others hint it may be emitted in other situations (SEWilco has observed a 
likely race condition where an object is manually deleted while a network 
update is in progress). Future readers of this report should be aware this bug 
report may not describe their problem.

Relevant Application(s): 
Google Earth 4.2.0198.2451 (beta) in Windows XP

Steps to Reproduce: 
Load from a file a KML description with objects and a NetworkLink which causes 
an Update request to objects. The Update is unable to find the targetID because 
the KML is from a file and Earth has no URL for it. If "Show prompts for all 
errors" is enabled an error "Could not find <targetid>..." is produced, 
although the problem seems to be in the URL-verification context and not the 
deeper targetId search nor array handling.

Supporting Files: 
http://groups.google.com/group/kml-support/web/wriggletest.kml

Workarounds: 
When working with network objects only provide for download a KML which 
contains a NetworkLink. This is the procedure in the KML Reference.

Reported By: SEWilco

Original issue reported on code.google.com by api.roman.public@gmail.com on 14 Aug 2008 at 10:50