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

GLib-GObject - value "0" of type 'gint' is invalid or out of range for property 'tile-height' of type 'gint' #463

Open
jhford-scout24 opened this issue Jan 27, 2025 · 2 comments

Comments

@jhford-scout24
Copy link

CRITICAL - GLib-GObject - value "0" of type 'gint' is invalid or out of range for property 'tile-height' of type 'gint'
CRITICAL - GLib-GObject - value "0" of type 'gint' is invalid or out of range for property 'tile-width' of type 'gint'

I've noticed that between 2.11 and 2.16, this error message is showing up. It's happening in my unit test suite, but I'm not entirely sure which call is triggering it. It gets printed one time despite testing hundreds of images in that suite.

I'm going to dig into this in more depth, but I was thinking it might be something that is immediately apparent as to the cause.

This replicates on both Mac and Linux. Host is an Apple M2 Max and in all cases I'm using Vips V8.16

@jhford-scout24
Copy link
Author

Ok, it seems that it's definitely related to Tiff export. If Tiff Params are provided, but those Tiff params are have a TileWidth or TileHeight value of 0 (the nil-value for this struct), then a Glibc error is printed, rather than any other error happening. I could prepare a patch that returns an error if either value is set to 0

@tonimelisma
Copy link
Collaborator

Thanks @jhford-scout24. A PR with unit tests would be greatly appreciated and speedily merged!

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

No branches or pull requests

2 participants