Comments (3)
I think it may be a race condition, maybe switching those 2 lines could do the trick : https://github.com/kirualex/SwiftyGif/blob/master/SwiftyGif/SwiftyGifManager.swift#L60-L61
from swiftygif.
Thanks for the reply, @kirualex
- But do you have any idea on how exactly the race condition happens? What is the reason that the
-=
operation fails? Who can be changingdisplayViews
simultaneously? - Is there any other safer way to fix it instead of just switching the lines?
from swiftygif.
I've merged your fix. This will still need some study on that double deleteImageView
call though. To be continued.
from swiftygif.
Related Issues (20)
- Memory leak associated with stopAnimatingGif()
- Issues with M1 ipad Pro with playback speed HOT 5
- Issue on loading a png image after loading a gif image in same image view. HOT 3
- Crash on UIImage.calculateFrameDelay since 5.4.3
- Index out of range crash in calculateFrameDelay() line 254 HOT 5
- Load gif from app local cache HOT 1
- Crash on UIImage.delayTimes()
- option to disable giflog HOT 1
- Fatal error: Unexpectedly found nil while unwrapping an Optional value
- watchOS compatible HOT 1
- $sSo7UIImageC9SwiftyGifE19calculateFrameDelay33_9658D83D62B37A941BEC0DE7CE976670LL_16levelOfIntegrityySaySfG_SftF HOT 1
- convert the delegate design to support closure HOT 2
- Privacy manifest HOT 3
- Shadow-like artefact with outlines of first frame remains when showing subsequent frames. HOT 1
- Support App Privacy Manifests HOT 4
- Incomplete PrivacyInfo.xcprivacy
- Memory issue HOT 1
- Need to update swift-tools-version HOT 1
- Add a privacy manifest file
- MacOS/AppKit support? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from swiftygif.