IntelLabs / RiverTrail

An API for data parallelism in JavaScript
Other
748 stars 71 forks source link

ProceduralTerrain demo raises various errors on Mac #50

Closed lkuper closed 9 years ago

lkuper commented 9 years ago

On Mac, the ProceduralTerrain demo runs very slowly and I get the following errors:

SyntaxError: 'use strict' statement won't be enforced as a directive because it isn't in directive prologue position RiverTrail.js:4435
SyntaxError: 'use strict' statement won't be enforced as a directive because it isn't in directive prologue position RiverTrail.js:4648
SyntaxError: 'use strict' statement won't be enforced as a directive because it isn't in directive prologue position RiverTrail.js:6774
TypeError: variable other redeclares argument RiverTrail.js:9616
ReferenceError: assignment to undeclared variable Narcissus RiverTrail.js:75
mutating the [[Prototype]] of an object will cause your code to run very slowly; instead create the object with the correct initial [[Prototype]] value using Object.create RiverTrail.js:6725
"It looks like 64-bit floating point isn't supported." RiverTrail.js:4761
"enable64BitFloatingPoint: false" RiverTrail.js:4763
ReferenceError: reference to undefined property dataInstance.name RiverTrail.js:3901
ReferenceError: reference to undefined property dataInstance._name RiverTrail.js:3904
ReferenceError: assignment to undeclared variable comment RiverTrail.js:2357
ReferenceError: reference to undefined property ast.children[1] RiverTrail.js:10406
ReferenceError: assignment to undeclared variable left RiverTrail.js:10367
ReferenceError: assignment to undeclared variable key RiverTrail.js:9930
ReferenceError: reference to undefined property tokens[n.type] RiverTrail.js:3767
ReferenceError: assignment to undeclared variable errorString Debug.js:50

This is followed by a long sequence of:

"" RiverTrail.js:7033
"comprehension failed: The OpenCL compiler failed. Log was `'." RiverTrail.js:5225
lkuper commented 9 years ago

I can no longer reproduce this error with ProceduralTerrain. On my Mac, the demo is still running more slowly without River Trail than with, but it's at least running.

I see no errors being logged when I run it in a Firefox launched with cfx run on Mac, but, oddly enough, if I run it in my regular Firefox on Mac, I see lots of

TypeError: ctypes.UInt64("240") is not extensible
TypeError: ctypes.UInt64("424") is not extensible

as in issue #51. I'm stumped by this, and since I can't reproduce the original bug any longer, I'm going to close this for now.