-
-
Notifications
You must be signed in to change notification settings - Fork 64
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MGLKitSampleApp_ios9.0 crashes on launch on device running iOS 10.x #61
Comments
I don't have iOS 10.x devices but I tried to run on simulator, and couldn't reproduce this issue (at least with current master branch). |
It doesn't crash on the emulator for me either. |
Based on your posted log messages. It seems the process failed at this line:
Which means I don't think iPhone 5 and below have much market share currently. So they are low priorities in the support list. |
Thank you very much. Your analysis is correct. Once I made these changes it works. //constexpr EAGLRenderingAPI kGLESAPI = kEAGLRenderingAPIOpenGLES3; |
I have a bit similar issue. But in my case I can run the sample (and any other app) on real devices flawless but I can't run them in any simulator. I get the following output which is a bit different to the one of this issue, but has the same eglError code: https://gist.github.com/Berstanio/81708a6431d0bcda2145143591062eec
This change didn't fixed the issue. I don't exactly know how the ios simulator works but a idea of mine was, that this could be related to the fact, that I run macos in a vm. Could this produce the issue? And if this is the case, is there any way to fix this? |
@Berstanio macos in a vm doesn't support metal, so it failed to create a metal device:
|
ERR: initialize(609): ANGLE Display::initialize error 12289: Could not create the EAGL context.
ERR: initialize(609): ANGLE Display::initialize error 12289: Could not create the EAGL context.
INFO: insertMessage(462): EGL CRITICAL: eglInitialize: Could not create the EAGL context.
(lldb) bt
(anonymous namespace)::Throw(msg="Failed To call eglInitialize()") at MGLDisplay.mm:13:5 frame #1: 0x002a6c4e MetalANGLE
-[EGLDisplayHolder init](self=0x1654dc20, _cmd="init") at MGLDisplay.mm:37:13frame Compatibility with older iOS versions #2: 0x002a709e MetalANGLE
-[MGLDisplay init](self=0x165510c0, _cmd="init") at MGLDisplay.mm:82:36 frame #3: 0x002a6f90 MetalANGLE
+[MGLDisplay defaultDisplay](self=MGLDisplay, _cmd="defaultDisplay") at MGLDisplay.mm:71:27frame Implementing snapshot #4: 0x0033f6a8 MetalANGLE
-[MGLLayer constructor](self=0x16551ea0, _cmd="constructor") at MGLLayer.mm:351:16 frame #5: 0x0033f444 MetalANGLE
-[MGLLayer init](self=0x16551ea0, _cmd="init") at MGLLayer.mm:330:9frame Crash when changing device orientation on iOS #6: 0x200b3bb6 UIKit
-[UIView _createLayerWithFrame:] + 138 frame #7: 0x200b3714 UIKit
UIViewCommonInitWithFrame + 850frame Undefined symbols for OES suffixed #8: 0x20382b36 UIKit
-[UIView initWithCoder:] + 458 frame #9: 0x00337372 MetalANGLE
-[MGLKView initWithCoder:](self=0x00000000, _cmd="initWithCoder:", coder=0x16881200) at MGLKView.mm:24:16frame Mipmap generation using shader caused "Execution of the command buffer was aborted due to an error during execution.." on old iOS devices. #10: 0x205823ba UIKit
-[UIClassSwapper initWithCoder:] + 218 frame #11: 0x206bc6ee UIKit
UINibDecoderDecodeObjectForValue + 834frame Support any vertex offset, stride without data conversion by patching shaders at runtime. #12: 0x206bc3a4 UIKit
-[UINibDecoder decodeObjectForKey:] + 82 frame #13: 0x205820d2 UIKit
-[UIRuntimeConnection initWithCoder:] + 160frame Fix assumption that program input indices map to attrib indices #14: 0x206bc6ee UIKit
UINibDecoderDecodeObjectForValue + 834 frame #15: 0x206bc646 UIKit
UINibDecoderDecodeObjectForValue + 666frame MetalANGLE.framework first impressions #16: 0x206bc3a4 UIKit
-[UINibDecoder decodeObjectForKey:] + 82 frame #17: 0x20581632 UIKit
-[UINib instantiateWithOwner:options:] + 1082frame Add support for EGL_EXT_gl_colorspace_bt2020_pq #18: 0x203ffade UIKit
-[UIViewController _loadViewFromNibNamed:bundle:] + 314 frame #19: 0x201deaba UIKit
-[UIViewController loadView] + 136frame add gen/commit.h to gitignore #20: 0x200b1b9a UIKit
-[UIViewController loadViewIfRequired] + 170 frame #21: 0x200b1ad8 UIKit
-[UIViewController view] + 22frame Intermittent assertion failure in ProgramMtl::saveShaderInternalInfo #22: 0x200b805a UIKit
-[UIWindow addRootViewControllerViewIfPossible] + 72 frame #23: 0x200b55ba UIKit
-[UIWindow _setHidden:forced:] + 286frame Can I use original glbindbuffers interfaces to bind a hand-made framebuffer, instead of using the default framebuffer? #24: 0x20125158 UIKit
-[UIWindow makeKeyAndVisible] + 42 frame #25: 0x20322b12 UIKit
-[UIApplication _callInitializationDelegatesForMainScene:transitionContext:] + 3906frame Depth & stencil blit shader is not compiled on some Intel & NVIDIA GPUs. #26: 0x20327c1c UIKit
-[UIApplication _runWithMainScene:transitionContext:completion:] + 1640 frame #27: 0x2033a7c4 UIKit
__84-[UIApplication _handleApplicationActivationWithScene:transitionContext:completion:]_block_invoke.3149 + 40frame Crash on uniform location -1 with EGL_CONTEXT_OPENGL_NO_ERROR_KHR #28: 0x2032535a UIKit
-[UIApplication workspaceDidEndTransaction:] + 142 frame #29: 0x1c760c12 FrontBoardServices
FBSSERIALQUEUE_IS_CALLING_OUT_TO_A_BLOCK + 18frame Update .gitignore to avoid xcode user settings #30: 0x1c760acc FrontBoardServices
-[FBSSerialQueue _performNext] + 220 frame #31: 0x1c760db6 FrontBoardServices
-[FBSSerialQueue _performNextFromRunLoopSource] + 44frame OpenGL Es 3 #32: 0x1ae3bfdc CoreFoundation
__CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 12 frame #33: 0x1ae3bb04 CoreFoundation
__CFRunLoopDoSources0 + 424frame Window contents scaled to half size on non-retina display #34: 0x1ae39f50 CoreFoundation
__CFRunLoopRun + 1160 frame #35: 0x1ad8d1ae CoreFoundation
CFRunLoopRunSpecific + 470frame error: 'function_constant' attribute requires Metal language standard macos-metal1.2 or higher #36: 0x1ad8cfd0 CoreFoundation
CFRunLoopRunInMode + 104 frame #37: 0x2011ae2c UIKit
-[UIApplication _run] + 660frame is it possible to create an Angle surface from an external Metal Layer #38: 0x20115a52 UIKit
UIApplicationMain + 150 frame #39: 0x00031f12 MGLKitSampleApp_ios9.0
main(argc=1, argv=0x0029fa1c) at main.m:25:12frame WIP: Create github's workflow actions #40: 0x1a57a4ea libdyld.dylib`start + 2
(lldb)
The text was updated successfully, but these errors were encountered: