{"action":"created","issue":{"url":"https://api.github.com/repos/xbmc/xbmc/issues/15041","repository_url":"https://api.github.com/repos/xbmc/xbmc","labels_url":"https://api.github.com/repos/xbmc/xbmc/issues/15041/labels{/name}","comments_url":"https://api.github.com/repos/xbmc/xbmc/issues/15041/comments","events_url":"https://api.github.com/repos/xbmc/xbmc/issues/15041/events","html_url":"https://github.com/xbmc/xbmc/issues/15041","id":390146948,"node_id":"MDU6SXNzdWUzOTAxNDY5NDg=","number":15041,"title":"[Linux] VAAPI HEVC causes video hardware hang","user":{"login":"mlauss","id":6161268,"node_id":"MDQ6VXNlcjYxNjEyNjg=","avatar_url":"https://avatars3.githubusercontent.com/u/6161268?v=4","gravatar_id":"","url":"https://api.github.com/users/mlauss","html_url":"https://github.com/mlauss","followers_url":"https://api.github.com/users/mlauss/followers","following_url":"https://api.github.com/users/mlauss/following{/other_user}","gists_url":"https://api.github.com/users/mlauss/gists{/gist_id}","starred_url":"https://api.github.com/users/mlauss/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mlauss/subscriptions","organizations_url":"https://api.github.com/users/mlauss/orgs","repos_url":"https://api.github.com/users/mlauss/repos","events_url":"https://api.github.com/users/mlauss/events{/privacy}","received_events_url":"https://api.github.com/users/mlauss/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-12-12T09:56:25Z","updated_at":"2018-12-12T10:05:16Z","closed_at":null,"author_association":"NONE","body":"<!--- Please fill out this template to the best of your ability. You can always edit this issue once you have created it. -->\r\n<!--- Read the following link before you create a new problem report: https://kodi.wiki/view/HOW-TO:Submit_a_bug_report  -->\r\n## Bug report\r\n### Describe the bug\r\nLinux: 4K HEVC video, played back with kodi HEVC VAAPI acceleration enabled, causes the i915 video\r\ndecoder hardware to crash.   A single frame is displayed, audio continues in the background.\r\nThe same video file played with \"mpv --hwdec=vaapi --vo=vaapi\" shows no such problems,\r\nwhich leads me to believe that this is a problem in the way kodi uses vaapi.\r\nDisabling HEVC acceleration works around it (poorly).  No issues with other codecs.\r\n\r\n\r\n### To Reproduce\r\nSteps to reproduce the behavior:\r\nkodi as of commit  eab9e42f98fdb64cc7ef72b492936c90a2134964\r\nhave i915 hardware (tested on KabyLake ), linux-4.19.6\r\nlibva-2.3.0,  libva-intel-driver-2.2.0\r\nTest video file here: https://drive.google.com/file/d/1LuQaFt2QrucZ6qiIcLaQG3e3VuxR0AQy/view?usp=sharing   (10s, 64MB)\r\n\r\n### Debuglog\r\n\r\n10:33:54.927 T:140422978856704  NOTICE: Creating InputStream\r\n10:33:54.956 T:140422978856704  NOTICE: Creating Demuxer\r\n10:33:56.330 T:140422978856704  NOTICE: Opening stream: 0 source: 256\r\n10:33:56.330 T:140422978856704  NOTICE: Creating video codec with codec id: 173\r\n10:33:56.330 T:140422978856704  NOTICE: CDVDVideoCodecFFmpeg::Open() Using codec: HEVC (High Efficiency Video Coding)\r\n10:33:56.331 T:140422978856704  NOTICE: Creating video thread\r\n10:33:56.331 T:140421934081792  NOTICE: running thread: video_thread\r\n10:33:56.331 T:140422978856704  NOTICE: Opening stream: 1 source: 256\r\n10:33:56.331 T:140422978856704  NOTICE: Finding audio codec for: 86060\r\n10:33:56.331 T:140422978856704  NOTICE: CDVDAudioCodecFFmpeg::Open() Successful opened audio decoder truehd\r\n10:33:56.331 T:140422978856704  NOTICE: Creating audio thread\r\n10:33:56.331 T:140422978856704  NOTICE: Opening stream: 5 source: 256\r\n10:33:56.331 T:140421766293248  NOTICE: running thread: CVideoPlayerAudio::Process()\r\n10:33:58.654 T:140421757900544  NOTICE: COutput::OnStartup: Output Thread created\r\n10:33:59.182 T:140423141529728  NOTICE: GL: Selecting YUV 2 RGB shader\r\n10:33:59.183 T:140423141529728  NOTICE: GL: NPOT texture support detected\r\n10:33:59.183 T:140423141529728  NOTICE: GL: Using GL_ARB_pixel_buffer_object\r\n10:33:59.183 T:140423141529728  NOTICE: Using GL_TEXTURE_2D\r\n10:33:59.690 T:140423141529728  NOTICE: GL: Selecting YUV 2 RGB shader\r\n10:33:59.721 T:140423141529728  NOTICE: GL: NPOT texture support detected\r\n10:33:59.721 T:140423141529728  NOTICE: GL: Using GL_ARB_pixel_buffer_object\r\n10:34:01.046 T:140421766293248  NOTICE: Creating audio stream (codec id: 86060, channels: 8, sample rate: 48000, no pass-through)\r\n10:34:01.312 T:140423116347136  NOTICE: PulseAudio: Opened device alsa_output.pci-0000_00_1f.3.hdmi-stereo in pcm mode with Buffersize 150 ms\r\n10:34:03.111 T:140421934081792  NOTICE: CDVDVideoCodecFFmpeg::CDropControl: calculated diff time: 41727\r\n10:34:05.115 T:140421934081792   ERROR: VAAPI::Decode - timed out waiting for output message - decoded: 2, proc: 1, has free surface: yes\r\n10:34:05.117 T:140421934081792 WARNING: VAAPI::FFGetBuffer - returning due to awaiting recovery\r\n10:34:07.557 T:140421766293248  NOTICE: CVideoPlayerAudio::Process - stream stalled\r\n10:34:10.436 T:140421757900544   ERROR: VAAPI::COutput::Uninit - not all CPostprcs released\r\n10:34:10.436 T:140421757900544  NOTICE: COutput::OnExit: Output Thread terminated\r\n10:34:10.436 T:140423141529728  NOTICE: CVideoPlayer::CloseFile()\r\n10:34:10.436 T:140423141529728  NOTICE: VideoPlayer: waiting for threads to exit\r\n10:34:10.437 T:140421934081792  NOTICE: VAAPI::Close - closing decoder context\r\n10:34:10.440 T:140421757900544  NOTICE: COutput::OnStartup: Output Thread created\r\n10:34:11.041 T:140422978856704  NOTICE: CVideoPlayer::OnExit()\r\n10:34:11.041 T:140422978856704  NOTICE: Closing stream player 1\r\n10:34:11.041 T:140422978856704  NOTICE: Waiting for audio thread to exit\r\n10:34:11.041 T:140421766293248   ERROR: Got MSGQ_ABORT or MSGO_IS_ERROR return true\r\n10:34:11.041 T:140421766293248  NOTICE: thread end: CVideoPlayerAudio::OnExit()\r\n10:34:11.041 T:140422978856704  NOTICE: Closing audio device\r\n10:34:11.075 T:140422978856704  NOTICE: Deleting audio codec\r\n10:34:11.077 T:140422978856704  NOTICE: Closing stream player 2\r\n10:34:11.077 T:140422978856704  NOTICE: waiting for video thread to exit\r\n10:34:11.077 T:140421934081792   ERROR: Got MSGQ_ABORT or MSGO_IS_ERROR return true\r\n10:34:11.077 T:140421934081792  NOTICE: thread end: video_thread\r\n10:34:11.077 T:140422978856704  NOTICE: deleting video codec\r\n10:34:11.086 T:140422978856704  NOTICE: Closing stream player 3\r\n10:34:11.103 T:140423141529728  NOTICE: VideoPlayer: finished waiting\r\n10:34:11.103 T:140423141529728  NOTICE: VAAPI::Close\r\n10:34:11.103 T:140421757900544   ERROR: VAAPI::COutput::Uninit - not all CPostprcs released\r\n10:34:11.103 T:140421757900544  NOTICE: COutput::OnExit: Output Thread terminated\r\n10:34:11.103 T:140423141529728  NOTICE: VAAPI::Close - closing decoder context\r\n10:34:11.103 T:140423141529728  NOTICE: CVideoPlayer::CloseFile()\r\n10:34:11.103 T:140423141529728  NOTICE: VideoPlayer: waiting for threads to exit\r\n10:34:11.103 T:140423141529728  NOTICE: VideoPlayer: finished waiting\r\n\r\n[drm] GPU HANG: ecode 9:2:0xa8dfbffd, in VideoPlayer [47328], reason: hang on vcs0, action: reset\r\n[drm] GPU hangs can indicate a bug anywhere in the entire gfx stack, including userspace.\r\n[drm] Please file a _new_ bug report on bugs.freedesktop.org against DRI -> DRM/Intel\r\n[drm] drm/i915 developers can then reassign to the right component if it's not a kernel issue.\r\n[drm] The gpu crash dump is required to analyze gpu hangs, so please always attach it.\r\n[drm] GPU crash dump saved to /sys/class/drm/card0/error\r\ni915 0000:00:02.0: Resetting vcs0 for hang on vcs0\r\n\r\n\r\n\r\n### Your Environment\r\nUsed Operating system:\r\n<!--- Include as many relevant details about the environment you experienced the bug in -->\r\n<!--- Put your text below this line. Checkboxes can easily be ticked once issue is created -->\r\n - [ ] Android\r\n - [ ] iOS\r\n - [X] Linux\r\n - [ ] OSX\r\n - [ ] Raspberri-Pi\r\n - [ ] Windows\r\n - [ ] Windows UWP\r\n\r\n - Operating system version/name: linux-4.19.6, mesa-18.3-rc5, libva-2.3.0, libva-intel-driver-2.2.0\r\n - Kodi version: 18, commit eab9e42f98fdb64cc7ef72b492936c90a2134964\r\n - Hardware: core i5-7260U (Kabylake)\r\n\r\nThanks!\r\n\r\n<!--- End of this issue -->\r\n*note: Once the issue is made we require you to update it with new information or Kodi versions should that be required.\r\nTeam Kodi will consider your problem report however, we will not make any promises the problem will be solved.*"},"comment":{"url":"https://api.github.com/repos/xbmc/xbmc/issues/comments/446531731","html_url":"https://github.com/xbmc/xbmc/issues/15041#issuecomment-446531731","issue_url":"https://api.github.com/repos/xbmc/xbmc/issues/15041","id":446531731,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0NjUzMTczMQ==","user":{"login":"pkerling","id":4533697,"node_id":"MDQ6VXNlcjQ1MzM2OTc=","avatar_url":"https://avatars1.githubusercontent.com/u/4533697?v=4","gravatar_id":"","url":"https://api.github.com/users/pkerling","html_url":"https://github.com/pkerling","followers_url":"https://api.github.com/users/pkerling/followers","following_url":"https://api.github.com/users/pkerling/following{/other_user}","gists_url":"https://api.github.com/users/pkerling/gists{/gist_id}","starred_url":"https://api.github.com/users/pkerling/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pkerling/subscriptions","organizations_url":"https://api.github.com/users/pkerling/orgs","repos_url":"https://api.github.com/users/pkerling/repos","events_url":"https://api.github.com/users/pkerling/events{/privacy}","received_events_url":"https://api.github.com/users/pkerling/received_events","type":"User","site_admin":false},"created_at":"2018-12-12T10:05:16Z","updated_at":"2018-12-12T10:05:16Z","author_association":"MEMBER","body":"Also please remove your log from the issue description and upload a complete and debug-enabled log (on GH or via paste.kodi.tv)"}}
{"actor":{"display_login":"pkerling"}}