Skip to content

davinci-resolve.beta: init at 17.4.6 - #167113

Closed
jshcmpbll wants to merge 2 commits into
NixOS:masterfrom
jshcmpbll:jc/issue-166902
Closed

jshcmpbll wants to merge 2 commits into
NixOS:masterfrom
jshcmpbll:jc/issue-166902

Conversation

@jshcmpbll

@jshcmpbll jshcmpbll commented Apr 4, 2022 •

Copy link
Copy Markdown
Member
Description of changes

Adding beta and studio versions.

Things done
  • Built on platform(s)
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
  • Tested, as applicable:
  • Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
  • Tested basic functionality of all binary files (usually in ./result/bin/)
  • 22.05 Release Notes (or backporting 21.11 Release notes)
    • (Package updates) Added a release notes entry if the change is major or breaking
    • (Module updates) Added a release notes entry if the change is significant
    • (Module addition) Added a release notes entry if adding a new NixOS module
    • (Release notes changes) Ran nixos/doc/manual/md-to-db.sh to update generated release notes
  • Fits CONTRIBUTING.md.

resolves #166902

@jshcmpbll

Copy link
Copy Markdown
Member Author

Still WIP but getting started on it

@ofborg ofborg Bot added 8.has: clean-up This PR removes packages or removes other cruft 8.has: package (new) This PR adds a new package 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. labels Apr 4, 2022
Comment thread pkgs/top-level/all-packages.nix Resolved
@jshcmpbll
jshcmpbll force-pushed the jc/issue-166902 branch 4 times, most recently from d24347d to 5cff8ae Compare April 4, 2022 19:52
@ofborg ofborg Bot added the 11.by: package-maintainer This PR was created by a maintainer of all the package it changes. label Apr 4, 2022
@PAI5REECHO

Copy link
Copy Markdown

I gave the beta package a try:

$ nix log /nix/store/r93w6lwgmdlfss593b55g1341zmwjvs5-davinci-resolve-beta-src.zip.drv
curl: (3) URL using bad/illegal format or missing URL

@davidak davidak Apr 5, 2022 •

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is the derivation so different that it can't be in the same file?

you could use an argument studio ? false and only if true add certain dependencies or extra stuff

like here:

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Love it. Good point!

@stepcut

stepcut commented Apr 8, 2022 •

Copy link
Copy Markdown
Contributor

I gave the beta package a try:

$ nix log /nix/store/r93w6lwgmdlfss593b55g1341zmwjvs5-davinci-resolve-beta-src.zip.drv
curl: (3) URL using bad/illegal format or missing URL

I get that same error. I added some debug to bring out RESOLVEURL and got

RESOLVEURL = Error: The download id '12e3370b90704a3eb632574b67f51425' was not found: lang=en

I just noticed that the version for the beta is "17.0b10". So I am now thinking that is the beta that was released before 17.1 -- and that it is no longer available for download. So, for anyone who was thinking of giving it a try because they wanted to see if the bleeding edge stuff works better -- don't bother. The 'beta' is older than 17.4.6.

@jshcmpbll
jshcmpbll force-pushed the jc/issue-166902 branch 2 times, most recently from 6984c9f to 0dd133e Compare April 12, 2022 21:27

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Im digging the generic pattern 🙂

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Keep it up! Im sure youll figure out whats going on

@stepcut stepcut Apr 15, 2022 •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As I noted above -- I don't think it is possible to get past that download error. As far as I can tell there is currently no beta version of Davinci Resolve available for download. The 17.0b10 beta was released in Feb 2021 and is no longer available for download now that Resolve 17.1 (and beyond) has been released.

As far as I can tell, there are no betas for Resolve 18 available yet.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In an attempt to make me look wrong, black magic design released the Davinci Resolve 18 beta today. So there is now a beta version available. I am looking forward to trying it since 17 does nothing but crash on startup for me.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

isnt that always how it works out 😆

@stepcut

stepcut commented Apr 22, 2022 •

Copy link
Copy Markdown
Contributor

With this patch i was able to download the new beta,

diff --git a/pkgs/applications/video/davinci-resolve/default.nix b/pkgs/applications/video/davinci-resolve/default.nix
index e4c4c8dbf8a..5057d320a0d 100644
--- a/pkgs/applications/video/davinci-resolve/default.nix
+++ b/pkgs/applications/video/davinci-resolve/default.nix
@@ -18,12 +18,12 @@ rec {
   };
 
   beta = generic {
-    version = "17.0b10";
+    version = "18.0b1";
     pname = "davinci-resolve-beta";
-    downloadid = "12e3370b90704a3eb632574b67f51425";
+    downloadid = "26aedd5f70ae4045b9fdf795582bcf61";
     referid = "73eca88216ee485a86a44dfd53692c55";
     # I cant get past the download error.. still troubleshooting
-    outputHash = "0cxhvn2i6j0ji2wk3qwq3gc70vx3vfvh5hn81l7km9n9kfxbc0nd";
+    outputHash = "1qrw9g2agkklzqhgghjrwil3nrfjp5ng4zd2mpbks2qi3qrcwa3w";
   };
 
   studio = generic {

I did not change the referid, and it did not seem to matter.

Unfortunately, when I start davinci-resolve it runs for a few seconds and then pops up the crash handler. I don't even get the splash screen. I am not really sure what is wrong. Could it be related to this message in the ResolveDebug.txt

Cannot mix incompatible Qt library (5.15.3) with this library (5.15.2)

I have not gotten any version of DaVinci Resolve to work under NixOS. 17 crashes with the same error.

I was able to get Resolve 17.4.6 to run on my NixOS machine by using this docker container,

https://github.com/fat-tire/resolve

Which suggests my hardware configuration is fine and that the problem is an issue with libraries.

@PAI5REECHO PAI5REECHO mentioned this pull request Apr 26, 2022
5 of 16 tasks
@PAI5REECHO

Copy link
Copy Markdown

Adding beta and studio versions.

Any news with this?

@v3eil

v3eil commented Jul 11, 2022

Copy link
Copy Markdown

Good job guy. I really appreciate that there are volunteers in the world to do this. I would help if I could. I can't wait for the beta and studio version.

@jshcmpbll

Copy link
Copy Markdown
Member Author

Adding beta and studio versions.

Any news with this?

Been very busy with personal items for the past couple of months. Hoping to continue working on it soon. Anyone is welcome to contribute too if there are willing 😄

@pmarreck

pmarreck commented Sep 7, 2022

Copy link
Copy Markdown
Contributor

@stepcut Based on this https://bbs.archlinux.org/viewtopic.php?id=274702, it's possible for a single qt5 plugin to break qt5... which seems insane in this case since (at least according to semver) such a minor version increase shouldn't break any API, although I admire their strictness, I guess?... I wonder if Blackmagic's released another beta since this ticket was last updated.

I'm impressed by all the work done here so far; it's really a sell on NixOS since it seems (from googling issues on other linux distros with this app... and there are a lot) that if it works at all, it's completely by accident, which explains why something like buildFHSUserEnv might seem necessary; dynamically linking to libraries that are not explicitly declared as dependencies (along with versions) should be considered "illegal" in C[++] coding at this point, but whatevs, I know Nix's been trying to fix that since inception

@justinas

Copy link
Copy Markdown
Member

Any movement on this? 18 has been released since.

FWIW, with the following patch on top of this PR:

diff --git a/pkgs/applications/video/davinci-resolve/default.nix b/pkgs/applications/video/davinci-resolve/default.nix
index e4c4c8dbf8a..6863d5f58fe 100644
--- a/pkgs/applications/video/davinci-resolve/default.nix
+++ b/pkgs/applications/video/davinci-resolve/default.nix
@@ -10,11 +10,11 @@ in
 rec {
 
   stable = generic {
-    version = "17.4.6";
+    version = "18.1.4";
     pname = "davinci-resolve";
-    downloadid = "0e34f66357634628b918e96b6680c137";
+    downloadid = "6449dc76e0b845bcb7399964b00a3ec4";
     referid = "95925530c5fd4572a47debdcdc2e3f23";
-    outputHash = "0cxhvn2i6j0ji2wk3qwq3gc70vx3vfvh5hn81l7km9n9kfxbc0nd";
+    outputHash = "02z4zv4y9601y3svkyli6w1i3n5wjcvn8qrn5i33gbsb3vbr6hn9";
   };
 
   beta = generic {
diff --git a/pkgs/applications/video/davinci-resolve/generic.nix b/pkgs/applications/video/davinci-resolve/generic.nix
index 1d640839e6c..91e520f0c04 100644
--- a/pkgs/applications/video/davinci-resolve/generic.nix
+++ b/pkgs/applications/video/davinci-resolve/generic.nix
@@ -23,6 +23,8 @@
 , xkeyboard_config
 , glib
 , libarchive
+, dbus
+, libxkbcommon
 , python
 }:
 
@@ -159,6 +161,13 @@ buildFHSUserEnv {
     glib
     libarchive
     xdg-utils # xdg-open needed to open URLs
+    dbus.lib
+    libxkbcommon
+    xorg.xcbutil
+    xorg.xcbutilimage
+    xorg.xcbutilkeysyms
+    xorg.xcbutilrenderutil
+    xorg.xcbutilwm
     python
     # currently they want python 3.6 which is EOL
     #python3

I can build 18 (I am not sure why these libs are now required, even though Resolve seems to ship them itself). However, running it displays a splash screen for a short while, and then segfaults: see debug logs. This seems to happen on machines with both NVIDIA and AMD GPUs.

This caught my eye: Failed to load Fairlight dynamic library, but the same message appears with 17 (which works fine).

@davidak

davidak commented Mar 18, 2023

Copy link
Copy Markdown
Member

Here someone created a flatpak for 18: https://github.com/pobthebuilder/resolve-flatpak/tree/main

Maybe that can help to update and fix our package.

@jshcmpbll jshcmpbll closed this Dec 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

8.has: clean-up This PR removes packages or removes other cruft 8.has: package (new) This PR adds a new package 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. 11.by: package-maintainer This PR was created by a maintainer of all the package it changes.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

davinci-resolve: package studio version

8 participants