-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
[FormattedString] [NS 3.0] iOS crashes when setting Font-Family to Font-Awesome on a Span #4230
Comments
Hi @abhayastudios, For your case, one possible solution is to apply first the
For your conviniece, I am also attaching my sample project, which I use for testing. |
Thanks @tsonevn for your reply. Indeed your suggestion seems to work. To be honest it feels a little bit like an ugly workaround and I would think it would be worthwhile to understand what is really happening before deciding it is expected behavior, especially since it was working fine in NS2.5. However, I agree that since it has a reasonable workaround, there are probably more pressing issues to dedicate precious resources to :) Thanks a lot for your investigation. Cheers! |
This comment was marked as abuse.
This comment was marked as abuse.
Hi @abhayastudios, @NathanaelA, |
Some additional info if it helps: I have this same issue, but it also occurs when setting the font family directly in the XML, so changing the timing would not help in that case. The following code worked under 2.5 but crashes my app under 3.0.1:
If I remove the custom fontFamily part of the statement the button renders with a "?" as expected. With the fontFamily directive I get the same segmentation fault crash as the OP |
Hi @racekarl, Thank you in advance for your cooperation. |
I can also run your sample as expected, but my app still crashes. I tried copying over my custom font file, tsconfig, plugins, style sheets, etc. and it continues to work. I am loathe to upload the source code to my app here. I can work around this issue by specifying the font face in my style sheet so this has pretty low priority at this point. Thank you for your help. |
Seems I've also hit this problem 😢 I've even tried workarounds like using @tsonevn take a look at the linked task where you will find a reproducible sample that does not change the font programmatically but enabling/disabling the button and styling the |
I've spent couple of hours tracing the root of this problem (at least for my sample app attached in #4332). And actually there are two problems here:
The workaround for my case is to set |
Same happens to my app. I've patched it locally by guarding these 2 lines with |
@PeterStaev @EddyVerbruggen Hi guys, could you try with |
Hey @hshristov it looks like it's fixed indeed. Perhaps even with (core modules) 3.1.0 as I didn't need to patch my app after updating to that one, but I forgot to mention it here. |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Tell us about the problem
iOS crashes when setting Font-Family to Font-Awesome on a Span with
Service exited due to Segmentation fault: 11
. It worked just fine in NS 2.5 and it also works fine if I change the Font-Family tomonospace
for example. Other instances where Font-Awesome is used work just fine.Which platform(s) does your issue occur on?
iOS
Please provide the following version numbers that your issue occurs with:
Is there code involved? If so, please share the minimal amount of code needed to recreate the problem.
Please see this test project. When you run the project on iOS it crashes on this line.
The text was updated successfully, but these errors were encountered: