Bug 290890 - www/nyxt error message: Error on GTK & CFFI thread
Summary: www/nyxt error message: Error on GTK & CFFI thread
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: amd64 Any
: --- Affects Only Me
Assignee: Nuno Teixeira
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-11-08 10:13 UTC by David
Modified: 2025-11-09 20:58 UTC (History)
2 users (show)

See Also:
eduardo: maintainer-feedback+


Attachments
Patch for www/nyxt port (2.81 KB, patch)
2025-11-09 06:45 UTC, shamaz.mazum
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description David 2025-11-08 10:13:22 UTC
Running Nyxt (3.12.0_2) in FreeBSD 14.3-RELEASE reports:

<WARN> [10:10:11] Warning: Error in FFI method: The value
  1073741824
is not of type
  GDK:GDK-EVENT
when binding NYXT/RENDERER/GTK::EVENT

<WARN> [10:12:22] Warning: Error on GTK thread: The value
  NIL
is not of type
  STRING
when binding CL-WEBKIT2::WORLD

The UI comes up but is unresponsive. 

WebKitWebProcess.core is subsequently created.

Installed via PKG. 

It installs webkit2-gtk_41: 2.46.6_4 as a dependency. 

I'm running window manager StumpWM
Comment 1 Nuno Teixeira freebsd_committer freebsd_triage 2025-11-08 21:43:48 UTC
I can confirm crash on main.
I will take a look at upstream PRs and check if something related is available there.

Need to check if it is related to some webkit update.
Comment 2 Nuno Teixeira freebsd_committer freebsd_triage 2025-11-08 21:58:59 UTC
CC'ing Vasily hoping that we get some help here :)
Comment 3 shamaz.mazum 2025-11-09 05:11:15 UTC
The version in the port is incompatible with new SBCL. I'll try to make a patch
Comment 4 shamaz.mazum 2025-11-09 06:45:44 UTC
Created attachment 265282 [details]
Patch for www/nyxt port
Comment 5 shamaz.mazum 2025-11-09 06:46:48 UTC
I really wonder why this worked before...
Comment 6 Nuno Teixeira freebsd_committer freebsd_triage 2025-11-09 09:53:00 UTC
(In reply to shamaz.mazum from comment #5)

There were several sbcl updates since port was added.
nyxt port was added in 1 Fev 2025 with sbcl 2.5.0.
sbcl port is at 2.5.7 now.

On main I got a blank page with core dumped (WebKitWebProcess.core):

nyxt-3.12.0_3: run-test
```
% rm -r .local/share/nyxt
% nyxt freebsd.org

Nyxt version 3.12.0
<INFO> [09:43:05] Source location: #P"/usr/local/share/nyxt/"
<INFO> [09:43:05] Listening to socket: #P"/var/run/xdg/nunotex/nyxt/nyxt.socket"
<INFO> [09:43:06] Loading #P"/home/nunotex/.local/share/nyxt/history/default.lisp".
<INFO> [09:43:06] Restoring 1 buffer from history.
Failed to create GBM buffer of size 954x984: Invalid argument
Failed to create GBM buffer of size 954x24: Invalid argument
<INFO> [09:43:06] Loading #P"/home/nunotex/.local/share/nyxt/auto-rules.lisp".
Failed to create GBM buffer of size 954x984: Invalid argument
<WARN> [09:43:06] Warning: Error in FFI method: Couldn't execute &quot;xdg-open&quot;: No such file or directory
Failed to create GBM buffer of size 954x16: Invalid argument
<INFO> [09:50:20] Deleting socket #P"/var/run/xdg/nunotex/nyxt/nyxt.socket".
```
Comment 7 shamaz.mazum 2025-11-09 12:37:58 UTC
(In reply to Nuno Teixeira from comment #6)

I cannot reproduce this, unfortunately.

> Failed to create GBM buffer of size 954x984: Invalid argument

I never had something like this.

> <WARN> [09:43:06] Warning: Error in FFI method: Couldn't execute &quot;xdg-open&quot;: No such file or directory

Does installation of xdg-utils help?
Comment 8 Nuno Teixeira freebsd_committer freebsd_triage 2025-11-09 17:44:43 UTC
(In reply to shamaz.mazum from comment #7)

I forgot to set `env WEBKIT_DISABLE_COMPOSITING_MODE=1`

% env WEBKIT_DISABLE_COMPOSITING_MODE=1 badwolf https://www.freebsd.org

Fixes blank screen

Related to

> <WARN> [09:43:06] Warning: Error in FFI method: Couldn't execute &quot;xdg-open&quot;: No such file or directory

It stop showing when I set above env.

I can confirm that patch fixes runtime with newer SBCL.

Thanks!
Comment 9 commit-hook freebsd_committer freebsd_triage 2025-11-09 18:10:32 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=0529575a3639d40322e1634b0287fe56e0a40684

commit 0529575a3639d40322e1634b0287fe56e0a40684
Author:     Vasily Postnicov <shamaz.mazum@gmail.com>
AuthorDate: 2025-11-09 17:48:53 +0000
Commit:     Nuno Teixeira <eduardo@FreeBSD.org>
CommitDate: 2025-11-09 18:09:23 +0000

    www/nyxt: Fix runtime with newer SBCL

    PR:             290890
    Reported by:    David <djireland79[AT]gmail[DOT]com>
    MFH:            2025Q4 (runtime fix)

 www/nyxt/Makefile                                            |  2 +-
 ...tch-__build_cl-webkit_webkit2_webkit2.web-view.lisp (new) | 12 ++++++++++++
 www/nyxt/files/patch-source_renderer_gtk.lisp (new)          | 11 +++++++++++
 3 files changed, 24 insertions(+), 1 deletion(-)
Comment 10 commit-hook freebsd_committer freebsd_triage 2025-11-09 20:27:20 UTC
A commit in branch 2025Q4 references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=5a48fa11b7f170ef4bea3b7715278e635cbe9dff

commit 5a48fa11b7f170ef4bea3b7715278e635cbe9dff
Author:     Vasily Postnicov <shamaz.mazum@gmail.com>
AuthorDate: 2025-11-09 17:48:53 +0000
Commit:     Nuno Teixeira <eduardo@FreeBSD.org>
CommitDate: 2025-11-09 18:10:28 +0000

    www/nyxt: Fix runtime with newer SBCL

    PR:             290890
    Reported by:    David <djireland79[AT]gmail[DOT]com>
    MFH:            2025Q4 (runtime fix)

    (cherry picked from commit 0529575a3639d40322e1634b0287fe56e0a40684)

 www/nyxt/Makefile                                            |  2 +-
 ...tch-__build_cl-webkit_webkit2_webkit2.web-view.lisp (new) | 12 ++++++++++++
 www/nyxt/files/patch-source_renderer_gtk.lisp (new)          | 11 +++++++++++
 3 files changed, 24 insertions(+), 1 deletion(-)
Comment 11 Nuno Teixeira freebsd_committer freebsd_triage 2025-11-09 20:58:17 UTC
Thanks David for reporting.
Thanks Vasily for fixing it [1].

[1] If you willing to be maintainer, please let me know :)

Committed.