Code Monkey home page Code Monkey logo

Comments (3)

dblock avatar dblock commented on June 18, 2024

@orta any ideas what this could be?

from artiledimageview.

orta avatar orta commented on June 18, 2024

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.

dblock avatar dblock commented on June 18, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.