Crash when present an CAEAGLLayer on iOS real device #39326
Labels
a: platform-views
Embedding Android/iOS views in Flutter apps
engine
flutter/engine repository. See also e: labels.
platform-ios
iOS applications specifically
Projects
I am adding the Flutter Module to an existing project which using CAEAGLLayer.
App crashed when running on an IOS real device after adding a boolean property to the app's Info.plist file with the key io.flutter.embedded_views_preview and the value YES. But everything works fine, if set the value NO or run the app on a simulator.
Steps to Reproduce
Crash Info
The crash is caused by an Assertion failure in -[CCES2Renderer resizeFromLayer:].But when calling with the glGetRenderbufferParameteriv(line 111 in CCES2Renderer-ios.m) function, the result of backingWidth_ is an incorrect 0 which should be a nonzero value related to device width.If we set the value of io.flutter.embedded_views_preview NO or run the app on a simulator, then everything works fine.
Flutter Doctor -v
The text was updated successfully, but these errors were encountered: