首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >-[EAGLContext presentRenderbuffer:]在iOS 14中崩溃

-[EAGLContext presentRenderbuffer:]在iOS 14中崩溃
EN

Stack Overflow用户
提问于 2020-12-14 11:58:58
回答 1查看 238关注 0票数 0

我们在ios14上遇到了一个与OpenGL相关的崩溃。它与应用程序背景无关。绝大多数崩溃发生在IOS 14低端设备上,目前还不清楚如何解决这些问题。

唯一可能的线索是,崩溃可能与打开WebView有关。

监视器类型: Unix信号异常类型: EXC_CRASH (SIGABRT)异常代码: 0x00000000 at 0x00000001c7517414崩溃线程:0

代码语言:javascript
复制
Pthread id: 10322737
Thread 0 Crashed:
0   libsystem_kernel.dylib          __pthread_kill + 8
1   libsystem_pthread.dylib         pthread_kill + 272
2   libsystem_c.dylib               abort + 104
3   AppleMetalGLRenderer            GLDContextRec::flushContextInternal() + 852
4   GLEngine                        gliPresentViewES_Exec + 188
5   OpenGLES                        -[EAGLContext presentRenderbuffer:] + 76
6   myapp                           -[EJCanvasContextWebGLScreen present] (EJCanvasContextWebGLScreen.m:142)
7   QuartzCore                      CA::Display::DisplayLink::dispatch_items(unsigned long long, unsigned long long, unsigned long long) + 664
8   QuartzCore                      display_timer_callback(__CFMachPort*, void*, long, void*) + 280
9   CoreFoundation                  __CFMachPortPerform + 176
10  CoreFoundation                  __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 60
11  CoreFoundation                  __CFRunLoopDoSource1 + 596
12  CoreFoundation                  __CFRunLoopRun + 2360
13  CoreFoundation                  CFRunLoopRunSpecific + 600
14  GraphicsServices                GSEventRunModal + 164
15  UIKitCore                       -[UIApplication _run] + 1072
16  UIKitCore                       UIApplicationMain + 168
17  myapp                           main (main.m:36)
18  libdyld.dylib                   start + 4
EN

回答 1

Stack Overflow用户

发布于 2021-05-23 18:25:28

我100%确定presentRenderBuffer在iOS14中工作得很好。

根据错误消息,这似乎是线程问题。

在我的例子中,我使用一个队列来详细说明所有的OpenGL内容。

代码语言:javascript
复制
dispatch_sync(queue, ^{
        // All of the OpenGL things
        [self bindCurrentRenderBuffer];
        [self presentRenderBuffer];
    });

您可以在Github:IRPlayer中查看我的OpenGL项目

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/65283396

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档