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

CCLayerPanZoom: crash on line 289 #108

Open
hasyimibhar opened this issue Apr 27, 2012 · 2 comments
Open

CCLayerPanZoom: crash on line 289 #108

hasyimibhar opened this issue Apr 27, 2012 · 2 comments

Comments

@hasyimibhar
Copy link

I'm using CCLayerPanZoom for a game scene, and I noticed that if I touch the screen while the scene is transitioning in, it will crash. After digging in into the code, it appears that the crash is caused by an attempt to access an empty array (self.touches) on line 289. This happens because ccTouchesBegan never gets called when the scene is transitioning in.

@hasyimibhar
Copy link
Author

Oops, my mistake. Here's how to reproduce the crash:

  1. Instead of just simply running the scene, apply a transition effect (e.g. fade in).
  2. While the scene is transitioning in, touch the screen.
  3. After the transition is over, slide your finger.

@psineur
Copy link
Contributor

psineur commented Apr 27, 2012

To which class touches property belongs to?
Maybe you can provide a pull request?

Thanks!

27.04.2012, в 11:50, fishcakereply@reply.github.com написал(а):

I'm using CCLayerPanZoom for a game scene, and I noticed that if I touch the screen while the scene is transitioning in, it will crash. After digging in into the code, it appears that the crash is caused by an attempt to access an empty array (self.touches) on line 289. This happens because ccTouchesBegan never gets called when the scene is transitioning in.


Reply to this email directly or view it on GitHub:
#108

hasyimibhar pushed a commit to hasyimibhar/cocos2d-iphone-extensions that referenced this issue Apr 28, 2012
parchmann pushed a commit to scoyo/cocos2d-iphone-extensions that referenced this issue Jul 17, 2012
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