Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

fix: GType wrong size on windows #315

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

Merged
jcupitt merged 1 commit into libvips:master from danini-the-panini:ds-fix-gtype-win64
Aug 23, 2021

Conversation

@danini-the-panini
Copy link
Contributor

@danini-the-panini danini-the-panini commented Aug 19, 2021
edited
Loading

On Windows 64-bit, using 64-bit ruby and 64-bit libvips, I was getting an error that a value for GType was too big for ulong. So I replaced all the instances of typedef :ulong, :Gtype with the FFI address check to make sure it is a uint64 on windows 64-bit

Copy link
Member

jcupitt commented Aug 19, 2021

Hi @danini-the-panini, thanks for the patch!

I'm puzzled though --- this bug was fixed back in 2017:

a66c1e7#diff-ccdcd22bb3897e42b0b0fc5360672266e29a5984df88d9765d6947e20524051e

Did you base your patch on an older version of ruby-vips?

I can see adding the fix to the inheritance example would be useful.

Copy link
Contributor Author

This is based off of master.
There are two definitions of GType in lib/vips.rb, but only one of the definitions was fixed.
Fixed here (GObject::GType): https://github.com/libvips/ruby-vips/blob/master/lib/vips.rb#L140-L144
Not fixed here (Vips::GType): https://github.com/libvips/ruby-vips/blob/master/lib/vips.rb#L578
I have tested and everything is working fine on Windows once this patch is applied.

@jcupitt jcupitt merged commit 502a6c6 into libvips:master Aug 23, 2021
Copy link
Member

jcupitt commented Aug 23, 2021

Oh wow you're right. Thank you very much for finding this dumb thing.

I'll push out a new version with your fix and credit you in the changelog.

Copy link
Member

jcupitt commented Aug 23, 2021

... 2.1.3 pushed with this fix, see 053987b

danini-the-panini reacted with rocket emoji

@danini-the-panini danini-the-panini deleted the ds-fix-gtype-win64 branch August 23, 2021 18:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

AltStyle によって変換されたページ (->オリジナル) /