Problem with loading files in Safari browser

46 views
Skip to first unread message

Roman Kravchenko

unread,
Mar 28, 2014, 1:08:27 PM3/28/14
to emscripte...@googlegroups.com
Hi,
For last few days I try to run my cocos2d-x programm on javascript with emscripten. For this moment it work fine in Chrome, Opera and Firefox. And now I have problems with Safari. It can`t load files and finished with errors when progress bar in finished on "Downloading data..."
[Error] 
        TypeError: 'undefined' is not an object (evaluating 'canvas.exitPointerLock.bind')
init (HelloCpp.js, line 6632)
createPreloadedFile (HelloCpp.js, line 5760)
onload (HelloCpp.data.js, line 30)
processPackageData (HelloCpp.data.js, line 160)
onload (HelloCpp.data.js, line 147)

It`s crashes on first file. Places are:
HelloCpp.data.js, line 30: 
      Module['FS_createPreloadedFile']('/', 'CloseNormal.png', byteArray, true, true, function() {
        Module['removeRunDependency']('fp CloseNormal.png');
      });
HelloCpp.data.js, line 160:
        curr = DataRequest.prototype.requests['CloseNormal.png'];
        curr.response = byteArray.subarray(0,6835);
        curr.onload();
HelloCpp.data.js, line 147:
      xhr.onload = function(event) {
        var packageData = xhr.response;
        callback(packageData);
      };

What you think about this and how I can fix this problem?

Alon Zakai

unread,
Mar 28, 2014, 2:11:26 PM3/28/14
to emscripte...@googlegroups.com
Can you please make a small testcase showing the issue? Then we can test on that and see if it's emscripten's fault, or something we need to file for webkit to fix.

- Alon



--
You received this message because you are subscribed to the Google Groups "emscripten-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to emscripten-disc...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages