Xcode 7 Beta 4/5 - New Playground EXC_BAD_ACCESS error

All I do is simply create a new playground in Xcode 7 beta 4 or 5 and I get the following error: Playground execution aborted: Execution was interrupted, reason: EXC_BAD_ACCESS (code=1, address=0x8).


Here is the error in the colsole:


10/08/2015 09:50:14.757 com.apple.dt.Xcode.Playground[13950]: IDEPlaygroundExecutionSessionThread(pid=14157) IDEPlaygroundExecution: Playground execution failed: Error Domain=IDEPlaygroundErrorDomain Code=3 "Execution was interrupted, reason: EXC_BAD_ACCESS (code=1, address=0x8)." UserInfo=0x7fd6d06b6ee0 {IDEPlaygroundExprCrashDate=2015-08-10 08:50:14 +0000, IDEPlaygroundExprCrashBacktrace=* thread #1: tid = 0x4e701d, 0x000000010ffae962 libicucore.A.dylib`utext_clone + 22, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=1, address=0x8)
  * frame #0: 0x000000010ffae962 libicucore.A.dylib`utext_clone + 22
    frame #1: 0x00000001100e7c12 libicucore.A.dylib`icu::RegexMatcher::reset(UText*) + 54
    frame #2: 0x00000001101223e4 libicucore.A.dylib`uregex_setText + 222
    frame #3: 0x000000010da8f765 Foundation`-[NSRegularExpression(NSMatching) enumerateMatchesInString:options:range:usingBlock:] + 2325
    frame #4: 0x000000010dada1de Foundation`-[NSRegularExpression(NSMatching) matchesInString:options:range:] + 152
    frame #5: 0x000000010daf731d Foundation`-[NSRegularExpression(NSReplacement) stringByReplacingMatchesInString:options:range:withTemplate:] + 314
    frame #6: 0x000000010da44f72 PlaygroundLogger`function signature specialization <Arg[0] = Owned To Guaranteed and Exploded, Arg[1] = Owned To Guaranteed and Exploded> of PlaygroundLogger.Regex.replaceAll (PlaygroundLogger.Regex)(Swift.String, Swift.String) -> Swift.String + 530
    frame #7: 0x000000010da3e28f PlaygroundLogger`PlaygroundLogger.LoggerMirror.getSummaries (PlaygroundLogger.LoggerMirror)() -> (type_name : Swift.String, summary : Swift.String) + 383
    frame #8: 0x000000010da31362 PlaygroundLogger`function signature specialization <Arg[0] = Owned To Guaranteed> of PlaygroundLogger.PlaygroundObjectWriter.encodeQuickLook (PlaygroundLogger.PlaygroundObjectWriter)(PlaygroundLogger.LoggerMirror, Swift.PlaygroundQuickLook) -> () + 866
    frame #9: 0x000000010da37b92 PlaygroundLogger`function signature specialization <Arg[0] = Owned To Guaranteed> of PlaygroundLogger.PlaygroundObjectWriter.encode (PlaygroundLogger.PlaygroundObjectWriter)(PlaygroundLogger.LoggerMirror, Swift.UInt64) -> () + 1858
    frame #10: 0x000000010da30cd5 PlaygroundLogger`PlaygroundLogger.PlaygroundObjectWriter.encodeObject <A> (PlaygroundLogger.PlaygroundObjectWriter)(A, Swift.String) -> Swift.Int + 3125
    frame #11: 0x000000010da22feb PlaygroundLogger`PlaygroundLogger.playground_log_impl <A> (A, Swift.String) -> ObjectiveC.NSData + 555
    frame #12: 0x000000010da2325b PlaygroundLogger`playground_log_hidden + 571
    frame #13: 0x000000011873c128 $__lldb_expr5`main + 296 at playground5.swift:5
    frame #14: 0x000000010d9870f0 NewPlayground
    frame #15: 0x000000010d98a051 NewPlayground`reabstraction thunk helper from @callee_owned () -> (@unowned ()) to @callee_owned (@in ()) -> (@out ()) + 17
    frame #16: 0x000000010d989b01 NewPlayground`partial apply forwarder for reabstraction thunk helper from @callee_owned () -> (@unowned ()) to @callee_owned (@in ()) -> (@out ()) + 81
    frame #17: 0x000000010d98a080 NewPlayground`reabstraction thunk helper from @callee_owned (@in ()) -> (@out ()) to @callee_owned () -> (@unowned ()) + 32
    frame #18: 0x000000010d98a0b7 NewPlayground`reabstraction thunk helper from @callee_owned () -> (@unowned ()) to @callee_unowned @convention(block) () -> (@unowned ()) + 39
    frame #19: 0x000000010df9f41c CoreFoundation`__CFRUNLOOP_IS_CALLING_OUT_TO_A_BLOCK__ + 12
    frame #20: 0x000000010df95165 CoreFoundation`__CFRunLoopDoBlocks + 341
    frame #21: 0x000000010df94923 CoreFoundation`__CFRunLoopRun + 851
    frame #22: 0x000000010df94366 CoreFoundation`CFRunLoopRunSpecific + 470
    frame #23: 0x00000001146f6a3e GraphicsServices`GSEventRunModal + 161
    frame #24: 0x000000010e4648c0 UIKit`UIApplicationMain + 1282
    frame #25: 0x000000010d98751c NewPlayground`main + 1068
    frame #26: 0x0000000110cae145 libdyld.dylib`start + 1
    frame #27: 0x0000000110cae145 libdyld.dylib`start + 1
, IDEPlaygroundExprCrashMessage=Execution was interrupted, reason: EXC_BAD_ACCESS (code=1, address=0x8)., IDEPlaygroundExprCrashLineNumber=4, NSLocalizedDescription=Execution was interrupted, reason: EXC_BAD_ACCESS (code=1, address=0x8).}


I've had this issue since beta 4, and I thought it would get fixed in beta 5, but no luck.


Has anyone come across this problem? Or better yet, does anyone know what it is an how to overcome it?


Thanks.

Seems like im not the only one having issues with this: https://forums.developer.apple.com/thread/12838


Here is a screen shot of the playground since image updaloding doesn't seem to be working on these forums: https://www.imageupload.co.uk/images/2015/08/10/ScreenShot2015-08-10at09.46.51.png

Please file a bug report.

I've managed to fix the issue by deleting Xcod and all of Xcodes persistant data (Library/Developer ect) and reinstalling, so it appears that something messed up inernally.


@JackL - I will file a bug report and link to this post. (EDIT: Here is the bug report ID: 2224795)

I'm having a similar issue with libicucore with beta 5. I logged bug 22241679.

Xcode 7 Beta 4/5 - New Playground EXC_BAD_ACCESS error
 
 
Q