Xcode 8 error when start MyPlayground. How to fix it?

I created a new project in XCode. In the status box "Running MyPlaygeound" after error like this

error: Playground execution aborted: error: Execution was interrupted, reason: EXC_BAD_ACCESS (code=1, address=0x0).

The process has been left at the point where it was interrupted, use "thread return -x" to return to the state before expression evaluation.
Please help me (newbie)! Many thanks.


Hello! I'm having the same problem. Did you find a solution? Tnx!

I have same issue. I have just upgraded to macOS Sierra with XCode 8.1. When I start playground, its stuck with running playground and after 10min its throwing same error. 😟


file:///Users/xxxxx/Desktop/Developer/Swift-Playground/MyPlayground.playground/: error: Playground execution aborted: error: Execution was interrupted, reason: EXC_BAD_ACCESS (code=1, address=0x0).

The process has been left at the point where it was interrupted, use "thread return -x" to return to the state before expression evaluation.

I'm getting the same problem...

file:///.../MyPlayground.playground/: error: Playground execution aborted: error: Execution was interrupted, reason: EXC_BAD_ACCESS (code=1, address=0x0).

The process has been left at the point where it was interrupted, use "thread return -x" to return to the state before expression evaluation.

Any help with this would be fantastic.

I had the same issue and tried adding an additional line to the default playground text (the code that a new playground creates by default). Same error but then I went to the end of the file, backspaced over everything up to the end of the line with var string = "Hello, playground" and hit Enter and the playground worked! Somehow forcing XCode to reread the file without a bunch of trailing blank lines fixed it? Weird.

weird but works

Same error with XCode 8.1 and MacOS Sierra 10.12.4. I only deleted blankspaces between the code and evrything worked fine.

There were no empty lines to delete for me, so I deleted the line


var str = "Hello, playground"


and wrote that line again. Also, just in case, I wrote another line below it:


var str2 = "Hello, playground"

I'm getting something similar in Playground. It seems to be a bug in the compiler or REPL


I wrote a binary tree class as part of a tutorial. One optional task to was make the class conform to CustomStringConvertible and add var description. Well, the descriptions works, but when I add ": CustomStringConvertible" to the class signature, I get:
Execution was interrupted, reason: EXC_BAD_ACCESS (code=2, address=0x7ffee7999f40).



The place it happens should not even be calling description. The code is fine without that protocol conformance.


Seems like a bug in the compiler

Since the error says, 'The process has been left at the point where it was interrupted, use "thread return -x" to return to the state before expression evaluation.', where do I type "thread return -x"? The debug area doesn't let my type in it in Playground as it does in Xcode.

Xcode 8 error when start MyPlayground. How to fix it?
 
 
Q