-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Closed
Closed
Copy link
Description
What version of Tailwind CSS are you using?
v3.2.3
What build tool are you using?
Gulp v2.3.0, postcss v8.4.21
What version of Node.js are you using?
v14.21.2
What browser are you using?
N/A
What operating system are you using?
Linux
Reproduction URL
https://play.tailwindcss.com/brgSOna4ng
Describe your issue
Tailwind runs out of memory and crashes when I put this in one of my CSS files (I duplicate selectors to increase their specificity):
@layer utilities {
.underline.underline {
text-decoration-line: underline;
}
}then put <div class="hover:underline"></div> in a HTML file,.
This is what Gulp reports:
<--- Last few GCs --->
[2769643:0x6027f90] 2895 ms: Scavenge 718.1 (757.1) -> 718.1 (757.1) MB, 38.8 / 0.0 ms (average mu = 0.942, current mu = 0.915) allocation failure
[2769643:0x6027f90] 3357 ms: Scavenge 1100.6 (1139.7) -> 1100.6 (1139.7) MB, 64.0 / 0.0 ms (average mu = 0.942, current mu = 0.915) allocation failure
[2769643:0x6027f90] 4494 ms: Mark-sweep 1674.4 (1713.5) -> 627.0 (664.4) MB, 531.0 / 0.0 ms (average mu = 0.809, current mu = 0.748) allocation failure scavenge might not succeed
<--- JS stacktrace --->
FATAL ERROR: invalid array length Allocation failed - JavaScript heap out of memory
1: 0xa3ac30 node::Abort() [gulp designSystem]
2: 0x970199 node::FatalError(char const*, char const*) [gulp designSystem]
3: 0xbba76e v8::Utils::ReportOOMFailure(v8::internal::Isolate*, char const*, bool) [gulp designSystem]
4: 0xbbaae7 v8::internal::V8::FatalProcessOutOfMemory(v8::internal::Isolate*, char const*, bool) [gulp designSystem]
5: 0xd76d05 [gulp designSystem]
6: 0xd4f535 [gulp designSystem]
7: 0xed921e [gulp designSystem]
8: 0xed936d [gulp designSystem]
9: 0x1077923 v8::internal::Runtime_GrowArrayElements(int, unsigned long*, v8::internal::Isolate*) [gulp designSystem]
10: 0x14491d9 [gulp designSystem]
Aborted (core dumped)
I think it is because of #9765, specifically this line - if I change line #72 in my node_modules to be } else if (a.type === 'class' && b.type === 'pseudo' && b.value !== ':merge') { again, Tailwind doesn't crash.
Metadata
Metadata
Assignees
Labels
No labels