Skip to content
This repository was archived by the owner on Aug 25, 2023. It is now read-only.

Fix for #26: crash during rendering - #31

Closed
ghost wants to merge 1 commit into
masterfrom
unknown repository
Closed

ghost wants to merge 1 commit into
masterfrom
unknown repository

Conversation

@ghost

@ghost ghost commented Feb 4, 2014

Copy link
Copy Markdown

This prevents loadTileAtPath: from making any calls to result(..) after the MBXMapView's has been dismissed, because that can cause a crash. The problem is mostly due to the completion handlers for download session tasks, since downloads may be in progress while the mapView is being deallocated.

@lightandshadow68, does this stuff,

[super setDelegate:nil];
_ownedDelegate.realDelegate = nil;
_ownedDelegate = nil;

correspond to what you mentioned at #26 (comment) ? I didn't use MBXMapView's setDelegate: method because it includes a call to reloadRenderer which seems like it could easily cause further problems.

@ghost

ghost commented Feb 21, 2014

Copy link
Copy Markdown
Author

This doesn't work, and the problem is apparently a bug in MKMapKit which can be best worked around at the view controller level. See #26 (comment)

@ghost ghost closed this Feb 21, 2014
@ghost
ghost deleted the issue26fix-noDemo branch February 26, 2014 01:55
This pull request was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants