-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Crash when rendering lines with missing patterns #14230
Conversation
#13691 seems very related if not identical. |
@kkaefer looks identical, same issue as with symbol layer. Render layer and bucket is out of sync. Unfortunately, in case of line layer, nullopt is being dereferenced. /cc @pozdnyakov |
*posA, | ||
*posB, | ||
posA, | ||
posB, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The draw
lambda accepts optional
s anyway, so no need to dereference them on the way.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I checked all other cases of getPattern
, and they are all checked or land in PaintPropertyBinder::setPatternParameters
which guards against emptiness.
@pozdnyakov we should probably also implement #13667 to prevent this discrepancy from happening, as pointed out by @timbaker in #13691 (comment) |
Got this crash in a node render test: