-
Notifications
You must be signed in to change notification settings - Fork 929
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
Unable to export component with .ttf files #2844
Comments
@jimmi-joensson , thanks for reporting the issue. I was trying to reproduce it (without the import and the compiler part, which don't seem to be related to the issue) with no luck. |
@davidfirst I have send you and email with my failling component. Thanks a lot for looking in to it! |
@jimmi-joensson , thanks for sending the files! I was able to reproduce it after a while. |
@davidfirst Nicely found David 💪 I will downgrade for now, have a great day! |
After hours of debugging with no clear solution, I'll document my attempts.
On the server-side, it reads the data this way. (src/cli/commands/private-cmds/_put-cmd.ts).
First, I tried to avoid back-pressure by switching to piping instead of writing directly to the stream.
The chunks I got on the remote, where the correct size - 64K each, and not single bytes. Another attempt I made is switching from flowing mode to non-flowing by replacing the
This didn't help as well. Also, adding lower numbers than the As of now, I'm pretty much clueless about what the issue is. I know that it hangs during the data transform. It is able to pass part of the data but the "end" event never gets fired, causing the client to hangs forever. To reproduce it, run the performance e2e-tests with 2,000 components, 50 dependencies each, ssh support, and node version 14.5.0. Keep in mind that 1 out of 10 attempts it does work. Mostly, it hangs while pushing to the remote. See |
…rge data using node v14.1.0 and higher. see #2844 (comment) for more details
@ronag (only if you spot it quickly) any idea what landed in Node 14 that might have caused this? |
Sorry I don't follow what the problem is here. Could you create repro? I don't understand why you would convert the string to stream instead of just writing it. |
Thanks @benjamingr and @ronag for reading this! Edit: there is a good chance that the issue is with the SSH2 or the way how I use the streams in regards to the ssh. So I opened an issue in the SSH2 repo as well. |
I suspect this might be related nodejs/node#33076 |
Can you reproduce this without involving ssh2? |
@ronag , yeah, when I went through the changelog I had the hunch it's related. |
Hi Guys Just wanted to add I am getting this issue too. Recently upgrade out font styles to come from Theme object and the ttf needs to be in there. Just broke out entire pipeline as I can't push anything new stuff. Anything info I can give to help? I am going to try and drop my Node version now. |
@davidfirst Can you link the ssh2 issue here, please? |
@GiladShoham , it's automatically linked by Github above. Anyway, it's here: mscdex/ssh2#908 |
issue resolved in bit v15 We'll start rolling out v15 of Bit this week, please reach out to me privately on the public slack community for a sneak peek and getting early access to it. |
@itaymendel sounds great with v15, will give Harmony a spin in the upcoming weeks. |
Describe the bug
A component is not able to export when it is including .ttf files.
bit export
just gets stuck on "exporting component".I then tried to change the .ttf files out with .png files and the component exported correctly.
Steps to Reproduce
bit import <component>
./folder/<any-font>.ttf
tobit tag -a
bit export
Expected Behavior
To successfully export the component
Screenshots, exceptions and logs
The export process never procedes from the follwing screenshot:
Specifications
The text was updated successfully, but these errors were encountered: