Chrome throws SBOX_FATAL_MEMORY_EXCEEDED when NOT moving marker before submitting a guess with the back-up guess function currently used in Map Runner.
This guess function would be superior if this could be prevented without needing to move marker before submitting guess. (Because even this sometimes doesn't prevent it.)
Aim
The element coordinate-map_canvasContainer__7d8Yw has desired property which can mock clicking on the map
Where clickFunction is the desired mocked click, such that we can do clickFunction() which appears to accept an object, this object contains a lot of properties regarding the mouse click, but also the latlng. I can recreate the object with just the latlng property, but this will cause the browser to crash if submitted.
let y = {
"latLng": {
"lat": coords.lat,
"lng": coords.lng,
}
}
If I could perhaps include all the mouseclick properties in my y object and not just latlng this could be fixed, but I am not sure how easy this will be, or even if it will be fixed.
There's a chance there is a recursive call somewhere on an expected property that isn't being passed in my y object?
Perhaps I need to check how the submit guess function is handling this too
Regardless, it seems obvious this is a memory leak
Chrome throws SBOX_FATAL_MEMORY_EXCEEDED when NOT moving marker before submitting a guess with the back-up guess function currently used in Map Runner.
This guess function would be superior if this could be prevented without needing to move marker before submitting guess. (Because even this sometimes doesn't prevent it.)
Aim
The element
coordinate-map_canvasContainer__7d8Yw
has desired property which can mock clicking on the mapThis can be accessed with
Where
clickFunction
is the desired mocked click, such that we can doclickFunction()
which appears to accept an object, this object contains a lot of properties regarding the mouse click, but also thelatlng
. I can recreate the object with just thelatlng
property, but this will cause the browser to crash if submitted.If I could perhaps include all the mouseclick properties in my
y
object and not justlatlng
this could be fixed, but I am not sure how easy this will be, or even if it will be fixed.There's a chance there is a recursive call somewhere on an expected property that isn't being passed in my
y
object?Perhaps I need to check how the submit guess function is handling this too
Regardless, it seems obvious this is a memory leak