yapstudios / yapimagemanager Goto Github PK
View Code? Open in Web Editor NEWA high-performance image library for downloading, caching, and processing images in Swift.
Home Page: https://yapstudios.com
License: BSD 2-Clause "Simplified" License
A high-performance image library for downloading, caching, and processing images in Swift.
Home Page: https://yapstudios.com
License: BSD 2-Clause "Simplified" License
Hi There!
I've been getting a EXC_BAD_ACCESS crash on line 708 of YapImageManager.swift specifically on:
key += String(format: "(URLString ?? "")%0.5f%0.5f", size?.width ?? 0.0, size?.height ?? 0.0)
If URLString contains a value and it does not contain any placeholders for the arguments passed (width and height) it crashes. If I just pass URLString or remove URLString and leave the rest of the string formatting, then it works fine.
Not sure if you had this happen before.
(lldb) po String(format: "\("<na>")_%0.5f_%0.5f", size?.width ?? 0.0, size?.height ?? 0.0)
"<na>_304.00000_375.00000"
(lldb) po String(format: "_%0.5f_%0.5f", size?.width ?? 0.0, size?.height ?? 0.0)
"_304.00000_375.00000"
(lldb) po String(format: "\(URLString ?? "<na>")")
"https://static.fragds.com/legacy-contentassets/image/Trivesta/9720_1476212759000_video-still_7339_Trivesta(null)re-Launch nglish.jpg"
(lldb) po String(format: "\(URLString ?? "<na>")_%0.5f_%0.5f", size?.width ?? 0.0, size?.height ?? 0.0)
error: Execution was interrupted, reason: EXC_BAD_ACCESS (code=1, address=0x4073000000000000).
The process has been returned to the state before expression evaluation.
po URLString
▿ Optional<String>
- some : "https://static.fragds.com/legacy-contentassets/image/Trivesta/9720_1476212759000_video-still_7339_Trivesta%252520Pre-Launch%252520English.jpg"
Just wondering since there has been no updates for a couple years now.
Does the library currently support animated gifs?
I gotta thank you for the awesome library, I was using SDWebImage and I was getting a lot of crashes as my app is heavily loaded with images, and I had spikes of 1.2GB of memory and an average of 800MB. With Yap I was able to cut down to an average of 200MB.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.