"Exception thrown" error after I updated Corona to latest daily build

Hi. I was experimenting with new html5 function, but the game I was making stopped working after I updated Corona to the latest daily build. Before updating, the game worked fine, without any changes in its code.

The game works good inside the corona simulator and when built for win32, but when I try to run it on the browser it shows the “Expection thrown, see Javascript console” text, before showing the normal Corona loading screen. 

When running on the simulator it shows no error message in the console and I tried to make a new project and then copy the entire build.setting table in the new one, and it works good. So the problem must not be there.

The problem seems related to resource loading: on the firefox console I can see many errors (but I don’t really know what they mean):

It starts with the line:

“Error: File exists”

Then it shows many lines like this:

[post-exception status] Preparing… (1/167)

[post-exception status] Preparing… (2/167)

When opened those line show:

printErr file:///C:/Users/mirco/Documents/Corona%20Built%20Apps/MyGame/index.html:81:13 window.onerror/Module.setStatus file:///C:/Users/mirco/Documents/Corona%20Built%20Apps/MyGame/index.html:124:21 monitorRunDependencies file:///C:/Users/mirco/Documents/Corona%20Built%20Apps/MyGame/index.html:115:11 removeRunDependency blob:null/9cc7ba89-4b2b-484a-88e3-9e553467b2ed:1:36550 finish blob:null/9cc7ba89-4b2b-484a-88e3-9e553467b2ed:1:187146 img_onload blob:null/9cc7ba89-4b2b-484a-88e3-9e553467b2ed:1:101166

And at last, sometimes a line like this appears:

Preloading file /MyImage.png failed

I checked it for any image in my project, and there seems to be a problem loading any of them.

Is the image really named “MyImage.png” or could it be “myimage.png”?  The Windows operating system is not case-sensitive with regards to file names, however, HTML5 probably is.

Rob

No I just put “MyImage.png” as an example here, however the image’s names are correct. Plus, if I required the image in the code with the wrong name the error should happen when the code is executed, while here the whole project does not load at all.

can you share the link to app ? on what browser did you try it ?

I’ll do it. Meanwhile, is there any documentation about corona html5, where I can read if there is any limitation I didn’t know about (like in the screen size, or in the sub folder you use for data).
About the browser, I tested it on Firefox and chrome. It worked well on both before updating Corona to the latest build.

btw, try to clear target folder and rebuilt the app… maybe old index.html was used ?

Thanks, this was the problem. Now it works fine :slight_smile:

Is the image really named “MyImage.png” or could it be “myimage.png”?  The Windows operating system is not case-sensitive with regards to file names, however, HTML5 probably is.

Rob

No I just put “MyImage.png” as an example here, however the image’s names are correct. Plus, if I required the image in the code with the wrong name the error should happen when the code is executed, while here the whole project does not load at all.

can you share the link to app ? on what browser did you try it ?

I’ll do it. Meanwhile, is there any documentation about corona html5, where I can read if there is any limitation I didn’t know about (like in the screen size, or in the sub folder you use for data).
About the browser, I tested it on Firefox and chrome. It worked well on both before updating Corona to the latest build.

btw, try to clear target folder and rebuilt the app… maybe old index.html was used ?

Thanks, this was the problem. Now it works fine :slight_smile: