Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Got error "vips_cache_operation_build : stack level too deep (SystemStackError)" #299

Answered by scalastic
scalastic asked this question in Q&A
Discussion options

Hi,

Context

  • I'm developing a Jekyll website which uses jekyll_picture_tag plugins which in turn uses vips.
  • I'm using helaili/jekyll-action@v2 to build and deploy on GitHub Pages

Also before using jekyll_picture_tag and vips, the build and deployment were working fine, locally and with GitHub Action.

What happened

Since I integrate jekyll_picture_tag and vips:

  • On local builds, everything's working.
  • On GitHub Action (to deploy on GitHub Pages), I see this error :
2021年05月03日T10:55:17.5230597Z Rendering: _posts/en/2021-04-22-jvm-vs-native.markdown
2021年05月03日T10:55:17.5231669Z Pre-Render Hooks: _posts/en/2021-04-22-jvm-vs-native.markdown
2021年05月03日T10:55:17.5596191Z Rendering Liquid: _posts/en/2021-04-22-jvm-vs-native.markdown
2021年05月03日T10:55:17.5707044Z Generating new image file: /assets/img/application-architecture-485.0-82d87cc38.avif
2021年05月03日T10:55:17.9138394Z �[31m Liquid Exception: stack level too deep in /github/workspace/_posts/en/2021-04-22-jvm-vs-native.markdown�[0m
2021年05月03日T10:55:17.9147130Z bundler: failed to load command: jekyll (/github/workspace/vendor/bundle/ruby/2.7.0/bin/jekyll)
2021年05月03日T10:55:17.9152751Z /github/workspace/vendor/bundle/ruby/2.7.0/gems/ruby-vips-2.0.17/lib/vips/operation.rb:187:in `vips_cache_operation_build': stack level too deep (SystemStackError)
2021年05月03日T10:55:17.9154815Z 	from /github/workspace/vendor/bundle/ruby/2.7.0/gems/ruby-vips-2.0.17/lib/vips/operation.rb:187:in `build'
2021年05月03日T10:55:17.9156279Z 	from /github/workspace/vendor/bundle/ruby/2.7.0/gems/ruby-vips-2.0.17/lib/vips/operation.rb:402:in `call'
2021年05月03日T10:55:17.9157741Z 	from /github/workspace/vendor/bundle/ruby/2.7.0/gems/ruby-vips-2.0.17/lib/vips/image.rb:469:in `write_to_file'
2021年05月03日T10:55:17.9159076Z 	from /github/workspace/vendor/bundle/ruby/2.7.0/gems/jekyll_picture_tag-2.0.3/lib/jekyll_picture_tag/images/image_file.rb:74:in `write'
2021年05月03日T10:55:17.9160445Z 	from /github/workspace/vendor/bundle/ruby/2.7.0/gems/jekyll_picture_tag-2.0.3/lib/jekyll_picture_tag/images/image_file.rb:35:in `build'
2021年05月03日T10:55:17.9161785Z 	from /github/workspace/vendor/bundle/ruby/2.7.0/gems/jekyll_picture_tag-2.0.3/lib/jekyll_picture_tag/images/image_file.rb:19:in `initialize'
2021年05月03日T10:55:17.9163359Z 	from /github/workspace/vendor/bundle/ruby/2.7.0/gems/jekyll_picture_tag-2.0.3/lib/jekyll_picture_tag/images/generated_image.rb:81:in `new'
2021年05月03日T10:55:17.9165077Z 	from /github/workspace/vendor/bundle/ruby/2.7.0/gems/jekyll_picture_tag-2.0.3/lib/jekyll_picture_tag/images/generated_image.rb:81:in `generate_image'
2021年05月03日T10:55:17.9165963Z 	 ... 69 levels...
2021年05月03日T10:55:17.9167137Z 	from /usr/local/bundle/gems/bundler-2.2.15/lib/bundler/friendly_errors.rb:130:in `with_friendly_errors'
2021年05月03日T10:55:17.9168224Z 	from /usr/local/bundle/gems/bundler-2.2.15/exe/bundle:37:in `<top (required)>'
2021年05月03日T10:55:17.9169196Z 	from /usr/local/bundle/bin/bundle:23:in `load'
2021年05月03日T10:55:17.9170074Z 	from /usr/local/bundle/bin/bundle:23:in `<main>'
  1. You can find the complete logs at https://gist.github.com/scalastic/1e164af3fe32ec72dbc9dee3eb0d1787
  2. Source code is https://github.com/scalastic/scalastic.github.io/tree/webp (branch webp)

Thanks for any help!

You must be logged in to vote

Finally found a new and working GitHub Actions that uses ArchLinux distribution which contains a complete libvips (AVIF, WebP, JPEG,...). You can find it at https://github.com/jeffreytse/jekyll-deploy-action

I used it on my own Jekyll site and it works great.

Replies: 3 comments 1 reply

Comment options

Hi @scalastic, wow, I've not seen that before.

From the stack trace it looks like ruby-vips has pushed it over the edge, but it's actually jekyll that's filled most of the stack. Have you tried asking there?

You must be logged in to vote
1 reply
Comment options

Hi @jcupitt,
Not yet, I'm trying to investigate first... and you (as ruby-vips) were the first on the list ;)
Thanks for the response: I gonna try increasing ulimit too.

Comment options

Hi @jcupitt,

For complete information, I've made a test case to reproduce the problem at https://github.com/scalastic/jekyll-test-cases/ if you want to have a look.

I've also created 2 issues to related projects:

Feel free to participate if you think that would be useful.
Thanks

You must be logged in to vote
0 replies
Comment options

Finally found a new and working GitHub Actions that uses ArchLinux distribution which contains a complete libvips (AVIF, WebP, JPEG,...). You can find it at https://github.com/jeffreytse/jekyll-deploy-action

I used it on my own Jekyll site and it works great.

You must be logged in to vote
0 replies
Answer selected by scalastic
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant

AltStyle によって変換されたページ (->オリジナル) /