You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm working on a large TS project which builds a CLI with spinners and when we tried upgrading our deps this month, the CLI started giving seg faults. We identified this as the dependency which caused it; reverting it to v6.3.1 and the problem went away.
I've no idea why; it doesn't look like much changed in this project to cause such a problem, so it could be something in one of the upstream strip ansi or string width libraries, or some other quirk of CLI builds which always seem a dark magic. But since presumably CLIs are a common environment for this library I thought I'd note this.
The key elements of our CLI build are tsc, esbuild, and pkg:
Hi there, our team is also running into this. We've been able to reproduce the segmentation fault with ora@7 on multiple operating systems/architectures, whether compiling using esbuild or rollup. I've also confirmed that the seg fault doesn't appear when downgrading to ora@6.
I haven't been able to figure out the root cause but my theory is that a recent change to the ora dependency tree isn't playing nicely with the way pkg builds binaries. I create a minimal example repository that demonstrates the issue and documents my findings: https://github.com/kanadgupta/ora-seg-fault-bug
I'm working on a large TS project which builds a CLI with spinners and when we tried upgrading our deps this month, the CLI started giving seg faults. We identified this as the dependency which caused it; reverting it to v6.3.1 and the problem went away.
I've no idea why; it doesn't look like much changed in this project to cause such a problem, so it could be something in one of the upstream strip ansi or string width libraries, or some other quirk of CLI builds which always seem a dark magic. But since presumably CLIs are a common environment for this library I thought I'd note this.
The key elements of our CLI build are tsc, esbuild, and pkg:
Apologies I've not had time to investigate why; if I do I'll add details.
The text was updated successfully, but these errors were encountered: