-
Notifications
You must be signed in to change notification settings - Fork 49
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
Profile Photo Preview in Account Details displaying broken image #464
Comments
I just looked into this and the fix of disabling puma workers didn't do anything for me. After poking around I think we're just not trying to render an image. @gazayas, it looks like the not rendering an image is related to the recent addition of adding ActiveStorage as an upload option. bullet_train-core/bullet_train/app/views/account/users/_form.html.erb Lines 17 to 21 in 2b9dea3
I'll open an issue about that and link it here. |
@jagthedrummer Thanks for looking into that! That issue may have just been something I was running into locally. I've seen the
error before on another project and believe it was related to vips image processing on OSX and running specs parallel. Let me know if you'd like me to close this issue. |
@cnorm35, let's leave it open for now. I'd like to get to where we at least attempt to display an image that we're processing locally and then see if we can recreate this. |
After getting to where we try to render an image (WIP PR #515) I was able to recreate this issue:
Commenting out this line, or setting the value to |
Not sure if it's helpful, but I've seen those same warning pop up in system tests that were logging that error, passing |
@cnorm35 after poking around a bit I found a way to solve this without disabling puma workers. libvips/ruby-vips#155 (comment) Adding I'll whip up a PR for that real quick. |
This (mostly) fixes the problem reported in bullet-train-co/bullet_train-core#464 However, due to bullet-train-co/bullet_train-core#498 we don't currently try to show a user profile photo if we're using ActiveStorage instead of Cloudinary. Here's some context about why we need to add this directly to the `Gemfile`. libvips/ruby-vips#155 (comment)
PR to fix this: https://github.com/bullet-train-co/bullet_train/pull/959/files |
* Add `ruby-vips` in the `:development, :test` group This (mostly) fixes the problem reported in bullet-train-co/bullet_train-core#464 However, due to bullet-train-co/bullet_train-core#498 we don't currently try to show a user profile photo if we're using ActiveStorage instead of Cloudinary. Here's some context about why we need to add this directly to the `Gemfile`. libvips/ruby-vips#155 (comment) * Try it here
Awesome, thanks so much for the update! |
I'm going to leave this open until we have a fix for #498, just so we can be really really sure we got it. |
OK, this should be fixed with the merge of #515. I'll be cutting a new release for version 1.4.5 shortly. |
Steps to Reproduce
With a new account, uploading a profile photo from the Account Details section displays a broken image
Additional Details
The image (png) is uploaded and is displaying the correct image in the Account Avatar within the top menu.
I saw this in the Rails logs and have ran into this issue before and believe it's related to vips image processing
Commenting out
# workers ENV.fetch("WEB_CONCURRENCY", 4)
fromconfig/puma.rb
and restarting the rails server resolves this issue.Screenshots
Displaying broken Image
Displaying correct image after updating Puma config
The text was updated successfully, but these errors were encountered: