BradLarson / GPUImage2

GPUImage 2 is a BSD-licensed Swift framework for GPU-accelerated video and image processing.
BSD 3-Clause "New" or "Revised" License
4.88k stars 611 forks source link

GpuImage Crash #303

Open HimBhatt9 opened 5 years ago

HimBhatt9 commented 5 years ago
Screenshot 2019-08-29 at 2 38 38 PM

Hello @BradLarson , I am working on a video editing app using GPUImage which is quite helpful thanks to you. But I am facing this issue of in ShaderUniformSetting ->restoreShaderSetting function which I am unable to solve. Also in fabric its showing a GPUImage block destroy helper issue occurring very often to users . If any of it seems known or if you can help then it will help me get out of a great trouble. Thanks

Screenshot 2019-08-29 at 1 12 41 PM Screenshot 2019-08-29 at 1 19 04 PM
fazal-e-majid commented 3 years ago

have you solved the issue ? I'm facing the same issue.

jonathanellis commented 3 years ago

I am also facing this issue

@HimBhatt9 @fazal-e-majid did you manage to make any progress on tracking down the cause?

fazal-e-majid commented 3 years ago

Hi @jonathanellis I remember a little bit of what I did to solve the crash. if you are doing too many tasks asynchronously like reading gestures and calling processImage() (asynchronously), you might get this crash. In my case what I did is, i wrote a custom gesture recognizer to read all the pinch pan and rotate at once and reduce the number of calls. I don't know where the app crashes in your case. so, can't say anything.

Sheheryar-Ahmed commented 3 years ago

Hi @jonathanellis , @fazal-e-majid any update on this issue?

Sheheryar-Ahmed commented 3 years ago

@HimBhatt9

jonathanellis commented 3 years ago

Unfortunately at this point I have no further information to add.

We did find that we are doing a lot of work on the main thread and have reduced the main thread load, but:

(a) I'm not sure that is definitely the cause, as I'm not yet sure how it would cause this crash

(b) It's too early to tell whether this crash is resolved (it was a very rare crash)