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

[Bug]: cannot access a scoped thread local variable without calling set first #7725

Open
Joozty opened this issue Aug 29, 2024 · 8 comments
Open
Assignees
Labels
bug Something isn't working

Comments

@Joozty
Copy link

Joozty commented Aug 29, 2024

System Info

System:
OS: Linux 6.5 Ubuntu 22.04.4 LTS 22.04.4 LTS (Jammy Jellyfish)
CPU: (2) x64 AMD EPYC 7763 64-Core Processor
Memory: 6.72 GB / 7.74 GB
Container: Yes
Shell: 5.1.16 - /bin/bash
Binaries:
Node: 20.13.1 - /opt/hostedtoolcache/node/20.13.1/x64/bin/node
Yarn: 1.22.22 - /usr/local/bin/yarn
npm: 10.5.2 - /opt/hostedtoolcache/node/20.13.1/x64/bin/npm
pnpm: 9.7.0 - ~/setup-pnpm/node_modules/.bin/pnpm
Browsers:
Chrome: 128.0.6613.84
Chromium: 128.0.6613.0

Details

Builds are failing with the error message:
cannot access a scoped thread local variable without calling 'set' first.

This issue began occurring in version @rspack/core 1.0.0-beta.5 and is still present in version 1.0.0. The build completes successfully on my local machine (macOS), but it fails when running in CI using GitHub Actions with the latest Ubuntu image.

image

Reproduce link

No response

Reproduce Steps

This is a bit complicated, and I am not sure if I will be able to provide a minimal reproducible example.

@Joozty Joozty added bug Something isn't working pending triage The issue/PR is currently untouched. labels Aug 29, 2024
@h-a-n-a h-a-n-a removed the pending triage The issue/PR is currently untouched. label Aug 29, 2024
@Joozty
Copy link
Author

Joozty commented Aug 29, 2024

It should be anywhere between 218bda0 (1.0.0-beta.5) and f9b6ca2 (1.0.0-beta.4).

I think it is caused by rspack.HtmlRspackPlugin, when I disable it build does not fail.

@Joozty
Copy link
Author

Joozty commented Aug 29, 2024

Maybe this commit 250304a

@h-a-n-a h-a-n-a self-assigned this Aug 29, 2024
@h-a-n-a
Copy link
Collaborator

h-a-n-a commented Aug 29, 2024

I will take a look into this one soon. You can temporarily switch to html-webpack-plugin if disabling HtmlRspackPlugin fixes this.

@Joozty
Copy link
Author

Joozty commented Sep 30, 2024

Any luck guys? Thanks a lot for looking into it.

Copy link

stale bot commented Nov 29, 2024

This issue has been automatically marked as stale because it has not had recent activity. If this issue is still affecting you, please leave any comment (for example, "bump"). We are sorry that we haven't been able to prioritize it yet. If you have any new additional information, please include it with your comment!

@stale stale bot added the stale label Nov 29, 2024
@hardfist
Copy link
Contributor

@Joozty do you still met this problem?

@stale stale bot removed the stale label Nov 29, 2024
@Joozty
Copy link
Author

Joozty commented Nov 29, 2024

bump

@Joozty
Copy link
Author

Joozty commented Nov 29, 2024

yes still a problem

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants