Skip to content

"Encoder: Image creation failure: Unknown error" after update to Mesa 23.3.6 #2014

@manfredg

Description

@manfredg

Description

Everything worked amazingly well on Mesa 23.2.1 but after I updated to the latest Mesa 23.3.6 I am getting the error "Encoder: Image creation failure: Unknown error" followed by "error in encoder thread: Failed to initialize vulkan frame context: Invalid argument"

I managed to trace the problem to a failed call to av_hwframe_ctx_init() in ffmpeg_helper.cpp which in turn calls vulkan_frames_init() in ffmpeg's hwcontext.c itself calling create_frame() on line 2374 in hwcontext_vulkan.c

The call seems to be the exact same with identical parameters but for some reason the new Mesa 23.3.6 refuses to create this frame and returns an unknown error.

I can regain full function by swapping to the original libvulkan_intel.so library version 23.2.1, no other changes to ICD files or any other part of Mesa, so the problem seems to be with this exact function.

I realise that this is technically on the ffmpeg side of things and I did try to change the dependency in the ALVR sources from ffmpeg 6.0 to 6.1.1 but because of various patches being applied this didn't work out.

General Troubleshooting

  • I carefully followed the instructions in the README and successfully completed the setup wizard
  • I read the ALVR Wikis here and here

Environment

Hardware

hw-probe -all -upload: https://linux-hardware.org/?probe=0ee555fcd8

Installation

ALVR Version:

Latest git, but problem has already persisted for weeks.

ALVR Settings File:

session.json

SteamVR Version: 2.3.5

Install Type:

  • Packaged (exe, deb, rpm, etc)
  • Portable (zip)
  • Source

OS Name and Version

openSUSE Tumbleweed

Metadata

Metadata

Labels

bugSomething isn't workinglinuxThis seems to be linux-specific

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions