ValveSoftware / portal2

Issues for the Linux port of Portal 2
140 stars 11 forks source link

Crash with -vulkan on Debian 11 (Mesa 20.3.5): "No adapters found", segfault #397

Closed smcv closed 1 year ago

smcv commented 1 year ago

To reproduce

Expected result

It runs, possibly with degraded functionality (this is a 2014 game so running it on a 2021 OS seems reasonable)

Actual result

warn:  Skipping Vulkan 1.2 adapter: AMD RADV VEGA10 (ACO)
warn:  Skipping Vulkan 1.0 adapter: llvmpipe (LLVM 11.0.1, 256 bits)
warn:  DXVK: No adapters found. Please check your device filter settings and Vulkan setup.

and, later, a segmentation fault (presumably trying to use a NULL Vulkan device).

Is portal2.sh -game portal2 -steam -vulkan expected to fail in this way on older host OSs?

Workaround

Don't use -vulkan so that OpenGL will be used, or use a host OS with newer Mesa available, like Debian 12 alpha, Ubuntu 22.04, or a rolling release like Arch.

smcv commented 1 year ago

DXVK is correct to say that neither of my available Vulkan devices (GPU or software rendering) advertises Vulkan 1.3 support with this driver:

      "graphics-details" : {
        "x11/vulkan" : {
          "messages" : [
            "WARNING: lavapipe is not a conformant vulkan implementation, testing use only."
          ],
          "renderer" : "AMD RADV VEGA10 (ACO)",
          "version" : "Mesa 20.3.5 (ACO)",
          "devices" : [
            {
              "name" : "AMD RADV VEGA10 (ACO)",
              "api-version" : "1.2.145",
              "vulkan-driver-id" : 3,
              "driver-name" : "radv",
              "driver-version" : "Mesa 20.3.5 (ACO)",
              "vendor-id" : "0x1002",
              "device-id" : "0x687f",
              "type" : "discrete-gpu"
            },
            {
              "name" : "llvmpipe (LLVM 11.0.1, 256 bits)",
              "api-version" : "1.0.2",
              "driver-version" : "0x1 (0.0.1?)",
              "vendor-id" : "0x10005",
              "device-id" : "0",
              "type" : "cpu",
              "issues" : [
                "software-rendering"
              ]
            }
          ]
        },

Portal 2 log

Help -> System Information

kisak-valve commented 1 year ago

Hello @smcv, the 2022-11-18 Portal 2 update bumped DXVK to 2.0. DXVK 2.0 does require mesa 22.0 or NVIDIA 510.47.03 or newer to run, so this is the expected outcome.

smcv commented 1 year ago

Thanks, I'll exclude Portal 2 from future testing of Steam Runtime updates on older OSs.