Skip to content
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

Fatal error: Failed loading image texture at PictureInput.swift #117

Open
MaorS opened this issue Jun 30, 2021 · 2 comments
Open

Fatal error: Failed loading image texture at PictureInput.swift #117

MaorS opened this issue Jun 30, 2021 · 2 comments

Comments

@MaorS
Copy link

MaorS commented Jun 30, 2021

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

@Darwel
Copy link

Darwel commented Jun 30, 2021

@Dec22gln
Copy link

The format of some images is not supported。maybe。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants