Comments (5)
A more simplistic example of this bug would be:
require 'ffi'
class SubStruct < FFI::Struct
layout :x, :uint,
:y, :uint
end
class NestedStruct < FFI::Struct
layout :subs, [SubStruct, 3]
end
from ffi.
Update to the latest ffi source and rebuild/install from there.
from ffi.
Upgrading to FFI 0.6.0 solved the issue.
from ffi.
Close please.
from ffi.
Closing as it is fixed in 0.6.0
from ffi.
Related Issues (20)
- Unable to install ffi version 1.11.1 on apple silicon M2 HOT 2
- There’s an unexposed `AbstractMemory#read_array_of_string`
- Contrary to documentation, `AutoPointer#initialize` ignores block HOT 1
- The documentation for `Struct` is incomplete
- There isn’t actually a distinction between `in`, `out`, and `inout`. Is this intended for backward-compatibility or future-proofing? HOT 2
- Could not open library 'libcurl': Failed with error 126 HOT 1
- installing on Alpine (ruby:3.2.2-alpine) HOT 1
- Crash with `[BUG] try to mark T_NONE object` from `3.3.0/gems/ffi-1.16.3/lib/ffi/struct_layout_builder.rb:171` HOT 12
- Is it expected that native code can modify Ruby Strings passed to it inplace? HOT 8
- Could the :string type accepts Ruby Strings with null bytes, or an alternative type accept them? HOT 4
- `libsingular` ffi error HOT 3
- 1.16.4 is not published on https://rubygems.org/gems/ffi nor is tagged on GitHub repo HOT 1
- Unable to resolve type 'intptr_t' (TypeError) - Raspberry Pi 4 with Ubuntu 22.04 (aarch64) - ffi-1.16.3 HOT 1
- ffi-1.17.0 requires rubygems version >= 3.3.22 HOT 4
- FFI 1.7.0 gem fails to import HOT 2
- Bundle update fails to download ffi 1.17.0 HOT 13
- Bundle fails after update 1.17.0
- `sig` as packaged in 1.17.0 contain problematic RBS HOT 5
- Why 3.4-dev disallowed explicitely for part of `1.17.0` releases? HOT 1
- Unable to use latest version on Debian stable and others because of rubygems version HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ffi.