TomaszFurca Posted February 24, 2018 Share Posted February 24, 2018 Hi, today I want to test webworkers in my game, but after enable webworker in scene i got error: Uncaught TypeError: Failed to execute 'postMessage' on 'DedicatedWorkerGlobalScope': The 2nd argument is neither an array, nor does it have indexed properties. at r.onInit (blob:http://localhost:3000/97cbf9d7-d3d9-4f64-87d0-f42891dbe7b6:1) at s (blob:http://localhost:3000/97cbf9d7-d3d9-4f64-87d0-f42891dbe7b6:1) Quote Link to comment Share on other sites More sharing options...
RaananW Posted February 26, 2018 Share Posted February 26, 2018 Is this the collision worker? Quote Link to comment Share on other sites More sharing options...
RaananW Posted February 26, 2018 Share Posted February 26, 2018 https://github.com/BabylonJS/Babylon.js/pull/3823 TomaszFurca 1 Quote Link to comment Share on other sites More sharing options...
TomaszFurca Posted February 26, 2018 Author Share Posted February 26, 2018 Yes, this is collision worker :). Quote Link to comment Share on other sites More sharing options...
TomaszFurca Posted February 27, 2018 Author Share Posted February 27, 2018 I just saw next problem with webworkers. I using moveWithCollision method to player movement. After set flag to enable on workerCollisons on scene my mesh don't run. after set disable mesh moving without any problem. I can not reproduce that on PH, brcause i don't know how i can include bjs with workers. Quote Link to comment Share on other sites More sharing options...
RaananW Posted February 28, 2018 Share Posted February 28, 2018 Interesting. The playground deosn't have the webworker version of the collisions enabled. is there any online example you can show me where it doesn't work? Quote Link to comment Share on other sites More sharing options...
TomaszFurca Posted February 28, 2018 Author Share Posted February 28, 2018 Yes of course, check on my dev server http://babylon.furcatomasz.pl/. Quote Link to comment Share on other sites More sharing options...
TomaszFurca Posted March 3, 2018 Author Share Posted March 3, 2018 @RaananW Do you try debug it on my preview server? Quote Link to comment Share on other sites More sharing options...
RaananW Posted March 5, 2018 Share Posted March 5, 2018 Hi @TomaszFurca, would be great to have it reproduced in a simpler way , also including the max version of babylon, so I could really follow up on what's happening. A simpler debuggable scene would be very helpful. Quote Link to comment Share on other sites More sharing options...
TomaszFurca Posted September 26, 2018 Author Share Posted September 26, 2018 @RaananW I back to debug my problem in game. And It looks for problem with cloned mesh with workers collisions. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.