Comments (3)
@orta any ideas what this could be?
from artiledimageview.
this is weird,
my initial thoughts were that the ARTiledImageView
could be nil
'd during this, but the crash seems to be entirely related to local scope, so it's very unlikely. Perhaps this is a case of a secondary thread making changes to the urls dictionary? ( again, I think this won't be the case as urls isn't a instance var )
One potential fix, could be to switch to using - (void)enumerateKeysAndObjectsUsingBlock:(void (^)(id key, id obj, BOOL *stop))block
but you really should be safe to use the key when you're iterating
from artiledimageview.
The only explanation that I can come up with is that the object is being destroyed on one thread, and still being access on another. We do [self.downloadOperations objectForKey:tileCacheKey]
, as self.downloadOperations
is being cleared because dealloc
calls cancelConcurrentDownloads
, which calls [self.downloadOperations removeAllObjects];
, on different threads.
I added a synchronized
block, see cd3cd38.
from artiledimageview.
Related Issues (10)
- Include a script for generating tiles from an image HOT 4
- ARTiledImageDemoViewControllerSpec broken?
- Custom zoom step HOT 9
- Initially image is loaded in max zoom level. Is it possible to load it in fit to screen. HOT 5
- Change scale to fit to stretch to fill for image in tiles. HOT 5
- UIKit work is done on the main thread HOT 2
- Add an XCode 6 QuickLook preview of a tile HOT 2
- AV: crashes with tileSize = nil
- Ensure consistent headers
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 artiledimageview.