Comments (21)
I fixed my issue by adding -DLIBSWSCALE_INCLUDE_DIR=/usr/include/ffmpeg4.4 -DLIBSWSCALE_LIBRARIES=/usr/lib/ffmpeg4.4/libswscale.so
as CMAKE Flags in the PKGBUILD from AUR
from sunshine.
Perhaps this is related to the FFmpeg 5.0 release? The Arch Linux package ffmpeg4.4
was used to build Sunshine on my system, so the recent 5.0 release is not the cause.
How may I help with debugging this?
from sunshine.
I'm also having this issue, same OS and terminal output, but using a different GPU. (AMD)
from sunshine.
same issue here, Arch and NVIDIA Card
from sunshine.
@hadogenes any thoughts?
from sunshine.
Same issue, same config. I switched to this fork because of an AUR update and now I can't get Sunshine to run. However I tried building the package at its last version targeting the original repo and I still run into this problem, so it might not be a regression. I'm also seeing CMake not detecting any CUDA compiler despite CUDA_HOME
and CUDA_PATH
both being set to /opt/cuda
, so I'm suspecting a build system issue to be the root cause.
PS: CUDA compiler not being detected happens on both the original repo and this fork. I guess it's worth fixing this repo as it's more reactive to PRs and already being tracked by the AUR package.
from sunshine.
Update: The CMake script actually finds the CUDA install present on my system, although not when being called through makepkg when building the AUR package. Not sure the lack of a CUDA compiler is what's causing the error, but maybe what's causing CMake to not find nvcc could also be causing it to not find an essential library.
from sunshine.
After a bit of debugging it turns out the issue happens here:
https://github.com/SunshineStream/Sunshine/blob/4a483078ad983b159d349e8056fccf61d918dc74/sunshine/video.cpp#L740
Both this fork and the original repo are impacted.
from sunshine.
Another note: I don't get this issue on my laptop with Intel integrated graphics. It's possible that it was caused by a libdrm or Nvidia update too.
from sunshine.
OK … so it's not a regression introduced from the fork (so is not due to a code change), is not unique to Nvidia, but may possibly still be connected to something with Arch Linux? I'm quite lost as to what the cause could be. I had the pre-fork version of Sunshine installed an hour before opening this issue, and my system was 100% up-to-date at the time, so the only updates that could've possibly affected things is anything statically-linked to the compiled binary. The fact that it works on Intel is interesting.
from sunshine.
The AUR was recently updated and there were changes in the build besides pointing to this repo. There were 3 commits a few days ago https://aur.archlinux.org/cgit/aur.git/log/?h=sunshine
from sunshine.
OK … so it's not a regression introduced from the fork (so is not due to a code change), is not unique to Nvidia, but may possibly still be connected to something with Arch Linux? I'm quite lost as to what the cause could be. I had the pre-fork version of Sunshine installed an hour before opening this issue, and my system was 100% up-to-date at the time, so the only updates that could've possibly affected things is anything statically-linked to the compiled binary.
The issue points to avcodec, and it is statically linked indeed. I'll have a look at their bug tracker to find out if there's been any sort of regression.
The fact that it works on Intel is interesting.
Not 100% sure but as far as I know my 6300U doesn't have any hardware encoder
from sunshine.
And there it is: https://trac.ffmpeg.org/ticket/9666
from sunshine.
Sorry I just found out I forgot to build Sunshine with ffmpeg 4.4, so I just polluted this issue with something that's already been solved here: #63
I've added the CMake flags to link against ffmpeg 4.4 and I'm back to the Couldn't expose some/all drm planes for card: /dev/dri/card0
error
from sunshine.
I can confirm that @cyl3x's solution works. Cheers for that 🍻
from sunshine.
Back to business indeed. Thanks a lot :)
from sunshine.
This has been resolved in the AUR. Can be closed.
from sunshine.
In my case, I needed to make sure I set the DISPLAY in the systemd unit file. I noticed things would run fine if I didn't launch the app image via systemd
[gamer@chimeraos tmp]$ cat ~/.config/systemd/user/sunshine.service
[Unit]
Description=Sunshine self-hosted game stream host for Moonlight.
StartLimitIntervalSec=500
StartLimitBurst=5
[Service]
ExecStart=%h/software/sunshine.AppImage
Restart=on-failure
RestartSec=5s
Environment=DISPLAY=chimeraos:10.0
#Flatpak Only
#ExecStop=flatpak kill dev.lizardbyte.sunshine
[Install]
WantedBy=graphical-session.target
from sunshine.
do you mind if you elaborate on the solution a little bit I have the code but I don't know where to put it
from sunshine.
@VRKade11 you need to set the DISPLAY
environment variable
from sunshine.
Well I figured it out it was the output name and adapter name needed to be blank or I messed something up with the name
from sunshine.
Related Issues (20)
- CMAKE_INSTALL_PREFIX / SUNSHINE_ASSETS_DIR is not documented in compilation instructions and defaults to incorrect values HOT 1
- Can't render display in PikaOs on and igpu with drivers under Proxmox with igpu passthrough
- Brew install sunshine but "CMake Generate step failed." HOT 15
- Troubleshooting Streaming Issues with Sunshine 0.22: Freezes, Resolution Changes, and Connectivity Problems
- 0.23.0: CMake error when trying to build with tests disabled (-DBUILD_TESTS:BOOL=FALSE) HOT 5
- Stuttering and video decoding time shot up when waking up from standby. HOT 1
- Black screen when streaming. Error: GL: /build/sunshine/src/platform/linux/graphics.cpp:570: [00000502] HOT 11
- [Win] Service not starting if temp is on another drive HOT 10
- Scaling issues on strange resolutions and how to fix them.
- Wrong setcap command in displayed error message on home screen
- How can I get client's information? or whether the client connected or not? HOT 1
- Web interface claims there is a new version, while running latest available HOT 3
- Sound and Input working, screen seems to be stuck/frozen HOT 1
- Linux VAAPI Doesn't Work With AppImage or Flatpak HOT 17
- Duplicate "fastest" option in QuickSync Preset dropdown
- KMS Capture does not work on second monitor HOT 5
- Can't close the stream when running full desktop stream HOT 2
- M1 Sunshine is not Responding To Keyboard and Mouse Events from Android and PC Moonlight Apps HOT 2
- [Contains a solution.]Android Bluetooth mouse and keyboard remote access to PC, after a period of time, the mouse and keyboard input becomes unresponsive, but the screen transmission remains normal. HOT 1
- Wrong screen orientation on Steam Deck (Linux) using KMS HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sunshine.