NatronGitHub / Natron

Open-source video compositing software. Node-graph based. Similar in functionalities to Adobe After Effects and Nuke by The Foundry.
http://NatronGitHub.github.io
GNU General Public License v2.0
4.69k stars 342 forks source link

Natron won't open on Ubuntu 20.4 with amd-pro-install drivers #516

Open ThomasMorley-T3D opened 4 years ago

ThomasMorley-T3D commented 4 years ago

Please ask questions ("how do I...?") on the forum, not by filing issues.

Please read carefully the Troubleshooting section of the Natron documentation before submitting an issue: this issue may already be signaled, or may have a simple workaround.

Make concrete suggestions for fixing the code ("here is a patch") by filing a pull request, not an issue.

Finally, please follow the Code of Conduct when interacting with the Natron community (both users and developers).

Natron won't open on Ubuntu 20.4 with amd-pro-install drivers

Describe the problem or suggestion here.

Expected behavior: [What you expected to happen] Natron should open with no issues.

Actual behavior: [What actually happened] Natron will open fine with amd-install (open source) drivers but fails to open with the amd-pro-install drivers. I am using the latest drivers from AMD.

tom@tom-X399-AORUS-PRO:~/Downloads/Natron-RB-2.3-202006140005-e34a969-Linux-64-no-installer$ '/home/tom/Downloads/Natron-RB-2.3-202006140005-e34a969-Linux-64-no-installer/Natron' 
Natron Version 2.3.16
Copyright (C) 2013-2018 INRIA and Alexandre Gauthier-Foichat
>>>Use the --help or -h option to print usage.<<<
Py_SetPythonHome("/home/tom/Downloads/Natron-RB-2.3-202006140005-e34a969-Linux-64-no-installer/bin/..")
PYTHONPATH set to /home/tom/Downloads/Natron-RB-2.3-202006140005-e34a969-Linux-64-no-installer/bin/../lib/python27.zip:/home/tom/Downloads/Natron-RB-2.3-202006140005-e34a969-Linux-64-no-installer/bin/../lib/python2.7:/home/tom/Downloads/Natron-RB-2.3-202006140005-e34a969-Linux-64-no-installer/bin/../Plugins
Py_SetProgramName("/home/tom/Downloads/Natron-RB-2.3-202006140005-e34a969-Linux-64-no-installer/bin/Natron")
Py_Initialize()
PATH is /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
PYTHONPATH is /home/tom/Downloads/Natron-RB-2.3-202006140005-e34a969-Linux-64-no-installer/bin/../lib/python27.zip:/home/tom/Downloads/Natron-RB-2.3-202006140005-e34a969-Linux-64-no-installer/bin/../lib/python2.7:/home/tom/Downloads/Natron-RB-2.3-202006140005-e34a969-Linux-64-no-installer/bin/../Plugins
PYTHONHOME is (null)
Py_DebugFlag is 0
Py_VerboseFlag is 0
Py_InteractiveFlag is 0
Py_InspectFlag is 0
Py_OptimizeFlag is 0
Py_NoSiteFlag is 0
Py_BytesWarningFlag is 0
Py_UseClassExceptionsFlag is 1
Py_FrozenFlag is 0
Py_TabcheckFlag is 0
Py_UnicodeFlag is 0
Py_IgnoreEnvironmentFlag is 0
Py_DivisionWarningFlag is 0
Py_DontWriteBytecodeFlag is 0
Py_NoUserSiteDirectory is 1
Py_GetProgramName is /home/tom/Downloads/Natron-RB-2.3-202006140005-e34a969-Linux-64-no-installer/bin/Natron
Py_GetPrefix is /home/tom/Downloads/Natron-RB-2.3-202006140005-e34a969-Linux-64-no-installer/bin/..
Py_GetExecPrefix is /home/tom/Downloads/Natron-RB-2.3-202006140005-e34a969-Linux-64-no-installer/bin/..
Py_GetProgramFullPath is /home/tom/Downloads/Natron-RB-2.3-202006140005-e34a969-Linux-64-no-installer/bin/Natron
Py_GetPath is /home/tom/Downloads/Natron-RB-2.3-202006140005-e34a969-Linux-64-no-installer/bin/../lib/python27.zip:/home/tom/Downloads/Natron-RB-2.3-202006140005-e34a969-Linux-64-no-installer/bin/../lib/python2.7:/home/tom/Downloads/Natron-RB-2.3-202006140005-e34a969-Linux-64-no-installer/bin/../Plugins:/home/tom/Downloads/Natron-RB-2.3-202006140005-e34a969-Linux-64-no-installer/bin/../lib/python27.zip:/home/tom/Downloads/Natron-RB-2.3-202006140005-e34a969-Linux-64-no-installer/bin/../lib/python2.7:/home/tom/Downloads/Natron-RB-2.3-202006140005-e34a969-Linux-64-no-installer/bin/../lib/python2.7/plat-linux2:/home/tom/Downloads/Natron-RB-2.3-202006140005-e34a969-Linux-64-no-installer/bin/../lib/python2.7/lib-tk:/home/tom/Downloads/Natron-RB-2.3-202006140005-e34a969-Linux-64-no-installer/bin/../lib/python2.7/lib-old:/home/tom/Downloads/Natron-RB-2.3-202006140005-e34a969-Linux-64-no-installer/bin/../lib/python2.7/lib-dynload
Py_GetPythonHome is /home/tom/Downloads/Natron-RB-2.3-202006140005-e34a969-Linux-64-no-installer/bin/..
Python library is in /home/tom/Downloads/Natron-RB-2.3-202006140005-e34a969-Linux-64-no-installer/lib/python2.7/site-packages
Caught segmentation fault (SIGSEGV) from thread Main(0x25acee0), faulty address is 0x7f2c62f24235 from 0
Backtrace:
[Frame 1]: /opt/amdgpu-pro/lib/x86_64-linux-gnu/libGL.so.1(+0x7d235) [0x7f2c62f24235]
[Frame 2]: /opt/amdgpu-pro/lib/x86_64-linux-gnu/libGL.so.1(+0x7d235) [0x7f2c62f24235]
[Frame 3]: /usr/lib/x86_64-linux-gnu/dri/amdgpu_dri.so(+0x13feefc) [0x7f2c5b44fefc]
[Frame 4]: /usr/lib/x86_64-linux-gnu/dri/amdgpu_dri.so(+0x1070e24) [0x7f2c5b0c1e24]
[Frame 5]: /usr/lib/x86_64-linux-gnu/dri/amdgpu_dri.so(+0x139b764) [0x7f2c5b3ec764]
[Frame 6]: /usr/lib/x86_64-linux-gnu/dri/amdgpu_dri.so(+0xd3b36c) [0x7f2c5ad8c36c]
[Frame 7]: /usr/lib/x86_64-linux-gnu/dri/amdgpu_dri.so(+0x1074a6a) [0x7f2c5b0c5a6a]
[Frame 8]: /usr/lib/x86_64-linux-gnu/dri/amdgpu_dri.so(+0x144220a) [0x7f2c5b49320a]
[Frame 9]: /usr/lib/x86_64-linux-gnu/dri/amdgpu_dri.so(+0x14433e6) [0x7f2c5b4943e6]
[Frame 10]: /usr/lib/x86_64-linux-gnu/dri/amdgpu_dri.so(+0x14436dd) [0x7f2c5b4946dd]
[Frame 11]: /opt/amdgpu-pro/lib/x86_64-linux-gnu/libGL.so.1(+0x7df37) [0x7f2c62f24f37]
[Frame 12]: /opt/amdgpu-pro/lib/x86_64-linux-gnu/libGL.so.1(glXCreateContextAttribsARB+0x1e8) [0x7f2c62ef49f8]
[Frame 13]: /home/tom/Downloads/Natron-RB-2.3-202006140005-e34a969-Linux-64-no-installer/bin/Natron(_ZN6Natron22OSGLContext_x11Private16createContextGLXEPNS_20OSGLContext_glx_dataERKNS_17FramebufferConfigEiibiPKNS_15OSGLContext_x11E+0x1e1) [0xe25b51]
[Frame 14]: /home/tom/Downloads/Natron-RB-2.3-202006140005-e34a969-Linux-64-no-installer/bin/Natron(_ZN6Natron15OSGLContext_x11C1ERKNS_17FramebufferConfigEiibRKNS_12GLRendererIDEPKS0_+0xd7) [0xe25ea7]
[Frame 15]: /home/tom/Downloads/Natron-RB-2.3-202006140005-e34a969-Linux-64-no-installer/bin/Natron(_ZN6Natron15OSGLContext_x1111getGPUInfosERSt4listINS_18OpenGLRendererInfoESaIS2_EE+0x829) [0xe26719]

Steps to Reproduce

  1. Install amd-pro-drivers with opencl support " ./amd-pro-install -y --opencl=pal"
  2. opening NAtron causes force close.

You may submit a link to any screenshots/videos that can be used to understand how to reproduce the issue.

Versions

Natron 2.3.15

rodlie commented 4 years ago

Known issue without a solution at the moment.

The binaries work with the system Mesa GL stack and the Nvidia GL stack. I don't have access to hardware that is compatible with the amdpro drivers. Seems like they do some differently than the rest(?)

The amdpro drivers have includes, you could try to build Natron from scratch against them.

ThomasMorley-T3D commented 4 years ago

I was trying that. I'm not able to follow the Linux build documentation. I tried for a few hours but didn't get far. I have done some compiling but Natron has kicked my butt in that department. I'll try again but I think it would be more beneficial if the documents were geared towards someone with less experience compiling. Maybe a video walk thought would be good, not sure if anyone here could do that.

I would use the Mesa GL driver but Resolve will only work with the Pro Drivers and thats what I bought my Radeon VII's for. That and Blender :)

rodlie commented 4 years ago

You could try the package(s) from https://github.com/NatronGitHub/Natron/issues/215 and see if you get a different result, or maybe the snap/flatpak, maybe they work better against the amdpro driver(?)

KristijanZic commented 3 years ago

I've tested the Flatpak, Snap and the Natron portable package v2.3.15 on my machine with AMDGPU-PRO 20.40 driver with OpenCL (pal) and the following specs:

