Skip to content
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

Node 6.0.0/6.0.1.pre.0 freezing in macos/metal after about 32 renders #2928

Open
acalcutt opened this issue Oct 11, 2024 · 0 comments
Open
Labels
bug Something isn't working macOS metal node

Comments

@acalcutt
Copy link
Collaborator

acalcutt commented Oct 11, 2024

I have gotten a report in slack and the tileserver-gl repo that the node 6.0.0 for macos is freezing. It will work at first, but after browsing the map the application freezes and stops returning rendered images. I also tested myself and confirmed the issue.
maptiler/tileserver-gl#1402
https://osmus.slack.com/archives/C02B2CBSNBU/p1728481702513059

The same code used works fine with the last opengl-2 release, 5.4.1. The 6.0.x versions also seem to work fine on Linux and Windows, and the user who reported mentioned using 6.0.x in docker (linux) did not have the same issue on the same mac hardware.

To Reproduce
I have created a simplified node application that just generates the same image 50 times. On Windows this generates all 50 images, but when I test on macos it seems to generate 32 images then freeze, similar to what is happening in tileserver-gl
https://github.com/acalcutt/maplibre-node-test/tree/macos_test

The test app can be used like this, I was testing with node v20.17

https://github.com/acalcutt/maplibre-node-test.git
git checkout macos_test
npm i
node .

Expected behavior
This test application should generate 50 images in the root folder, but right now on macos it freezes after 32 images are generated and I have to kill the node process to get it to end

Screenshots
Not working on macos
Screenshot 2024-10-11 at 9 21 06 AM

Working on windows
image

Platform information (please complete the following information):

  • OS: macOS Sonoma 14.3 / Apple M2
  • Platform: Node.js 20/22
  • Version: 6.0.0/6.0.1-pre.0

Additional context
I am not completly sure how to troubleshoot this. It generates the first 32 images without issue.

@acalcutt acalcutt added bug Something isn't working macOS node metal labels Oct 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working macOS metal node
Projects
None yet
Development

No branches or pull requests

1 participant