[WORKAROUND] DaVinci Resolve - Doesn't Launch (Segmentation fault?)

Questions about applications and software
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
beached_whale
Level 1
Level 1
Posts: 13
Joined: Tue Oct 04, 2022 2:22 am

[WORKAROUND] DaVinci Resolve - Doesn't Launch (Segmentation fault?)

Post by beached_whale »

Good day.
Trying to get DaVinci Resolve to work but to no avail. Installation went as expected but the program doesn't boot. Couple of times DaVinci showed me the welcome screen, asked internet permission and then froze.
This is the output:

Code: Select all

$ ./resolve
ActCCMessage Already in Table: Code= c005, Mode= 13, Level=  1, CmdKey= -1, Option= 0
ActCCMessage Already in Table: Code= c006, Mode= 13, Level=  1, CmdKey= -1, Option= 0
ActCCMessage Already in Table: Code= c007, Mode= 13, Level=  1, CmdKey= -1, Option= 0
ActCCMessage Already in Table: Code= 2282, Mode=  0, Level=  0, CmdKey= 8, Option= 0
PnlMsgActionStringAdapter Already in Table: Code= 615e, Mode=  0, Level=  0, CmdKey= -1, Option= 0
18.0.4.0005 Linux/Clang x86_64
Main thread starts: 0F62A600
Segmentation fault (core dumped)
Starting with sudo works but it is buggy. Sometimes it crashes when I open the "Edit" tab or sometimes I cannot import files. Regardless, from what I've read, running programs with sudo is usually discouraged, especially to get past the segmentation fault. I have tried reinstalling multiple times as well as installing the Studio version but the error persists. From what I've read online the segmentation fault is usually attributed to something wrong being with GPU drivers or OpenCL. However I do have the latest proprietary NVIDIA drivers and (I think) OpenCL installed.
My "inxi -Fxxxrz":

Code: Select all

$ inxi -Fxxxrz
System:    Kernel: 5.15.0-48-generic x86_64 bits: 64 compiler: N/A Desktop: Cinnamon 5.2.7 info: plank wm: muffin 5.2.1 
           dm: LightDM 1.30.0 Distro: Linux Mint 20.3 Una base: Ubuntu 20.04 focal 
Machine:   Type: Desktop System: Gigabyte product: H170-D3H v: N/A serial: <filter> 
           Mobo: Gigabyte model: H170-D3H-CF v: x.x serial: <filter> UEFI: American Megatrends v: F3 date: 10/16/2015 
CPU:       Topology: Quad Core model: Intel Core i5-6500 bits: 64 type: MCP arch: Skylake-S rev: 3 L2 cache: 6144 KiB 
           flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx bogomips: 25599 
           Speed: 1597 MHz min/max: 800/3600 MHz Core speeds (MHz): 1: 1600 2: 1598 3: 1600 4: 1588 
Graphics:  Device-1: NVIDIA GP106 [GeForce GTX 1060 6GB] driver: nvidia v: 515.76 bus ID: 01:00.0 chip ID: 10de:1c03 
           Display: x11 server: X.Org 1.20.13 driver: nvidia unloaded: fbdev,modesetting,nouveau,vesa 
           resolution: 1920x1080~60Hz, 1920x1080~60Hz 
           OpenGL: renderer: NVIDIA GeForce GTX 1060 6GB/PCIe/SSE2 v: 4.6.0 NVIDIA 515.76 direct render: Yes 
Audio:     Device-1: Intel 100 Series/C230 Series Family HD Audio vendor: Gigabyte driver: snd_hda_intel v: kernel 
           bus ID: 00:1f.3 chip ID: 8086:a170 
           Device-2: NVIDIA GP106 High Definition Audio driver: snd_hda_intel v: kernel bus ID: 01:00.1 chip ID: 10de:10f1 
           Device-3: Kingston HyperX Cloud Flight Wireless type: USB driver: hid-generic,snd-usb-audio,usbhid bus ID: 1-6:4 
           chip ID: 0951:1723 
           Device-4: JMTek LLC. USB PnP Audio Device type: USB driver: hid-generic,snd-usb-audio,usbhid bus ID: 1-4:2 
           chip ID: 0c76:161e 
           Sound Server: ALSA v: k5.15.0-48-generic 
Network:   Device-1: Intel Ethernet I219-V vendor: Gigabyte driver: e1000e v: kernel port: f000 bus ID: 00:1f.6 
           chip ID: 8086:15b8 
           IF: enp0s31f6 state: down mac: <filter> 
           Device-2: TP-Link 802.11n NIC type: USB driver: rtl88XXau bus ID: 1-5:3 chip ID: 2357:010d serial: <filter> 
           IF: wlx18d6c711b0d6 state: up mac: <filter> 
           IF-ID-1: ipv6leakintrf0 state: unknown speed: N/A duplex: N/A mac: <filter> 
           IF-ID-2: proton0 state: unknown speed: 10 Mbps duplex: full mac: N/A 
           IF-ID-3: pvpnksintrf0 state: unknown speed: N/A duplex: N/A mac: <filter> 
           IF-ID-4: virbr0 state: down mac: <filter> 
           IF-ID-5: virbr0-nic state: down mac: <filter> 
Drives:    Local Storage: total: 3.41 TiB used: 2.63 TiB (77.0%) 
           ID-1: /dev/sda vendor: Samsung model: SSD 860 EVO 250GB size: 232.89 GiB speed: 6.0 Gb/s serial: <filter> rev: 3B6Q 
           scheme: GPT 
           ID-2: /dev/sdb vendor: Western Digital model: WD10EFRX-68FYTN0 size: 931.51 GiB speed: 6.0 Gb/s rotation: 5400 rpm 
           serial: <filter> rev: 0A82 scheme: MBR 
           ID-3: /dev/sdc vendor: Toshiba model: HDWD120 size: 1.82 TiB speed: 6.0 Gb/s rotation: 7200 rpm serial: <filter> 
           rev: ACF0 scheme: MBR 
           ID-4: /dev/sdd vendor: Samsung model: SSD 860 EVO 500GB size: 465.76 GiB speed: 6.0 Gb/s serial: <filter> rev: 4B6Q 
           scheme: GPT 
Partition: ID-1: / size: 118.59 GiB used: 97.88 GiB (82.5%) fs: ext4 dev: /dev/sdd4 
Sensors:   System Temperatures: cpu: 44.0 C mobo: 29.8 C gpu: nvidia temp: 48 C 
           Fan Speeds (RPM): N/A gpu: nvidia fan: 29% 
Repos:     No active apt repos in: /etc/apt/sources.list 
           Active apt repos in: /etc/apt/sources.list.d/additional-repositories.list 
           1: deb https://dl.winehq.org/wine-builds/ubuntu/ focal main
           2: deb https://dl.winehq.org/wine-builds/ubuntu/ bionic main
           Active apt repos in: /etc/apt/sources.list.d/flexiondotorg-mangohud-focal.list 
           1: deb http://ppa.launchpad.net/flexiondotorg/mangohud/ubuntu focal main
           Active apt repos in: /etc/apt/sources.list.d/graphics-drivers-ppa-focal.list 
           1: deb http://ppa.launchpad.net/graphics-drivers/ppa/ubuntu focal main
           Active apt repos in: /etc/apt/sources.list.d/jonaski-strawberry-focal.list 
           1: deb http://ppa.launchpad.net/jonaski/strawberry/ubuntu focal main
           Active apt repos in: /etc/apt/sources.list.d/lutris-team-lutris-focal.list 
           1: deb http://ppa.launchpad.net/lutris-team/lutris/ubuntu focal main
           Active apt repos in: /etc/apt/sources.list.d/obsproject-obs-studio-focal.list 
           1: deb http://ppa.launchpad.net/obsproject/obs-studio/ubuntu focal main
           Active apt repos in: /etc/apt/sources.list.d/official-package-repositories.list 
           1: deb http://packages.linuxmint.com una main upstream import backport #id:linuxmint_main
           2: deb http://archive.ubuntu.com/ubuntu focal main restricted universe multiverse
           3: deb http://archive.ubuntu.com/ubuntu focal-updates main restricted universe multiverse
           4: deb http://archive.ubuntu.com/ubuntu focal-backports main restricted universe multiverse
           5: deb http://security.ubuntu.com/ubuntu/ focal-security main restricted universe multiverse
           6: deb http://archive.canonical.com/ubuntu/ focal partner
           Active apt repos in: /etc/apt/sources.list.d/protonvpn-stable.list 
           1: deb [arch="all", signed-by=/usr/share/keyrings/protonvpn-stable-archive-keyring.gpg] https://repo.protonvpn.com/debian stable main
           Active apt repos in: /etc/apt/sources.list.d/qbittorrent-team-qbittorrent-stable-focal.list 
           1: deb http://ppa.launchpad.net/qbittorrent-team/qbittorrent-stable/ubuntu focal main
           Active apt repos in: /etc/apt/sources.list.d/riot-im.list 
           1: deb [signed-by=/usr/share/keyrings/riot-im-archive-keyring.gpg] https://packages.riot.im/debian/ default main
           Active apt repos in: /etc/apt/sources.list.d/steam.list 
           1: deb [arch=amd64,i386] https://repo.steampowered.com/steam/ stable steam
           2: deb-src [arch=amd64,i386] https://repo.steampowered.com/steam/ stable steam
           Active apt repos in: /etc/apt/sources.list.d/syncthing.list 
           1: deb [signed-by=/usr/share/keyrings/syncthing-archive-keyring.gpg] https://apt.syncthing.net/ syncthing candidate
           Active apt repos in: /etc/apt/sources.list.d/unit193-encryption-focal.list 
           1: deb http://ppa.launchpad.net/unit193/encryption/ubuntu focal main
Info:      Processes: 294 Uptime: 1h 13m Memory: 15.56 GiB used: 4.71 GiB (30.3%) Init: systemd v: 245 runlevel: 5 Compilers: 
           gcc: 9.4.0 alt: 8/9 Shell: bash v: 5.0.17 running in: gnome-terminal inxi: 3.0.38 
Thank you in advance!
Last edited by LockBot on Tue Apr 04, 2023 10:00 pm, edited 2 times in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Cosmo.
Level 24
Level 24
Posts: 22968
Joined: Sat Dec 06, 2014 7:34 am

Re: DaVinci Resolve - Doesn't Launch (Segmentation fault?)

Post by Cosmo. »

I do not know DaVinci (except the famous painter) and it is not in the official repositories. So I can only assume, that this is graphical program and in this case launching via sudo does give trouble.

Open a terminal and enter

Code: Select all

find $HOME ! -user $USER -type f
Provide the output ny using code tags (button </> in the forum).
beached_whale
Level 1
Level 1
Posts: 13
Joined: Tue Oct 04, 2022 2:22 am

Re: DaVinci Resolve - Doesn't Launch (Segmentation fault?)

Post by beached_whale »

Thank you for answering.
DaVinci Resolve is indeed not in official repositories and is officially available only for CentOS and Red Hat. But, to my knowledge, it can be run in other distros such as Ubuntu, Debian or Arch.

Code: Select all

$ find $HOME ! -user $USER -type f
/home/monkey/.local/share/Trash/expunged/3431602548/mat2.egg-info/dependency_links.txt
/home/monkey/.local/share/Trash/expunged/3431602548/mat2.egg-info/PKG-INFO
/home/monkey/.local/share/Trash/expunged/3431602548/mat2.egg-info/SOURCES.txt
/home/monkey/.local/share/Trash/expunged/3431602548/mat2.egg-info/requires.txt
/home/monkey/.local/share/Trash/expunged/3431602548/mat2.egg-info/top_level.txt
/home/monkey/.local/share/Trash/expunged/3431602548/build/scripts-3.8/mat2
/home/monkey/.local/share/Trash/expunged/3431602548/build/lib/libmat2/__init__.py
/home/monkey/.local/share/Trash/expunged/3431602548/build/lib/libmat2/bubblewrap.py
/home/monkey/.local/share/Trash/expunged/3431602548/build/lib/libmat2/epub.py
/home/monkey/.local/share/Trash/expunged/3431602548/build/lib/libmat2/images.py
/home/monkey/.local/share/Trash/expunged/3431602548/build/lib/libmat2/pdf.py
/home/monkey/.local/share/Trash/expunged/3431602548/build/lib/libmat2/video.py
/home/monkey/.local/share/Trash/expunged/3431602548/build/lib/libmat2/harmless.py
/home/monkey/.local/share/Trash/expunged/3431602548/build/lib/libmat2/exiftool.py
/home/monkey/.local/share/Trash/expunged/3431602548/build/lib/libmat2/office.py
/home/monkey/.local/share/Trash/expunged/3431602548/build/lib/libmat2/torrent.py
/home/monkey/.local/share/Trash/expunged/3431602548/build/lib/libmat2/abstract.py
/home/monkey/.local/share/Trash/expunged/3431602548/build/lib/libmat2/archive.py
/home/monkey/.local/share/Trash/expunged/3431602548/build/lib/libmat2/parser_factory.py
/home/monkey/.local/share/Trash/expunged/3431602548/build/lib/libmat2/audio.py
/home/monkey/.local/share/Trash/expunged/3431602548/build/lib/libmat2/web.py
/home/monkey/.local/share/Trash/expunged/3431602548/dist/mat2-0.12.4-py3.8.egg
/home/monkey/Downloads/mat2-0.12.3/mat2.egg-info/dependency_links.txt
/home/monkey/Downloads/mat2-0.12.3/mat2.egg-info/PKG-INFO
/home/monkey/Downloads/mat2-0.12.3/mat2.egg-info/SOURCES.txt
/home/monkey/Downloads/mat2-0.12.3/mat2.egg-info/requires.txt
/home/monkey/Downloads/mat2-0.12.3/mat2.egg-info/top_level.txt
/home/monkey/Downloads/mat2-0.12.3/build/scripts-3.8/mat2
/home/monkey/Downloads/mat2-0.12.3/build/lib/libmat2/__init__.py
/home/monkey/Downloads/mat2-0.12.3/build/lib/libmat2/bubblewrap.py
/home/monkey/Downloads/mat2-0.12.3/build/lib/libmat2/epub.py
/home/monkey/Downloads/mat2-0.12.3/build/lib/libmat2/images.py
/home/monkey/Downloads/mat2-0.12.3/build/lib/libmat2/pdf.py
/home/monkey/Downloads/mat2-0.12.3/build/lib/libmat2/video.py
/home/monkey/Downloads/mat2-0.12.3/build/lib/libmat2/harmless.py
/home/monkey/Downloads/mat2-0.12.3/build/lib/libmat2/exiftool.py
/home/monkey/Downloads/mat2-0.12.3/build/lib/libmat2/office.py
/home/monkey/Downloads/mat2-0.12.3/build/lib/libmat2/torrent.py
/home/monkey/Downloads/mat2-0.12.3/build/lib/libmat2/abstract.py
/home/monkey/Downloads/mat2-0.12.3/build/lib/libmat2/archive.py
/home/monkey/Downloads/mat2-0.12.3/build/lib/libmat2/parser_factory.py
/home/monkey/Downloads/mat2-0.12.3/build/lib/libmat2/audio.py
/home/monkey/Downloads/mat2-0.12.3/build/lib/libmat2/web.py
/home/monkey/Downloads/mat2-0.12.3/dist/mat2-0.12.3-py3.8.egg
Cosmo.
Level 24
Level 24
Posts: 22968
Joined: Sat Dec 06, 2014 7:34 am

Re: DaVinci Resolve - Doesn't Launch (Segmentation fault?)

Post by Cosmo. »

To correct the expected problems in your home:

Code: Select all

sudo chown -R $USER:$USER $HOME
You do not get any output.

And do never again use sudo for any graphical programs.
beached_whale
Level 1
Level 1
Posts: 13
Joined: Tue Oct 04, 2022 2:22 am

Re: DaVinci Resolve - Doesn't Launch (Segmentation fault?)

Post by beached_whale »

Don't know if that corrected every problem I potentially had:

Code: Select all

