Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

22754268: GKGridGraph of size (1,1) crashes when autoreleased #6097

Open
openradar-mirror opened this issue Sep 18, 2015 · 0 comments
Open

Comments

@openradar-mirror
Copy link

Description

Summary:
The following code reliably produces a crash.

Steps to Reproduce:
import GameplayKit

class Broken {
let graph: GKGridGraph

init() {
    graph = GKGridGraph(fromGridStartingAt: [0, 0], width: 1, height: 1, diagonalsAllowed: false)
}

}

var g: Broken?
autoreleasepool {
g = Broken()
}

g = nil

Expected Results:
No crashes or errors.

Actual Results:
Playground execution failed: Execution was interrupted, reason: EXC_BAD_ACCESS (code=EXC_I386_GPFLT).

Version:
Xcode 7.1 beta (7B60)

Notes:
When width>1 or height>1, the crash does not occur.

Configuration:
OS X 10.11 (15A279b)

Product Version:
Created: 2015-09-18T07:28:41.208950
Originated: 2015-09-18T00:00:00
Open Radar Link: http://www.openradar.me/22754268

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

1 participant