GPUImage3 icon indicating copy to clipboard operation
GPUImage3 copied to clipboard

Fatal error: Failed loading image texture at PictureInput.swift

Open MaorS opened this issue 4 years ago • 3 comments

Hello, I'm trying to set Adaptive Threshold filter operation on UIImage with {3490, 4320} dimensions. And I'm getting this crash: Fatal error: Failed loading image texture: file GPUImage/PictureInput.swift, line 60 It reproduces every time. The image :

I know It's pretty much an Edge case, but it's happening at a high rate.

Example usage of mine :

let operation = AdaptiveThreshold()
operation.blurRadiusInPixels = 20.0
image.filterWithOperation(operation)

Am I'm doing something wrong? Also, Why using fatalError and not returning a nil value or throwing an exception?

Thank you

MaorS avatar Jun 30 '21 08:06 MaorS

https://github.com/warrenm/GLTFKit/blob/master/Framework/GLTFMTL/Source/GLTFMTLTextureLoader.m This may help you.

Darwel avatar Jun 30 '21 09:06 Darwel

The format of some images is not supported。maybe。

Dec22gln avatar Jul 13 '21 05:07 Dec22gln