$ sudo chown -R $USER:$USER $HOME
[sudo] password for monkey:      
chown: changing ownership of '/home/monkey/.config/Element/Cache/Cache_Data/c1d7c697faa44d5b_0': Input/output error
chown: changing ownership of '/home/monkey/.config/Element/Cache/Cache_Data/7d14b3cf172f1e66_0': Input/output error
chown: changing ownership of '/home/monkey/.config/Element/Cache/Cache_Data/10bcce415eef0b42_0': Input/output error
chown: changing ownership of '/home/monkey/.config/Element/Cache/Cache_Data/ebfdf0601b557510_0': Input/output error
chown: changing ownership of '/home/monkey/.config/Element/Cache/Cache_Data/1a168e8937f2352b_0': Input/output error
chown: changing ownership of '/home/monkey/.config/FreeTube/Cache/30fc14b7e2d700be_0': Input/output error
chown: changing ownership of '/home/monkey/.config/FreeTube/Cache/1bbc364ffe14f5f5_0': Input/output error
chown: changing ownership of '/home/monkey/.config/FreeTube/Cache/216448e391f431e3_0': Input/output error
chown: changing ownership of '/home/monkey/.config/FreeTube/Cache/bd1f70c0d66e0d25_0': Input/output error
chown: changing ownership of '/home/monkey/.config/FreeTube/Cache/087fb8ce20f351a6_0': Input/output error
chown: changing ownership of '/home/monkey/.config/FreeTube/Cache/225712ae87285763_0': Input/output error
chown: changing ownership of '/home/monkey/.config/FreeTube/Cache/8c961ddc7e49cce6_0': Input/output error
chown: changing ownership of '/home/monkey/.config/FreeTube/Cache/0e463b4bb30b707a_0': Input/output error
chown: changing ownership of '/home/monkey/.config/FreeTube/Cache/f24d595ad98637ac_0': Input/output error
chown: changing ownership of '/home/monkey/.config/FreeTube/Cache/df473e2ce89fd919_0': Input/output error
chown: changing ownership of '/home/monkey/.config/FreeTube/Cache/2c28254ef5eb9440_0': Input/output error
chown: changing ownership of '/home/monkey/.config/FreeTube/Cache/03810acf6f4ce60f_0': Input/output error
chown: changing ownership of '/home/monkey/.config/FreeTube/Cache/edc317f027a1c342_0': Input/output error
chown: changing ownership of '/home/monkey/.config/FreeTube/Cache/363efb66056333e8_0': Input/output error
chown: changing ownership of '/home/monkey/.config/FreeTube/Cache/510875be409f360b_0': Input/output error
chown: changing ownership of '/home/monkey/.config/FreeTube/dashFiles/IV3dnLzthDA.xml': Input/output error
Cosmo.
Level 24
Level 24
Posts: 22968
Joined: Sat Dec 06, 2014 7:34 am

Re: DaVinci Resolve - Doesn't Launch (Segmentation fault?)

Post by Cosmo. »

You have a far deeper problem.

For testing:
Open Users & Groups and create a new account for testing. Reboot and log into the new account. Can you use DaVinci there?

Further you should do a file system check:
When powering on press and hold the left shift-key, until you see the grub-menu. Go there in the advanced menu and select recovery mode. After some time you get a menu, where you can start the file system check.
beached_whale
Level 1
Level 1
Posts: 13
Joined: Tue Oct 04, 2022 2:22 am

Re: DaVinci Resolve - Doesn't Launch (Segmentation fault?)

Post by beached_whale »

After creating a new standard user account I was able to start the program and use it.
The first time it got stuck during a blacked out welcome screen, so I had to kill it:

Code: Select all

$ ./resolve
ActCCMessage Already in Table: Code= c005, Mode= 13, Level=  1, CmdKey= -1, Option= 0
ActCCMessage Already in Table: Code= c006, Mode= 13, Level=  1, CmdKey= -1, Option= 0
ActCCMessage Already in Table: Code= c007, Mode= 13, Level=  1, CmdKey= -1, Option= 0
ActCCMessage Already in Table: Code= 2282, Mode=  0, Level=  0, CmdKey= 8, Option= 0
PnlMsgActionStringAdapter Already in Table: Code= 615e, Mode=  0, Level=  0, CmdKey= -1, Option= 0
QSocketNotifier: Can only be used with threads started with QThread
New connection received.
The second time it ran as expected and I even was able to render and export a simple video:

