Repository navigation
Conversation
|
I'm seeing a pretty consistent crash when running the sample project on the 132-renderer branch. It's failing in Here's the crash report. I was seeing it on iPhone 6 iOS 8.1.1. |
|
Thanks for that, @robmaceachern. I'll check it out. |
|
@robmaceachern Can you give the latest iteration of the branch (with 3f5cfa7) a try? The crash logs seems to say that this is related to use of That is, UIKit clearly shouldn't draw or update UI from background threads, but it's open to interpretation whether image instantiation is ok. Also, note that at least in my device testing, using a |
|
Trying to push a bit more of the image work out to |
|
@robmaceachern The thing I don't understand about that is how that point in the control flow is reached then, since just three lines above, there is an |
|
Self can go away between those lines or not? |
|
|
|
@incanus I just noticed your commit. I'll try to reproduce the problem again. |
|
Yeah, please see if you can reproduce. I cut out all use of Now I'm working on performance — I don't like it, and ~40% of the time is spent in PNG encoding after slicing |
|
Just got another, different, EXC_BAD_ACCESS in some system networking code while running on the iPhone 6 simulator. |
|
Storing raw pixel data in the memory cache isn't much faster, and the bottleneck is copying the individual Trying the approach now of caching the |
|
Just a summary, for my own reference (since I had to re-look it up to remind myself) on why we are splitting
|
|
Ok, a very promising lead now. 40f71de brings in a change that calls I also added c7a82c3, which responds to low system memory and jettisons the in-memory cache of tiles, which seems like a good idea given the amount of memory we're talking about. However, in lots of testing on a retina iPad, even with 300-400MB of app memory usage I wasn't able to trigger it very often. |
|
Yet another very promising lead, the best one yet. Even with the above, I was able to reproduce the crash again. I investigated the However, this sounds rather transient and is probably going away out from under us. Trying either an No dice. However 226edce uses This copy happens in the main thread, then the copy is captured in the async block scope and dealt with (validated & cached) off the main thread, then ARC disposes of it, regardless of what has already happened with the original dispatched version's lifetime. And now I've been unable to replicate the crash. |
Could be, but Occam's Razor says it's something we're doing. My guess could be maybe something around the passing of |
Gonna try gutting this for |
|
Ok, tried a number of approaches around reducing nesting of blocks, manually copying blocks, and otherwise being very explicit around blocks, with no luck. Went the route of replacing Curious how this works for you, @robmaceachern. |
|
I've yet to replicate a crash here since moving to |
|
Yeah, there's plenty of duplicate URL fetching going on here in response to MapKit's impatience. Will work on this. |
|
Ok, the duplicates were somewhat expected given that requests made for to-be-split |
|
No crashes for me 👍 Have you filed a radar for the NSURLSession issue? |
No, nor for the three MapKit bugs I am seeing around this. Will hopefully make up use cases for these & submit them. |
|
This branch fixes the log warnings for me too. No crashes, but I've only scrolled it around for a short moment. |
* brings back Mapbox v4 API & access token support, including to iOS 7 * sidesteps iOS 7 >256px tile render bug * sidesteps iOS 8 CGImageSourceCreateWithData log spew & crash bug * sidesteps NSURLSession block passing bug * adds an access token & v4 API use in the sample app * cleans up block syntax * safer render state mutation for lifecycle callbacks * explicitly turns off 3D buildings in MapKit for the sample app
|
Thanks @robmaceachern @jsuder for your patience and testing! I am feeling good about this and it's landed in |
|
@jsuder Hmm, that's deep in MapKit, and I haven't seen it before. Can you reliable replicate it? Device or sim? Particular UI interactions? |
|
I've only seen it twice today and I've run the app many times... It's on |






No description provided.