xtknight / vdpau-va-driver-vp9

Experimental VP9 codec support for vdpau-va-driver (NVIDIA VDPAU-VAAPI wrapper) and chromium-vaapi
http://www.andrewmatteson.name/
GNU General Public License v2.0
75 stars 11 forks source link

Backtrace sometimes printed when closing chromium tab or window #1

Open xtknight opened 4 years ago

xtknight commented 4 years ago

00: /usr/lib/x86_64-linux-gnu/vdpau/libvdpau_nvidia.so.1 [0x7f8e3fa13b29] VDPAU nvidia: Version: NVIDIA VDPAU Driver Shared Library 440.44 Sun Dec 8 03:27:26 UTC 2019 VDPAU nvidia: Error detected 0 7402 VDPAU nvidia: Backtrace: --: /usr/lib/x86_64-linux-gnu/vdpau/libvdpau_nvidia.so.1 [0x7f8e3fa09000] DSO load base 00: /usr/lib/x86_64-linux-gnu/vdpau/libvdpau_nvidia.so.1 [0x7f8e3fa104ff] 01: /usr/lib/x86_64-linux-gnu/vdpau/libvdpau_nvidia.so.1 [0x7f8e3fa1ea7a] 02: /usr/lib/x86_64-linux-gnu/vdpau/libvdpau_nvidia.so.1 [0x7f8e3fa0fb62] 03: /usr/lib/x86_64-linux-gnu/vdpau/libvdpau_nvidia.so.1 [0x7f8e3fa11581] 04: /usr/lib/x86_64-linux-gnu/vdpau/libvdpau_nvidia.so.1 [0x7f8e3fa13bd6]

May be an issue with the underlying framework - still investigating

xtknight commented 4 years ago

Seems to be caused by this code in vdpau_driver.c, probably underlying issue in VDPAU wrapper. Will investigate further.

// XXX: this code causes backtraces when closing chromium windows and tabs
if (driver_data->vdp_device != VDP_INVALID_HANDLE) {
    vdpau_device_destroy(driver_data, driver_data->vdp_device);
    driver_data->vdp_device = VDP_INVALID_HANDLE;
}

ffmpeg calls vdp_video_surface_destroy, but VDPAU wrapper doesn't. Perhaps the extra surface handles lying around attached to the device in whatever way are causing the backtraces to print.