-
Notifications
You must be signed in to change notification settings - Fork 12.2k
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
Weird characters on random refreshes (Ubuntu 14.04, Archlinux, Chrome) #10842
Comments
Browser? Browser version? OS? Any further detail? Is it reproducible on jsfiddle? |
My bad.. Like I said, its totally random, and it back to work when I refresh. At first I thought was only in my machine, but some other users reported that 'bug' already (ubuntu users) - I never tried on other browsers, because its so random. Probably not reproducible on jsfiddle, I cant even reproduce when I want on my application. Any tips? Maybe some encoding, I dont know... |
What is the failure percentage? Could you please try with another icon font using the PUA? (bootstrap's glyphicons should be fine) |
Very low. |
Thanks. If you also use other webfonts on your website (let's say Open Sans), please check that when you are not seeing font awesome icons, the other text is properly displayed and it does not fallback to the default system font |
Are they the characters that would otherwise be displayed if FA wasn't loaded? It may simply be a case that, for some reason, the FA font files aren't being downloaded - if you have your browser's console open, you'll be able to check that. |
@joaokamun are you using font awesome from the cdn or your local server? If you are using font awesome on your local server, are you using css, less or scss? |
From local server and using scss. |
could you please past the output of your css file? I think there is an issue related to #6728 |
@joaokamun thanks Apparently, #6728 is not involved. Output from #6728 is something like .fa-home:before{content:""} |
It happened again. But again, just a refresh, and everything back to normal! I'll stop using scss for while. But if has anything I can do to help find the cause of the problem. I'm glad to help. I'll made more tests with glyphicons, didn't occured this problem yet. |
@joaokamun well, I think #6728 is one the cause of your issue. Apparently, sometime your sass compiler (or server?) messes up with encoding, producing non-unicode files Please take a look at #6728 for a possible workaround and unquoted variables |
We've seen this issue in Chrome as well, we found that we could consistently (~30% of the time or so) reproduce the issue if we open the DevTools then immediately refresh the page. Another odd thing we noticed is that, when this issue occurs, Chrome isn't listing our CSS file on its "Network" tab. Seems like it may be a Chrome cache issue. |
@Rhannek could you please check CDN failure rate? |
@tagliala We aren't using a CDN in this case, we're loading both the CSS and the font files from a local web server. It happens consistently on multiple machines. Each time Chrome's Network tool is missing our CSS file even though a request was sent. This is why we are thinking it is a Chrome cache issue, where the cached version of our CSS has incorrect content: "" entries. |
Yes, I know. Since I'm unable to replicate this issue, I was wondering if there could be some server side configuration involved |
We don't believe it is, it happens in cases where Chrome is not retrieving the CSS from the server, it is loading it from the cache. The exact set of steps we're seeing is something like this:
|
If I'm already in the Network tab, DevTools aren't already open? PS: do you think this is the case of submitting a bug to chrome developers, maybe with a video showing the issue? |
+1 |
@artursopelnik please do not comment with +1, they don't help here |
@tagliala Same bug here ... Solution: Example: Read more: Output before Output after |
i got the same scenario issue, i solved by set response header content-type to text/css; charset=UTF-8 |
Hi, I'm pretty confident that this has been solved in Font Awesome 5.0.0 because we are using another approach to generate content properties. If this is still an issue, please open a new request and fill out our bug report template |
This is happening often in my web application. |
@silviodelgado please open a new issue by following the bug report template. Please provide a reproducible test case |
Can confirm, still happening here. |
I'm going to lock here. This particular issue was related to how chars were encoded in the css file and it has been fixed in version 5.0.0 If you are still experiencing issues, please fill out our bug report template and remember to provide all the information required, including
Since this is random and it is not possible to provide a reproducible test case, please provide ad least a test case which is randomly failing. 🔒 |
Its happen sometimes, and I dind't find any pattern to reproduce, its just random.
Everything is working properly, but suddenly in one refresh or page change, all icons become weird characters like "", "", "�". After a refresh, icons back to normal.
Any Ideas of what is happening?
Screenshots
![screenshot from 2017-03-24 18-53-25](https://cloud.githubusercontent.com/assets/7095828/24315019/6841603e-10c3-11e7-86aa-9deaa43880df.png)
When bug occurs:
Normally:
![panel](https://cloud.githubusercontent.com/assets/7095828/24315075/c823afb6-10c3-11e7-97e9-3b32773a8a66.png)
The text was updated successfully, but these errors were encountered: