1 2 Previous Next 19 Replies Latest reply on Sep 19, 2017 9:17 AM by Ronald_Intel

    Driver crash during HEVC playback w/DXVA2 (resume)

    WiGuy

      Hello,

      Over in the Kodi forums, many users are reporting an ongoing problem with Intel Graphics drivers for the past 2 years when it comes to playing back HEVC(x265) content on intel graphics hardware in Windows 7 and 10.  This problem is widespread and affects many hardware platforms including the NUC, HD4600, HD5500, i7 6770HQ and likely most others.  This crash happens when attempting to resume a HEVC encoded video file using current drivers on a windows platform with Kodi v15,16,17 and should affect any media player which uses DirectX 11 and up.

       

      One user reports that the issue is linked to the use of "open-gop" parameter used for encoding media files using HEVC (which is default for most encoders).

       

      I'm an IT professional but not in software development, I'd like to help in any way I can but please have a look over at the forum thread linked below for further details.  This will likely affect most of your platforms as HEVC becomes more and more prevalent.  Other players which are unaffected typically use a much older version of Direct X.

       

      https://forum.kodi.tv/showthread.php?tid=289533

        • 1. Re: Driver crash during HEVC playback (resume)
          WiGuy

          Update - it seems that this is directly linked to the intel driver with DX11 + DXVA2.  Disabling DXVA2 and using DXVA rendering seems to avoid this crash.

          • 2. Re: Driver crash during HEVC playback w/DXVA2 (resume)
            Ronald_Intel

            Hello WiGuy,

             

            Thank you for bringing this situation to our attention. Can you please report this to us using the following template: Default level information for reporting Graphics issues  ?

            I would like to highlight the importance of the "Steps to Replicate" part. If you could also provide us with link(s) to some video files that can be used for testing that would be great.

            Once we have this information we will try to replicate the issue internally.

             

            Kindest Regards,

            Ronald M.

            • 3. Re: Driver crash during HEVC playback w/DXVA2 (resume)
              WiGuy

              Category

              Questions

              Answers (N/A if not applicable)

              Description

              Provide a detailed description of the issue

              Over in the Kodi forums, many users are reporting an ongoing problem with Intel Graphics drivers for the past 2 years when it comes to playing back HEVC(x265) content on intel graphics hardware in Windows 7 and 10.  This problem is widespread and affects many hardware platforms including the NUC, HD4600, HD5500, i7 6770HQ and likely most others.  This crash happens when attempting to resume a HEVC encoded video file using current drivers on a windows platform with Kodi v15,16,17 and should affect any media player which uses DirectX 11 and up with DirectPlay(DXVA2).

               

              One user reports that the issue is linked to the use of "open-gop" parameter used for encoding media files using HEVC (which is default for most encoders).

               

              This will likely affect most of your platforms as HEVC becomes more and more prevalent.  Other players which are unaffected typically use a much older version of Direct X.

               

              https://forum.kodi.tv/showthread.php?tid=289533

              Please place an X to the right of the option showing how often you see this issue using specific steps. (Ex: 'Every few times a game is started it flickers.' <- This would be "Often")

              Always (100%):X

              Often (51-99%):

              Sporadic (20-50%):

              Very Sporadic (<20%):

              Hardware (HW)

              Brand and Model of the system.

              Dell Lattitude E5450

              NUC based systems also

              Hybrid or switchable graphics system?
              ie Does it have AMD or NV graphics too?

              Hybrid (HD5500)

              Make and model of any Displays that are used to see the issue (see note2 below).
              LFP
              = Local Flat Panel (Laptop panel)
              EFP = External Flat Panel (Monitor you plug in)

              Samsung LED TV UN55B

              Seems irrelevant based on other forum users reports

              How much memory [RAM] in the system (see note2 below).

              4GB

              Provide any other hardware needed to replicate the issue.
              ie: Cables&brand, cable type [vga, hdmi, DP, etc], dock, dongles/adapters, etc

              HDMI connection

              Hardware Stepping (see note1 below).

               

              Software (SW)

              Operating System version (see note2 below).

              Windows 10 x64

              VBIOS (video BIOS) version. This can be found in “information page” of CUI (right click on Desktop and select “Graphics Properties”.

              1032.17

              Graphics Driver version; for both integrated Intel and 3rd party vendors (see note2 below).

              20.19.15.4624 (seems to happen with all drivers going back as far as early 2015)

              SW or Apps version used to replicate the issue.

              Kodi v15,16,17

              Configurations

              Single display, clone, or extended (see note2 below).

              Single

              Display resolution & refresh rate setting of each display (see note2 below).

              1080p @60Hz

              AC or DC mode, i.e. is power cable plugged in or not?

              AC (Power Connected)

              How to repro

              Please provide steps to replicate the issue.  These steps are very crucial to finding the root cause and fix.
              A screenshot to illustrate the issue is a huge plus. A video of the failure is even better! Attach to the post or provide the YouTube link.K

              1. Install any version of Kodi from kodi.tv
              2. Go into System Settings-Player set settings level to Expert
              3. System-Settings-Player-Videos check that render method is set to DXVA and that "allow hardware accelleration DXVA2" is enabled
              4. Go back to the main home screen and go to Video-files
              5. Start playing sample video file and fast forward 5-10mins
              6. Exit video
              7. Start video again, you should have a menu asking to resume from where you left off
              8. Resume the video, this should cause kodi to crash (kodi developers are indicating that the crash is happening inside the intel driver)

               

              Current workaround is to disable DXVA2 but leave DXVA rendering enabled (DXVA2 is enabled by default however)

               

              Sample Video (start the download early, site only has 1Mb of throughput)

              http://www.libde265.org/hevc-bitstreams/sintel-1080-cfg02.mkv

               

               

               

              Hope this helps

              Edit: copied initial post to description field

              • 4. Re: Driver crash during HEVC playback w/DXVA2 (resume)
                Com_DAC

                I too am experiencing this same issue. With DXVA2 disabled performance takes a hit with HEVC decoding and some videos are not playable. With DXVA2 enabled performance is great but any attempt to resume a video causes a crash. My hardware is a NUC5i3RYH with 8GB ram, Windows 10 x64, HDMI to TV @ 1080p/60hz. Short of my internal nuc specs I've got the same information as posted above.

                • 5. Re: Driver crash during HEVC playback w/DXVA2 (resume)
                  WiGuy

                  Hi Rondald, is there any more information I can provide to help you recreate this issue?

                  • 6. Re: Driver crash during HEVC playback w/DXVA2 (resume)
                    Intel Corporation
                    This message was posted on behalf of Intel Corporation

                    Hello all,
                     
                    Thank you for the information you kindly provided to replicate this issue.
                     
                    I was able to reproduce the issue with the driver version .4624; however, with the latest systems using driver version .4729 I was not able to reproduce it.
                     
                    The error I get when resume the video you can check the attachment.
                     
                    Thank you for your interest on reporting this issue and for your kindness.
                     
                    We will further investigate and once we get an answer it will be post here.
                     
                     
                    Best regards,
                     
                     
                    Ivan U.

                    • 7. Re: Driver crash during HEVC playback w/DXVA2 (resume)
                      WiGuy

                      Thank you for looking into this Ivan.

                      The error message you received is Kodi crashing as a result of the crash inside the intel driver as far as I'm told by the application developers.

                       

                      I couldn't find the updated driver you mentioned using the driver update utility, please see attached screenshot.  Can you advise me on how to proceed?

                      • 8. Re: Driver crash during HEVC playback w/DXVA2 (resume)
                        Com_DAC

                        From what I can find online the 4729 driver is only available for 6th and 7th generation graphics. For me this issue is happening with an HD5500 which only has the 4624 driver.

                        • 9. Re: Driver crash during HEVC playback w/DXVA2 (resume)
                          Ronald_Intel

                          Hello everyone,

                           

                          As Ivan mentioned, we reproduced this issue in our test lab, and a bug report has been filed with our development team, bug ID# 1406352370.

                          The main development work is probably going to be focused on 6th and 7th Generation drivers, but if it is fixed there, we could push for any potential fix to be ported to other driver branches.

                           

                          As soon as I have an update I'll post it here.

                           

                          Kindest Regards,

                          Ronald M.

                          • 10. Re: Driver crash during HEVC playback w/DXVA2 (resume)
                            WiGuy

                            Thanks for the response Ronald.

                            It seems that there might have been a fix introduced in .4729 but I don't think that version is available for our hardware (currently stuck at .4624).  Do you think it would be possible to port the fix over to an updated driver for 5th Generation Intel Graphics?

                            • 11. Re: Driver crash during HEVC playback w/DXVA2 (resume)
                              Ronald_Intel

                              Hello WiGuy,

                               

                              I got a reply from our debugging team. Upon reviewing the app crash dump, they think this is actually an issue coming from the Kodi application. I was trying to find a direct way to forward our debug results to the Kodi team, but I think the main contact point is their forums.

                              Do you know who can I contact from the Kodi dev team that can look at our debug results?

                               

                              Side Note: I think we are planning to release a new 15.40 driver (4th and 5th Generation) but I do not have an ETA yet.

                               

                              Kindest Regards,

                              Ronald M.

                              • 12. Re: Driver crash during HEVC playback w/DXVA2 (resume)
                                WiGuy

                                Thanks for following up Ronald,

                                Unfortunately I think your right with regards to the forums being the only way to reach out to the Kodi dev team.  I think if you post your request in the thread we have on Kodi's forums one would reach out to you.

                                https://forum.kodi.tv/showthread.php?tid=289533&page=4

                                 

                                I also noted one of the Team Kodi members "afedchin" seems to understand the underlying issue best, from his post on page 1.

                                https://forum.kodi.tv/showthread.php?tid=289533

                                 

                                Maybe try creating an account and message him directly?

                                • 13. Re: Driver crash during HEVC playback w/DXVA2 (resume)
                                  WiGuy

                                  Hi Ronald,

                                  I didn't have any luck with the Kodi devs unfortunately.  Do you know if this specific issue was identified inside the driver and subsequently fixed in the later releases for newer hardware?  I received a video driver update today via the intel driver update utility but tested for the issue again after a restart and am still crashing.

                                   

                                  Just wondering if a fix implemented on next gen drivers might be portable back to the 5th gen.

                                  • 14. Re: Driver crash during HEVC playback w/DXVA2 (resume)
                                    Ronald_Intel

                                    Hello Wiguy,

                                     

                                    The situation hasn't changed from my last update, that is, the bug identified as coming from Kodi application itself. I am adding the debug information below just in case a Kodi developer wishes to analyze it. Furthermore, since I am no developer, I think the fastest way a Kodi dev can work this directly with our development team is to post follow up questions or comments here: https://software.intel.com/en-us/forum

                                     

                                    It seems that this time, the stacks of the exception causing thread and call stack are same, i.e. exception has not gone by. And the stack points to the application (Kodi player).

                                    This is not a GFX driver issue since igd10umd32 related tasks were executing properly.

                                    Needs to be checked with Kodi development.

                                     

                                    0:030> g

                                    ModLoad: 00000000`6ab40000 00000000`6aba7000   C:\windows\SysWOW64\TextInputFramework.dll

                                    ModLoad: 00000000`6aab0000 00000000`6ab3f000   C:\windows\SysWOW64\CoreMessaging.dll

                                    ModLoad: 00000000`6a880000 00000000`6aaa7000   C:\windows\SysWOW64\CoreUIComponents.dll

                                    ModLoad: 00000000`6a850000 00000000`6a878000   C:\windows\SysWOW64\ntmarta.dll

                                    ModLoad: 00000000`6a770000 00000000`6a841000   C:\windows\SysWOW64\wintypes.dll

                                    ModLoad: 00000000`6a760000 00000000`6a770000   C:\windows\SysWOW64\usermgrcli.dll

                                    ModLoad: 00000000`0d470000 00000000`0d541000   C:\windows\SysWOW64\wintypes.dll

                                    ModLoad: 00000000`0d470000 00000000`0d541000   C:\windows\SysWOW64\wintypes.dll

                                    ModLoad: 00000000`68590000 00000000`6a760000   C:\windows\SysWOW64\igd11dxva32.dll

                                    D3D11: Removing Device.

                                    (cd4.e9c): C++ EH exception - code e06d7363 (first chance)

                                    (cd4.e9c): C++ EH exception - code e06d7363 (first chance)

                                    (cd4.e9c): C++ EH exception - code e06d7363 (first chance)

                                    (cd4.e9c): Access violation - code c0000005 (first chance)

                                    First chance exceptions are reported before any exception handling.

                                    This exception may be expected and handled.

                                    *** ERROR: Symbol file could not be found.  Defaulted to export symbols for ntdll.dll -

                                    *** WARNING: Unable to verify checksum for C:\Program Files (x86)\Kodi\kodi.exe

                                    *** ERROR: Module load completed but symbols could not be loaded for C:\Program Files (x86)\Kodi\kodi.exe

                                    ntdll_76f50000!RtlEnterCriticalSection+0x13:

                                    76f9b263 f00fba3000      lock btr dword ptr [eax],0   ds:002b:00000024=????????

                                     

                                    Current thread:

                                    0:033:x86> ~.

                                    . 33  Id: cd4.e9c Suspend: 1 Teb: 0051c000 Unfrozen "VideoPlayerVideo"

                                          Start: *** ERROR: Symbol file could not be found.  Defaulted to export symbols for ucrtbase.dll -

                                    ucrtbase!set_app_type+0x10 (7641e840)

                                          Priority: 0  Priority class: 32  Affinity: f

                                     

                                    Call stack for current thread(exception):

                                    0:033:x86> ~.k

                                    # ChildEBP RetAddr

                                    WARNING: Stack unwind information not available. Following frames may be wrong.

                                    00 10f8f450 0156b3cb ntdll_76f50000!RtlEnterCriticalSection+0x13

                                    01 10f8f490 0157fdd6 kodi+0x6cb3cb

                                    02 10f8f514 0155389d kodi+0x6dfdd6

                                    03 10f8f52c 014c532b kodi+0x6b389d

                                    04 10f8f5b0 014ccc31 kodi+0x62532b

                                    05 10f8f718 014cd7fa kodi+0x62cc31

                                    06 10f8f76c 014cd49f kodi+0x62d7fa

                                    07 10f8f7cc 0101f6ea kodi+0x62d49f

                                    08 10f8f804 01020001 kodi+0x17f6ea

                                    09 10f8f884 7641e87f kodi+0x180001

                                    *** ERROR: Symbol file could not be found.  Defaulted to export symbols for KERNEL32.dll -

                                    0a 10f8f8c0 73ad8744 ucrtbase!set_app_type+0x4f

                                    0b 10f8f8d4 76fb587d KERNEL32!BaseThreadInitThunk+0x24

                                    0c 10f8f91c 76fb584d ntdll_76f50000!RtlGetAppContainerNamedObjectPath+0xfd

                                    0d 10f8f92c 00000000 ntdll_76f50000!RtlGetAppContainerNamedObjectPath+0xcd

                                     

                                     

                                    Call Stack:

                                    0:033:x86> k

                                    # ChildEBP RetAddr

                                    WARNING: Stack unwind information not available. Following frames may be wrong.

                                    00 10f8f450 0156b3cb ntdll_76f50000!RtlEnterCriticalSection+0x13

                                    01 10f8f490 0157fdd6 kodi+0x6cb3cb

                                    02 10f8f514 0155389d kodi+0x6dfdd6

                                    03 10f8f52c 014c532b kodi+0x6b389d

                                    04 10f8f5b0 014ccc31 kodi+0x62532b

                                    05 10f8f718 014cd7fa kodi+0x62cc31

                                    06 10f8f76c 014cd49f kodi+0x62d7fa

                                    07 10f8f7cc 0101f6ea kodi+0x62d49f

                                    08 10f8f804 01020001 kodi+0x17f6ea

                                    09 10f8f884 7641e87f kodi+0x180001

                                    0a 10f8f8c0 73ad8744 ucrtbase!set_app_type+0x4f

                                    0b 10f8f8d4 76fb587d KERNEL32!BaseThreadInitThunk+0x24

                                    0c 10f8f91c 76fb584d ntdll_76f50000!RtlGetAppContainerNamedObjectPath+0xfd

                                    0d 10f8f92c 00000000 ntdll_76f50000!RtlGetAppContainerNamedObjectPath+0xcd

                                    1 2 Previous Next