Stream: beginners

Topic: ✔ Roc platform callback segfault


view this post on Zulip Anton (Jul 05 2026 at 16:13):

Hi @Elijah Immer,
Can you share your code (preferably in a git repo)?

view this post on Zulip Anton (Jul 05 2026 at 16:14):

2) roc-ray may be the largest working platform that is using new Roc. You can use that as an example, we do not have any platform tutorials yet.

view this post on Zulip Elijah Immer (Jul 05 2026 at 19:01):

I don't know what happened, but now it is working fine?
I spent like 3 hours on this yesterday, and I don't think I changed anything...
I think it could be an ABI error or something; I believe I was getting a 139 or 129 exit code, but I couldn't find out what that meant (if anything).
I have had the glue miss-generate a couple of times (but I haven't gotten around to looking into too much yet, because it would just fix itself?).

Here is the code anyway:
https://codeberg.org/elijah-immer/status-page-roc/src/commit/d3448952504d70da3de342ef7bc4676b09c8648f
The calls are scheduled by the app (./examples/base.roc)
Then put into the event queue, and then run (./src/host.zig:144)

I think the changes might have started when I pulled a change from master, but I'm not sure.

view this post on Zulip Notification Bot (Jul 05 2026 at 19:04):

Elijah Immer has marked this topic as resolved.


Last updated: Jul 23 2026 at 13:15 UTC