Strange problem when go to other scene

Hello everyone,

I want to go from scene1 to scene2 and the simulator gives me this error:

createScene1
enterScene1
exitScene1
WARNING: Cannot transition to a scene that does not exist. If you called storyboard.removeScene() on a scene that is NOT represented by a module, the scene must be recreated before transitioning back to it.

In the enterScene of scene2 i’m loading a lot of big spritesheets. If i comment some of them the error doesn’t appeared. The strange thing is that doesn’t matter what especifique sprite i comment, the error disappears if i comment two of them.

I think the error isn’t about creating scenes or go to it, because i’m not doing it when i load the sprites.

It is possible that the problem appears when i load a lot of things? There is a limit in MB for applications?

Thank you [import]uid: 105206 topic_id: 24694 reply_id: 324694[/import]

I tryed the code in other version of corona simulator and the errors that appeared were different.

I comment other things and uncomment the spritesheets and the application works.

It’s possible that the problem be a limitation of lines in one function? (enterScene in this case)?

Thanks [import]uid: 105206 topic_id: 24694 reply_id: 100095[/import]

Hey are you using the Enhanced UI.lua file. If you are then stop for now.

I know I was using it for the toggles, but there is a problem and I submitted it to Ansca.

(Case 13532) Storyboard Error - Cannot transition to a scene that does not exist

Larry [import]uid: 11860 topic_id: 24694 reply_id: 100190[/import]

Actually this is a bigger problem then I thought. I have a simple LUA Class that I just added to my project

local toggle = require( “toggle” )

It works beautifully when not used in the storyboard. But you added it to a storyboard screen then BOOM you get the above Error…

ANSCA HELP Please what can we no longer include ( oo Class LUA files )

Larry [import]uid: 11860 topic_id: 24694 reply_id: 100195[/import]

Hey Larry, can you add that to your bug report please?

You can update it by replying to the email you received when you filed it; any replies to that email (including attachments) will automatically update the fogbuz case. [import]uid: 52491 topic_id: 24694 reply_id: 100277[/import]

I am seeing this as well … i have a fairly recent daily build and i think that the story board error is masking the real error … often times it because i have a syntax error (forgot and “end” or similar).

But unless you are making 1 change at a time this “bug” is a real problem as it becomes difficult to figure out which of the files you changed is causing the issue.

[import]uid: 118012 topic_id: 24694 reply_id: 101926[/import]

Ok the local toggle = require( “toggle” ) is resolved, the problem with that was i still had a require Enhanced UI.lua

require(“ui”)

I’ll see about a quick cut down example this afternoon to upload.

Larry

[import]uid: 11860 topic_id: 24694 reply_id: 101942[/import]

Just FYI, most storyboard transition errors I’ve seen so far are because of a compile error in the scene file; it just doesn’t tell you the error.

The fastest way to find the real error is to just include the destination file.

[code] – itemmenu.lua
local storyboard = require(“storyboard”)
local munchies = require(“munchies”) – add this temporarily

storyboard.gotoScene(“munchies”)[/code]

That way it tends to error out immediately and give you the actual problem and/or problem line, as opposed to just a warning… [import]uid: 41884 topic_id: 24694 reply_id: 101954[/import]

Thanks for the tip. It would be nice if the Corona code was not Swallowing the real compile time exception so we did not have to spend the time with such work arounds … :slight_smile:

[import]uid: 118012 topic_id: 24694 reply_id: 102081[/import]

. [import]uid: 50511 topic_id: 24694 reply_id: 102150[/import]

did this issue get fixed? I am currently getting the “Cannot transition to a scene that does not exist” error on the device only [import]uid: 127214 topic_id: 24694 reply_id: 105382[/import]

I do not believe it was fixed. Their exception handling in the storyboard is masking the real error still. Had to resort to requiring files in my Main for debug purposes to see the real compiler errors.

[import]uid: 118012 topic_id: 24694 reply_id: 105385[/import]

I just rolled back to build 799 and it got fixed. The scene works again. [import]uid: 127214 topic_id: 24694 reply_id: 105391[/import]

We are aware of the issue in 805 and 806 on device only, not on simulator - we’re working on it right now. [import]uid: 52491 topic_id: 24694 reply_id: 105411[/import]

Hey guys, it should be working OK in the newest daily build (807).

Any issues please bump :slight_smile:

Peach [import]uid: 52491 topic_id: 24694 reply_id: 105524[/import]