Sunshine icon indicating copy to clipboard operation
Sunshine copied to clipboard

Segfault on startup (ubuntu w/ NVIDIA P4)

Open colinmarc opened this issue 3 years ago • 2 comments

Describe the Bug

Hi, I get a segfault immediately on startup.

Stacktrace (from valgrind -v sunshine)

==9797== 1 errors in context 1 of 1:
==9797== Invalid read of size 4
==9797==    at 0x2081581C: ??? (in /usr/lib/x86_64-linux-gnu/libnvidia-fbc.so.515.65.01)
==9797==    by 0x2080DCE0: ??? (in /usr/lib/x86_64-linux-gnu/libnvidia-fbc.so.515.65.01)
==9797==    by 0x208108CD: ??? (in /usr/lib/x86_64-linux-gnu/libnvidia-fbc.so.515.65.01)
==9797==    by 0x20810CF0: NvFBCCreateHandle (in /usr/lib/x86_64-linux-gnu/libnvidia-fbc.so.515.65.01)
==9797==    by 0x3312B5: cuda::nvfbc::handle_t::make() (in /usr/bin/sunshine-0.14.1)
==9797==    by 0x32DCDB: platf::nvfbc_display_names[abi:cxx11]() (in /usr/bin/sunshine-0.14.1)
==9797==    by 0x3681EE: platf::init() (in /usr/bin/sunshine-0.14.1)
==9797==    by 0x20DA0D: main (in /usr/bin/sunshine-0.14.1)
==9797==  Address 0x208 is not stack'd, malloc'd or (recently) free'd

Expected Behavior

No response

Additional Context

This is a fresh box running on Google Cloud, so it's possible I'm missing some obvious dependency.

colinmarc@moonlight:~$ sudo nvidia-smi
Sun Oct  2 10:23:52 2022
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 515.65.01    Driver Version: 515.65.01    CUDA Version: 11.7     |
|-------------------------------+----------------------+----------------------+
| GPU  Name        Persistence-M| Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp  Perf  Pwr:Usage/Cap|         Memory-Usage | GPU-Util  Compute M. |
|                               |                      |               MIG M. |
|===============================+======================+======================|
|   0  Tesla P4            Off  | 00000000:00:04.0 Off |                    0 |
| N/A   44C    P0    23W /  75W |      0MiB /  7680MiB |      1%      Default |
|                               |                      |                  N/A |
+-------------------------------+----------------------+----------------------+

+-----------------------------------------------------------------------------+
| Processes:                                                                  |
|  GPU   GI   CI        PID   Type   Process name                  GPU Memory |
|        ID   ID                                                   Usage      |
|=============================================================================|
|  No running processes found                                                 |

Host Operating System

Linux

Operating System Version

Ubuntu 20.04

Architecture

x86_64

Sunshine Version

0.14.1

GPU Type

Nvidia

GPU Model

Nvidia p4

GPU Driver/Mesa Version

515.65.01

Capture Method (Linux Only)

No response

Relevant log output

No response

colinmarc avatar Oct 02 '22 10:10 colinmarc

I tried a fresh 22.04 box with a T4, same problem.

colinmarc avatar Oct 02 '22 10:10 colinmarc

I am also experiencing this. Fresh install, newest Nvidia drivers.

jkcoxson avatar Oct 06 '22 20:10 jkcoxson

This issue is stale because it has been open for 90 days with no activity. Comment or remove the stale label, otherwise this will be closed in 10 days.

LizardByte-bot avatar Jan 05 '23 00:01 LizardByte-bot

same issue, AMD card on Ubuntu 20.04.

SektorDV avatar Jan 08 '23 12:01 SektorDV

This issue is stale because it has been open for 90 days with no activity. Comment or remove the stale label, otherwise this will be closed in 10 days.

LizardByte-bot avatar Apr 09 '23 10:04 LizardByte-bot

This issue was closed because it has been stalled for 10 days with no activity.

LizardByte-bot avatar Apr 19 '23 10:04 LizardByte-bot