Skip to content

Instantly share code, notes, and snippets.

@boundsj
Created September 27, 2016 19:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save boundsj/c682cd8567fcc914de01bfe986270340 to your computer and use it in GitHub Desktop.
Save boundsj/c682cd8567fcc914de01bfe986270340 to your computer and use it in GitHub Desktop.
glBufferData crash
libc++abi.dylib: terminating with uncaught exception of type mbgl::gl::Error: glBufferData(target, pos, array, GL_STATIC_DRAW): Error GL_INVALID_OPERATION at /Users/boundsj/workspace/mbgl/src/mbgl/geometry/buffer.hpp:59
(lldb) bt
* thread #1: tid = 0x2a3a90, 0x000000010a1eddda libsystem_kernel.dylib`__pthread_kill + 10, queue = 'com.apple.main-thread', stop reason = signal SIGABRT
    frame #0: 0x000000010a1eddda libsystem_kernel.dylib`__pthread_kill + 10
    frame #1: 0x000000010a225797 libsystem_pthread.dylib`pthread_kill + 90
    frame #2: 0x0000000109f67ff7 libsystem_c.dylib`abort + 129
    frame #3: 0x0000000109d3395a libc++abi.dylib`abort_message + 266
    frame #4: 0x0000000109d58ce7 libc++abi.dylib`default_terminate_handler() + 243
    frame #5: 0x000000010647f4b4 libobjc.A.dylib`_objc_terminate() + 124
    frame #6: 0x0000000109d55e69 libc++abi.dylib`std::__terminate(void (*)()) + 8
    frame #7: 0x0000000109d55ee3 libc++abi.dylib`std::terminate() + 51
    frame #8: 0x0000000104d521cf Mapbox`__clang_call_terminate + 15
  * frame #9: 0x00000001050dd4ec Mapbox`mbgl::Buffer<16, 34962u, 8192, false>::bind(this=0x00007fff5af712f0)::'lambda'()::operator()() const::__MBGL_C_E::~__MBGL_C_E() + 60 at buffer.hpp:59
    frame #10: 0x00000001050dd4a5 Mapbox`mbgl::Buffer<16, 34962u, 8192, false>::bind(this=0x00007fff5af712f0)::'lambda'()::operator()() const::__MBGL_C_E::~__MBGL_C_E() + 21 at buffer.hpp:59
    frame #11: 0x00000001050dd463 Mapbox`mbgl::Buffer<16, 34962u, 8192, false>::bind(this=0x00007fff5af71340)::'lambda'()::operator()() const + 51 at buffer.hpp:59
    frame #12: 0x00000001050dd413 Mapbox`mbgl::Buffer<16, 34962u, 8192, false>::bind(this=0x00007fa34c5707a0, context=0x00007fa34b035738) + 371 at buffer.hpp:59
    frame #13: 0x00000001050dab2e Mapbox`mbgl::Buffer<16, 34962u, 8192, false>::upload(this=0x00007fa34c5707a0, context=0x00007fa34b035738) + 62 at buffer.hpp:80
    frame #14: 0x00000001050da969 Mapbox`mbgl::SymbolBucket::upload(this=0x00007fa34c570000, context=0x00007fa34b035738) + 137 at symbol_bucket.cpp:28
    frame #15: 0x00000001050c8218 Mapbox`mbgl::Painter::render(this=0x00007fa34b035600, style=0x00007fa34a511250, frame_=0x00007fff5af72110, annotationSpriteAtlas=0x00007fa34a40ef30) + 3064 at painter.cpp:120
    frame #16: 0x0000000105081320 Mapbox`mbgl::Map::Impl::render(this=0x00007fa34a60f8d0) + 1472 at map.cpp:263
    frame #17: 0x0000000105080afd Mapbox`mbgl::Map::render(this=0x000060000001fd80) + 445 at map.cpp:170
    frame #18: 0x0000000104de9104 Mapbox`::-[MGLMapView glkView:drawInRect:](self=0x00007fa34a60eff0, _cmd="glkView:drawInRect:", view=0x00007fa34a4028f0, rect=(origin = (x = 0, y = 0), size = (width = 375, height = 667))) + 100 at MGLMapView.mm:852
    frame #19: 0x000000010920d148 GLKit`-[GLKView _display:] + 304
    frame #20: 0x0000000104dea5e0 Mapbox`::-[MGLMapView updateFromDisplayLink](self=0x00007fa34a60eff0, _cmd="updateFromDisplayLink") + 736 at MGLMapView.mm:979
    frame #21: 0x00000001075c8bd5 QuartzCore`CA::Display::DisplayLinkItem::dispatch(unsigned long long) + 57
    frame #22: 0x00000001075c8a95 QuartzCore`CA::Display::DisplayLink::dispatch_items(unsigned long long, unsigned long long, unsigned long long) + 449
    frame #23: 0x00000001069b0964 CoreFoundation`__CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION__ + 20
    frame #24: 0x00000001069b05f3 CoreFoundation`__CFRunLoopDoTimer + 1075
    frame #25: 0x00000001069b017a CoreFoundation`__CFRunLoopDoTimers + 250
    frame #26: 0x00000001069a7f01 CoreFoundation`__CFRunLoopRun + 2065
    frame #27: 0x00000001069a7494 CoreFoundation`CFRunLoopRunSpecific + 420
    frame #28: 0x000000010e211a6f GraphicsServices`GSEventRunModal + 161
    frame #29: 0x0000000107847f34 UIKit`UIApplicationMain + 159
    frame #30: 0x0000000104c8bc0f Mapbox GL`main(argc=1, argv=0x00007fff5af74730) + 111 at main.m:8
    frame #31: 0x0000000109ebf68d libdyld.dylib`start + 1
    ```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment