Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@kleisauke
Copy link
Member

Reintroduce the code removed in commit e4db747. The warning is now only emitted in debug builds and when the VIPS_LEAK mechanism is enabled.

@jcupitt
Copy link
Member

jcupitt commented Dec 6, 2025

Nice!

g_warning() output is hidden by default, maybe just use printf()? It'd be harder to ignore.

@jcupitt
Copy link
Member

jcupitt commented Dec 6, 2025

I'll remove the ref count test from that PR I made, this one is better.

@jcupitt
Copy link
Member

jcupitt commented Dec 6, 2025

printf()s can be annoying to find, maybe change the message to include the function name.

printf("vips_image_set: set \"%s\" on shared image\n", name);

@kleisauke
Copy link
Member Author

kleisauke commented Dec 6, 2025

This PR identifies three code paths that may remove or set a metadata item on a shared image:

vips_image_set_int(level->image, "vips-no-minimise", 1);

vips_autorot_remove_angle(save->ready);

vips_image_set_int(im, "vips-no-minimise", 1);

Reintroduce the code removed in commit e4db747. The warning is now
only emitted in debug builds and when the `VIPS_LEAK` mechanism is
enabled.
@kleisauke kleisauke force-pushed the warn-metadata-shared-image branch from 69b1496 to 07bbbd8 Compare December 6, 2025 15:00
@kleisauke kleisauke marked this pull request as ready for review December 6, 2025 15:01
@jcupitt
Copy link
Member

jcupitt commented Dec 6, 2025

Ah what a pain. Let's merge and fix those in a follow-up.

@jcupitt jcupitt merged commit 80037fc into libvips:master Dec 6, 2025
7 checks passed
@kleisauke kleisauke deleted the warn-metadata-shared-image branch December 6, 2025 19:02
jcupitt added a commit that referenced this pull request Dec 8, 2025
Very like the dzsave change -- we need to make a private image to
signal the minimise behaviour we want to the thraedpool.

See #4783
jcupitt added a commit that referenced this pull request Dec 8, 2025
Very like the dzsave change -- we need to make a private image to
signal the minimise behaviour we want to the thraedpool.

See #4783
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

Successfully merging this pull request may close these issues.

2 participants