maplibre-native icon indicating copy to clipboard operation
maplibre-native copied to clipboard

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

Open acalcutt opened this issue 4 months ago • 0 comments

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. https://github.com/maptiler/tileserver-gl/issues/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 avatar Oct 11 '24 13:10 acalcutt