wasabia / three_dart

three.js rewrite by Dart, Dart 3D library. an easy to use, lightweight, cross-platform, general purpose 3D library.
MIT License
450 stars 80 forks source link

Assigning an array of materials to a mesh results in a native crash on MacOS #144

Open Norbert515 opened 1 year ago

Norbert515 commented 1 year ago
    var mat = MeshPhongMaterial({'shininess': 10, 'name': 'box'});
    var diceMesh = THREE.Mesh(THREE.BoxGeometry(1, 1, 1), [
      mat,
      mat,
      mat,
      mat,
      mat,
      mat,
    ]);

Crashes the application natively with the following native error (uploaded as txt cause of the 65536 character limit):

error.txt

Knightro63 commented 11 months ago

Hi @Norbert515,

I have tried to mimic your error, but have not succeeded. I was wondering what type of mac you are using. I have ran this on both an M1 and M2.

Also what version of three_dart are you using.

Lastly can you try this forked repo to see if it has the issue?

https://github.com/Knightro63/three_dart

Thanks.