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

core: implement flush and poll #1293

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

joshua-holmes
Copy link
Contributor

Triggers the following error:

Segmentation fault at address 0x520
/home/josh/zig/0.14.0-dev.1911+3bf89f55c/files/lib/std/fifo.zig:245:24: 0x134f3e8 in writableLength (core-triangle)
            return self.buf.len - self.count;
                       ^
/home/josh/zig/0.14.0-dev.1911+3bf89f55c/files/lib/std/fifo.zig:136:36: 0x125e015 in ensureUnusedCapacity (core-triangle)
            if (self.writableLength() >= size) return;
                                   ^
/home/josh/zig/0.14.0-dev.1911+3bf89f55c/files/lib/std/fifo.zig:299:42: 0x125df76 in writeItem (core-triangle)
            try self.ensureUnusedCapacity(1);
                                         ^
/home/josh/dev/open-source/mach/src/Core.zig:379:26: 0x13763b7 in keyboardHandleEnter (core-triangle)
    core.events.writeItem(event) catch {
                         ^
???:?:?: 0x7d27dc80a595 in ??? (libffi.so.8)
Unwind information for `libffi.so.8:0x7d27dc80a595` was not available, trace may be incomplete
  • By selecting this checkbox, I agree to license my contributions to this project under the license(s) described in the LICENSE file, and I have the right to do so or have received permission to do so by an employer or client I am producing work for whom has this right.

Triggers the following error:
```
Segmentation fault at address 0x520
/home/josh/zig/0.14.0-dev.1911+3bf89f55c/files/lib/std/fifo.zig:245:24: 0x134f3e8 in writableLength (core-triangle)
            return self.buf.len - self.count;
                       ^
/home/josh/zig/0.14.0-dev.1911+3bf89f55c/files/lib/std/fifo.zig:136:36: 0x125e015 in ensureUnusedCapacity (core-triangle)
            if (self.writableLength() >= size) return;
                                   ^
/home/josh/zig/0.14.0-dev.1911+3bf89f55c/files/lib/std/fifo.zig:299:42: 0x125df76 in writeItem (core-triangle)
            try self.ensureUnusedCapacity(1);
                                         ^
/home/josh/dev/open-source/mach/src/Core.zig:379:26: 0x13763b7 in keyboardHandleEnter (core-triangle)
    core.events.writeItem(event) catch {
                         ^
???:?:?: 0x7d27dc80a595 in ??? (libffi.so.8)
Unwind information for `libffi.so.8:0x7d27dc80a595` was not available, trace may be incomplete
```
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.

1 participant