{"action":"created","issue":{"url":"https://api.github.com/repos/kripken/emscripten/issues/7562","repository_url":"https://api.github.com/repos/kripken/emscripten","labels_url":"https://api.github.com/repos/kripken/emscripten/issues/7562/labels{/name}","comments_url":"https://api.github.com/repos/kripken/emscripten/issues/7562/comments","events_url":"https://api.github.com/repos/kripken/emscripten/issues/7562/events","html_url":"https://github.com/kripken/emscripten/issues/7562","id":383734894,"node_id":"MDU6SXNzdWUzODM3MzQ4OTQ=","number":7562,"title":"Problem when loading opencv.js","user":{"login":"alinpopescu","id":6000880,"node_id":"MDQ6VXNlcjYwMDA4ODA=","avatar_url":"https://avatars2.githubusercontent.com/u/6000880?v=4","gravatar_id":"","url":"https://api.github.com/users/alinpopescu","html_url":"https://github.com/alinpopescu","followers_url":"https://api.github.com/users/alinpopescu/followers","following_url":"https://api.github.com/users/alinpopescu/following{/other_user}","gists_url":"https://api.github.com/users/alinpopescu/gists{/gist_id}","starred_url":"https://api.github.com/users/alinpopescu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alinpopescu/subscriptions","organizations_url":"https://api.github.com/users/alinpopescu/orgs","repos_url":"https://api.github.com/users/alinpopescu/repos","events_url":"https://api.github.com/users/alinpopescu/events{/privacy}","received_events_url":"https://api.github.com/users/alinpopescu/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2018-11-23T08:24:10Z","updated_at":"2018-11-25T22:17:38Z","closed_at":null,"author_association":"NONE","body":"Hello,\r\n\r\nI am trying to load opencv.js compiled with these flags:\r\n-s WASM=1 -s USE_PTHREADS=1 -s ALLOW_MEMORY_GROWTH=1 -s WASM_MEM_MAX=1610612736 -s PTHREAD_POOL_SIZE=8.\r\n\r\nI have added some multithreading module to it which I cannot make public.\r\nFirst when I simply try to load opencv.js, I get these errors:\r\n\r\nUncaught TypeError: Failed to execute 'createObjectURL' on 'URL': No function was found that matched the signature provided.\r\n\r\nI did some investigation and found the problem is in pthread-main.js:101 because e.data.urlOrBlob is undefined. For some reason this line evaluates to undefined:\r\nurlOrBlob: Module[\"mainScriptUrlOrBlob\"] || currentScriptUrl\r\n\r\nIf I compile the code without -s PTHREAD_POOL_SIZE=8 then the code loads fine, but it blocks when I run it (when the browser tries to load first thread).\r\n\r\nCan you please help me fix this problem as I'm facing it for some time and I cannot sort it out?\r\nWhy is there a opencv_js.js and opencv.js and how to load them?\r\n\r\nThank you very much for your help,\r\nAlin"},"comment":{"url":"https://api.github.com/repos/kripken/emscripten/issues/comments/441478776","html_url":"https://github.com/kripken/emscripten/issues/7562#issuecomment-441478776","issue_url":"https://api.github.com/repos/kripken/emscripten/issues/7562","id":441478776,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0MTQ3ODc3Ng==","user":{"login":"alinpopescu","id":6000880,"node_id":"MDQ6VXNlcjYwMDA4ODA=","avatar_url":"https://avatars2.githubusercontent.com/u/6000880?v=4","gravatar_id":"","url":"https://api.github.com/users/alinpopescu","html_url":"https://github.com/alinpopescu","followers_url":"https://api.github.com/users/alinpopescu/followers","following_url":"https://api.github.com/users/alinpopescu/following{/other_user}","gists_url":"https://api.github.com/users/alinpopescu/gists{/gist_id}","starred_url":"https://api.github.com/users/alinpopescu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alinpopescu/subscriptions","organizations_url":"https://api.github.com/users/alinpopescu/orgs","repos_url":"https://api.github.com/users/alinpopescu/repos","events_url":"https://api.github.com/users/alinpopescu/events{/privacy}","received_events_url":"https://api.github.com/users/alinpopescu/received_events","type":"User","site_admin":false},"created_at":"2018-11-25T22:17:38Z","updated_at":"2018-11-25T22:17:38Z","author_association":"NONE","body":"I just updated to 1.38.20 from 1.38.11, removed the -s ALLOW_MEMORY_GROWTH=1 flag and started a build. Will get you updated."}}
{"actor":{"display_login":"alinpopescu"}}