Open AlexeyIS opened 6 years ago
5120 pixels is beyond the maximum texture size of many iOS devices. This is most likely failing because it is unable to create a texture of that size, thus the error you are seeing.
Unfortunately, there is no great way at present to handle images beyond 4096 x 4096 in this framework, so you may need to cap the image size at that.
Hi everybody, I am keep having the crash when resampling image. I debugged down the line that gives error: Base/OpenGLRendering.swift :207 glCheckFramebufferStatus returns 36054 status and cause the fatal error
Fatal error: Could not create a framebuffer of the size (5120, 2560), error: FramebufferCreationError(errorCode: 36054): file /Users/alexeyledovskiy/Documents/Projects/HolobuilderProjects/jwaiOS/jobwalkapp/jobwalkapp/Frameworks/GPUImage2/framework/Source/FramebufferCache.swift, line 39
Does anybody has any Ideas?
I am doing this in high level:
let resample = LanczosResampling.init()
resample.overriddenOutputSize = size
let res = self.filterWithOperation(resample)
Size is ▿ Size