EGL Problem with AMD GPU

  • Hi,

    on Libreelec 11.01 (gbm) there is a bug, which make it imposible to watch videos from amazon vod oder netflix as described here: Error playing videos from Amazon VOD / inputstream adaptive

    It gives the following errorcode:

    Code
    CEGLImage::CreateImage - failed to import buffer into EGL image: 0x3003

    The problem occurs only on the normal image (gbm), the legacy image (x11) works.

    It also only occurs on my AMD system (5600G, using the integraded GPU). My Intel system works fine (13100, integraded GPU).

  • here are some extended logs:

    info : VideoPlayer::OpenFile: plugin://plugin.video.amazon-test/?asin=<...>&mode=PlayVideo&name=<...>&adult=0&trailer=0&selbitrate=0


    2023-05-01 08:20:47.981 T:1094 info : Creating InputStream


    2023-05-01 08:20:47.989 T:1094 warning : AddOnLog: inputstream.adaptive: Set headers to the manifest by using "inputstream.adaptive.stream_headers" property is a deprecated behaviour that will be removed in future.


    To set headers to the manifest, use "inputstream.adaptive.manifest_headers" property.


    2023-05-01 08:20:47.990 T:1094 info : AddOnLog: inputstream.adaptive: [Repr. chooser] Resolution set: 3840x2160, max allowed: 3840x2160, Adjust refresh rate: 1


    2023-05-01 08:20:47.990 T:1094 error : GetDirectory - Error getting /usr/lib/kodi/addons/inputstream.adaptive/


    2023-05-01 08:20:48.954 T:1094 info : AddOnLog: inputstream.adaptive: Successfully parsed manifest file (Periods: 1, Streams in first period: 5, Type: VOD)


    2023-05-01 08:20:49.832 T:1094 info : Creating Demuxer


    2023-05-01 08:20:49.832 T:1094 info : Opening stream: 1001 source: 256


    2023-05-01 08:20:49.980 T:1094 info : [WHITELIST] Searching the whitelist for: width: 960, height: 540, fps: 23.976, 3D: false


    2023-05-01 08:20:49.981 T:1094 info : Display resolution ADJUST : 3840x2160 @ 23.976025 Hz (32) (weight: 0.000)


    2023-05-01 08:20:49.995 T:961 info : VideoPlayer: OnLostDisplay received


    2023-05-01 08:20:49.995 T:961 warning : CDVDMessageQueue(audio)::Put MSGQ_NOT_INITIALIZED


    2023-05-01 08:20:49.995 T:961 warning : CDVDMessageQueue(video)::Put MSGQ_NOT_INITIALIZED


    2023-05-01 08:20:49.995 T:961 info : GLES: Maximum texture width: 16384


    2023-05-01 08:20:49.996 T:1094 info : Creating video codec with codec id: 27


    2023-05-01 08:20:49.996 T:1094 info : AddOnLog: inputstream.adaptive: VideoCodec::Open


    2023-05-01 08:20:49.996 T:1094 warning : AddOnLog: inputstream.adaptive: ToCdmVideoCodecProfile: Unknown codec profile 0


    2023-05-01 08:20:49.996 T:1094 info : Creating video thread


    2023-05-01 08:20:49.997 T:1103 info : running thread: video_thread


    2023-05-01 08:20:49.997 T:1094 info : Opening stream: 1002 source: 256


    2023-05-01 08:20:50.055 T:1094 info : Finding audio codec for: 86018


    2023-05-01 08:20:50.056 T:1094 info : CDVDAudioCodecFFmpeg::Open() Successful opened audio decoder aac


    2023-05-01 08:20:50.056 T:1094 info : OpenStream: Allowing max Out-Of-Sync Value of 10 ms


    2023-05-01 08:20:50.056 T:1094 info : Creating audio thread


    2023-05-01 08:20:50.056 T:1106 info : running thread: CVideoPlayerAudio::Process()


    2023-05-01 08:20:50.154 T:961 info : VideoPlayer: OnResetDisplay received


    2023-05-01 08:20:50.163 T:1067 info : [Amazon VOD] Starting Playback: 0.0/5275.0


    2023-05-01 08:20:50.305 T:1106 info : CVideoPlayerAudio: display reset occurred, checking for passthrough


    2023-05-01 08:20:50.306 T:1106 info : CDVDAudioCodecFFmpeg::Open() Successful opened audio decoder aac


    2023-05-01 08:20:50.306 T:1106 info : Creating audio stream (codec id: 86018, channels: 2, sample rate: 48000, no pass-through)


    2023-05-01 08:20:50.319 T:986 info : CAESinkALSA - Unable to open device "default" for playback


    2023-05-01 08:20:50.322 T:961 error : CEGLImage::CreateImage - failed to import buffer into EGL image: 0x3003


    2023-05-01 08:20:50.410 T:986 info : Skipped 2 duplicate messages..


    2023-05-01 08:20:50.410 T:986 warning : Pulseaudio module module-allow-passthrough not loaded - opening PT devices might fail


    2023-05-01 08:20:50.410 T:986 info : Found 2 Lists of Devices


    2023-05-01 08:20:50.410 T:986 info : Enumerated ALSA devices:


    <............ AUDIO ...............>


    2023-05-01 08:20:50.410 T:987 info : CActiveAESink::OpenSink - initialize sink


    2023-05-01 08:20:50.410 T:987 info : CAESinkALSA::Initialize - Attempting to open device "iec958:CARD=Generic_1,DEV=0"


    2023-05-01 08:20:50.411 T:987 info : CAESinkALSA::Initialize - Opened device "iec958:CARD=Generic_1,DEV=0,AES0=0x04,AES1=0x82,AES2=0x00,AES3=0x00"


    2023-05-01 08:20:50.411 T:987 info : CAESinkALSA::InitializeHW - Your hardware does not support AE_FMT_FLOAT, trying other formats


    2023-05-01 08:20:50.411 T:987 info : CAESinkALSA::InitializeHW - Using data format AE_FMT_S32NE


    2023-05-01 08:20:50.421 T:987 info : CActiveAESink::OpenSink - initialize sink


    2023-05-01 08:20:50.422 T:987 info : CAESinkALSA::Initialize - Attempting to open device "iec958:CARD=Generic_1,DEV=0"


    2023-05-01 08:20:50.422 T:987 info : CAESinkALSA::Initialize - Opened device "iec958:CARD=Generic_1,DEV=0,AES0=0x04,AES1=0x82,AES2=0x00,AES3=0x02"


    2023-05-01 08:20:50.422 T:987 info : CAESinkALSA::InitializeHW - Your hardware does not support AE_FMT_FLOAT, trying other formats


    2023-05-01 08:20:50.422 T:987 info : CAESinkALSA::InitializeHW - Using data format AE_FMT_S32NE


    2023-05-01 08:20:50.447 T:961 info : Loading skin file: VideoFullScreen.xml, load type: KEEP_IN_MEMORY


    2023-05-01 08:20:50.450 T:961 info : [WHITELIST] Searching the whitelist for: width: 960, height: 540, fps: 23.976, 3D: false


    2023-05-01 08:20:50.451 T:961 info : Display resolution ADJUST : 3840x2160 @ 23.976025 Hz (32) (weight: 5171885965829836422250496.000)


    2023-05-01 08:20:50.451 T:961 error : CEGLImage::CreateImage - failed to import buffer into EGL image: 0x3003


    2023-05-01 08:20:56.369 T:961 info : Skipped 141 duplicate messages..


    2023-05-01 08:20:56.369 T:961 info : CVideoPlayer::CloseFile()


    2023-05-01 08:20:56.369 T:961 info : VideoPlayer: waiting for threads to exit


    2023-05-01 08:20:56.371 T:1094 info : CVideoPlayer::OnExit()


    2023-05-01 08:20:56.371 T:1094 info : Closing stream player 1


    2023-05-01 08:20:56.371 T:1094 info : Waiting for audio thread to exit


    2023-05-01 08:20:56.381 T:1106 info : thread end: CVideoPlayerAudio::OnExit()


    2023-05-01 08:20:56.382 T:1094 info : Closing audio device


    2023-05-01 08:20:56.432 T:1094 info : Deleting audio codec


    2023-05-01 08:20:56.432 T:987 info : CActiveAESink::OpenSink - initialize sink


    2023-05-01 08:20:56.432 T:1094 info : Closing stream player 2


    2023-05-01 08:20:56.432 T:1094 info : waiting for video thread to exit


    2023-05-01 08:20:56.479 T:1103 warning : OutputPicture - timeout waiting for buffer


    2023-05-01 08:20:56.479 T:1103 info : thread end: video_thread


    2023-05-01 08:20:56.480 T:1094 info : deleting video codec

  • If you want to share logs use the built-in "paste" function AND share a complete debug log not just the snippet of non-debug log that you think is important.