We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
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).
if let
guard let
self
-[GKGraphNode dealloc] + 31 frame #1: 0x00007fff9ffbb2dd CoreFoundation
object_cxxDestructFromClass(objc_object*, objc_class*) + 127 frame #3: 0x00007fff95181383 libobjc.A.dylib
object_dispose + 22 frame #5: 0x0000000110d389d1 GameplayKit
__lldb_expr_36.Broken.deinit(self=0x00007f81a3115c20) + 35 at <EXPR>:0 frame #7: 0x0000000110dc8438 $__lldb_expr36
main + 725 at <EXPR>:0 frame #9: 0x000000010bafd710 Gameplay
reabstraction thunk helper from @callee_owned () -> (@unowned ()) to @callee_owned (@in ()) -> (@out ()) + 17 frame #11: 0x000000010bafe881 Gameplay
reabstraction thunk helper from @callee_owned (@in ()) -> (@out ()) to @callee_owned () -> (@unowned ()) + 32 frame #13: 0x000000010bafebe7 Gameplay
__CFRUNLOOP_IS_CALLING_OUT_TO_A_BLOCK** + 12 frame #15: 0x00007fffa0016b65 CoreFoundation
__CFRunLoopRun + 910 frame #17: 0x00007fffa0015d38 CoreFoundation
RunCurrentEventLoopInMode + 235 frame #19: 0x00007fff98922a97 HIToolbox
_BlockUntilNextEventMatchingListInModeWithFilter + 71 frame #21: 0x00007fff92642236 AppKit
-[NSApplication _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 454 frame #23: 0x00007fff926361c8 AppKit
main + 696 frame #25: 0x00007fff932d75ad libdyld.dylib
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
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Description
Summary:
The following code reliably produces a crash.
Steps to Reproduce:
import GameplayKit
class Broken {
let graph: GKGridGraph
}
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).
if let
andguard let
to assign toself
in failable value type initializers #1: tid = 0x4576a, 0x0000000110d3d63f GameplayKit`-[GKGraphNode dealloc] + 31, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=EXC_I386_GPFLT)-[GKGraphNode dealloc] + 31 frame #1: 0x00007fff9ffbb2dd CoreFoundation
-[**NSArrayM dealloc] + 205frame 22108390: Swift 2.0b4: Allow assignment of nil to self in failable initializers to indicate failure #2: 0x00007fff95188b81 libobjc.A.dylib
object_cxxDestructFromClass(objc_object*, objc_class*) + 127 frame #3: 0x00007fff95181383 libobjc.A.dylib
objc_destructInstance + 116frame 22108127: Apple Music: CarPlay does not show the For You Playlists #4: 0x00007fff951812e5 libobjc.A.dylib
object_dispose + 22 frame #5: 0x0000000110d389d1 GameplayKit
-[GKGraph dealloc] + 65frame 22108095: Changing account in Music app requires force-quit #6: 0x0000000110dc84b3 $__lldb_expr36
__lldb_expr_36.Broken.deinit(self=0x00007f81a3115c20) + 35 at <EXPR>:0 frame #7: 0x0000000110dc8438 $__lldb_expr36
__lldb_expr_36.Broken.__deallocating_deinit + 24 at :0frame 22107434: Providing Generic Generator for protocol intermittently crashes compiler #8: 0x0000000110dc82d5 $__lldb_expr36
main + 725 at <EXPR>:0 frame #9: 0x000000010bafd710 Gameplay
_mh_execute_header + 22288frame 22107245: Xcode 7 beta 4 (7A165t) Interface Builder ignores background color set on UITableView #10: 0x000000010bafeb31 Gameplay
reabstraction thunk helper from @callee_owned () -> (@unowned ()) to @callee_owned (@in ()) -> (@out ()) + 17 frame #11: 0x000000010bafe881 Gameplay
partial apply forwarder for reabstraction thunk helper from @callee_owned () -> (@unowned ()) to @callee_owned (@in ()) -> (@out ()) + 81frame 22106516: watchOS 2 Beta 4: Can’t Import CoreText #12: 0x000000010bafebb0 Gameplay
reabstraction thunk helper from @callee_owned (@in ()) -> (@out ()) to @callee_owned () -> (@unowned ()) + 32 frame #13: 0x000000010bafebe7 Gameplay
reabstraction thunk helper from @callee_owned () -> (@unowned ()) to @callee_unowned @convention(block) () -> (@unowned ()) + 39frame 22105625: Mac OS X 10.11: Battery status alwasy shows "20:00 Remaining" #14: 0x00007fffa003724c CoreFoundation
__CFRUNLOOP_IS_CALLING_OUT_TO_A_BLOCK** + 12 frame #15: 0x00007fffa0016b65 CoreFoundation
__CFRunLoopDoBlocks + 341frame 22103992: Stack implemented with enum causes Abort trap: 6 #16: 0x00007fffa001632e CoreFoundation
__CFRunLoopRun + 910 frame #17: 0x00007fffa0015d38 CoreFoundation
CFRunLoopRunSpecific + 296frame 22103156: News app interface sometimes not visible or incorrect #18: 0x00007fff98922d55 HIToolbox
RunCurrentEventLoopInMode + 235 frame #19: 0x00007fff98922a97 HIToolbox
ReceiveNextEventCommon + 184frame 22102128: Face detection accuracy is bad #20: 0x00007fff989229cf HIToolbox
_BlockUntilNextEventMatchingListInModeWithFilter + 71 frame #21: 0x00007fff92642236 AppKit
_DPSNextEvent + 1067frame 22098492: Xcode-beta (7A165t): UI Tests: secureTextFields are duplicated #22: 0x00007fff92641665 AppKit
-[NSApplication _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 454 frame #23: 0x00007fff926361c8 AppKit
-[NSApplication run] + 682frame 22096010: Impossible to inspect the contents of the Core Spotlight index #24: 0x000000010bafd9c8 Gameplay
main + 696 frame #25: 0x00007fff932d75ad libdyld.dylib
start + 1frame 22094417: UIPrintInteractionController does not indicate its method of dismissal #26: 0x00007fff932d75ad libdyld.dylib`start + 1
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
The text was updated successfully, but these errors were encountered: