Devices not loading on map

socstur7 years ago

Hi Anton,
Did some searches but could't find any issue related to this. Admin account (has over 100 devices) loads map ok but does not load the devices on the map. Other accounts with less devices does not have this problem. Browser console shows errors below related to ol-debug.js

Any clue as to what could be going on?

...
ol-debug.js:27122 Uncaught TypeError: Cannot read property 'length' of undefined
    at rbush._chooseSubtree (ol-debug.js:27122)
    at rbush._insert (ol-debug.js:27145)
    at rbush.insert (ol-debug.js:27024)
    at ol.structs.RBush.insert (ol-debug.js:59600)
    at ol.structs.RBush.update (ol-debug.js:59657)
    at ol.source.Vector.handleFeatureChange_ (ol-debug.js:60478)
    at ol.Feature.boundListener (ol-debug.js:7277)
    at ol.Feature.ol.events.EventTarget.dispatchEvent (ol-debug.js:7697)
    at ol.Feature.ol.Observable.changed (ol-debug.js:7865)
    at ol.Feature.handleGeometryChanged_ (ol-debug.js:36287)
_chooseSubtree @ ol-debug.js:27122
_insert @ ol-debug.js:27145
insert @ ol-debug.js:27024
ol.structs.RBush.insert @ ol-debug.js:59600
ol.structs.RBush.update @ ol-debug.js:59657
ol.source.Vector.handleFeatureChange_ @ ol-debug.js:60478
boundListener @ ol-debug.js:7277
ol.events.EventTarget.dispatchEvent @ ol-debug.js:7697
ol.Observable.changed @ ol-debug.js:7865
ol.Feature.handleGeometryChanged_ @ ol-debug.js:36287
boundListener @ ol-debug.js:7277
ol.events.EventTarget.dispatchEvent @ ol-debug.js:7697
ol.Object.notify @ ol-debug.js:8099
ol.Object.set @ ol-debug.js:8119
ol.Feature.setGeometry @ ol-debug.js:36299
updateLatestMarker @ MapMarkerController.js:255
updateLatest @ MapMarkerController.js:205
fire @ ext-all-debug.js:20731
dispatch @ ext-all-debug.js:57952
prototype.doFireEvent @ ext-all-debug.js:58109
fireEventArgs @ ext-all-debug.js:21553
fireEvent @ ext-all-debug.js:21512
onCollectionItemChange @ ext-all-debug.js:91973
notify @ ext-all-debug.js:74624
itemChanged @ ext-all-debug.js:73472
afterChange @ ext-all-debug.js:91977
afterEdit @ ext-all-debug.js:91984
callJoined @ ext-all-debug.js:85044
set @ ext-all-debug.js:83698
updatePositions @ Root.js:261
socket.onmessage @ Root.js:229
179ol-debug.js:59654 Uncaught TypeError: Cannot read property 'minX' of undefined
    at ol.structs.RBush.update (ol-debug.js:59654)
    at ol.source.Vector.handleFeatureChange_ (ol-debug.js:60478)
    at ol.Feature.boundListener (ol-debug.js:7277)
    at ol.Feature.ol.events.EventTarget.dispatchEvent (ol-debug.js:7697)
    at ol.Feature.ol.Observable.changed (ol-debug.js:7865)
    at ol.Feature.handleGeometryChanged_ (ol-debug.js:36287)
    at ol.Feature.boundListener (ol-debug.js:7277)
    at ol.Feature.ol.events.EventTarget.dispatchEvent (ol-debug.js:7697)
    at ol.Feature.ol.Object.notify (ol-debug.js:8099)
    at ol.Feature.ol.Object.set (ol-debug.js:8119)
ol.structs.RBush.update @ ol-debug.js:59654
ol.source.Vector.handleFeatureChange_ @ ol-debug.js:60478
boundListener @ ol-debug.js:7277
ol.events.EventTarget.dispatchEvent @ ol-debug.js:7697
ol.Observable.changed @ ol-debug.js:7865
ol.Feature.handleGeometryChanged_ @ ol-debug.js:36287
boundListener @ ol-debug.js:7277
ol.events.EventTarget.dispatchEvent @ ol-debug.js:7697
ol.Object.notify @ ol-debug.js:8099
ol.Object.set @ ol-debug.js:8119
ol.Feature.setGeometry @ ol-debug.js:36299
updateLatestMarker @ MapMarkerController.js:255
updateLatest @ MapMarkerController.js:205
fire @ ext-all-debug.js:20731
dispatch @ ext-all-debug.js:57952
prototype.doFireEvent @ ext-all-debug.js:58109
fireEventArgs @ ext-all-debug.js:21553
fireEvent @ ext-all-debug.js:21512
onCollectionItemChange @ ext-all-debug.js:91973
notify @ ext-all-debug.js:74624
itemChanged @ ext-all-debug.js:73472
afterChange @ ext-all-debug.js:91977
afterEdit @ ext-all-debug.js:91984
callJoined @ ext-all-debug.js:85044
set @ ext-all-debug.js:83698
updatePositions @ Root.js:261
socket.onmessage @ Root.js:229
Anton Tananaev7 years ago

I suspect there is a problem with some device(s). The coordinates might be out of valid range.

socstur7 years ago

Thanks for the response Anton. The coordinates are ok since the same devices load correctly under a different account with less devices attached.

socstur7 years ago

Hi Anton,
I removed some of the devices from this account and the problem goes away (everything loads on the map). Have you tested or noticed this limitation before? i.e do you have a setup that displays multiples devices on the same map and what is the max you have displayed on a map?

socstur7 years ago

Hi Anton,
You were correct. It was just one device that was corrupting the display of all the other devices; it had incorrect data reported. Removing it and everything is back to normal now. Thanks for the help.

Regards,

smsoousa3 years ago

I have the same problem, however I don't know how to identify which device is causing the error. Is it possible to identify?

Anton Tananaev3 years ago

You can check the API response. Or maybe use route report.