Is there an existing issue for this?
Is your issue described in the documentation?
Is your issue present in the latest beta/pre-release?
This issue is present in the latest pre-release
Describe the Bug
Randomly when starting up Sunshine, it will segfault while reading the configuration file. I've observed this issue only occurs on a second+ startup of Sunshine after a machine reboot. Meaning that Sunshine first startup after a fresh reboot will never cause this to occur.
Expected Behavior
Sunshine should start up every time.
Additional Context
This has been occurring since before 0.21.0 (this was the first version I ever used).
This has occurred across multiple versions of my OS (Ubuntu 22.10, Ubuntu 23.04, Ubuntu 23.10 and now Ubuntu 24.04).
This has occurred across multiple versions of graphic drivers.
No configuration changes occur in between a failing startup and a successful startup.
The issue occurs randomly, but relatively rarely. 3 out of 10 startups will segfault.
A retry of the startup will almost always work immediately. Only a handful of times has the startup segfault persisted a second time consecutively.
Host Operating System
Linux
Operating System Version
24.04
Architecture
64 bit
Sunshine commit or version
v2024.730.191523
Package
Linux - deb
GPU Type
Nvidia
GPU Model
RTXA2000
GPU Driver/Mesa Version
560.28.03
Capture Method
NvFBC (Linux)
Config
log_path = /home/pi/sunshine/configs/sunshine.log
nv_preset = p1
origin_web_ui_allowed = pc
credentials_file = /home/pi/sunshine/configs/sunshine_state.json
nvenc_spatial_aq = enabled
file_apps = /home/pi/sunshine/configs/apps.json
resolutions = [
1440x900
]
min_log_level = 1
file_state = /home/pi/sunshine/configs/sunshine_state.json
encoder = nvenc
nvenc_preset = 7
fps = [60]
nv_rc = vbr
capture = nvfbc
native_pen_touch = disabled
channels = 3
sunshine_name = Pi
global_prep_cmd = [{"do":"","undo":""}]
high_resolution_scrolling = disabled
nvenc_twopass = full_res
Apps
No response
Relevant log output
pi@pi:~/sunshine/configs$ sunshine sunshine.conf
[nvenc_twopass] -- [full_res]
[high_resolution_scrolling] -- [disabled]
[global_prep_cmd] -- [[{"do":"","undo":""}]]
[sunshine_name] -- [Pi]
[channels] -- [3]
[native_pen_touch] -- [disabled]
[capture] -- [nvfbc]
[log_path] -- [/home/pi/sunshine/configs/sunshine.log]
[nv_preset] -- [p1]
[min_log_level] -- [1]
[origin_web_ui_allowed] -- [pc]
[credentials_file] -- [/home/pi/sunshine/configs/sunshine_state.json]
[nvenc_spatial_aq] -- [enabled]
[file_apps] -- [/home/pi/sunshine/configs/apps.json]
[resolutions] -- [[
1440x900
]]
[file_state] -- [/home/pi/sunshine/configs/sunshine_state.json]
[encoder] -- [nvenc]
[nvenc_preset] -- [7]
[fps] -- [[60]]
[nv_rc] -- [vbr]
Warning: Unrecognized configurable option [nv_preset]
Warning: Unrecognized configurable option [nv_rc]
[2024:08:02:12:24:13]: Info: Sunshine version: v2024.730.191523
Segmentation fault (core dumped)
Is there an existing issue for this?
Is your issue described in the documentation?
Is your issue present in the latest beta/pre-release?
This issue is present in the latest pre-release
Describe the Bug
Randomly when starting up Sunshine, it will segfault while reading the configuration file. I've observed this issue only occurs on a second+ startup of Sunshine after a machine reboot. Meaning that Sunshine first startup after a fresh reboot will never cause this to occur.
Expected Behavior
Sunshine should start up every time.
Additional Context
This has been occurring since before 0.21.0 (this was the first version I ever used).
This has occurred across multiple versions of my OS (Ubuntu 22.10, Ubuntu 23.04, Ubuntu 23.10 and now Ubuntu 24.04).
This has occurred across multiple versions of graphic drivers.
No configuration changes occur in between a failing startup and a successful startup.
The issue occurs randomly, but relatively rarely. 3 out of 10 startups will segfault.
A retry of the startup will almost always work immediately. Only a handful of times has the startup segfault persisted a second time consecutively.
Host Operating System
Linux
Operating System Version
24.04
Architecture
64 bit
Sunshine commit or version
v2024.730.191523
Package
Linux - deb
GPU Type
Nvidia
GPU Model
RTXA2000
GPU Driver/Mesa Version
560.28.03
Capture Method
NvFBC (Linux)
Config
log_path = /home/pi/sunshine/configs/sunshine.log nv_preset = p1 origin_web_ui_allowed = pc credentials_file = /home/pi/sunshine/configs/sunshine_state.json nvenc_spatial_aq = enabled file_apps = /home/pi/sunshine/configs/apps.json resolutions = [ 1440x900 ] min_log_level = 1 file_state = /home/pi/sunshine/configs/sunshine_state.json encoder = nvenc nvenc_preset = 7 fps = [60] nv_rc = vbr capture = nvfbc native_pen_touch = disabled channels = 3 sunshine_name = Pi global_prep_cmd = [{"do":"","undo":""}] high_resolution_scrolling = disabled nvenc_twopass = full_resApps
No response
Relevant log output