IGCIT / Intel-GPU-Community-Issue-Tracker-IGCIT

IGCIT is a Community-driven issue tracker for Intel GPUs.
GNU General Public License v3.0
112 stars 3 forks source link

[libvpl D3DTexture2D import] video encode crashed with MFX_ERR_LOCK_MEMORY error #713

Closed ma3uk closed 4 months ago

ma3uk commented 4 months ago

Checklist [README]

Application [Required]

OBS Studio video encode plugin

Processor / Processor Number [Required]

12700K

Graphic Card [Required]

Intel Arc A380

GPU Driver Version [Required]

31.0.101.5194

Other GPU Driver version

31.0.101.5330

Rendering API [Required]

Windows Build Number [Required]

Other Windows build number

No response

Intel System Support Utility report

igcit_ssu.txt

Description and steps to reproduce [Required]

OS: Windows 11 23 H2 Video driver: gfx_win_101.5330, gfx_win_101.5194, gfx_win_101.5186 Video card: Arc A380

I am developing a plugin for OBS Studio using libvpl for real-time coding. With the release of libvpl 2.10, textures for encoding were added and supported, it works, but I ran into a problem, after a few minutes the encoding process was interrupted with the error MFX_ERR_LOCK_MEMORY from the EncodeFrameAsync function. Further attempts to start encoding are immediately interrupted with the MFX_ERR_LOCK_MEMORY error until the application is restarted.

A step-by-step process that I'm doing:

  1. A pool of intermediate textures is being created
  2. Copying an external texture to pool
  3. Importing textures from a pool to libvpl
  4. Encode The error occurs at stage 4. There are no errors in the first 3 stages

The source code of the application can be found at the links below:

It is also worth clarifying that in my case the error occurs when encoding the 65537 frame.

Device / Platform

No response

Crash dumps [Required, if applicable]

No response

Application / Windows logs

No response

ma3uk commented 4 months ago

I can provide a compiled plugin file to reproduce the error in OBS Studio

ma3uk commented 4 months ago

Addition: when testing on the integrate graphic UHD 770 video card, the video encoding process is interrupted with an error MFX_ERR_DEVICE_FAILED

EstebanIntel commented 4 months ago

Hi @ma3uk,

Please submit your issue to https://github.com/intel/libvpl/issues, since there you can get support from Intel® Video Processing Library experts.

Arturo-Intel commented 4 months ago

@ma3uk do you see this behavior on Nvidia or AMD GPUs or is only with Intel Arc / UHD GPUs?

ma3uk commented 4 months ago

@Arturo-Intel Only on Intel A380 and UHD 770

Arturo-Intel commented 4 months ago

@ma3uk Let me do some experiments on my side, but please go to https://github.com/intel/libvpl/issues and request support from them as Esteban mention. they are the experts on this matter.

ma3uk commented 4 months ago

@Arturo-Intel Thank you for taking up this issue. I created a support request in the libvpl repository - https://github.com/intel/libvpl/issues/125 I will be very glad for your help in solving the problem.