My favorites | Sign in
Project Home Issues
New issue   Search
for
  Advanced search   Search tips   Subscriptions
Issue 6937: Bug: Regression in 3.17: Cannot read property "remove" of undefined (in Places)
3 people starred this issue and may be notified of changes. Back to list
Status:  Fixed
Owner:  [email protected]
Closed:  Aug 2014


Sign in to add a comment
 
Reported by [email protected], Jul 24, 2014
This bug provides further information on the problem reported in this tweet:
  https://twitter.com/tomwpayne/status/492404097883336704

Situation: user code that worked reliably for at least 16 months (and maybe as long as several years) breaks with 3.17, but works with 3.16. The console stack trace (in Chrome) is:

Uncaught TypeError: Cannot read property 'remove' of undefined %7Bmain,geometry,places%7D.js:formatted:2600
(anonymous function) %7Bmain,geometry,places%7D.js:formatted:2600
Ge %7Bmain,geometry,places%7D.js:formatted:553
Q.(anonymous function).bindTo %7Bmain,geometry,places%7D.js:formatted:583
(anonymous function) xcplanner:159
y xcplanner:16
Z.lc xcplanner:159
Z.setPath xcplanner:167
Fg xcplanner:190
Eg xcplanner:175
Rg xcplanner:198
(anonymous function) xcplanner:200
(anonymous function) VM236:5
(anonymous function) VM236:3
VP VM236:1
(anonymous function) VM236:3
(anonymous function) VM234:82
(anonymous function) VM234:65
(anonymous function) VM234:82
(anonymous function) VM234:85
Au.d VM234:77
(anonymous function) AuthenticationService.Authenticate?1shttp%3A%2F%2Flocalhost%3A8080%2Fxcplanner&5e1&callback=_xdc_._…:1

Possibly pertinent information:
- The user application is compiled with the Closure Compiler, the code *does* work with 3.17 in uncompiled mode, and only fails in compiled mode.
- The code is a user implementation of an editable PolyLine, and seems to be related to updating a PolyLine's path (represented as a MVCArray of LatLng objects).
- The user code uses a custom map type.

There's not much information in the changelog regarding 3.16 -> 3.17. Is there possibly an internal change, maybe related to inheritance, that could have caused this?

On my side, I'll continue to investigate this. It's entirely possible that my code was inadvertently relying on an undocumented feature. Please feel free to close this bug immediately - I can always re-open it if I become more confident that it's a regression in the Google Maps API.
Jul 24, 2014
#1 [email protected]
Can you provide a link to the page currently having this problem?
Jul 24, 2014
#2 [email protected]
Will do - have currently hardcoded &v=3.16 into the source to avoid this problem and am adding code now so that you can switch to 3.17. The page is at http://xcplanner.appspot.com/ . Will post here as soon as 3.17 version is available.

Thanks!
Aug 5, 2014
#3 [email protected]
(No comment was entered for this change.)
Status: Started
Owner: [email protected]
Labels: Internal-16671454
Aug 25, 2014
#4 [email protected]
(No comment was entered for this change.)
Status: Fixed
Aug 26, 2014
#5 [email protected]
Awesome, many thanks!
Sign in to add a comment

Powered by Google Project Hosting