Closed Algunenano closed 5 years ago
3 4 5 instances of this error so far today.
It seems that undefined layer in a torque renderer has caused problems before and has been handled by coping with undefined layers. I'm not sure that's the best option, but I'm not sure either if it's worth investigating the cause of the undefined layer.
I managed to reproduce the issue with a point dataset and the following cartocss:
Map {
-torque-frame-count: 1;
-torque-animation-duration: 30;
-torque-time-attribute: "cartodb_id";
-torque-aggregation-function: "count(1)";
-torque-resolution: 4;
-torque-data-aggregation: linear;
}
#layer {
marker-width: 16.6;
/*marker-width: ramp([value], range(2, 40), jenks(6));*/
marker-fill-opacity: 1;
marker-file: url(http://cartodb-libs.global.ssl.fastly.net/cartodbui/assets/unversioned/images/alphamarker.png);
marker-allow-overlap: true;
marker-line-width: 1;
marker-line-color: #FFFFFF;
marker-line-opacity: 1;
marker-comp-op: darken;
image-filters: colorize-alpha(#4b2991,#872ca2,#c0369d,#ea4f88,#fa7876,#f6a97a,#edd9a3);
}
and then trying to Export image...
from Builder.
That said, there are a few dark corners in this very specific use case:
in the stack trace). Usually that works by "compiling" turbo-carto to plain cartocss and then handing it over to the tiler, but the commented out code messes it up as it believes it has a turbo-carto, here:
and that does NOT happen when that code is uncommented.
So, I suspect the crash is triggered by some legacy "dead code" that is only reachable in this faulty condition: commented code that resembles turbo-carto.
There must be some bad interaction with Windshaft, cause it should have a layer defined anyway.
After much tinkering with Windshaft, adding traces to callbacks and so forth, I decided to go for the "safe preventive" approach: get rid of comments and do not attempt to read layers nor apply turbocarto if there's no layer definition: https://github.com/CartoDB/torque/pull/307
:rocket:
As with https://github.com/CartoDB/turbo-carto/issues/83, it's crashing in production.
cc/ @CartoDB/rt-managers