Code: Select all

$ ./resolve
ActCCMessage Already in Table: Code= c005, Mode= 13, Level=  1, CmdKey= -1, Option= 0
ActCCMessage Already in Table: Code= c006, Mode= 13, Level=  1, CmdKey= -1, Option= 0
ActCCMessage Already in Table: Code= c007, Mode= 13, Level=  1, CmdKey= -1, Option= 0
ActCCMessage Already in Table: Code= 2282, Mode=  0, Level=  0, CmdKey= 8, Option= 0
PnlMsgActionStringAdapter Already in Table: Code= 615e, Mode=  0, Level=  0, CmdKey= -1, Option= 0
18.0.4.0005 Linux/Clang x86_64
Main thread starts: 04A7A600
0x7fa204a7a600 | Undefined            | INFO  | 2022-10-04 16:30:24,766 | --------------------------------------------------------------------------------
0x7fa204a7a600 | Undefined            | INFO  | 2022-10-04 16:30:24,767 | Loaded log config from /home/testing/.local/share/DaVinciResolve/configs/log-conf.xml
0x7fa204a7a600 | Undefined            | INFO  | 2022-10-04 16:30:24,767 | --------------------------------------------------------------------------------
FusionScript Server [2430] Started
Host 'Fusion' [2177] Added
Host 'Fusion' Removed
FusionScript Server [2430] Terminated
As for the file system check:

Code: Select all

/lib/recovery-mode/recovery-menu: line 80: /etc/default/rcS: No such file or directory
fsck from util-linux 2.34
/dev/sdd4 is mounted.
e2fsck: cannot continue, aborting.
Cosmo.
Level 24
Level 24
Posts: 22968
Joined: Sat Dec 06, 2014 7:34 am

Re: DaVinci Resolve - Doesn't Launch (Segmentation fault?)

Post by Cosmo. »

It is time for a new install. I feared already after the output here, that there is a file system damage and the fact, that fsck aborts without any details points in the same direction.

Backup your home, reformat the drive (the only way to repair the file system) and install new.
beached_whale
Level 1
Level 1
Posts: 13
Joined: Tue Oct 04, 2022 2:22 am

Re: DaVinci Resolve - Doesn't Launch (Segmentation fault?)

Post by beached_whale »

A bit inconvenient but necessary, I'm guessing. I'll do the fresh install today and reply with the results.

Out of curiosity, what might cause the file system damage and what are long-term consequences of such? Besides not being able to run specific software.
Maybe something that I need to keep in mind to avoid this in the future?
beached_whale
Level 1
Level 1
Posts: 13
Joined: Tue Oct 04, 2022 2:22 am

Re: DaVinci Resolve - Doesn't Launch (Segmentation fault?)

Post by beached_whale »

Frankly, I am confused.
So, I used another one of my SSDs. There was an old Windows 10 installed that I used to dual-boot. I formatted the drive from NTFS to Ext4 and installed fresh Mint 21 on it. All I've done with the system after the installation: I downloaded and installed the necessary updates, installed my Wi-Fi adapter driver and NVIDIA drivers, imported my Home folder, transferred my Firefox profile folder and installed a music player. I've done nothing else besides that. Next I installed DaVinci Resolve again and tried to run it. It gave me the same Segmentation fault error as before. After that I tried creating a new Mint user profile and running DaVinci with that - it just worked. It opened and ran fine.
I don't know if something wrong with my home folder or not but I've gone back to my Mint 20 and tried running it with a testing account and, once again, DaVinci worked there as well. Other than being influenced by previous installation of Windows 10, fresh Mint 21 should have its file system intact.
I've also tried running fsck under the new Mint 21 - it aborted just like with Mint 20.

At this point, should I just create a new account in my old Mint 20 and use it specifically when I need DaVinci Resolve?
User avatar
SMG
Level 25
Level 25
Posts: 31813
Joined: Sun Jul 26, 2020 6:15 pm
Location: USA

