Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

Assertion failed: (asyncRender) #762

Closed
mb12 opened this issue Jan 16, 2015 · 3 comments
Closed

Assertion failed: (asyncRender) #762

mb12 opened this issue Jan 16, 2015 · 3 comments
Labels
bug iOS Mapbox Maps SDK for iOS

Comments

@mb12
Copy link

mb12 commented Jan 16, 2015

The following steps consistently reproduce the assert failure.

  1. use the sample 'iosapp' and switch between different styles.
  2. tap on the "My Location icon" while the new style is loading.
Assertion failed: (asyncRender), function rerender, file /Users/mb/Documents/MAPBOX_MASON_SCRATCH/mapbox-gl-native/src/mbgl/map/map.cpp, line 261.
(lldb) bt
* thread #35: tid = 0x282290, 0x3a90b1f0 libsystem_kernel.dylib`__pthread_kill + 8, name = 'Map', stop reason = signal SIGABRT
    frame #0: 0x3a90b1f0 libsystem_kernel.dylib`__pthread_kill + 8
    frame #1: 0x3a975796 libsystem_pthread.dylib`pthread_kill + 58
    frame #2: 0x3a8bbfdc libsystem_c.dylib`abort + 76
    frame #3: 0x3a89bcae libsystem_c.dylib`__assert_rtn + 182
  * frame #4: 0x000bdf90 Mapbox GL`mbgl::Map::rerender(this=0x17d819c0) + 144 at map.cpp:261
    frame #5: 0x000be036 Mapbox GL`mbgl::Map::update(this=0x17d819c0) + 110 at map.cpp:268
    frame #6: 0x000c20dc Mapbox GL`mbgl::Map::updateTiles(this=0x17ebb1dc)::$_7::operator()() const + 32 at map.cpp:568
    frame #7: 0x000c1ff8 Mapbox GL`std::__1::__function::__func<mbgl::Map::updateTiles()::$_7, std::__1::allocator<mbgl::Map::updateTiles()::$_7>, void ()>::operator()() [inlined] decltype(this=0x17ebb1dc, __f=0x17ebb1dc)::$_7&>(fp)(std::__1::forward<>(fp0))) std::__1::__invoke<mbgl::Map::updateTiles()::$_7&>(mbgl::Map::updateTiles()::$_7&&&) + 10 at __functional_base:413
    frame #8: 0x000c1fee Mapbox GL`std::__1::__function::__func<mbgl::Map::updateTiles(this=0x17ebb1d8)::$_7, std::__1::allocator<mbgl::Map::updateTiles()::$_7>, void ()>::operator()() + 38 at functional:1370
    frame #9: 0x00180656 Mapbox GL`std::__1::function<void (this=0x17ebb1d8)>::operator()() const + 146 at functional:1755
    frame #10: 0x000ebe04 Mapbox GL`mbgl::TileData::reparse(this=0x17ebb1d8, (null)=0x17e1add0)>)::$_3::operator()(mbgl::util::ptr<mbgl::TileData>&) const + 32 at tile_data.cpp:101
    frame #11: 0x000ebd1c Mapbox GL`std::__1::__function::__func<mbgl::TileData::reparse(uv::worker&, std::__1::function<void ()>)::$_3, std::__1::allocator<mbgl::TileData::reparse(uv::worker&, std::__1::function<void ()>)::$_3>, void (mbgl::util::ptr<mbgl::TileData>&)>::operator()(mbgl::util::ptr<mbgl::TileData>&) [inlined] decltype(this=0x17ebb1d8, __f=0x17ebb1d8, __args=0x17e1add0)>)::$_3&>(fp)(std::__1::forward<mbgl::util::ptr<mbgl::TileData>&>(fp0))) std::__1::__invoke<mbgl::TileData::reparse(uv::worker&, std::__1::function<void ()>)::$_3&, mbgl::util::ptr<mbgl::TileData>&>(mbgl::TileData::reparse(uv::worker&, std::__1::function<void ()>)::$_3&&&, mbgl::util::ptr<mbgl::TileData>&&&) + 16 at __functional_base:413
    frame #12: 0x000ebd0c Mapbox GL`std::__1::__function::__func<mbgl::TileData::reparse(this=0x17ebb1d0, __arg=0x17e1add0)>)::$_3, std::__1::allocator<mbgl::TileData::reparse(uv::worker&, std::__1::function<void ()>)::$_3>, void (mbgl::util::ptr<mbgl::TileData>&)>::operator()(mbgl::util::ptr<mbgl::TileData>&) + 48 at functional:1370
    frame #13: 0x000ef582 Mapbox GL`std::__1::function<void (this=0x17e1adf0, __arg=0x17e1add0)>::operator()(mbgl::util::ptr<mbgl::TileData>&) const + 158 at functional:1755
    frame #14: 0x000ef4aa Mapbox GL`uv::work<mbgl::util::ptr<mbgl::TileData> >::after_work(data=0x17e1add0) + 38 at uv_detail.hpp:165
    frame #15: 0x00225ba2 Mapbox GL`uv__worker_after(ptr=0x1da661e0) + 130 at uv-worker.c:56
    frame #16: 0x00225890 Mapbox GL`uv__messenger_callback(async=0x1d986ecc, status=0) + 104 at uv-messenger.c:37
    frame #17: 0x0022c676 Mapbox GL`uv__async_event(loop=0x17d81b50, w=0x17d81c28, nevents=1) + 126 at async.c:80
    frame #18: 0x0022c91e Mapbox GL`uv__async_io(loop=0x17d81b50, w=0x17d81c2c, events=1) + 190 at async.c:156
    frame #19: 0x0023f704 Mapbox GL`uv__io_poll(loop=0x17d81b50, timeout=-1) + 2252 at kqueue.c:233
    frame #20: 0x0022cdde Mapbox GL`uv_run(loop=0x17d81b50, mode=UV_RUN_DEFAULT) + 130 at core.c:317
    frame #21: 0x000bd5fa Mapbox GL`mbgl::Map::run(this=0x17d819c0) + 330 at map.cpp:238
    frame #22: 0x000c2d30 Mapbox GL`mbgl::Map::start(this=0x17d2ed70)::$_5::operator()() const + 192 at map.cpp:189
    frame #23: 0x000c2b26 Mapbox GL`void* std::__1::__thread_proxy<std::__1::tuple<mbgl::Map::start(__vp=0x17d2ed70)::$_5> >(void*) + 274 at memory:2602
    frame #24: 0x3a974918 libsystem_pthread.dylib`_pthread_body + 140
    frame #25: 0x3a97488a libsystem_pthread.dylib`_pthread_start + 102
    frame #26: 0x3a972aa4 libsystem_pthread.dylib`thread_start + 8
(lldb) 
@ljbade
Copy link
Contributor

ljbade commented Jan 17, 2015

I think this was fixed in 8cca0a2

@mb12 Can you test with latest master?

@ljbade ljbade added bug iOS Mapbox Maps SDK for iOS labels Jan 17, 2015
@ljbade
Copy link
Contributor

ljbade commented Jan 17, 2015

Also @mb12 when you paste a crash log can you wrap it in ``` to make it readable, see https://help.github.com/articles/github-flavored-markdown/#fenced-code-blocks

@mb12
Copy link
Author

mb12 commented Jan 19, 2015

Verified that the bug is fixed in the latest master.
Thanks for fixing it.

@mb12 mb12 closed this as completed Jan 19, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug iOS Mapbox Maps SDK for iOS
Projects
None yet
Development

No branches or pull requests

2 participants