CLICK ME

``` OS: Ubuntu 20.04.1 LTS x86_64 Kernel: 5.4.0-53-generic Uptime: 10 mins Packages: 1963 (dpkg), 58 (flatpak), 35 (snap) Shell: bash 5.0.17 Resolution: 1920x1200, 2560x1440 DE: GNOME WM: Mutter WM Theme: Adwaita Theme: Adwaita-dark [GTK2/3] Icons: Yaru [GTK2/3] Terminal: gnome-terminal CPU: AMD Ryzen Threadripper 1900X (16) @ 3.800GHz GPU: AMD ATI Radeon RX Vega 56/64 Memory: 2976MiB / 15930MiB ```

clinfo:

``` $ clinfo Number of platforms 1 Platform Name AMD Accelerated Parallel Processing Platform Vendor Advanced Micro Devices, Inc. Platform Version OpenCL 2.1 AMD-APP (3180.7) Platform Profile FULL_PROFILE Platform Extensions cl_khr_icd cl_amd_event_callback cl_amd_offline_devices Platform Host timer resolution 1ns Platform Extensions function suffix AMD Platform Name AMD Accelerated Parallel Processing Number of devices 1 Device Name gfx900 Device Vendor Advanced Micro Devices, Inc. Device Vendor ID 0x1002 Device Version OpenCL 2.0 AMD-APP (3180.7) Driver Version 3180.7 (PAL,HSAIL) Device OpenCL C Version OpenCL C 2.0 Device Type GPU Device Board Name (AMD) Radeon RX Vega Device Topology (AMD) PCI-E, 44:00.0 Device Profile FULL_PROFILE Device Available Yes Compiler Available Yes Linker Available Yes Max compute units 64 SIMD per compute unit (AMD) 4 SIMD width (AMD) 16 SIMD instruction width (AMD) 1 Max clock frequency 1750MHz Graphics IP (AMD) 9.0 Device Partition (core) Max number of sub-devices 64 Supported partition types None Supported affinity domains (n/a) Max work item dimensions 3 Max work item sizes 1024x1024x1024 Max work group size 256 Preferred work group size (AMD) 256 Max work group size (AMD) 1024 Preferred work group size multiple 64 Wavefront width (AMD) 64 Preferred / native vector sizes char 4 / 4 short 2 / 2 int 1 / 1 long 1 / 1 half 1 / 1 (cl_khr_fp16) float 1 / 1 double 1 / 1 (cl_khr_fp64) Half-precision Floating-point support (cl_khr_fp16) Denormals No Infinity and NANs No Round to nearest No Round to zero No Round to infinity No IEEE754-2008 fused multiply-add No Support is emulated in software No Single-precision Floating-point support (core) Denormals No Infinity and NANs Yes Round to nearest Yes Round to zero Yes Round to infinity Yes IEEE754-2008 fused multiply-add Yes Support is emulated in software No Correctly-rounded divide and sqrt operations Yes Double-precision Floating-point support (cl_khr_fp64) Denormals Yes Infinity and NANs Yes Round to nearest Yes Round to zero Yes Round to infinity Yes IEEE754-2008 fused multiply-add Yes Support is emulated in software No Address bits 64, Little-Endian Global memory size 8573157376 (7.984GiB) Global free memory (AMD) 8306688 (7.922GiB) Global memory channels (AMD) 64 Global memory banks per channel (AMD) 4 Global memory bank width (AMD) 256 bytes Error Correction support No Max memory allocation 7059013632 (6.574GiB) Unified memory for Host and Device No Shared Virtual Memory (SVM) capabilities (core) Coarse-grained buffer sharing Yes Fine-grained buffer sharing Yes Fine-grained system sharing No Atomics No Minimum alignment for any data type 128 bytes Alignment of base address 2048 bits (256 bytes) Preferred alignment for atomics SVM 0 bytes Global 0 bytes Local 0 bytes Max size for global variable 6353112064 (5.917GiB) Preferred total size of global vars 8573157376 (7.984GiB) Global Memory cache type Read/Write Global Memory cache size 16384 (16KiB) Global Memory cache line size 64 bytes Image support Yes Max number of samplers per kernel 16 Max size for 1D images from buffer 134217728 pixels Max 1D or 2D image array size 2048 images Base address alignment for 2D image buffers 256 bytes Pitch alignment for 2D image buffers 256 pixels Max 2D image size 16384x16384 pixels Max 3D image size 2048x2048x2048 pixels Max number of read image args 128 Max number of write image args 64 Max number of read/write image args 64 Max number of pipe args 16 Max active pipe reservations 16 Max pipe packet size 2764046336 (2.574GiB) Local memory type Local Local memory size 65536 (64KiB) Local memory syze per CU (AMD) 65536 (64KiB) Local memory banks (AMD) 32 Max number of constant args 8 Max constant buffer size 7059013632 (6.574GiB) Preferred constant buffer size (AMD) 16384 (16KiB) Max size of kernel argument 1024 Queue properties (on host) Out-of-order execution No Profiling Yes Queue properties (on device) Out-of-order execution Yes Profiling Yes Preferred size 262144 (256KiB) Max size 8388608 (8MiB) Max queues on device 1 Max events on device 1024 Prefer user sync for interop Yes Number of P2P devices (AMD) 0 P2P devices (AMD) Profiling timer resolution 1ns Profiling timer offset since Epoch (AMD) 1605212112989785069ns (Thu Nov 12 21:15:12 2020) Execution capabilities Run OpenCL kernels Yes Run native kernels No Thread trace supported (AMD) Yes Number of async queues (AMD) 4 Max real-time compute queues (AMD) 1 Max real-time compute units (AMD) 0 printf() buffer size 4194304 (4MiB) Built-in kernels (n/a) Device Extensions cl_khr_fp64 cl_amd_fp64 cl_khr_global_int32_base_atomics cl_khr_global_int32_extended_atomics cl_khr_local_int32_base_atomics cl_khr_local_int32_extended_atomics cl_khr_int64_base_atomics cl_khr_int64_extended_atomics cl_khr_3d_image_writes cl_khr_byte_addressable_store cl_khr_fp16 cl_khr_gl_sharing cl_khr_gl_depth_images cl_amd_device_attribute_query cl_amd_vec3 cl_amd_printf cl_amd_media_ops cl_amd_media_ops2 cl_amd_popcnt cl_khr_image2d_from_buffer cl_khr_subgroups cl_khr_gl_event cl_khr_depth_images cl_khr_mipmap_image cl_khr_mipmap_image_writes cl_amd_copy_buffer_p2p NULL platform behavior clGetPlatformInfo(NULL, CL_PLATFORM_NAME, ...) No platform clGetDeviceIDs(NULL, CL_DEVICE_TYPE_ALL, ...) No platform clCreateContext(NULL, ...) [default] No platform clCreateContext(NULL, ...) [other] Success [AMD] clCreateContextFromType(NULL, CL_DEVICE_TYPE_DEFAULT) Success (1) Platform Name AMD Accelerated Parallel Processing Device Name gfx900 clCreateContextFromType(NULL, CL_DEVICE_TYPE_CPU) No devices found in platform clCreateContextFromType(NULL, CL_DEVICE_TYPE_GPU) Success (1) Platform Name AMD Accelerated Parallel Processing Device Name gfx900 clCreateContextFromType(NULL, CL_DEVICE_TYPE_ACCELERATOR) No devices found in platform clCreateContextFromType(NULL, CL_DEVICE_TYPE_CUSTOM) No devices found in platform clCreateContextFromType(NULL, CL_DEVICE_TYPE_ALL) Success (1) Platform Name AMD Accelerated Parallel Processing Device Name gfx900 ```

Flatpak package Fails to launch with the following output:

$ flatpak run fr.natron.Natron
Natron Version 2.3.15
Copyright (C) 2013-2018 INRIA and Alexandre Gauthier-Foichat
>>>Use the --help or -h option to print usage.<<<

Snap package Launches but crashes after I click OK on the following prompt with the following output in the terminal: Screenshot from 2020-11-12 21-14-15

CLICK ME

``` $ snap run natron Natron Version 2.3.15 Copyright (C) 2013-2018 INRIA and Alexandre Gauthier-Foichat >>>Use the --help or -h option to print usage.<<< /usr/share/libdrm/amdgpu.ids: No such file or directory libGL error: No matching fbConfigs or visuals found libGL error: failed to load driver: radeonsi /usr/share/libdrm/amdgpu.ids: No such file or directory mesa: for the --simplifycfg-sink-common option: may only occur zero or one times! mesa: for the --global-isel-abort option: may only occur zero or one times! libGL error: No matching fbConfigs or visuals found libGL error: failed to load driver: radeonsi libGL error: No matching fbConfigs or visuals found libGL error: failed to load driver: swrast Error while loading OpenGL: GLX: Created context is not doing direct rendering OpenGL rendering is disabled. GLX: Created context is not doing direct rendering GLX: Created context is not doing direct rendering Qt: Session management error: None of the authentication protocols specified are supported Info: init.py script not loaded (this is not an error) Info: initGui.py script not loaded (this is not an error) /usr/share/libdrm/amdgpu.ids: No such file or directory mesa: for the --simplifycfg-sink-common option: may only occur zero or one times! mesa: for the --global-isel-abort option: may only occur zero or one times! libGL error: No matching fbConfigs or visuals found libGL error: failed to load driver: radeonsi /usr/share/libdrm/amdgpu.ids: No such file or directory mesa: for the --simplifycfg-sink-common option: may only occur zero or one times! mesa: for the --global-isel-abort option: may only occur zero or one times! libGL error: No matching fbConfigs or visuals found libGL error: failed to load driver: radeonsi libGL error: No matching fbConfigs or visuals found libGL error: failed to load driver: swrast GLX: Created context is not doing direct rendering ```

Natron portable package Does not launch, segfaults with the the following terminal output:

CLICK ME