Re: DaVinci Resolve - Doesn't Launch (Segmentation fault?)

Post by SMG »

beached_whale wrote: Tue Oct 04, 2022 9:50 amAs for the file system check:

Code: Select all

/lib/recovery-mode/recovery-menu: line 80: /etc/default/rcS: No such file or directory
fsck from util-linux 2.34
/dev/sdd4 is mounted.
e2fsck: cannot continue, aborting.
fsck can not be run on a mounted drive. The drive must be unmounted to run it so it is usually run while booted to a live system usb (then you can unmount the hard drive to fsck it).

What version of DaVinci did you install?
beached_whale wrote: Wed Oct 05, 2022 6:53 am All I've done with the system after the installation: I downloaded and installed the necessary updates, installed my Wi-Fi adapter driver and NVIDIA drivers, imported my Home folder
and in /home are most likely DaVinci files so you were not starting with a fresh system.

Each user has a /home so when you check with a test account, you are using a different /home than when you did with your quasi-fresh install.
Image
A woman typing on a laptop with LM20.3 Cinnamon.
beached_whale_2
Level 1
Level 1
Posts: 1
Joined: Thu Oct 06, 2022 2:32 am

Re: DaVinci Resolve - Doesn't Launch (Segmentation fault?)

Post by beached_whale_2 »

What version of DaVinci did you install?
The latest one , 18.0.4.

Unfortunately, I have bigger problems now. Please tell me if I need to create a seperate topic for this one.
I'm writing using a temporary account as I don't have the password for the original one with me.
So after figuring out a sort of workaround for my problem where I have a seperate Mint user account specifically for using DaVinci (where it works as expected). I decided to format the disk I used to install Mint 21. I decided to use it as a shared partition for both my main user account and my work one. I did not figure out how to make it shared between users so I decided to do it later. Today I turn my PC on and see the GNU Grub on the screen with a terminal. I tried booting both from my main SSD with Mint 20 and my second SSD with new Mint 21 but neither worked. I'm guessing that I messed up grub by formatting the drive where my new Mint 21 was installed.
I've read about the problem online but I'd like more advice before proceeding and ruining my PC compeletely.
I booted Mint from a USB and typed some commands (I don't have Internet on the machine itself so I've written the results by hand, I apologize for that).

New Mint 21 was installed on the 250GB drive, while the old Mint 20 is installed on the 500GB one. There should be 2 partitions: 130GB for the OS itself and 370GB just for files. I have other drives there as well but these two are the ones I had systems installed on.

Code: Select all

sudo parted -l
Model: ATA Samsung SSD 860 (scsi)
Disk /dev/sda: 250GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags:
Number - 1
Start - 1049kB
End - 250GB
Size - 250GB
File system - ext4
Name - 
Flags - 

Model: ATA Samsung SSD 860 (scsi)
Disk /dev/sdd: 500GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags:
Number - 1
Start - 16.8MB
End - 370GB
Size - 370GB
File system - ext4
Name - Basic data partition
Flags - 

Number - 2
Start - 370GB
End - 370GB
Size - 538MB
File system - fat32
Name - EFI System Partition
Flags - boot,esp

Number - 3
Start - 370GB
End - 500GB
Size - 130GB
File system - ext4
Name - 
Flags - 

Code: Select all

sudo update-grub
/usr/sbin/grub-probe: error: failed to get canonical path of '/cow'.

sudo grub-install /dev/sdd
Installing for i386-pc platform.
grub-install: error: failed to get canonical path of '/cow'.

sudo mount /dev/sdd /mnt
mount: /mnt: wrong fs type, bad option, bad superblock on /dev/sdd, missing codepage or helper program, or other error.
EDIT: While scouting the web for answers I found "Boot Repair" on the live USB Mint. Should I try running it?
beached_whale
Level 1
Level 1
Posts: 13
Joined: Tue Oct 04, 2022 2:22 am

Re: DaVinci Resolve - Doesn't Launch (Segmentation fault?)

Post by beached_whale »

