{"action":"created","issue":{"url":"https://api.github.com/repos/justadudewhohacks/face-api.js/issues/160","repository_url":"https://api.github.com/repos/justadudewhohacks/face-api.js","labels_url":"https://api.github.com/repos/justadudewhohacks/face-api.js/issues/160/labels{/name}","comments_url":"https://api.github.com/repos/justadudewhohacks/face-api.js/issues/160/comments","events_url":"https://api.github.com/repos/justadudewhohacks/face-api.js/issues/160/events","html_url":"https://github.com/justadudewhohacks/face-api.js/issues/160","id":388257427,"node_id":"MDU6SXNzdWUzODgyNTc0Mjc=","number":160,"title":"faceapi.detectAllFaces blocks the main thread for seconds on first call","user":{"login":"SavaStanislav","id":14952015,"node_id":"MDQ6VXNlcjE0OTUyMDE1","avatar_url":"https://avatars0.githubusercontent.com/u/14952015?v=4","gravatar_id":"","url":"https://api.github.com/users/SavaStanislav","html_url":"https://github.com/SavaStanislav","followers_url":"https://api.github.com/users/SavaStanislav/followers","following_url":"https://api.github.com/users/SavaStanislav/following{/other_user}","gists_url":"https://api.github.com/users/SavaStanislav/gists{/gist_id}","starred_url":"https://api.github.com/users/SavaStanislav/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SavaStanislav/subscriptions","organizations_url":"https://api.github.com/users/SavaStanislav/orgs","repos_url":"https://api.github.com/users/SavaStanislav/repos","events_url":"https://api.github.com/users/SavaStanislav/events{/privacy}","received_events_url":"https://api.github.com/users/SavaStanislav/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-12-06T15:12:52Z","updated_at":"2018-12-09T18:54:05Z","closed_at":null,"author_association":"NONE","body":"I have been using this in a React project on a component's mount and it blocks completely the JS execution white it awaits for faceapi.detectAllFaces. This seems to be related with the warning that appears in the console \r\n\r\nError: WebGL warning: getBufferSubData: Reading from a buffer with usage other than *_READ causes pipeline stalls. Copy through a STREAM_READ buffer.\r\n\r\nI could try and submit a PR, but I can't seem to find the actual calls or the buffers it uses, could you point me to it?"},"comment":{"url":"https://api.github.com/repos/justadudewhohacks/face-api.js/issues/comments/445561713","html_url":"https://github.com/justadudewhohacks/face-api.js/issues/160#issuecomment-445561713","issue_url":"https://api.github.com/repos/justadudewhohacks/face-api.js/issues/160","id":445561713,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0NTU2MTcxMw==","user":{"login":"d3221","id":4030798,"node_id":"MDQ6VXNlcjQwMzA3OTg=","avatar_url":"https://avatars3.githubusercontent.com/u/4030798?v=4","gravatar_id":"","url":"https://api.github.com/users/d3221","html_url":"https://github.com/d3221","followers_url":"https://api.github.com/users/d3221/followers","following_url":"https://api.github.com/users/d3221/following{/other_user}","gists_url":"https://api.github.com/users/d3221/gists{/gist_id}","starred_url":"https://api.github.com/users/d3221/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/d3221/subscriptions","organizations_url":"https://api.github.com/users/d3221/orgs","repos_url":"https://api.github.com/users/d3221/repos","events_url":"https://api.github.com/users/d3221/events{/privacy}","received_events_url":"https://api.github.com/users/d3221/received_events","type":"User","site_admin":false},"created_at":"2018-12-09T18:54:05Z","updated_at":"2018-12-09T18:54:05Z","author_association":"NONE","body":"Get the same \"warning\"/notice in my browser console :/ "}}
{"actor":{"display_login":"d3221"}}