``` $ ./Natron Natron Version 2.3.15 Copyright (C) 2013-2018 INRIA and Alexandre Gauthier-Foichat >>>Use the --help or -h option to print usage.<<< Caught segmentation fault (SIGSEGV) from thread Main(0x1c6fee0), faulty address is 0x7fb26458e235 from 0 Backtrace: [Frame 1]: /opt/amdgpu-pro/lib/x86_64-linux-gnu/libGL.so.1(+0x7d235) [0x7fb26458e235] [Frame 2]: /opt/amdgpu-pro/lib/x86_64-linux-gnu/libGL.so.1(+0x7d235) [0x7fb26458e235] [Frame 3]: /usr/lib/x86_64-linux-gnu/dri/amdgpu_dri.so(+0x141631c) [0x7fb25d19531c] [Frame 4]: /usr/lib/x86_64-linux-gnu/dri/amdgpu_dri.so(+0x123259d) [0x7fb25cfb159d] [Frame 5]: /usr/lib/x86_64-linux-gnu/dri/amdgpu_dri.so(+0xcd3ea4) [0x7fb25ca52ea4] [Frame 6]: /usr/lib/x86_64-linux-gnu/dri/amdgpu_dri.so(+0xd69a8c) [0x7fb25cae8a8c] [Frame 7]: /usr/lib/x86_64-linux-gnu/dri/amdgpu_dri.so(+0x12361ca) [0x7fb25cfb51ca] [Frame 8]: /usr/lib/x86_64-linux-gnu/dri/amdgpu_dri.so(+0x14579aa) [0x7fb25d1d69aa] [Frame 9]: /usr/lib/x86_64-linux-gnu/dri/amdgpu_dri.so(+0x1458b86) [0x7fb25d1d7b86] [Frame 10]: /usr/lib/x86_64-linux-gnu/dri/amdgpu_dri.so(+0x1458e7d) [0x7fb25d1d7e7d] [Frame 11]: /opt/amdgpu-pro/lib/x86_64-linux-gnu/libGL.so.1(+0x7df37) [0x7fb26458ef37] [Frame 12]: /opt/amdgpu-pro/lib/x86_64-linux-gnu/libGL.so.1(glXCreateContextAttribsARB+0x1e8) [0x7fb26455e9f8] [Frame 13]: /home/aresminos/Software/tar/Natron-2.3.15-Linux-64-no-installer/bin/Natron(_ZN6Natron22OSGLContext_x11Private16createContextGLXEPNS_20OSGLContext_glx_dataERKNS_17FramebufferConfigEiibiPKNS_15OSGLContext_x11E+0x1e1) [0xe24b51] [Frame 14]: /home/aresminos/Software/tar/Natron-2.3.15-Linux-64-no-installer/bin/Natron(_ZN6Natron15OSGLContext_x11C1ERKNS_17FramebufferConfigEiibRKNS_12GLRendererIDEPKS0_+0xd7) [0xe24ea7] [Frame 15]: /home/aresminos/Software/tar/Natron-2.3.15-Linux-64-no-installer/bin/Natron(_ZN6Natron15OSGLContext_x1111getGPUInfosERSt4listINS_18OpenGLRendererInfoESaIS2_EE+0x829) [0xe25719] ```

f1ow03 commented 3 years ago

Can confirm, Ubuntu 18.04, amdgpu-pro driver, having segfault whenever I try to launch Natron:

CLICK ME

``` $./Natron Natron Version 2.3.15 Copyright (C) 2013-2018 INRIA and Alexandre Gauthier-Foichat >>>Use the --help or -h option to print usage.<<< Caught segmentation fault (SIGSEGV) from thread Main(0x2e09220), faulty address is 0x7f767af78235 from 0 Backtrace: [Frame 1]: /opt/amdgpu-pro/lib/x86_64-linux-gnu/libGL.so.1(+0x7d235) [0x7f767af78235] [Frame 2]: /opt/amdgpu-pro/lib/x86_64-linux-gnu/libGL.so.1(+0x7d235) [0x7f767af78235] [Frame 3]: /usr/lib/x86_64-linux-gnu/dri/amdgpu_dri.so(+0x140220c) [0x7f767049020c] [Frame 4]: /usr/lib/x86_64-linux-gnu/dri/amdgpu_dri.so(+0x10733b8) [0x7f76701013b8] [Frame 5]: /usr/lib/x86_64-linux-gnu/dri/amdgpu_dri.so(+0x1323854) [0x7f76703b1854] [Frame 6]: /usr/lib/x86_64-linux-gnu/dri/amdgpu_dri.so(+0xd3d22c) [0x7f766fdcb22c] [Frame 7]: /usr/lib/x86_64-linux-gnu/dri/amdgpu_dri.so(+0x1076f8a) [0x7f7670104f8a] [Frame 8]: /usr/lib/x86_64-linux-gnu/dri/amdgpu_dri.so(+0x144576a) [0x7f76704d376a] [Frame 9]: /usr/lib/x86_64-linux-gnu/dri/amdgpu_dri.so(+0x1446946) [0x7f76704d4946] [Frame 10]: /usr/lib/x86_64-linux-gnu/dri/amdgpu_dri.so(+0x1446c3d) [0x7f76704d4c3d] [Frame 11]: /opt/amdgpu-pro/lib/x86_64-linux-gnu/libGL.so.1(+0x7df37) [0x7f767af78f37] [Frame 12]: /opt/amdgpu-pro/lib/x86_64-linux-gnu/libGL.so.1(glXCreateContextAttribsARB+0x1e8) [0x7f767af489f8] ```

Need amdpgu-pro for Blender, the best solution for me so far is dualboot to another OS with Mesa driver. Tbh, that's not only Natron having that issue, all my Steam games which rely on OpenGL launch fine with Mesa driver but give same OpenGL error and segfault on amdgpu-pro driver. Shame on amd, I guess.
devernay commented 3 years ago

Can someone with that issue post the output of the command "env"?

I'm interested to see if some of the following variables are set, and what is their value:

Also please post the output of grep /opt/amdgpu-pro /etc/ld.so.conf /etc/ld.so.conf.d/*

devernay commented 3 years ago

Alternatively, I will provide binaries built on CentOS7 (which will be the official build OS from now on), which you can test too.

f1ow03 commented 3 years ago

Can someone with that issue post the output of the command "env"? I'm interested to see if some of the following variables are set, and what is their value:

Searched thru the output, there were no such variables in it.

Also please post the output of grep /opt/amdgpu-pro /etc/ld.so.conf /etc/ld.so.conf.d/*

$ grep /opt/amdgpu-pro /etc/ld.so.conf /etc/ld.so.conf.d/*
/etc/ld.so.conf.d/10-amdgpu-pro.conf:/opt/amdgpu-pro/lib/x86_64-linux-gnu
/etc/ld.so.conf.d/10-amdgpu-pro.conf:/opt/amdgpu-pro/lib/i386-linux-gnu
/etc/ld.so.conf.d/10-amdgpu-pro-i386.conf:/opt/amdgpu-pro/lib/i386-linux-gnu
/etc/ld.so.conf.d/10-amdgpu-pro-x86_64.conf:/opt/amdgpu-pro/lib/x86_64-linux-gnu
devernay commented 3 years ago

and ls /opt/amdgpu-pro/lib/x86_64-linux-gnu?

f1ow03 commented 3 years ago

and ls /opt/amdgpu-pro/lib/x86_64-linux-gnu?

$ ls /opt/amdgpu-pro/lib/x86_64-linux-gnu
amdvlk64.so            libamdocl12cl64.so   libEGL.so.1    libGLESv2.so.2  libOpenCL.so.1
libamd_comgr.so        libamdocl64.so       libglapi.so    libGL.so        libOpenCL.so.1.2
libamd_comgr.so.1      libamdocl-orca64.so  libglapi.so.1  libGL.so.1
libamd_comgr.so.1.6.0  libEGL.so            libGLESv2.so   libGL.so.1.2
f1ow03 commented 3 years ago

Looked thru issues, found (I think) similar issue In case it might be useful, here are some outputs from my system that were requested in that thread:

ldd /opt/amdgpu-pro/lib/x86_64-linux-gnu/libGL.so.1 ``` $ ldd /opt/amdgpu-pro/lib/x86_64-linux-gnu/libGL.so.1 linux-vdso.so.1 (0x00007ffc6348b000) libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f9dbf1ff000) libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f9dbee61000) libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f9dbec5d000) libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f9dbe86c000) /lib64/ld-linux-x86-64.so.2 (0x00007f9dbf746000) ```
ldd /path/Natron-2.3.15-Linux-64-no-installer/bin/Natron ``` ldd 'path/Natron-2.3.15-Linux-64-no-installer/bin/Natron' linux-vdso.so.1 (0x00007ffc861b1000) libX11.so.6 => /usr/lib/x86_64-linux-gnu/libX11.so.6 (0x00007f5e31bca000) libpython2.7.so.1.0 => path/Natron-2.3.15-Linux-64-no-installer/bin/../lib/libpython2.7.so.1.0 (0x00007f5e317bc000) libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f5e315b8000) libutil.so.1 => /lib/x86_64-linux-gnu/libutil.so.1 (0x00007f5e313b5000) libboost_serialization.so.1.73.0 => path/Natron-2.3.15-Linux-64-no-installer/bin/../lib/libboost_serialization.so.1.73.0 (0x00007f5e31169000) libexpat.so.1 => path/Natron-2.3.15-Linux-64-no-installer/bin/../lib/libexpat.so.1 (0x00007f5e30f2e000) libpyside-python2.7.so.1.2 => path/Natron-2.3.15-Linux-64-no-installer/bin/../lib/libpyside-python2.7.so.1.2 (0x00007f5e30d00000) libshiboken-python2.7.so.1.2 => path/Natron-2.3.15-Linux-64-no-installer/bin/../lib/libshiboken-python2.7.so.1.2 (0x00007f5e30ab9000) libGLU.so.1 => /usr/lib/x86_64-linux-gnu/libGLU.so.1 (0x00007f5e3084a000) libpixman-1.so.0 => path/Natron-2.3.15-Linux-64-no-installer/bin/../lib/libpixman-1.so.0 (0x00007f5e305a2000) libfontconfig.so.1 => path/Natron-2.3.15-Linux-64-no-installer/bin/../lib/libfontconfig.so.1 (0x00007f5e3035f000) libfreetype.so.6 => path/Natron-2.3.15-Linux-64-no-installer/bin/../lib/libfreetype.so.6 (0x00007f5e300a1000) libQtOpenGL.so.4 => path/Natron-2.3.15-Linux-64-no-installer/bin/../lib/libQtOpenGL.so.4 (0x00007f5e2fda1000) libQtGui.so.4 => path/Natron-2.3.15-Linux-64-no-installer/bin/../lib/libQtGui.so.4 (0x00007f5e2f0ed000) libQtNetwork.so.4 => path/Natron-2.3.15-Linux-64-no-installer/bin/../lib/libQtNetwork.so.4 (0x00007f5e2edb1000) libQtCore.so.4 => path/Natron-2.3.15-Linux-64-no-installer/bin/../lib/libQtCore.so.4 (0x00007f5e2e8bc000) libGL.so.1 => /opt/amdgpu-pro/lib/x86_64-linux-gnu/libGL.so.1 (0x00007f5e2e594000) libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f5e2e375000) libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007f5e2dfec000) libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f5e2dc4e000) libgomp.so.1 => /usr/lib/x86_64-linux-gnu/libgomp.so.1 (0x00007f5e2da1f000) libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007f5e2d807000) libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f5e2d416000) libxcb.so.1 => /usr/lib/x86_64-linux-gnu/libxcb.so.1 (0x00007f5e2d1ee000) /lib64/ld-linux-x86-64.so.2 (0x00007f5e31f02000) librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007f5e2cfe6000) libbz2.so.1.0 => path/Natron-2.3.15-Linux-64-no-installer/bin/../lib/libbz2.so.1.0 (0x00007f5e2cdd4000) libpng16.so.16 => path/Natron-2.3.15-Linux-64-no-installer/bin/../lib/libpng16.so.16 (0x00007f5e2cb9f000) libz.so.1 => path/Natron-2.3.15-Linux-64-no-installer/bin/../lib/libz.so.1 (0x00007f5e2c987000) libuuid.so.1 => path/Natron-2.3.15-Linux-64-no-installer/bin/../lib/libuuid.so.1 (0x00007f5e2c77f000) libXi.so.6 => /usr/lib/x86_64-linux-gnu/libXi.so.6 (0x00007f5e2c56f000) libXrender.so.1 => /usr/lib/x86_64-linux-gnu/libXrender.so.1 (0x00007f5e2c365000) libXrandr.so.2 => /usr/lib/x86_64-linux-gnu/libXrandr.so.2 (0x00007f5e2c15a000) libXfixes.so.3 => /usr/lib/x86_64-linux-gnu/libXfixes.so.3 (0x00007f5e2bf54000) libXcursor.so.1 => /usr/lib/x86_64-linux-gnu/libXcursor.so.1 (0x00007f5e2bd4a000) libXinerama.so.1 => /usr/lib/x86_64-linux-gnu/libXinerama.so.1 (0x00007f5e2bb47000) libXext.so.6 => /usr/lib/x86_64-linux-gnu/libXext.so.6 (0x00007f5e2b935000) libgthread-2.0.so.0 => path/Natron-2.3.15-Linux-64-no-installer/bin/../lib/libgthread-2.0.so.0 (0x00007f5e2b733000) libglib-2.0.so.0 => path/Natron-2.3.15-Linux-64-no-installer/bin/../lib/libglib-2.0.so.0 (0x00007f5e2b419000) libSM.so.6 => /usr/lib/x86_64-linux-gnu/libSM.so.6 (0x00007f5e2b211000) libICE.so.6 => /usr/lib/x86_64-linux-gnu/libICE.so.6 (0x00007f5e2aff6000) libssl.so.1.1 => path/Natron-2.3.15-Linux-64-no-installer/bin/../lib/libssl.so.1.1 (0x00007f5e2ad61000) libcrypto.so.1.1 => path/Natron-2.3.15-Linux-64-no-installer/bin/../lib/libcrypto.so.1.1 (0x00007f5e2a898000) libXau.so.6 => /usr/lib/x86_64-linux-gnu/libXau.so.6 (0x00007f5e2a694000) libXdmcp.so.6 => /usr/lib/x86_64-linux-gnu/libXdmcp.so.6 (0x00007f5e2a48e000) libpcre.so.1 => path/Natron-2.3.15-Linux-64-no-installer/bin/../lib/libpcre.so.1 (0x00007f5e2a248000) ```
devernay commented 3 years ago

@f1ow03 can you please test one of the new 2.3.16b1 binaries built on CentOS7? They should be compatible with any current version of Linux. https://github.com/NatronGitHub/Natron/releases/tag/v2.3.16-beta1

f1ow03 commented 3 years ago

The error output changed a bit:

error output ``` Caught segmentation fault (SIGSEGV) from thread Main(0x3957220), faulty address is 0x7f08dbea165d from 0 Backtrace: [Frame 1]: /usr/lib/x86_64-linux-gnu/libX11.so.6(XQueryExtension+0x2d) [0x7f08dbea165d] [Frame 2]: /usr/lib/x86_64-linux-gnu/libX11.so.6(XQueryExtension+0x2d) [0x7f08dbea165d] [Frame 3]: /usr/lib/x86_64-linux-gnu/libX11.so.6(XInitExtension+0x32) [0x7f08dbe94ee2] [Frame 4]: /opt/amdgpu-pro/lib/x86_64-linux-gnu/libGL.so.1(+0x8c4df) [0x7f08d88c24df] [Frame 5]: /opt/amdgpu-pro/lib/x86_64-linux-gnu/libGL.so.1(+0x7d241) [0x7f08d88b3241] [Frame 6]: /usr/lib/x86_64-linux-gnu/dri/amdgpu_dri.so(+0x140220c) [0x7f08cdd8020c] [Frame 7]: /usr/lib/x86_64-linux-gnu/dri/amdgpu_dri.so(+0x10733b8) [0x7f08cd9f13b8] [Frame 8]: /usr/lib/x86_64-linux-gnu/dri/amdgpu_dri.so(+0x1323854) [0x7f08cdca1854] [Frame 9]: /usr/lib/x86_64-linux-gnu/dri/amdgpu_dri.so(+0xd3d22c) [0x7f08cd6bb22c] [Frame 10]: /usr/lib/x86_64-linux-gnu/dri/amdgpu_dri.so(+0x1076f8a) [0x7f08cd9f4f8a] [Frame 11]: /usr/lib/x86_64-linux-gnu/dri/amdgpu_dri.so(+0x144576a) [0x7f08cddc376a] [Frame 12]: /usr/lib/x86_64-linux-gnu/dri/amdgpu_dri.so(+0x1446946) [0x7f08cddc4946] [Frame 13]: /usr/lib/x86_64-linux-gnu/dri/amdgpu_dri.so(+0x1446c3d) [0x7f08cddc4c3d] ```
devernay commented 3 years ago

Workaround (to be confirmed)

You should be able to run Natron without having to dual-boot. Can you please try:

f1ow03 commented 3 years ago

It launches now. Gives an error: 2020-11-27_22-36-09

Console output:

``` libGL error: No matching fbConfigs or visuals found libGL error: failed to load driver: radeonsi libGL error: No matching fbConfigs or visuals found libGL error: failed to load driver: radeonsi libGL error: No matching fbConfigs or visuals found libGL error: failed to load driver: swrast Error while loading OpenGL: GLX: Failed to create context OpenGL rendering is disabled. GLX: Failed to create context GLX: Failed to create context ```
rodlie commented 3 years ago

X11 is already running using amdgpu-pro (and it's Mesa stack), you will need to restart X11. But then you will fallback to system Mesa (since the folder is now gone).

devernay commented 3 years ago

@f1ow03 did you try to install amdgpu-pro with the legacy opencl dirivers instead? See https://amdgpu-install.readthedocs.io/en/latest/install-installing.html ./amdgpu-pro-install -y --opencl=pal,legacy - requires a restart after install.

f1ow03 commented 3 years ago

No luck, GUI got broken and I ended up with CLI after X11 restart

./amdgpu-pro-install -y --opencl=pal,legacy

I used this exact command when installed the drivesr

rodlie commented 3 years ago

When you get the time could you run this command: ldd /opt/amdgpu/lib/xorg/modules/drivers/*

f1ow03 commented 3 years ago

Here

$ ldd /opt/amdgpu/lib/xorg/modules/drivers/*
    linux-vdso.so.1 (0x00007fff056b2000)
    libdrm_amdgpu.so.1 => /opt/amdgpu/lib/x86_64-linux-gnu/libdrm_amdgpu.so.1 (0x00007fb27f2b3000)
    libgbm.so.1 => /opt/amdgpu/lib/x86_64-linux-gnu/libgbm.so.1 (0x00007fb27f0a1000)
    libudev.so.1 => /lib/x86_64-linux-gnu/libudev.so.1 (0x00007fb27ee83000)
    libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007fb27ea92000)
    libdrm.so.2 => /opt/amdgpu/lib/x86_64-linux-gnu/libdrm.so.2 (0x00007fb27e87f000)
    libwayland-server.so.0 => /usr/lib/x86_64-linux-gnu/libwayland-server.so.0 (0x00007fb27e66c000)
    libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007fb27e468000)
    libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007fb27e0ca000)
    libexpat.so.1 => /lib/x86_64-linux-gnu/libexpat.so.1 (0x00007fb27de98000)
    libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007fb27dc79000)
    librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007fb27da71000)
    /lib64/ld-linux-x86-64.so.2 (0x00007fb27f6ec000)
    libffi.so.6 => /usr/lib/x86_64-linux-gnu/libffi.so.6 (0x00007fb27d869000)
rodlie commented 3 years ago

Typo on my part, I meant the amdgpu-pro folder. ldd /opt/amdgpu-pro/lib/xorg/modules/drivers/* (if the folder exists).

f1ow03 commented 3 years ago

Nope, there is no drivers folder in there

rodlie commented 3 years ago

Ok, thanks for testing.

KristijanZic commented 3 years ago

Alright, I can run both Flatpak and Snap Natron under Ubuntu 20.04 Wayland session. On X11 I still get the same errors as before.

I've done the tests you requested above:

env
$ env
SHELL=/bin/bash
SESSION_MANAGER=local/desktop:@/tmp/.ICE-unix/2547,unix/desktop:/tmp/.ICE-unix/2547
QT_ACCESSIBILITY=1
COLORTERM=truecolor
XDG_CONFIG_DIRS=/etc/xdg/xdg-ubuntu:/etc/xdg
XDG_MENU_PREFIX=gnome-
GNOME_DESKTOP_SESSION_ID=this-is-deprecated
LC_ADDRESS=hr_HR.UTF-8
GNOME_SHELL_SESSION_MODE=ubuntu
LC_NAME=hr_HR.UTF-8
SSH_AUTH_SOCK=/run/user/1000/keyring/ssh
XMODIFIERS=@im=ibus
DESKTOP_SESSION=ubuntu
LC_MONETARY=hr_HR.UTF-8
SSH_AGENT_PID=2509
GTK_MODULES=gail:atk-bridge
PWD=/home/aresminos
LOGNAME=aresminos
XDG_SESSION_DESKTOP=ubuntu
XDG_SESSION_TYPE=x11
GPG_AGENT_INFO=/run/user/1000/gnupg/S.gpg-agent:0:1
XAUTHORITY=/run/user/1000/gdm/Xauthority
WINDOWPATH=2
HOME=/home/aresminos
USERNAME=aresminos
IM_CONFIG_PHASE=1
LC_PAPER=hr_HR.UTF-8
LANG=en_US.UTF-8
LS_COLORS=rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=00:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arc=01;31:*.arj=01;31:*.taz=01;31:*.lha=01;31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.tzo=01;31:*.t7z=01;31:*.zip=01;31:*.z=01;31:*.dz=01;31:*.gz=01;31:*.lrz=01;31:*.lz=01;31:*.lzo=01;31:*.xz=01;31:*.zst=01;31:*.tzst=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.alz=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.cab=01;31:*.wim=01;31:*.swm=01;31:*.dwm=01;31:*.esd=01;31:*.jpg=01;35:*.jpeg=01;35:*.mjpg=01;35:*.mjpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.m4a=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.oga=00;36:*.opus=00;36:*.spx=00;36:*.xspf=00;36:
XDG_CURRENT_DESKTOP=ubuntu:GNOME
VTE_VERSION=6003
GNOME_TERMINAL_SCREEN=/org/gnome/Terminal/screen/2309da80_ae85_4ff9_9fee_b534f9571716
INVOCATION_ID=9a327fb6627d44ad872da78e13131f6f
MANAGERPID=2321
LESSCLOSE=/usr/bin/lesspipe %s %s
XDG_SESSION_CLASS=user
TERM=xterm-256color
LC_IDENTIFICATION=hr_HR.UTF-8
LESSOPEN=| /usr/bin/lesspipe %s
USER=aresminos
GNOME_TERMINAL_SERVICE=:1.133
DISPLAY=:0
SHLVL=1
LC_TELEPHONE=hr_HR.UTF-8
QT_IM_MODULE=ibus
LC_MEASUREMENT=hr_HR.UTF-8
XDG_RUNTIME_DIR=/run/user/1000
LC_TIME=hr_HR.UTF-8
JOURNAL_STREAM=9:130740
XDG_DATA_DIRS=/usr/share/ubuntu:/home/aresminos/.local/share/flatpak/exports/share:/var/lib/flatpak/exports/share:/usr/local/share/:/usr/share/:/var/lib/snapd/desktop
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
GDMSESSION=ubuntu
DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus
LC_NUMERIC=hr_HR.UTF-8
_=/usr/bin/env
grep /opt/amdgpu-pro /etc/ld.so.conf /etc/ld.so.conf.d/*
/etc/ld.so.conf.d/10-amdgpu-pro.conf:/opt/amdgpu-pro/lib/x86_64-linux-gnu
/etc/ld.so.conf.d/10-amdgpu-pro.conf:/opt/amdgpu-pro/lib/i386-linux-gnu
/etc/ld.so.conf.d/10-amdgpu-pro-i386.conf:/opt/amdgpu-pro/lib/i386-linux-gnu
/etc/ld.so.conf.d/10-amdgpu-pro-x86_64.conf:/opt/amdgpu-pro/lib/x86_64-linux-gnu
ls /opt/amdgpu-pro/lib/x86_64-linux-gnu
$ ls /opt/amdgpu-pro/lib/x86_64-linux-gnu
amdvlk64.so      libamd_comgr.so.1      libamdocl64.so  libEGL.so.1  libglapi.so.1  libGLESv2.so.2  libGL.so.1    libOpenCL.so.1
libamd_comgr.so  libamd_comgr.so.1.7.0  libEGL.so       libglapi.so  libGLESv2.so   libGL.so        libGL.so.1.2  libOpenCL.so.1.2
ldd /opt/amdgpu/lib/xorg/modules/drivers/*
$ ldd /opt/amdgpu/lib/xorg/modules/drivers/*
    linux-vdso.so.1 (0x00007ffed0708000)
    libdrm_amdgpu.so.1 => /opt/amdgpu/lib/x86_64-linux-gnu/libdrm_amdgpu.so.1 (0x00007fce27a9b000)
    libgbm.so.1 => /opt/amdgpu/lib/x86_64-linux-gnu/libgbm.so.1 (0x00007fce27a87000)
    libudev.so.1 => /lib/x86_64-linux-gnu/libudev.so.1 (0x00007fce27a5a000)
    libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007fce27868000)
    libdrm.so.2 => /opt/amdgpu/lib/x86_64-linux-gnu/libdrm.so.2 (0x00007fce27851000)
    libwayland-server.so.0 => /lib/x86_64-linux-gnu/libwayland-server.so.0 (0x00007fce2783b000)
    libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007fce27833000)
    libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007fce276e4000)
    libexpat.so.1 => /lib/x86_64-linux-gnu/libexpat.so.1 (0x00007fce276b6000)
    libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007fce27693000)
    /lib64/ld-linux-x86-64.so.2 (0x00007fce27af1000)
    libffi.so.7 => /lib/x86_64-linux-gnu/libffi.so.7 (0x00007fce27687000)
ldd /opt/amdgpu-pro/lib/xorg/modules/drivers/*
$ ldd /opt/amdgpu-pro/lib/xorg/modules/drivers/*
ldd: /opt/amdgpu-pro/lib/xorg/modules/drivers/*: No such file or directory
rodlie commented 3 years ago

Alright, I can run both Flatpak and Snap Natron under Ubuntu 20.04 Wayland session.

That's some good news. Note that there might be some issues with the flatpak/snap (some plugins are broken, at least the last time I checked).

Regarding X11, I don't know. AMD does something strange.... Natron works perfectly fine against the system Mesa stack and the NVIDIA drivers/stack. Will probably need to build against the includes provided by the AMD drivers to get something working(?)... Looking around the net I can see several other apps and games that have similar issues.

I will need access to hardware compatible with the drivers so I could test/debug properly, sadly I don't have much AMD hardware available (either too old or broken/unsupported).

devernay commented 3 years ago

please test the ubuntu binaries in https://github.com/NatronGitHub/Natron/releases/tag/v2.3.16-beta1

devernay commented 3 years ago

@ThomasMorley-T3D @KristijanZic @f1ow03 do the Ubuntu 18/20 binaries work better with AMD GPU pro drivers?

f1ow03 commented 3 years ago

Sorry, can't test it right now. Needed Natron for another project so I installed Mesa instead. (it works perfectly fine on Mesa)

ThomasMorley-T3D commented 3 years ago

Yes, at least in other applications like Blender etc.


From: Frédéric Devernay notifications@github.com Sent: Tuesday, December 8, 2020 7:41 PM To: NatronGitHub/Natron Natron@noreply.github.com Cc: Thomas Morley morleytom@hotmail.com; Mention mention@noreply.github.com Subject: Re: [NatronGitHub/Natron] Natron won't open on Ubuntu 20.4 with amd-pro-install drivers (#516)

@ThomasMorley-T3Dhttps://github.com/ThomasMorley-T3D @KristijanZichttps://github.com/KristijanZic @f1ow03https://github.com/f1ow03 do the Ubuntu 18/20 binaries work better with AMD GPU pro drivers?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/NatronGitHub/Natron/issues/516#issuecomment-740920210, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AC2BAV6XUQRSZNEIR44OFQ3STZ6NNANCNFSM4OEYVEEA.

devernay commented 3 years ago

@ThomasMorley-T3D what I meant is: can you test if the new binaries compiled on Ubuntu 18 or Ubuntu 20 (depending on which version you're running), which are available from https://github.com/NatronGitHub/Natron/releases/tag/v2.3.16-beta1 , work for you with the AMD GPU Pro drivers?

ThomasMorley-T3D commented 3 years ago

Copy that. I'll try it out tonight after work and see.


From: Frédéric Devernay notifications@github.com Sent: Wednesday, December 9, 2020 6:50 AM To: NatronGitHub/Natron Natron@noreply.github.com Cc: Thomas Morley morleytom@hotmail.com; Mention mention@noreply.github.com Subject: Re: [NatronGitHub/Natron] Natron won't open on Ubuntu 20.4 with amd-pro-install drivers (#516)

@ThomasMorley-T3Dhttps://github.com/ThomasMorley-T3D what I meant is: can you test if the new binaries compiled on Ubuntu 18 or Ubuntu 20 (depending on which version you're running), which are available from https://github.com/NatronGitHub/Natron/releases/tag/v2.3.16-beta1 , work for you with the AMD GPU Pro drivers?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/NatronGitHub/Natron/issues/516#issuecomment-741572461, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AC2BAV2NJXCQIGBXRCNUETDST4M5BANCNFSM4OEYVEEA.

KristijanZic commented 3 years ago

@devernay I apologise for the delayed response. Here is the output:

OS: Ubuntu 20.04.1 LTS x86_64 Kernel: 5.4.0-54-generic Driver: AMDGPU-PRO OpenCL: pal CPU: AMD Ryzen Threadripper 1900X (16) @ 3.800GHz GPU: AMD ATI Radeon RX Vega 64 Liquid

xdpyinfo | grep version
version number:    11.0
X.Org version: 1.20.8
glxinfo | grep "version"
server glx version string: 1.4
client glx version string: 1.4
GLX version: 1.4
OpenGL core profile version string: 4.6.14756 Core Profile Context
OpenGL core profile shading language version string: 4.60
OpenGL version string: 4.6.14756 Compatibility Profile Context
OpenGL shading language version string: 4.60
OpenGL ES profile version string: 4.6.14756 Compatibility Profile Context
OpenGL ES profile shading language version string: 4.60
clinfo
$ clinfo
Number of platforms                               1
  Platform Name                                   AMD Accelerated Parallel Processing
  Platform Vendor                                 Advanced Micro Devices, Inc.
  Platform Version                                OpenCL 2.1 AMD-APP (3180.7)
  Platform Profile                                FULL_PROFILE
  Platform Extensions                             cl_khr_icd cl_amd_event_callback cl_amd_offline_devices 
  Platform Host timer resolution                  1ns
  Platform Extensions function suffix             AMD

  Platform Name                                   AMD Accelerated Parallel Processing
Number of devices                                 1
  Device Name                                     gfx900
  Device Vendor                                   Advanced Micro Devices, Inc.
  Device Vendor ID                                0x1002
  Device Version                                  OpenCL 2.0 AMD-APP (3180.7)
  Driver Version                                  3180.7 (PAL,HSAIL)
  Device OpenCL C Version                         OpenCL C 2.0 
  Device Type                                     GPU
  Device Board Name (AMD)                         Radeon RX Vega
  Device Topology (AMD)                           PCI-E, 44:00.0
  Device Profile                                  FULL_PROFILE
  Device Available                                Yes
  Compiler Available                              Yes
  Linker Available                                Yes
  Max compute units                               64
  SIMD per compute unit (AMD)                     4
  SIMD width (AMD)                                16
  SIMD instruction width (AMD)                    1
  Max clock frequency                             1107MHz
  Graphics IP (AMD)                               9.0
  Device Partition                                (core)
    Max number of sub-devices                     64
    Supported partition types                     None
    Supported affinity domains                    (n/a)
  Max work item dimensions                        3
  Max work item sizes                             1024x1024x1024
  Max work group size                             256
  Preferred work group size (AMD)                 256
  Max work group size (AMD)                       1024
  Preferred work group size multiple              64
  Wavefront width (AMD)                           64
  Preferred / native vector sizes                 
    char                                                 4 / 4       
    short                                                2 / 2       
    int                                                  1 / 1       
    long                                                 1 / 1       
    half                                                 1 / 1        (cl_khr_fp16)
    float                                                1 / 1       
    double                                               1 / 1        (cl_khr_fp64)
  Half-precision Floating-point support           (cl_khr_fp16)
    Denormals                                     No
    Infinity and NANs                             No
    Round to nearest                              No
    Round to zero                                 No
    Round to infinity                             No
    IEEE754-2008 fused multiply-add               No
    Support is emulated in software               No
  Single-precision Floating-point support         (core)
    Denormals                                     No
    Infinity and NANs                             Yes
    Round to nearest                              Yes
    Round to zero                                 Yes
    Round to infinity                             Yes
    IEEE754-2008 fused multiply-add               Yes
    Support is emulated in software               No
    Correctly-rounded divide and sqrt operations  Yes
  Double-precision Floating-point support         (cl_khr_fp64)
    Denormals                                     Yes
    Infinity and NANs                             Yes
    Round to nearest                              Yes
    Round to zero                                 Yes
    Round to infinity                             Yes
    IEEE754-2008 fused multiply-add               Yes
    Support is emulated in software               No
  Address bits                                    64, Little-Endian
  Global memory size                              8573157376 (7.984GiB)
  Global free memory (AMD)                        8306688 (7.922GiB)
  Global memory channels (AMD)                    64
  Global memory banks per channel (AMD)           4
  Global memory bank width (AMD)                  256 bytes
  Error Correction support                        No
  Max memory allocation                           7059013632 (6.574GiB)
  Unified memory for Host and Device              No
  Shared Virtual Memory (SVM) capabilities        (core)
    Coarse-grained buffer sharing                 Yes
    Fine-grained buffer sharing                   Yes
    Fine-grained system sharing                   No
    Atomics                                       No
  Minimum alignment for any data type             128 bytes
  Alignment of base address                       2048 bits (256 bytes)
  Preferred alignment for atomics                 
    SVM                                           0 bytes
    Global                                        0 bytes
    Local                                         0 bytes
  Max size for global variable                    6353112064 (5.917GiB)
  Preferred total size of global vars             8573157376 (7.984GiB)
  Global Memory cache type                        Read/Write
  Global Memory cache size                        16384 (16KiB)
  Global Memory cache line size                   64 bytes
  Image support                                   Yes
    Max number of samplers per kernel             16
    Max size for 1D images from buffer            134217728 pixels
    Max 1D or 2D image array size                 2048 images
    Base address alignment for 2D image buffers   256 bytes
    Pitch alignment for 2D image buffers          256 pixels
    Max 2D image size                             16384x16384 pixels
    Max 3D image size                             2048x2048x2048 pixels
    Max number of read image args                 128
    Max number of write image args                64
    Max number of read/write image args           64
  Max number of pipe args                         16
  Max active pipe reservations                    16
  Max pipe packet size                            2764046336 (2.574GiB)
  Local memory type                               Local
  Local memory size                               65536 (64KiB)
  Local memory syze per CU (AMD)                  65536 (64KiB)
  Local memory banks (AMD)                        32
  Max number of constant args                     8
  Max constant buffer size                        7059013632 (6.574GiB)
  Preferred constant buffer size (AMD)            16384 (16KiB)
  Max size of kernel argument                     1024
  Queue properties (on host)                      
    Out-of-order execution                        No
    Profiling                                     Yes
  Queue properties (on device)                    
    Out-of-order execution                        Yes
    Profiling                                     Yes
    Preferred size                                262144 (256KiB)
    Max size                                      8388608 (8MiB)
  Max queues on device                            1
  Max events on device                            1024
  Prefer user sync for interop                    Yes
  Number of P2P devices (AMD)                     0
  P2P devices (AMD)                               
  Profiling timer resolution                      1ns
  Profiling timer offset since Epoch (AMD)        1607560602653369383ns (Thu Dec 10 01:36:42 2020)
  Execution capabilities                          
    Run OpenCL kernels                            Yes
    Run native kernels                            No
    Thread trace supported (AMD)                  Yes
    Number of async queues (AMD)                  4
    Max real-time compute queues (AMD)            1
    Max real-time compute units (AMD)             0
  printf() buffer size                            4194304 (4MiB)
  Built-in kernels                                (n/a)
  Device Extensions                               cl_khr_fp64 cl_amd_fp64 cl_khr_global_int32_base_atomics cl_khr_global_int32_extended_atomics cl_khr_local_int32_base_atomics cl_khr_local_int32_extended_atomics cl_khr_int64_base_atomics cl_khr_int64_extended_atomics cl_khr_3d_image_writes cl_khr_byte_addressable_store cl_khr_fp16 cl_khr_gl_sharing cl_khr_gl_depth_images cl_amd_device_attribute_query cl_amd_vec3 cl_amd_printf cl_amd_media_ops cl_amd_media_ops2 cl_amd_popcnt cl_khr_image2d_from_buffer cl_khr_subgroups cl_khr_gl_event cl_khr_depth_images cl_khr_mipmap_image cl_khr_mipmap_image_writes cl_amd_copy_buffer_p2p 

NULL platform behavior
  clGetPlatformInfo(NULL, CL_PLATFORM_NAME, ...)  No platform
  clGetDeviceIDs(NULL, CL_DEVICE_TYPE_ALL, ...)   No platform
  clCreateContext(NULL, ...) [default]            No platform
  clCreateContext(NULL, ...) [other]              Success [AMD]
  clCreateContextFromType(NULL, CL_DEVICE_TYPE_DEFAULT)  Success (1)
    Platform Name                                 AMD Accelerated Parallel Processing
    Device Name                                   gfx900
  clCreateContextFromType(NULL, CL_DEVICE_TYPE_CPU)  No devices found in platform
  clCreateContextFromType(NULL, CL_DEVICE_TYPE_GPU)  Success (1)
    Platform Name                                 AMD Accelerated Parallel Processing
    Device Name                                   gfx900
  clCreateContextFromType(NULL, CL_DEVICE_TYPE_ACCELERATOR)  No devices found in platform
  clCreateContextFromType(NULL, CL_DEVICE_TYPE_CUSTOM)  No devices found in platform
  clCreateContextFromType(NULL, CL_DEVICE_TYPE_ALL)  Success (1)
    Platform Name                                 AMD Accelerated Parallel Processing
    Device Name                                   gfx900

Natron doesn't launch, exits with the following output:

./Natron
$ ./Natron
Natron Version 2.3.16
(C) 2018-2020 The Natron developers
(C) 2013-2018 INRIA and Alexandre Gauthier-Foichat
>>>Use the --help or -h option to print usage.<<<
Py_SetPythonHome("/home/aresminos/Software/tar/Natron-RB-2.3-202012080218-e7ebb7d-Linux-64-Ubuntu20.04-no-installer/Natron-RB-2.3-202012080218-e7ebb7d-Linux-64-no-installer/bin/..")
PYTHONPATH set to /home/aresminos/Software/tar/Natron-RB-2.3-202012080218-e7ebb7d-Linux-64-Ubuntu20.04-no-installer/Natron-RB-2.3-202012080218-e7ebb7d-Linux-64-no-installer/bin/../lib/python27.zip:/home/aresminos/Software/tar/Natron-RB-2.3-202012080218-e7ebb7d-Linux-64-Ubuntu20.04-no-installer/Natron-RB-2.3-202012080218-e7ebb7d-Linux-64-no-installer/bin/../lib/python2.7:/home/aresminos/Software/tar/Natron-RB-2.3-202012080218-e7ebb7d-Linux-64-Ubuntu20.04-no-installer/Natron-RB-2.3-202012080218-e7ebb7d-Linux-64-no-installer/bin/../Plugins
Py_SetProgramName("/home/aresminos/Software/tar/Natron-RB-2.3-202012080218-e7ebb7d-Linux-64-Ubuntu20.04-no-installer/Natron-RB-2.3-202012080218-e7ebb7d-Linux-64-no-installer/bin/Natron")
Py_Initialize()
PATH is /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
PYTHONPATH is /home/aresminos/Software/tar/Natron-RB-2.3-202012080218-e7ebb7d-Linux-64-Ubuntu20.04-no-installer/Natron-RB-2.3-202012080218-e7ebb7d-Linux-64-no-installer/bin/../lib/python27.zip:/home/aresminos/Software/tar/Natron-RB-2.3-202012080218-e7ebb7d-Linux-64-Ubuntu20.04-no-installer/Natron-RB-2.3-202012080218-e7ebb7d-Linux-64-no-installer/bin/../lib/python2.7:/home/aresminos/Software/tar/Natron-RB-2.3-202012080218-e7ebb7d-Linux-64-Ubuntu20.04-no-installer/Natron-RB-2.3-202012080218-e7ebb7d-Linux-64-no-installer/bin/../Plugins
PYTHONHOME is (null)
Py_DebugFlag is 0
Py_VerboseFlag is 0
Py_InteractiveFlag is 0
Py_InspectFlag is 0
Py_OptimizeFlag is 0
Py_NoSiteFlag is 0
Py_BytesWarningFlag is 0
Py_UseClassExceptionsFlag is 1
Py_FrozenFlag is 0
Py_TabcheckFlag is 0
Py_UnicodeFlag is 0
Py_IgnoreEnvironmentFlag is 0
Py_DivisionWarningFlag is 0
Py_DontWriteBytecodeFlag is 0
Py_NoUserSiteDirectory is 1
Py_GetProgramName is /home/aresminos/Software/tar/Natron-RB-2.3-202012080218-e7ebb7d-Linux-64-Ubuntu20.04-no-installer/Natron-RB-2.3-202012080218-e7ebb7d-Linux-64-no-installer/bin/Natron
Py_GetPrefix is /home/aresminos/Software/tar/Natron-RB-2.3-202012080218-e7ebb7d-Linux-64-Ubuntu20.04-no-installer/Natron-RB-2.3-202012080218-e7ebb7d-Linux-64-no-installer/bin/..
Py_GetExecPrefix is /home/aresminos/Software/tar/Natron-RB-2.3-202012080218-e7ebb7d-Linux-64-Ubuntu20.04-no-installer/Natron-RB-2.3-202012080218-e7ebb7d-Linux-64-no-installer/bin/..
Py_GetProgramFullPath is /home/aresminos/Software/tar/Natron-RB-2.3-202012080218-e7ebb7d-Linux-64-Ubuntu20.04-no-installer/Natron-RB-2.3-202012080218-e7ebb7d-Linux-64-no-installer/bin/Natron
Py_GetPath is /home/aresminos/Software/tar/Natron-RB-2.3-202012080218-e7ebb7d-Linux-64-Ubuntu20.04-no-installer/Natron-RB-2.3-202012080218-e7ebb7d-Linux-64-no-installer/bin/../lib/python27.zip:/home/aresminos/Software/tar/Natron-RB-2.3-202012080218-e7ebb7d-Linux-64-Ubuntu20.04-no-installer/Natron-RB-2.3-202012080218-e7ebb7d-Linux-64-no-installer/bin/../lib/python2.7:/home/aresminos/Software/tar/Natron-RB-2.3-202012080218-e7ebb7d-Linux-64-Ubuntu20.04-no-installer/Natron-RB-2.3-202012080218-e7ebb7d-Linux-64-no-installer/bin/../Plugins:/home/aresminos/Software/tar/Natron-RB-2.3-202012080218-e7ebb7d-Linux-64-Ubuntu20.04-no-installer/Natron-RB-2.3-202012080218-e7ebb7d-Linux-64-no-installer/bin/../lib/python27.zip:/home/aresminos/Software/tar/Natron-RB-2.3-202012080218-e7ebb7d-Linux-64-Ubuntu20.04-no-installer/Natron-RB-2.3-202012080218-e7ebb7d-Linux-64-no-installer/bin/../lib/python2.7:/home/aresminos/Software/tar/Natron-RB-2.3-202012080218-e7ebb7d-Linux-64-Ubuntu20.04-no-installer/Natron-RB-2.3-202012080218-e7ebb7d-Linux-64-no-installer/bin/../lib/python2.7/plat-linux2:/home/aresminos/Software/tar/Natron-RB-2.3-202012080218-e7ebb7d-Linux-64-Ubuntu20.04-no-installer/Natron-RB-2.3-202012080218-e7ebb7d-Linux-64-no-installer/bin/../lib/python2.7/lib-tk:/home/aresminos/Software/tar/Natron-RB-2.3-202012080218-e7ebb7d-Linux-64-Ubuntu20.04-no-installer/Natron-RB-2.3-202012080218-e7ebb7d-Linux-64-no-installer/bin/../lib/python2.7/lib-old:/home/aresminos/Software/tar/Natron-RB-2.3-202012080218-e7ebb7d-Linux-64-Ubuntu20.04-no-installer/Natron-RB-2.3-202012080218-e7ebb7d-Linux-64-no-installer/bin/../lib/python2.7/lib-dynload
Py_GetPythonHome is /home/aresminos/Software/tar/Natron-RB-2.3-202012080218-e7ebb7d-Linux-64-Ubuntu20.04-no-installer/Natron-RB-2.3-202012080218-e7ebb7d-Linux-64-no-installer/bin/..
Python library is in /home/aresminos/Software/tar/Natron-RB-2.3-202012080218-e7ebb7d-Linux-64-Ubuntu20.04-no-installer/Natron-RB-2.3-202012080218-e7ebb7d-Linux-64-no-installer/lib/python2.7/site-packages
Caught segmentation fault (SIGSEGV) from thread Main(0x5654d00d8ee0), faulty address is 0 from 0
Backtrace:
[Frame 1]: [(nil)]

NatronRenderer exits with the following output:

./NatronRenderer '/home/aresminos/Videos/Natron/myvideo.ntp'
$ ./NatronRenderer '/home/aresminos/Videos/Natron/myvideo.ntp'
Py_SetPythonHome("/home/aresminos/Software/tar/Natron-RB-2.3-202012080218-e7ebb7d-Linux-64-Ubuntu20.04-no-installer/Natron-RB-2.3-202012080218-e7ebb7d-Linux-64-no-installer/bin/..")
PYTHONPATH set to /home/aresminos/Software/tar/Natron-RB-2.3-202012080218-e7ebb7d-Linux-64-Ubuntu20.04-no-installer/Natron-RB-2.3-202012080218-e7ebb7d-Linux-64-no-installer/bin/../lib/python27.zip:/home/aresminos/Software/tar/Natron-RB-2.3-202012080218-e7ebb7d-Linux-64-Ubuntu20.04-no-installer/Natron-RB-2.3-202012080218-e7ebb7d-Linux-64-no-installer/bin/../lib/python2.7:/home/aresminos/Software/tar/Natron-RB-2.3-202012080218-e7ebb7d-Linux-64-Ubuntu20.04-no-installer/Natron-RB-2.3-202012080218-e7ebb7d-Linux-64-no-installer/bin/../Plugins
Py_SetProgramName("/home/aresminos/Software/tar/Natron-RB-2.3-202012080218-e7ebb7d-Linux-64-Ubuntu20.04-no-installer/Natron-RB-2.3-202012080218-e7ebb7d-Linux-64-no-installer/bin/NatronRenderer")
Py_Initialize()
PATH is /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
PYTHONPATH is /home/aresminos/Software/tar/Natron-RB-2.3-202012080218-e7ebb7d-Linux-64-Ubuntu20.04-no-installer/Natron-RB-2.3-202012080218-e7ebb7d-Linux-64-no-installer/bin/../lib/python27.zip:/home/aresminos/Software/tar/Natron-RB-2.3-202012080218-e7ebb7d-Linux-64-Ubuntu20.04-no-installer/Natron-RB-2.3-202012080218-e7ebb7d-Linux-64-no-installer/bin/../lib/python2.7:/home/aresminos/Software/tar/Natron-RB-2.3-202012080218-e7ebb7d-Linux-64-Ubuntu20.04-no-installer/Natron-RB-2.3-202012080218-e7ebb7d-Linux-64-no-installer/bin/../Plugins
PYTHONHOME is (null)
Py_DebugFlag is 0
Py_VerboseFlag is 0
Py_InteractiveFlag is 0
Py_InspectFlag is 0
Py_OptimizeFlag is 0
Py_NoSiteFlag is 0
Py_BytesWarningFlag is 0
Py_UseClassExceptionsFlag is 1
Py_FrozenFlag is 0
Py_TabcheckFlag is 0
Py_UnicodeFlag is 0
Py_IgnoreEnvironmentFlag is 0
Py_DivisionWarningFlag is 0
Py_DontWriteBytecodeFlag is 0
Py_NoUserSiteDirectory is 1
Py_GetProgramName is /home/aresminos/Software/tar/Natron-RB-2.3-202012080218-e7ebb7d-Linux-64-Ubuntu20.04-no-installer/Natron-RB-2.3-202012080218-e7ebb7d-Linux-64-no-installer/bin/NatronRenderer
Py_GetPrefix is /home/aresminos/Software/tar/Natron-RB-2.3-202012080218-e7ebb7d-Linux-64-Ubuntu20.04-no-installer/Natron-RB-2.3-202012080218-e7ebb7d-Linux-64-no-installer/bin/..
Py_GetExecPrefix is /home/aresminos/Software/tar/Natron-RB-2.3-202012080218-e7ebb7d-Linux-64-Ubuntu20.04-no-installer/Natron-RB-2.3-202012080218-e7ebb7d-Linux-64-no-installer/bin/..
Py_GetProgramFullPath is /home/aresminos/Software/tar/Natron-RB-2.3-202012080218-e7ebb7d-Linux-64-Ubuntu20.04-no-installer/Natron-RB-2.3-202012080218-e7ebb7d-Linux-64-no-installer/bin/NatronRenderer
Py_GetPath is /home/aresminos/Software/tar/Natron-RB-2.3-202012080218-e7ebb7d-Linux-64-Ubuntu20.04-no-installer/Natron-RB-2.3-202012080218-e7ebb7d-Linux-64-no-installer/bin/../lib/python27.zip:/home/aresminos/Software/tar/Natron-RB-2.3-202012080218-e7ebb7d-Linux-64-Ubuntu20.04-no-installer/Natron-RB-2.3-202012080218-e7ebb7d-Linux-64-no-installer/bin/../lib/python2.7:/home/aresminos/Software/tar/Natron-RB-2.3-202012080218-e7ebb7d-Linux-64-Ubuntu20.04-no-installer/Natron-RB-2.3-202012080218-e7ebb7d-Linux-64-no-installer/bin/../Plugins:/home/aresminos/Software/tar/Natron-RB-2.3-202012080218-e7ebb7d-Linux-64-Ubuntu20.04-no-installer/Natron-RB-2.3-202012080218-e7ebb7d-Linux-64-no-installer/bin/../lib/python27.zip:/home/aresminos/Software/tar/Natron-RB-2.3-202012080218-e7ebb7d-Linux-64-Ubuntu20.04-no-installer/Natron-RB-2.3-202012080218-e7ebb7d-Linux-64-no-installer/bin/../lib/python2.7:/home/aresminos/Software/tar/Natron-RB-2.3-202012080218-e7ebb7d-Linux-64-Ubuntu20.04-no-installer/Natron-RB-2.3-202012080218-e7ebb7d-Linux-64-no-installer/bin/../lib/python2.7/plat-linux2:/home/aresminos/Software/tar/Natron-RB-2.3-202012080218-e7ebb7d-Linux-64-Ubuntu20.04-no-installer/Natron-RB-2.3-202012080218-e7ebb7d-Linux-64-no-installer/bin/../lib/python2.7/lib-tk:/home/aresminos/Software/tar/Natron-RB-2.3-202012080218-e7ebb7d-Linux-64-Ubuntu20.04-no-installer/Natron-RB-2.3-202012080218-e7ebb7d-Linux-64-no-installer/bin/../lib/python2.7/lib-old:/home/aresminos/Software/tar/Natron-RB-2.3-202012080218-e7ebb7d-Linux-64-Ubuntu20.04-no-installer/Natron-RB-2.3-202012080218-e7ebb7d-Linux-64-no-installer/bin/../lib/python2.7/lib-dynload
Py_GetPythonHome is /home/aresminos/Software/tar/Natron-RB-2.3-202012080218-e7ebb7d-Linux-64-Ubuntu20.04-no-installer/Natron-RB-2.3-202012080218-e7ebb7d-Linux-64-no-installer/bin/..
Python library is in /home/aresminos/Software/tar/Natron-RB-2.3-202012080218-e7ebb7d-Linux-64-Ubuntu20.04-no-installer/Natron-RB-2.3-202012080218-e7ebb7d-Linux-64-no-installer/lib/python2.7/site-packages
Caught segmentation fault (SIGSEGV) from thread Main(0x55b9e8a73b80), faulty address is 0x7fe1092dc28b from 0x40
Backtrace:
[Frame 1]: /lib/x86_64-linux-gnu/libX11.so.6(+0x3e28b) [0x7fe1092dc28b]
[Frame 2]: /lib/x86_64-linux-gnu/libX11.so.6(+0x3e28b) [0x7fe1092dc28b]
[Frame 3]: /lib/x86_64-linux-gnu/libX11.so.6(_XFlush+0x3d) [0x7fe1092dcafd]
[Frame 4]: /lib/x86_64-linux-gnu/libX11.so.6(_XGetRequest+0x5d) [0x7fe1092df82d]
[Frame 5]: /lib/x86_64-linux-gnu/libX11.so.6(XQueryExtension+0x51) [0x7fe1092d2b41]
[Frame 6]: /lib/x86_64-linux-gnu/libX11.so.6(XInitExtension+0x37) [0x7fe1092c61c7]
[Frame 7]: /opt/amdgpu-pro/lib/x86_64-linux-gnu/libGL.so.1(+0x8c4df) [0x7fe1052024df]
[Frame 8]: /opt/amdgpu-pro/lib/x86_64-linux-gnu/libGL.so.1(+0x7d241) [0x7fe1051f3241]
[Frame 9]: /usr/lib/x86_64-linux-gnu/dri/amdgpu_dri.so(+0x141631c) [0x7fe102c8031c]
[Frame 10]: /usr/lib/x86_64-linux-gnu/dri/amdgpu_dri.so(+0x123259d) [0x7fe102a9c59d]
[Frame 11]: /usr/lib/x86_64-linux-gnu/dri/amdgpu_dri.so(+0xcd3ea4) [0x7fe10253dea4]
[Frame 12]: /usr/lib/x86_64-linux-gnu/dri/amdgpu_dri.so(+0xd69a8c) [0x7fe1025d3a8c]
[Frame 13]: /usr/lib/x86_64-linux-gnu/dri/amdgpu_dri.so(+0x12361ca) [0x7fe102aa01ca]
[Frame 14]: /usr/lib/x86_64-linux-gnu/dri/amdgpu_dri.so(+0x14579aa) [0x7fe102cc19aa]
[Frame 15]: /usr/lib/x86_64-linux-gnu/dri/amdgpu_dri.so(+0x1458b86) [0x7fe102cc2b86]
devernay commented 3 years ago

Thank you @KristijanZic Unfortunately, that means someone probably needs to have physical access to a machine with these drivers to be able to debug the issue. I have close to no idea what's going on there, and it seems like only Natron is affected...

KristijanZic commented 3 years ago

I could set up a new Ubuntu 20.04 installation with drivers etc and give you the access over something like a team viewer if that would help? We'd just need to setup the time so I can assist you when rebooting.

rodlie commented 3 years ago

I would try building against the Mesa stack included with the drivers. Other than that I don't know either.

bhlevca commented 2 years ago

I tried not with 2.4.1 still getting the segfault at startup with the amdgpu pro drivers. Any progress on this? AMD is kicking buts now to both Intel Nvidia. Perhaps is time that the AMDGPU deserves a bit more attention. Thanks

devernay commented 2 years ago

@bhlevca try the latest alpha, maybe you'll be lucky.

Since the crash happens inside libGL, it's definitely not Natron's responsibility, and we have no way to debug it, not having the sources for their driver or even access to hardware that causes this crash. OpenGL should never crash, on any occasion. The fact that it works with Mesa is one more thing pointing towards AMD. You bought that hardware from them, it's for them to support it, not for us who don't have the resources for that.

They sell hardware, they get money for it. We don't have hardware, we don't have money, we don't have time to reverse-engineer their faulty driver.

Google "amdpro gpu linux segfault" if you still think AMD delivers high quality linux drivers.

devernay commented 2 years ago

One more thing: our software is fully open source, so they (AMD) have access to everything they need to diagnose this issue. We don't. We're not even AMD customers, so we have no way to pressure them. You do, as a customer. And I've been told those "kicking butts" GPUs are pretty expensive, so they should be giving you bang for your bucks.

bhlevca commented 2 years ago

@devernay I totally understand your point of view and indeed the problem may be in the driver. However, I have numerous video-intensive applications and none is segfaulting. It may be the way you use the driver that AMD has not tested. I was an Nvidia user before and It is not any better, I had crashed with those many times. I read some of those many amdgpu issues, many of them are due to misconfiguration. I admit that it is not so easy to configure the amdgpu pro on Linux to work properly, but when you do it works well. I am going to take the source and try to compile it and see if I get more information. I am using 10-bit display and Nvidia did not work properly and I was fed up with it. Amdgpu does what iI need (10 bit/color ) if I enable the EGL (needed to make OpenGL work on amdgpu with 10 bit/color) stream. Perhaps that's the problem. Not many people have such displays and I've been battling to configure properly my display on linux for years. I will try to disable EGL and see what happens.

rodlie commented 2 years ago

Natron is not the only app that has issues with AMD's (proprietary) driver. The issue comes down to how they build their driver, it's broken IMHO.

I recommend using the open-source driver provided by Mesa, shouldn't be much of a difference anyway.

bhlevca commented 2 years ago

Natron is not the only app that has issues with AMD's (proprietary) driver. The issue comes down to how they build their driver, it's broken IMHO.

It may be true, but I only have issues with 2 applications: Natron and DaVinci Resolve. All the GPU intensive apps work: Blender, Kdenlive, OBS Studio (has an issue on 10 bit displays), OpenShot, Olive, Nuke3. And all the other photo editing apps such as Darktable, digikam. Going with Nuke is an option but very expensive and not realistic for a home producer like me.

I agree that there may be bugs in the amdgpu driver and that it should not crash, on the other hand, it may be that you are using the API the way AMD expects and that Natron was not developed using it, but just Nvidia and perhaps Intel drivers. I have enough examples where the Nvidia dirver misbehaves. One reason for which I switched to AMD. In the end, it is a matter of perspective what is at fault.

I recommend using the open-source driver provided by Mesa, shouldn't be much of a difference anyway.

That may work for 8 bit/colour displays but it doesn't on 10 bit/ colour displays. So, it is a big difference. I am processing photos and animations., which is most of the time 10-bit displays are important. Java applications also have an issue with 10bit displays if you don't force the OpenGL channel on them, and that is slower, but it can be made to work.

I won't try without EGL rendering because a 10 bit display can't work properly without it. I am not trying to convince you of anything, I understand that there are no resources, I am merely expressing a fact. If you need help from me to debug, please let me know.

bhlevca commented 2 years ago

I checked what Nuke does. First, is using Qt5, and second, it is providing their own libGLEW.so. This way they do not depend on the system resources. Another way to go is to build AppImage for Linux. It is a self-contained container that does not depend on the system resources and you will be shielded from bugs from others. You will depend only on yours: https://docs.appimage.org/introduction/concepts.html