[UPDATE]
Eventually Boot Repair worked for me and I was able to boot my Mint 20.
That shall be enough stress for me. I'd rather not mess with reinstalling or dual-booting OS's for now. I have found a workaround to my problem by having a separate user account specifically for using DaVinci and I'll mark it as such in the subject.

Thank you everyone who reached out to help me! Have a great day!
User avatar
SMG
Level 25
Level 25
Posts: 31813
Joined: Sun Jul 26, 2020 6:15 pm
Location: USA

Re: DaVinci Resolve - Doesn't Launch (Segmentation fault?)

Post by SMG »

beached_whale wrote: Thu Oct 06, 2022 11:29 am [UPDATE]
Eventually Boot Repair worked for me and I was able to boot my Mint 20.
While one can share a DATA partition between versions of Linux Mint, one should not be sharing a /home partition, if that is what you were trying to do when you said the below, that may be part of the problem.
beached_whale_2 wrote: Thu Oct 06, 2022 2:54 amSo after figuring out a sort of workaround for my problem where I have a seperate Mint user account specifically for using DaVinci (where it works as expected). I decided to format the disk I used to install Mint 21. I decided to use it as a shared partition for both my main user account and my work one.
It's possible I am misunderstanding what you wrote here, but I wanted to let you know a home partition and a DATA partition serve different purposes. They are not the same thing.
Image
A woman typing on a laptop with LM20.3 Cinnamon.
beached_whale
Level 1
Level 1
Posts: 13
Joined: Tue Oct 04, 2022 2:22 am

Re: [WORKAROUND] DaVinci Resolve - Doesn't Launch (Segmentation fault?)

Post by beached_whale »

It is possible that I've been talking about different things. I still don't quite understand how to manage my drives and partitions.
While one can share a DATA partition between versions of Linux Mint, one should not be sharing a /home partition, if that is what you were trying to do when you said the below, that may be part of the problem.
Maybe I've written that badly. So, when transferring to my new Mint 21 system, I used Backup Tool to back up my personal files. Those were just documents, videos, music files, downloads. I don't understand how those files can cause any damage to the file system.
At the time I did not plan to share any files between systems and/or accounts. I just wanted DaVinci to work in the first place. I had my new Mint 21 on one SSD and my old Mint 20 on another one. I'm guessing that the Grub problem was connected with me formatting the SSD that had Mint 21 installed.
Now that I've found a workaround to my problem by using a different account to work with DaVinci, I wanted to figure out a way to share a hard drive between accounts. I need to have some space for my projects' files, as my /home folder is limited. I came up with some solution that works.
I unmount the drive that I use for work and switch to my work account and mount it there. I can work there as normal and when I want to transfer the files to my main account I unmount it from my work account and mount it again when I'm using my main account.
I have to do that as my work account cannot access the drive because it exists as a folder in /media/main_account/ when it is mounted on my main account.
User avatar
SMG
Level 25
Level 25
Posts: 31813
Joined: Sun Jul 26, 2020 6:15 pm
Location: USA

Re: [WORKAROUND] DaVinci Resolve - Doesn't Launch (Segmentation fault?)

Post by SMG »

beached_whale wrote: Fri Oct 07, 2022 3:31 amSo, when transferring to my new Mint 21 system, I used Backup Tool to back up my personal files. Those were just documents, videos, music files, downloads. I don't understand how those files can cause any damage to the file system.
Making a copy of your files and then restoring that copy to the new system would not cause damage. If I am understanding your description correctly, you now just have two sets of the same data with one set on your LM20.3 install and the other set on your LM21 install. That would be different than sharing one set of files between two different operating systems (LM20.3 and LM21).
beached_whale wrote: Fri Oct 07, 2022 3:31 amNow that I've found a workaround to my problem by using a different account to work with DaVinci, I wanted to figure out a way to share a hard drive between accounts. I need to have some space for my projects' files, as my /home folder is limited.
A lot of people do store data files in /home. Those files can be moved to a different drive and shared between systems without any issues which is what it sounds like you are doing.

There may be an access issue because of how the drive is mounted (or how it was mounted during the Linux Mint installation), but you found a way to work around that.
Image
A woman typing on a laptop with LM20.3 Cinnamon.
Locked

Return to “Software & Applications”