emscripten-core / emscripten-core/emscripten

pthread error

Open
#12,473 9 comments 2 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
27.6k
Forks
3.6k
Avg merge
1d 1h
Merged PRs (30d)
105

Description

I'm using pthreads with -s TOTAL_MEMORY=671088640 -s USE_PTHREADS=1 -s PROXY_TO_PTHREAD with EMSDK 2.0.6.
I run my unit test in Chrome browser with version 86.0.4240.75.
I got the following error message.

xxx.worker.js:1 Refused to execute script from 'xxx.js' because its MIME type ('text/plain') is not executable.
worker.js onmessage() captured an uncaught exception: NetworkError: Failed to execute 'importScripts' on 'WorkerGlobalScope': The script at 'xxx.js' failed to load.
Error: Failed to execute 'importScripts' on 'WorkerGlobalScope': The script at 'xxx.js' failed to load.
pthread sent an error! xxx.worker.js:1: Uncaught NetworkError: Failed to execute 'importScripts' on 'WorkerGlobalScope': The script at xxx.js failed to load.
Uncaught DOMException: Failed to execute 'importScripts' on 'WorkerGlobalScope': The script at xxx.js failed to load.

How can I solve this problem?
Thank you.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.