Storyboard transition bug (since new daily build)

Hey Rob,

I see. But do you think that willEnterScene is now working the way it’s supposed to be?

I think it’s broken and needs to be fixed. [import]uid: 140000 topic_id: 34880 reply_id: 144778[/import]

I’m not sure. I’ve really only used it in one app and that app was working the way I wanted it.

[import]uid: 199310 topic_id: 34880 reply_id: 144805[/import]

I’ve uploaded a bug report with a sample code where you can clearly see that it doesn’t work properly ( at least not with transitions ), because it fires directly after exitscene and before the transition is done. no matter what you put in there.

from now on I’ll leave this up to you, because I don’t have time for this and also realized that you made a good point with the problem of removing the running code, so I built a workaround and do it more or less like in the new daily build demo example. I purge the last scene in the new scene. everything else I need to do I put into the destroyScene function of the respective scene. thanks for the hint. [import]uid: 140000 topic_id: 34880 reply_id: 144816[/import]

Hey there,

I’ve finally figured out what the problem is. Every scene in my app needs to be purged and removed after it’s out of the focus because of several reasons ( mainly because of memory leaks )

I did it like this:

  
function scene:didExitScene( event )  
 local group = self.view  
  
 storyboard.purgeScene("seo4")  
 storyboard.removeScene("seo4")  
  
end  
  
scene:addEventListener( "didExitScene", scene)  
  

when I take these lines out it works fine. But I think this is a bug in the new daily builds because before it worked and when they’re in it behaves like these lines would be in the exitScene listener and not in the didExitScene listener.

This is really important for me. Do you have any idea how I can purge the scene after it’s out of the focus ( after the transition’s done ) or please suggest the team to fix this issue as soon as they can?

best regards,
roman [import]uid: 140000 topic_id: 34880 reply_id: 144020[/import]

this is my transition:

 transition\_slideleft =  
 {  
 effect = "slideLeft",  
 time = 400 --,  
 }  
  
storyboard.gotoScene( "home", transition\_slideleft )  
  

[import]uid: 140000 topic_id: 34880 reply_id: 144516[/import]

I just had a sneak at the new storyboard demo in the daily build 2013.1038.

the coronalabs team purges the previous scene in the enterScene event. that’s fine but I need to do it in the didExitscene routine.

I uploaded an example code for you and created a bug report.

http://tinyurl.com/c2m9c8q
I really hope that this issue will be fixed very soon. sorry to be so obstrusive but this is imporant to me. [import]uid: 140000 topic_id: 34880 reply_id: 144522[/import]

You really probably should not try to remove or purge a scene that’s still being worked with. Even though didExitScene() would make you think it’s over, that code is still part of that module and removing it is removing running code.

It’s best to purge/remove either before you goto a scene initially to make sure all is cleared out, or purge/remove in the destination scene. [import]uid: 199310 topic_id: 34880 reply_id: 144602[/import]

hey rob, thanks for the reply.

my question is: what was the initial purpose of or idea behind didExitScene() then ?
I didn’t have any problems with purging the scene when didExitScene was still working. I get your point though. but it makes things very difficult for me and I don’t understand the whole idea of didExitScene anymore

I didn’t only use didExitScene for purging but also for other things. I was thinking about a timer but that’s pretty messy. Is there a way to find out if a scene is out of the focus?

why don’t you just bring it back to me? :wink: [import]uid: 140000 topic_id: 34880 reply_id: 144659[/import]

willEnterScene() and willExitScene() complicate up the framework. But they serve a purpose of giving you a chance to do things before enterScene() and exitScene().

[import]uid: 199310 topic_id: 34880 reply_id: 144754[/import]

Hey Rob,

I see. But do you think that willEnterScene is now working the way it’s supposed to be?

I think it’s broken and needs to be fixed. [import]uid: 140000 topic_id: 34880 reply_id: 144778[/import]

I’m not sure. I’ve really only used it in one app and that app was working the way I wanted it.

[import]uid: 199310 topic_id: 34880 reply_id: 144805[/import]

I’ve uploaded a bug report with a sample code where you can clearly see that it doesn’t work properly ( at least not with transitions ), because it fires directly after exitscene and before the transition is done. no matter what you put in there.

from now on I’ll leave this up to you, because I don’t have time for this and also realized that you made a good point with the problem of removing the running code, so I built a workaround and do it more or less like in the new daily build demo example. I purge the last scene in the new scene. everything else I need to do I put into the destroyScene function of the respective scene. thanks for the hint. [import]uid: 140000 topic_id: 34880 reply_id: 144816[/import]

Hey there,

I’ve finally figured out what the problem is. Every scene in my app needs to be purged and removed after it’s out of the focus because of several reasons ( mainly because of memory leaks )

I did it like this:

  
function scene:didExitScene( event )  
 local group = self.view  
  
 storyboard.purgeScene("seo4")  
 storyboard.removeScene("seo4")  
  
end  
  
scene:addEventListener( "didExitScene", scene)  
  

when I take these lines out it works fine. But I think this is a bug in the new daily builds because before it worked and when they’re in it behaves like these lines would be in the exitScene listener and not in the didExitScene listener.

This is really important for me. Do you have any idea how I can purge the scene after it’s out of the focus ( after the transition’s done ) or please suggest the team to fix this issue as soon as they can?

best regards,
roman [import]uid: 140000 topic_id: 34880 reply_id: 144020[/import]

this is my transition:

 transition\_slideleft =  
 {  
 effect = "slideLeft",  
 time = 400 --,  
 }  
  
storyboard.gotoScene( "home", transition\_slideleft )  
  

[import]uid: 140000 topic_id: 34880 reply_id: 144516[/import]

I just had a sneak at the new storyboard demo in the daily build 2013.1038.

the coronalabs team purges the previous scene in the enterScene event. that’s fine but I need to do it in the didExitscene routine.

I uploaded an example code for you and created a bug report.

http://tinyurl.com/c2m9c8q
I really hope that this issue will be fixed very soon. sorry to be so obstrusive but this is imporant to me. [import]uid: 140000 topic_id: 34880 reply_id: 144522[/import]

You really probably should not try to remove or purge a scene that’s still being worked with. Even though didExitScene() would make you think it’s over, that code is still part of that module and removing it is removing running code.

It’s best to purge/remove either before you goto a scene initially to make sure all is cleared out, or purge/remove in the destination scene. [import]uid: 199310 topic_id: 34880 reply_id: 144602[/import]

hey rob, thanks for the reply.

my question is: what was the initial purpose of or idea behind didExitScene() then ?
I didn’t have any problems with purging the scene when didExitScene was still working. I get your point though. but it makes things very difficult for me and I don’t understand the whole idea of didExitScene anymore

I didn’t only use didExitScene for purging but also for other things. I was thinking about a timer but that’s pretty messy. Is there a way to find out if a scene is out of the focus?

why don’t you just bring it back to me? :wink: [import]uid: 140000 topic_id: 34880 reply_id: 144659[/import]

willEnterScene() and willExitScene() complicate up the framework. But they serve a purpose of giving you a chance to do things before enterScene() and exitScene().

[import]uid: 199310 topic_id: 34880 reply_id: 144754[/import]

Hey Rob,

I see. But do you think that willEnterScene is now working the way it’s supposed to be?

I think it’s broken and needs to be fixed. [import]uid: 140000 topic_id: 34880 reply_id: 144778[/import]

I’m not sure. I’ve really only used it in one app and that app was working the way I wanted it.

[import]uid: 199310 topic_id: 34880 reply_id: 144805[/import]