hache

Forum Replies Created

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • in reply to: Black screen on Ubuntu with AMD GPU drivers #46575
    hache
    Participant

    Just to add some more information:

    On the machine with Opteron X3216 and Ubuntu 23.04, I installed AMDGPU-PRO 5.7.3 and the VCE encoder is started properly according to dmesg.

    However when starting the session, I get:

    0124-00-03 19:12:24 82E066C0 [AMFDeviceVulkanImpl]   Error: ../../../../../runtime/src/core/DeviceVulkanImpl.cpp(1049):Assertion failed:vkCreateDevice() failed, Error=-7

    0124-00-03 19:12:24 82E066C0 [AMFDeviceVulkanImpl]   Error: ../../../../../runtime/src/core/DeviceVulkanImpl.cpp(587):AMF_ERROR 1 : AMF_FAIL: CreateDeviceAndFindQueues() failed

    0124-00-03 19:12:24 82E066C0 [AMFContextImpl]   Error: ../../../../../runtime/src/core/ContextImpl.cpp(1013):AMF_ERROR 1 : AMF_FAIL: pDeviceVulkan->Init(pVulkanDevice)

    VCE: WARNING! Failed to init device.

    0124-00-03 19:12:24 82E066C0 [EncodeQueueFactory]   Error: ../../../../../runtime/src/components/EncoderCore/EncodeQueueFactory.cpp(58):Assertion failed:EncodeQueueService::Create() Failed to create EncodeQueueService!

    0124-00-03 19:12:24 82E066C0 [AMFEncoderCoreBaseImpl] Warning: Failed to initialize EncodeQueueFactory.

    0124-00-03 19:12:24 82E066C0 [AMFEncoderCoreBaseImpl] Warning: Failed to create encode queue serivce.

    0124-00-03 19:12:24 82E066C0 [AMFEncoderCoreH264] Warning: Encode Core dll not found, fall back to UVE path

    0124-00-03 19:12:24 82E066C0 [AMFEncoderCoreH264] Warning: CreateServices failed.

    VCE: WARNING! Failed to create encoder.

    Info: Using H.264 software encoder.

    This is the same problem I was getting on the Ryzen 5 machine.

    It seems like the problem is NoMachine’s implementation not being up to date with the newer AMD drivers. I would go back to previous drivers, but they don’t work with the most up to date Linux Kernels.

    So I guess that it’s up to NoMachine to fix this issue?

    Thanks in advance.

    hache
    Participant

    I uninstalled all other components besides AMF as specified in your KB.
    VCE is activated in physical mode at OS level.

    $ sudo dmesg |grep VCE

    [    3.193237] [drm] VCE enabled in physical mode

    [    3.197430] [drm] Found VCE firmware Version: 52.4 Binary ID: 3

    [    3.388726] [drm] VCE initialized successfully.

    However I don’t see NoMachine even trying to use the HW encoder in the logs. Actually I have a black screen again from MacOS, however from iOS I can see the Desktop (but from iPhone the nxserver uses VP8 software encoding).

    I’ve attached the logs following your instructions.

    Thanks in advance for your help.

    hache
    Participant

    I’ve used sudo amdgpu-install –usecase=amf  as it was indicated in that KB entry. However VCE fails to start. Supposedly R5 Carrizo GPUs have VCE capacity. However this doesn’t work with NoMachine. AMDGPU version installed is 21.40.1

    [    3.193237] [drm] VCE enabled in physical mode

    [    3.197430] [drm] Found VCE firmware Version: 52.4 Binary ID: 3

    [    3.388726] [drm] VCE initialized successfully.

    So for some reason, although VCE is initiated properly on Ubuntu, NoMachine fails and shows a black screen.

    hache
    Participant

    I’ve managed to fix the black screen issue by removing AMDGPU graphics drivers. I’ve installed them only with –usecase=amf and can get to the desktop.

    However I am still unable to get hardware encoding on the server side.

    hache
    Participant

    Ok uploading logs again as .zip files.

    Attachments:
    hache
    Participant

    I’ve removed proprietary drivers and re-installed only –usecase=amf.

    Logs look different now. I’ve attached Xorg.0.log and nxserver.log

Viewing 6 posts - 1 through 6 (of 6 total)