You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
Repository navigation
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
These asserts (scattered throughout a few different files) should not be expected to pass when the Map::render is intentionally called in a different thread than where the map object was initially created (such as an async render method in Node.js bindings). I saw some logic around an async_render function, but that seems to be tied into the libuv implementation in mapbox-gl-native a bit too closely. Should this either be refactored for external use, or should these asserts be conditionally disabled some other way?
In the cli-render branch, the problematic asserts only seem to be present on BUILDTYPE=Debug installs now, fixed by 57e6bc6. Is there a better way to patch this to still be able to get debug symbols in Node.js bindings though @kkaefer? I'm guessing Mode::Static from 21e9e0a might be part of the answer.
Activity
ljbade commentedon Nov 22, 2014
Yeah came across this problem in a few places with other functions.
disable uv_thread_self() == map_thread asserts, ref #623
disable uv_thread_self() asserts, ref #623
disable uv_thread_self() asserts, ref #623
disable uv_thread_self() asserts, ref #623
mikemorris commentedon Dec 18, 2014
In the
cli-renderbranch, the problematic asserts only seem to bepresent onfixed by 57e6bc6.BUILDTYPE=Debuginstalls now,Is there a better way to patch this to still be able to get debug symbols in Node.js bindings though @kkaefer?I'm guessingMode::Staticfrom 21e9e0a might be part of the answer.mikemorris commentedon Dec 18, 2014
Doh, this is apparently only happening in
Debugbuilds? Just ran against aReleasebuild ofmasterwithout tripping any asserts.ljbade commentedon Dec 18, 2014
@mikemorris assert() compiles to a noop on Release builds
mikemorris commentedon Dec 18, 2014
Hah, that would do it, was that a recent change or has it always been that way @ljbade?
incanus commentedon Dec 19, 2014
That's pretty common native behavior.
kkaefer commentedon Dec 19, 2014
asserts are always compiled out on Release builds.