Skip to content
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

Infinite loop of favicon generation #39

Closed
hacketiwack opened this issue Feb 17, 2023 · 5 comments
Closed

Infinite loop of favicon generation #39

hacketiwack opened this issue Feb 17, 2023 · 5 comments

Comments

@hacketiwack
Copy link

Describe the bug
On macOS, when ImageMagick is installed along with Inkscape through brew.sh, the generation of a favicon from a SVG image never ends: infinite processes of Inkscape are spawn one after another.

To Reproduce
Steps to reproduce the behavior:

  1. Install ImageMagick and Inkscape through brew.
brew install imagemagick inkscape
  1. Install jekyll-favicon as mentioned in the documentation.
  2. Proceed with the build
bundle exec jekyll build
  1. The build never stops

Expected behavior
Once the build is launched, it should stop after a few seconds.

Screenshots
Not applicable.

Environment:

  • macOS 13.2.1 (22D68)
  • ruby 3.2.1 (2023-02-08 revision 31819e82c8) [arm64-darwin22]
  • Bundler version 2.4.7
  • jekyll 4.3.2
  • jekyll-favicon 1.1.0
@afaundez
Copy link
Owner

afaundez commented Mar 1, 2023

Hi @hacketiwack, thank you for reporting this.

I tried reproducing the error in the same environment. I followed the Jekyll instructions to create a new project and then added the Jekyll Favicon as instructed in this repo, and it worked fine. I noticed, though, that when building, the Inkscape icon appears and disappears in the dock repeatedly, but, in my case, it stopped eventually.

Please upload a repo with a minimal example so I can run the same on my laptop.

@hacketiwack
Copy link
Author

OK, I tried again and this time let it finish. After around 250 seconds, the build stops.
So this is not per se an infinite loop.
I need to check if there is a post or some plugin that is causing this.
I'll keep you posted.

@hacketiwack
Copy link
Author

hacketiwack commented Mar 4, 2023

I have more information to share. It seems that whenever I add the tag {% favicon %} in my header, each and every page that ends up being generated into an index.html provokes the generation of the favicons.
Is it really so that this plugin generates the favicon for each index.html?

Important note: If the source file for the favicon is a PNGinstead of an SVG, the issue doesn't happen.

@hacketiwack
Copy link
Author

@afaundez, please find here is a version of the minima theme with the inclusion of jekyll-favicon that provokes the behaviour mentioned in this issue.

@afaundez
Copy link
Owner

afaundez commented Mar 6, 2023

That's a bug. I open another issue with your info. Thanks!

@afaundez afaundez closed this as completed Mar 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants