games/anki crashes on startup with nvidia drivers

My primary question: under what subject or port should I file a PR?
My secondary question: does anyone know of a fix?

System info from uname -mrsv
Code:
FreeBSD 12.4-RELEASE-p2 FreeBSD 12.4-RELEASE-p2 releng/12.4-n235816-149768b65d61 JAMESTOWN_AMDX6  amd64

The Problem:

Since updating last week games/anki is crashing on my system. I haven't seen any bug reports on this, so it might be peculiar to my hardware. I ran it with lldb and this is the output:
Code:
me@mymachine ~ 0> lldb python3.9 `which anki`
(lldb) target create "python3.9"
Current executable set to 'python3.9' (x86_64).
(lldb) settings set -- target.run-args  "/usr/local/bin/anki"
(lldb) r
Process 7431 launched: '/usr/local/bin/python3.9' (x86_64)
Running with temporary Qt5 compatibility shims.
Run with DISABLE_QT5_COMPAT=1 to confirm compatibility with Qt6.
Preparing to run...
Qt warning: QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-jtm' 
Process 7431 stopped
* thread #1, name = 'python3.9', stop reason = signal SIGSEGV: invalid address (fault address: 0xb0)
    frame #0: 0x000000081483aa74 libGL-NVIDIA.so.1`___lldb_unnamed_symbol3487 + 212
libGL-NVIDIA.so.1`___lldb_unnamed_symbol3487:
->  0x81483aa74 <+212>: movl   0xb0(%r13), %esi
    0x81483aa7b <+219>: movq   %rbp, %rdi
    0x81483aa7e <+222>: callq  0x81480d690               ; ___lldb_unnamed_symbol2654
    0x81483aa83 <+227>: testq  %rax, %rax
(lldb)

It says the problem arises in libGL-NVIDIA.so.1 so I think the PR should be for the video driver port, but I'm not familiar with reading this kind of debugging output so I thought I'd ask first. Could it be coming from qt6 which games/anki uses?

The Nvidia driver version I'm using is x11/nvidia-driver-340 because it's an old graphics card not supported by the latest drivers.

games/anki and associate python libraries and dependencies are built using qt6.

So far, other ports built using qt6, such as editors/libreoffice have worked without a problem.

Efforts to fix it so far:
  • I have updated the system from source.
  • I have rebuilt (using ports-mgmt/poudriere)and reinstalled every port, some multiple times because...
  • I have tested changing some port options which seemed relevant but to no effect.
 
Back
Top