You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On my mac development environment, If I call this method from an ActiveJob, it fails with:
objc[25970]: +[UIFontDescriptor initialize] may have been in progress in another thread when fork() was called.
objc[25970]: +[UIFontDescriptor initialize] may have been in progress in another thread when fork() was called. We cannot safely call it or ignore it in the fork() child process. Crashing instead. Set a breakpoint on objc_initializeAfterForkError to debug.
Using of env var OBJC_DISABLE_INITIALIZE_FORK_SAFETY=yes fixes it as suggested in #155 (comment)
However, on Ubuntu docker environment I randomly get segmentation fault errors or floating point exception errors when running the from Rails console.
Everthing works fine if I don't use the .text method in both environments.
Mac stack
MacOS 15.3.1 (M2)
Ruby 3.3.5
Rails 7.2.1
vips-8.16.0
Ubuntu stack
Dockerized x86_64
Linux 116.202.15.119-1f5530ef76b3 6.8.0-54-generic
Using libvips42 package
Ruby 3.3.5
Rails 7.2.1
The text was updated successfully, but these errors were encountered:
There have been some improvements to locking in text rendering in recent libvipses. Have you tried your Ubuntu example with current stable libvips (8.16.1)?
Text rendering is extremely complex, unfortunately, and interacts with a huge number of different libraries and system components on the various platforms :(
There have been some improvements to locking in text rendering in recent libvipses. Have you tried your Ubuntu example with current stable libvips (8.16.1)?
Text rendering is extremely complex, unfortunately, and interacts with a huge number of different libraries and system components on the various platforms :(
Hi @jcupitt ,
Thanks for letting me know about the latest stable release. I used to install libvips via apt-get from the Dockerfile but I believe I need to build it from source to be able to use the latest version. I'll give it a go and share the results.
Having interesting errors both on Mac and Ubuntu (Docker) while adding text on top of an image using ruby-vips.
On my mac development environment, If I call this method from an ActiveJob, it fails with:
Using of env var
OBJC_DISABLE_INITIALIZE_FORK_SAFETY=yes
fixes it as suggested in #155 (comment)However, on Ubuntu docker environment I randomly get segmentation fault errors or floating point exception errors when running the from Rails console.
Everthing works fine if I don't use the
.text
method in both environments.Mac stack
MacOS 15.3.1 (M2)
Ruby 3.3.5
Rails 7.2.1
vips-8.16.0
Ubuntu stack
Dockerized x86_64
Linux 116.202.15.119-1f5530ef76b3 6.8.0-54-generic
Using libvips42 package
Ruby 3.3.5
Rails 7.2.1
The text was updated successfully, but these errors were encountered: