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

Dealloc crash on iPhone 5 #11

Open
technicallyerik opened this issue Apr 30, 2017 · 3 comments
Open

Dealloc crash on iPhone 5 #11

technicallyerik opened this issue Apr 30, 2017 · 3 comments

Comments

@technicallyerik
Copy link
Contributor

technicallyerik commented Apr 30, 2017

I'm pushing my SKView / SKTiledScene on a navigation controller from a vanilla UIKit menu view.

When I hit 'Back' on the navigation controller, I encounter a crash, but only on an iPhone 5:

2017-04-29 20:36:37.847 MyGame[32197:8936930] *** -[SKTiledScene release]: message sent to deallocated instance 0x7bf07ba0

It appears to be caused by the removeAllChildren() in the deinit of SKTiledScene.

Commenting it out address my problem, although at this time I'm not exactly sure why. It also doesn't appear to have a negative impact on my memory usage.

@mfessenden
Copy link
Owner

Is this running in the simulator, or the hardware itself?

@technicallyerik
Copy link
Contributor Author

This was the simulator. I'll try to give it a try with a physical iPhone 5 sometime soon.

@technicallyerik
Copy link
Contributor Author

Sorry I never replied. This happens on a physical iPhone 5 as well.

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

No branches or pull requests

2 participants