Skip to content
This repository was archived by the owner on Jun 21, 2023. It is now read-only.
This repository was archived by the owner on Jun 21, 2023. It is now read-only.

XCode 13.3, iOS 15.4 - MGLMapView renderSync #650

Description

@nitrag

So this just started happening when map is first being loaded. I have not made any local changes to my app.

Steps to reproduce

  1. Open project, build, deploy

Expected behavior

Actual behavior

Thread 1: EXC_BAD_ACCESS (code=1, address=0x7fda25d7bf60)

#0	0x00007fff4020e756 in glvmRasterOpDepthStencilTest ()
#1	0x00007fff4025d195 in glvmInterpretFPTransformFour ()
#2	0x00007fff5bca3f8e in gldLLVMFPTransform ()
#3	0x00007fff5bcb80c4 in gldLLVMVecPolyRender ()
#4	0x00007fff5bca0540 in gldRenderFillPolygonPtr ()
#5	0x00007fff401bdd21 in gleLLVMVecPrimMultiRender ()
#6	0x00007fff400fd6f7 in gleFlushAtomicFunc ()
#7	0x00007fff4014a10d in glDrawElements_IMM_ES2Exec ()
#8	0x00000001085029fa in mbgl::gl::Context::draw(mbgl::gfx::DrawMode const&, unsigned long, unsigned long) ()
#9	0x00000001085727f3 in mbgl::gl::Program<mbgl::LineSDFProgram>::draw(mbgl::gfx::Context&, mbgl::gfx::RenderPass&, mbgl::gfx::DrawMode const&, mbgl::gfx::DepthMode const&, mbgl::gfx::StencilMode const&, mbgl::gfx::ColorMode const&, mbgl::gfx::CullFaceMode const&, mbgl::gfx::UniformValues<mbgl::TypeList<mbgl::uniforms::matrix, mbgl::uniforms::ratio, mbgl::uniforms::units_to_pixels, mbgl::uniforms::device_pixel_ratio, mbgl::uniforms::patternscale_a, mbgl::uniforms::patternscale_b, mbgl::uniforms::tex_y_a, mbgl::uniforms::tex_y_b, mbgl::uniforms::mix, mbgl::uniforms::sdfgamma, mbgl::InterpolationUniform<mbgl::attributes::blur>, mbgl::InterpolationUniform<mbgl::attributes::color>, mbgl::InterpolationUniform<mbgl::attributes::floorwidth>, mbgl::InterpolationUniform<mbgl::attributes::gapwidth>, mbgl::InterpolationUniform<mbgl::attributes::offset>, mbgl::InterpolationUniform<mbgl::attributes::opacity>, mbgl::InterpolationUniform<mbgl::attributes::pattern_to>, mbgl::InterpolationUniform<mbgl::attributes::pattern_from>, mbgl::InterpolationUniform<mbgl::attributes::pixel_ratio_to>, mbgl::InterpolationUniform<mbgl::attributes::pixel_ratio_from>, mbgl::InterpolationUniform<mbgl::attributes::width>, mbgl::uniforms::blur, mbgl::uniforms::color, mbgl::uniforms::floorwidth, mbgl::uniforms::gapwidth, mbgl::uniforms::offset, mbgl::uniforms::opacity, mbgl::uniforms::pattern_to, mbgl::uniforms::pattern_from, mbgl::uniforms::pixel_ratio_to, mbgl::uniforms::pixel_ratio_from, mbgl::uniforms::width> > const&, mbgl::gfx::DrawScope&, mbgl::gfx::AttributeBindings<mbgl::TypeList<mbgl::attributes::pos_normal, mbgl::attributes::data<unsigned char, 4ul>, mbgl::attributes::linesofar, mbgl::ZoomInterpolatedAttribute<mbgl::attributes::blur>, mbgl::ZoomInterpolatedAttribute<mbgl::attributes::color>, mbgl::ZoomInterpolatedAttribute<mbgl::attributes::floorwidth>, mbgl::ZoomInterpolatedAttribute<mbgl::attributes::gapwidth>, mbgl::ZoomInterpolatedAttribute<mbgl::attributes::offset>, mbgl::ZoomInterpolatedAttribute<mbgl::attributes::opacity>, mbgl::ZoomInterpolatedAttribute<mbgl::attributes::pattern_to>, mbgl::ZoomInterpolatedAttribute<mbgl::attributes::pattern_from>, mbgl::ZoomInterpolatedAttribute<mbgl::attributes::pixel_ratio_to>, mbgl::ZoomInterpolatedAttribute<mbgl::attributes::pixel_ratio_from>, mbgl::ZoomInterpolatedAttribute<mbgl::attributes::width> > > const&, mbgl::gfx::TextureBindings<mbgl::TypeList<mbgl::textures::image> > const&, mbgl::gfx::IndexBuffer const&, unsigned long, unsigned long) ()
#10	0x00000001085ddc86 in void mbgl::Program<mbgl::LineSDFProgram, (mbgl::gfx::PrimitiveType)2, mbgl::TypeList<mbgl::attributes::pos_normal, mbgl::attributes::data<unsigned char, 4ul>, mbgl::attributes::linesofar>, mbgl::TypeList<mbgl::uniforms::matrix, mbgl::uniforms::ratio, mbgl::uniforms::units_to_pixels, mbgl::uniforms::device_pixel_ratio, mbgl::uniforms::patternscale_a, mbgl::uniforms::patternscale_b, mbgl::uniforms::tex_y_a, mbgl::uniforms::tex_y_b, mbgl::uniforms::mix, mbgl::uniforms::sdfgamma>, mbgl::TypeList<mbgl::textures::image>, mbgl::style::LinePaintProperties, mbgl::TypeList<> >::draw<mbgl::gfx::Triangles>(mbgl::gfx::Context&, mbgl::gfx::RenderPass&, mbgl::gfx::Triangles const&, mbgl::gfx::DepthMode const&, mbgl::gfx::StencilMode const&, mbgl::gfx::ColorMode const&, mbgl::gfx::CullFaceMode const&, mbgl::gfx::IndexBuffer const&, std::__1::vector<mbgl::Segment, std::__1::allocator<mbgl::Segment> > const&, mbgl::gfx::UniformValues<mbgl::TypeList<mbgl::uniforms::matrix, mbgl::uniforms::ratio, mbgl::uniforms::units_to_pixels, mbgl::uniforms::device_pixel_ratio, mbgl::uniforms::patternscale_a, mbgl::uniforms::patternscale_b, mbgl::uniforms::tex_y_a, mbgl::uniforms::tex_y_b, mbgl::uniforms::mix, mbgl::uniforms::sdfgamma, mbgl::InterpolationUniform<mbgl::attributes::blur>, mbgl::InterpolationUniform<mbgl::attributes::color>, mbgl::InterpolationUniform<mbgl::attributes::floorwidth>, mbgl::InterpolationUniform<mbgl::attributes::gapwidth>, mbgl::InterpolationUniform<mbgl::attributes::offset>, mbgl::InterpolationUniform<mbgl::attributes::opacity>, mbgl::InterpolationUniform<mbgl::attributes::pattern_to>, mbgl::InterpolationUniform<mbgl::attributes::pattern_from>, mbgl::InterpolationUniform<mbgl::attributes::pixel_ratio_to>, mbgl::InterpolationUniform<mbgl::attributes::pixel_ratio_from>, mbgl::InterpolationUniform<mbgl::attributes::width>, mbgl::uniforms::blur, mbgl::uniforms::color, mbgl::uniforms::floorwidth, mbgl::uniforms::gapwidth, mbgl::uniforms::offset, mbgl::uniforms::opacity, mbgl::uniforms::pattern_to, mbgl::uniforms::pattern_from, mbgl::uniforms::pixel_ratio_to, mbgl::uniforms::pixel_ratio_from, mbgl::uniforms::width> > const&, mbgl::gfx::AttributeBindings<mbgl::TypeList<mbgl::attributes::pos_normal, mbgl::attributes::data<unsigned char, 4ul>, mbgl::attributes::linesofar, mbgl::ZoomInterpolatedAttribute<mbgl::attributes::blur>, mbgl::ZoomInterpolatedAttribute<mbgl::attributes::color>, mbgl::ZoomInterpolatedAttribute<mbgl::attributes::floorwidth>, mbgl::ZoomInterpolatedAttribute<mbgl::attributes::gapwidth>, mbgl::ZoomInterpolatedAttribute<mbgl::attributes::offset>, mbgl::ZoomInterpolatedAttribute<mbgl::attributes::opacity>, mbgl::ZoomInterpolatedAttribute<mbgl::attributes::pattern_to>, mbgl::ZoomInterpolatedAttribute<mbgl::attributes::pattern_from>, mbgl::ZoomInterpolatedAttribute<mbgl::attributes::pixel_ratio_to>, mbgl::ZoomInterpolatedAttribute<mbgl::attributes::pixel_ratio_from>, mbgl::ZoomInterpolatedAttribute<mbgl::attributes::width> > > const&, mbgl::gfx::TextureBindings<mbgl::TypeList<mbgl::textures::image> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) ()
#11	0x00000001085d9ebc in mbgl::RenderLineLayer::render(mbgl::PaintParameters&) ()
#12	0x00000001086179aa in mbgl::Renderer::Impl::render(mbgl::RenderTree const&) ()
#13	0x0000000108615cc3 in mbgl::Renderer::render(std::__1::shared_ptr<mbgl::UpdateParameters> const&) ()
#14	0x00000001088e4d2c in MGLRenderFrontend::render() [inlined] at /Users/distiller/project/platform/darwin/src/MGLRendererFrontend.h:57
#15	0x00000001088e4ce8 in -[MGLMapView renderSync] at /Users/distiller/project/platform/ios/src/MGLMapView.mm:1161
#16	0x000000010889961b in MGLMapViewImpl::render() [inlined] at /Users/distiller/project/platform/ios/src/MGLMapView+Impl.mm:18
#17	0x00000001088995ff in -[MGLMapViewImplDelegate glkView:drawInRect:] at /Users/distiller/project/platform/ios/src/MGLMapView+OpenGL.mm:30
#18	0x00007fff4ef6a3f4 in -[GLKView _display:] ()
#19	0x00007fff28a71721 in CA::Layer::layout_and_display_if_needed(CA::Transaction*) ()
#20	0x00007fff289937c9 in CA::Context::commit_transaction(CA::Transaction*, double, double*) ()
#21	0x00007fff289cae86 in CA::Transaction::commit() ()
#22	0x00007fff289cc104 in CA::Transaction::flush_as_runloop_observer(bool) ()
#23	0x00007fff2037267d in __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ ()
#24	0x00007fff2036ce41 in __CFRunLoopDoObservers ()
#25	0x00007fff2036d3d9 in __CFRunLoopRun ()
#26	0x00007fff2036ca90 in CFRunLoopRunSpecific ()
#27	0x00007fff2cb72c8e in GSEventRunModal ()
#28	0x00007fff2508e90e in -[UIApplication _run] ()
#29	0x00007fff25093569 in UIApplicationMain ()
#30	0x000000010625911f in main at /Users/ryan/Documents/TrailsOffroad/ios/trailsoffroad/Supporting Files/AppDelegate.swift:22
#31	0x0000000106af5f21 in start_sim ()
#32	0x00000001104564fe in start ()

Configuration

Mapbox SDK versions: 6.4.1
iOS/macOS versions: iOS 15.4
Device/simulator models: Simulator Version 13.3 (977.2)
Xcode version: Version 13.3 (13E113)

Probably related to this persons issue as well mapbox/mapbox-gl-js#11633

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions