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

Segmentation fault when regenerating images for specific image type, stops regeneration #161

Open
bozzmedia opened this issue Aug 12, 2022 · 1 comment

Comments

@bozzmedia
Copy link

I'm regenerating about 40,000 images

I ran wp media regenerate --image_size=crp_thumbnail --yes

About 3,000 images in I got a 'segmentation fault' error and the process stopped.

I tried starting a range after 3k to 42k and it produced odd results, only resizing about 2k of those images and not outputting for all 40k images.

I am now back to using the Regenerate Thumbnails plugin which seems to be working well.

I realize this could be some corruption of the media file attachments/associations, but the error provides no useful info to further troubleshoot.

My setup: CentOS Apache, PHP 7.4, WP 6.0.1, wp cli v2.6.0
Linux 3.10.0-1160.53.1.el7.x86_64 #1 SMP Fri Jan 14 13:59:45 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux

@danielbachhuber
Copy link
Member

Hey @bozzmedia,

Sorry to hear you're having difficulties!

Were you able to figure the problem out?

Unfortunately, a 'segmentation fault' is an extremely fatal PHP error. WP-CLI can't display any useful output because PHP itself has crashed. The underlying cause is likely something with your server configration.

Although, it is surprising Regenerate Thumbnails still works as expected. Regenerate Thumbnails generally uses the same WordPress core APIs that WP-CLI does.

Feel free to pop in the #cli channel on WordPress.org Slack if you'd like help debugging this further.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants