-
-
Notifications
You must be signed in to change notification settings - Fork 12.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DaVinci Resolve Installation Issue: Crashes on Launch from nixpkgs-23.11, release-23.11, or unstable Branches. #278284
Comments
Seems likely given the stacktrace that it is a GPU driver compatibility issue, probably specific to AMD Radeon. I use Nvidia with Resolve. |
It used to work nearly perfectly using the HIP stack back on Arch, tho that one got deprecated in the switch from 23.05 -> 23.11. Here's the commit basically showing the difference in both versions (in my configuration). Any way to get the old stack back (in an updated form), or at least get the new one to work with davinci-resolve? |
I also have an AMD GPU (RX 6950 XT), but on I have set-up OpenCL GPU acceleration as indicated in the NixOS Manual by adding this to my configuration: {
hardware.opengl.extraPackages = [
rocmPackages.clr.icd
];
} Without this, |
Shouldn't this option be added to the package ? On my side, it did not crash but just showing no GPU it can use unless I had your workaround @nicomem |
@AkechiShiro I think that this is more a NixOS issue than a nixpkgs one: The package did not need to be modified to detect the GPU, it was the modification of the NixOS configuration For other Linux distributions, where the Nix package is installed, I think that it should currently be able to detect the GPU (assuming that the drivers are properly configured on the distribution). With a simple search in Github, there seems to be packages built differently depending on the GPU backend (e.g: spla, vllm), but they check the backend to change how the package is built. |
In that case @nicomem there should be fixes that should land in nixpkgs-hardware to detect AMD GPU and automatically add the rocm package so that the runtime be available ? |
@AkechiShiro If you are talking about nixos-hardware, it has already been added (see the amd/default.nix file) |
You still need to add in your configuration that you want to enable the opencl runtime for AMD :
Else davinci-resolve will not work, I'm just wondering if it's possible to fix this issue either in the package of davinci-resolve since this issue is about this no ? @nicomem else if it's just about configuring the runtime then this issue should be close IMO |
In my opinion, the issue is only a runtime configuration one (even if something was done to the package, I think the driver would still need to be properly configured for it to work), so I also agree that this issue could be closed. |
@nicomem Weird as I had to add the rocm package in my hardware configuration (extraPackages field, else The hardware profile are automatically activated ? Or are they detected at installation time ? when running the kinda of |
@AkechiShiro I do not think |
Describe the bug
Upon installing DaVinci Resolve from any of the branches
nixpkgs-23.11
,release-23.11
, orunstable
the application crashes immediately after launch.Steps To Reproduce
Follow these steps to observe the issue:
davinci-resolve
package into your user's package list.davinci-resolve
in the terminal.Expected behavior
The expected behavior is for davinci-resolve to launch without any encountered issues.
Screenshots
Launching via CLI:
![image](https://private-user-images.githubusercontent.com/79280720/293711091-319253f2-3e8a-44b1-8049-c480afcd8d03.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTgzMzE0MjksIm5iZiI6MTcxODMzMTEyOSwicGF0aCI6Ii83OTI4MDcyMC8yOTM3MTEwOTEtMzE5MjUzZjItM2U4YS00NGIxLTgwNDktYzQ4MGFmY2Q4ZDAzLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA2MTQlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNjE0VDAyMTIwOVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWNkZDZmYWZlMzM1M2IwYmVmM2EzYmIxYzQ4ZDczODE0Y2VkMDMwZjRlYjY0YjViOWRlYjA1YTc5NzE3YmVhZTYmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.lm8TXBiokHJIRJUjI49IRqT9FFl-YEVWtveUE4UXreI)
Additional context
My system's GPU stack comprises an RX 6700 XT with ROCm. For driver files and packages, please refer to Driver Files and Packages.
Additionally, logs for DaVinci Resolve are available in the user directory under ~/.local/share/DaVinciResolve/logs/.
ResolveDebug.txt
ResolveDebug_C1.txt
As a potential workaround, the documentation suggests running the application as the root user.
Ownership of specific directories associated with the DaVinci Resolve installation indicates root user ownership:
Notify maintainers
Notification sent to: @amarshall (Latest commit)
Maintainer from search.nixos.org: "Joshua Campbell" (No GitHub acc. associated?)
Metadata
Related Issues & PRs
PR #255577 Note: Utilizing `env NIXPKGS_ALLOW_UNFREE=1 nix run --impure 'github:NixOS/nixpkgs?ref=pull/255577/head#davinci-resolve-studio' won't resolve the issue either.
The directory
~/.local/share/DaVinciResolve/license
mentioned in the pull-request above doesn't exist on my system. Even creating it manually doesn't alleviate the error.Discussions on the matrix channel highlighted similar behavior across different users, remaining unresolved despite attempted solutions.
The text was updated successfully, but these errors were encountered: