Skip to content

Multiple call Cesium.Model.fromGltfAsync not thread safe with gltf parameter #12580

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
mickae1 opened this issue Apr 22, 2025 · 1 comment
Open

Comments

@mickae1
Copy link
Contributor

mickae1 commented Apr 22, 2025

What happened?

I'm trying to call twice the function Cesium.Model.fromGltfAsync and I discovered, that it's not working correctly with gltf parameter

Reproduction steps

  1. go to the sandcastle example
  2. click run, there will be two balloon ( instead of a balloon and a truck )
  3. change the variable makeBug to false , then click run the truck showed !
  4. but it should be shown in the step 2

Sandcastle example

https://sandcastle.cesium.com/#c=pVZbb9s2FP4rhPciAw4lJ16bOU6w2G3ThwYrlmx70QslHdlEKFIgKTvekP++I1I3X1agqwHDIs/t48fvHDlV0liy5bADTW6JhB1ZgeFVQf90e0E8St16paRlXIKOR+ObWMYydZEFe4FltcZQqytwhjAkQrGMyzVZi4TMY8nMXqYkr2RquZLO+iCSJZdM74OS2c2Y/BNLQnxKDabEB8CcbMe4JTnYdOP9bno3pjXbL6s8d8C9ZxtKB8bAB2mwlZbugH9waa/va49g4Fe7vfUHQ+hLJoRCvG32Q9zxiNLwiRWlgA/MsrBQGQgTevaa0MMVxZyeva7Es67Sl/9T4JGLFxd8vO6LtGVKZXjN+xTrNHe7YtriE5NXNNeq+ABrDWCCi+nlFY3ez2bvpr9MyGxGo5+jq/fRuwmZRj3sNt/lD+SLhgA35ZH0PoOTz1eO9/67EiKIMOIoKOevkH3SrIBnzaTJlS56PN2WoUKlTHg/9amLeQBUMrMK9Y3aiEdSabuJRxO/2oGxbjFuBb3SwCwQu1PEQMl0vfiqeYFEbGGFEMFJ27ToEn/jveXwgGdCg55gW9/j94Y6mPdZht3RoSFWEbsBYlI8bix9l1O3omWbx1CWZcEJ4DrntwKOQHoIPA+agTAeNHST+7HWb6f15jhu04nmQdj8vh4UgQsl2B42nw/6cOK3XRs8Mqv56/zMfW+OtDO89cBnIH1LTNod1GD33CT9KAQvjeIZ/evh6XrWmc8or7GN6583P29OCB3S7E49vkGt1SOH9Kp2rH4fUR1Nrv0dkh+nqOvx5mQ9Pd8k57+oQWIcLUei6YU0IKT+ti+CQm3hCze27lb/imlcKfZjtv+4BWnrJO6hdQyCMbm982+URsEpItKM5mL/rJaqkvXxn8oNaBiUp8mBZUIaHWYVtjuinZOIRpPuiv1LZYjQ9SHaRpPRwti9gLtWMr/yosQJQyotAhzqFnCo4wgxYYLFwdLUGK+a+vOTVUokTLf160/C0pe1rvHNiV4nLJhd4kBtvhG97qPx7pAQPMWczMrXwXaidAb6QuPdV+bQ+HZSmsuyskMAW9CW4yS9YIKvkYqCZ5mA06oXVpVzcnlQuTUlylpVHFqb0otwSNgi41vCs9sz/z1IKpgxaMkrIZ743xCP7hYh+p+ENv9BfkPkgu1rt8307ovfpJQuQlyej2xIOMr8Lw

Environment

Browser:
CesiumJS Version: chrome
Operating System: windows

It's a simple example of what I've in my applications, we use primitivecollection to manage groups of primitive, and models.

@mickae1
Copy link
Contributor Author

mickae1 commented Apr 22, 2025

I found why it's not working by looking at the source code, you need to set different random basePath.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant