Graphics
Intel® graphics drivers and software, compatibility, troubleshooting, performance, and optimization

[Vulkan] Access violation at the vkCreateSwapchainKHR call at 64-bit binaries

Benjamin_Rosseaux
2,476 Views
System Setup Information:
-----------------------------------------
 
System Used: Lenovo Thinkpad T480
CPU SKU: Intel Core i5 8250u
GPU SKU: Inel UHD Graphics 620 
Processor Line: U-Series
System BIOS Version: Not important here
CMOS settings: Not important here
Graphics Driver Version: 24.20.100.6286
GOP/VBIOS Version: 9.0.1073
Operating System: Windows 10
OS Version: 10.0.17134
API: Vulkan
Occurs on non-Intel GPUs?: No, with my NVIDIA Geforce MX150, GTX970, GTX1060 and AMD Radeon RX580 on Windows, it works without any problems. 
 
Steps to Reproduce:
-------------------------------
2. Extract the ZIP to somewhere
3. Run pasvulkan_intel_win64_bug\bin\start_win32_prefer_integrated_gpu.bat (should work)
4. Run pasvulkan_intel_win64_bug\bin\start_win64_prefer_integrated_gpu.bat (should raise an access violation at the vkCreateSwapchainKHR call on the Intel iGPU driver) 
 
Expected Results:
-------------------------------
 
That start_win64_prefer_integrated_gpu.bat works 
 
Actual Results:
-------------------------------
 
A access violation at the vkCreateSwapchainKHR call with the 64-bit binary
 
Additional Information:
-------------------------------
 
The same 64-bit binary worked with older driver versions.
 
DoeeFQ3XsAAXSI8a.jpg
 
0 Kudos
6 Replies
Benjamin_Rosseaux
2,476 Views

It seems to have been fixed with 25.20.100.6323 under Windows 10 1809 (Build 17763.1), at least the PasVulkan 64-bit examples binary runs with this newer 25.20.100.6323 driver version again with the Intel UHD Graphics 620 without an access violation at the vkCreateSwapchainKHR call. And the problem with the push constants also seems to be finally fixed, really very good, because this was a true show-stopper for me.

0 Kudos
AKapo3
Beginner
2,476 Views

I'm hitting what looks like the same issue on a desktop with Intel integrated GPU and NVidia GPU.

When the monitor is plugged into the Intel GPU, I can create devices & swapchains using both Intel & NVidia physical devices.

However, when the monitor is plugged into the NVidia GPU, I can create NVidia device & swapchain without issues, but creating Intel device & swapchain crashes.

This does happen for me on most recent drivers - 25.20.100.6326. My Windows 10 version is 1803 (build 17134.345).

The crash is in the driver thread with the following callstack:

> ig9icd64.dll!00007ffcad02e846() Unknown
  ig9icd64.dll!00007ffcad15ba16() Unknown
  ig9icd64.dll!00007ffcad02774a() Unknown
  igvk64.dll!00007ffcb2384619() Unknown
  igvk64.dll!00007ffcb2382ff8() Unknown
  igvk64.dll!00007ffcb2384ed5() Unknown
  igvk64.dll!00007ffcb2389081() Unknown
  igvk64.dll!00007ffcb244bc60() Unknown
  kernel32.dll!BaseThreadInitThunk() Unknown
  ntdll.dll!RtlUserThreadStart() Unknown
 

In the following location:

00007FFCAD02E840  push        rdi  
00007FFCAD02E842  sub         rsp,20h  
00007FFCAD02E846  cmp         qword ptr [rcx+1B8h],0  

rcx is 0, so dereference fails. Meanwhile main thread (that called vkCreateSwapchainKHR) is waiting for the other thread in the following stack:

  ntdll.dll!NtWaitForAlertByThreadId() Unknown

  ntdll.dll!RtlSleepConditionVariableSRW() Unknown
  KernelBase.dll!SleepConditionVariableSRW() Unknown
  igvk64.dll!00007ffcb241ffa8() Unknown
  igvk64.dll!00007ffcb241fe73() Unknown
  igvk64.dll!00007ffcb2381a7a() Unknown
  igvk64.dll!00007ffcb23817c5() Unknown
  igvk64.dll!00007ffcb238006a() Unknown
  igvk64.dll!00007ffcb237d5a4() Unknown
  vulkan-1.dll!00007ffced1683e4() Unknown
> VkLayer_unique_objects.dll!unique_objects::CreateSwapchainKHR(VkDevice_T * device, const VkSwapchainCreateInfoKHR * pCreateInfo, const VkAllocationCallbacks * pAllocator, VkSwapchainKHR_T * * pSwapchain) Line 490 C++
 
 
0 Kudos
Benjamin_Rosseaux
2,476 Views

Here it is the other way round, on my Lenovo Thinkpad T480 the internal Notebook display and all external monitors are internally connected to the Intel UHD Graphics 620 integrated GPU from the i5-8250U CPU, so the NVIDIA Geforce MX150 dedicated GPU in my Thinkpad must copy over its swapchain surface framebuffer to the framebuffer from the Intel UHD Graphics 620 integrated GPU.

0 Kudos
Erik_Jansson
Beginner
2,476 Views

Hey guys, glad I'm not the only one having problems with this. My Vulkan renderer started to segfault a couple of weeks back on some Intel integrated hardware, and at first I thought I might have screwed something up, but going back within my Git tree showed otherwise. As other have pointed out, this happens when creating a swapchain: vkCreateSwapchainKHR, only when I build for 64-bit applications.

Call Stack from Visual Studio:

ig9icd64.dll!00007ffd8fabb506()
ig9icd64.dll!00007ffd8fbe7706()
ig9icd64.dll!00007ffd8fab437a()
igvk64.dll!00007ffd9373e9d9()
igvk64.dll!00007ffd9373d3b8()
igvk64.dll!00007ffd9373f295()
igvk64.dll!00007ffd93743481()
igvk64.dll!00007ffd93806890()
kernel32.dll!00007ffddc663034()
ntdll.dll!00007ffdde691471()

Hardware where this happens:

Processor: Intel (R) Core(TM) i5-8250U CPU @ 1.60 GHz 1.80 GHZ

Integrated: Intel (R) UHD Graphics 620 

Dedicated: NVIDIA Geforce MX150 2G

Looking at other people's machines in this thread and it seems to be very specific to this setup. Has anyone reported a Intel driver bug? Is anyone from Intel already working on a fix? An official confirmation from Intel that this is a problem, and a bug report, would be nice...

0 Kudos
pecoraro__alex
Beginner
2,476 Views

I have pretty much the same issue, but with Intel HD Graphics 630 driver version: 25.20.100.6472. The Nvidia hardware is a Quadro M1200. What I see is that if I enable validation layers in Vulkan then vkCreateSwapchainKHR returns VK_SUCCESS and the VkSwapChain handle appears to be valid, but when I call vkGetSwapChainImagesKHR it segfaults with an access violation. If I don't enable validation layers then vkCreateSwapChainKHR return VK_SUCCESS, but this time the returned VkSwapChain handle is VK_NULL_HANDLE, which then I still get an access violation inside the call to vkGetSwapChainImagesKHR. This happens in my own code and also in the Vulkan tutorial code linked from Intel's developer site https://software.intel.com/en-us/articles/api-without-secrets-introduction-to-vulkan-part-1 (I did have to tinker with it a bit to force it to use the Intel GPU, but that just consisted of checking the vendorID in the VulkanCommon::CheckPhysicalDeviceProperties function).

0 Kudos
Hidden__Jon
Beginner
2,476 Views

Hello,

everything was working perfectly... I have an nvidia gtx1060 that always works. My cpu is a coffe lake 8700K with a igpu uhd630 on a gigabyte aorus z370 ultragaming. If I set my initial display on the Bios to be the igpu both graphics devices works. But if I set the gtx1060 to be the initial display then the uhd630 fails on SwapChain creation with the exception:

Unhandled exception at 0x00007FFA0ADEEF86 (ig9icd64.dll) in medium.exe: 0xC0000005: Access violation reading location 0x00000000000001C8. occurred

Disassembly:

....

00007FFA0ADEEF80  push        rdi  
00007FFA0ADEEF82  sub         rsp,20h  
00007FFA0ADEEF86  cmp         qword ptr [rcx+1C8h],0  

....

I suppouse that is after a windows 10 update, but i tried to rollback to a previous driver without success 😞 I got problems with signatures and incompatibilities....

The Windows 10 last updates on the history where i thing the issue might be are:

Thanks for any hint!

==================================================
Name              : 
Description       : Intel Corporation - Display - 11/19/2018 12:00:00 AM - 25.20.100.6444
Installed By      : 
Installation Date : 20/05/2019 20:21:06
Display Version   : 
Update Type       : Device Driver Retrieval Client
Application       : 
Web Link          : http://support.microsoft.com/select/?target=hub
Uninstall Command : 
Last Modified Time: 20/05/2019 20:21:06
Long Description  : Intel Corporation Display  driver update released in  November 2018
==================================================

==================================================
Name              : 
Description       : Intel Corporation - Display - 11/19/2018 12:00:00 AM - 25.20.100.6444
Installed By      : 
Installation Date : 20/05/2019 19:44:40
Display Version   : 
Update Type       : Device Driver Retrieval Client
Application       : 
Web Link          : http://support.microsoft.com/select/?target=hub
Uninstall Command : 
Last Modified Time: 20/05/2019 19:44:40
Long Description  : Intel Corporation Display  driver update released in  November 2018
==================================================

==================================================
Name              : 
Description       : Intel Corporation - Display - 11/19/2018 12:00:00 AM - 25.20.100.6444
Installed By      : 
Installation Date : 20/05/2019 19:41:48
Display Version   : 
Update Type       : Device Driver Retrieval Client
Application       : 
Web Link          : http://support.microsoft.com/select/?target=hub
Uninstall Command : 
Last Modified Time: 20/05/2019 19:41:48
Long Description  : Intel Corporation Display  driver update released in  November 2018
==================================================

==================================================
Name              : 
Description       : Intel Corporation - Display - 11/19/2018 12:00:00 AM - 25.20.100.6444
Installed By      : 
Installation Date : 20/05/2019 19:39:19
Display Version   : 
Update Type       : Device Driver Retrieval Client
Application       : 
Web Link          : http://support.microsoft.com/select/?target=hub
Uninstall Command : 
Last Modified Time: 20/05/2019 19:39:19
Long Description  : Intel Corporation Display  driver update released in  November 2018
==================================================

==================================================
Name              : 
Description       : Intel Corporation - Display - 11/19/2018 12:00:00 AM - 25.20.100.6444
Installed By      : 
Installation Date : 20/05/2019 19:22:46
Display Version   : 
Update Type       : Device Driver Retrieval Client
Application       : 
Web Link          : http://support.microsoft.com/select/?target=hub
Uninstall Command : 
Last Modified Time: 20/05/2019 19:22:46
Long Description  : Intel Corporation Display  driver update released in  November 2018
==================================================

==================================================
Name              : 
Description       : Intel Corporation - Display - 11/19/2018 12:00:00 AM - 25.20.100.6444
Installed By      : 
Installation Date : 20/05/2019 19:15:49
Display Version   : 
Update Type       : Device Driver Retrieval Client
Application       : 
Web Link          : http://support.microsoft.com/select/?target=hub
Uninstall Command : 
Last Modified Time: 20/05/2019 19:15:49
Long Description  : Intel Corporation Display  driver update released in  November 2018
==================================================

==================================================
Name              : KB4505056
Description       : 2019-05 Cumulative Update for Windows 10 Version 1809 for x64-based Systems (KB4505056)
Installed By      : 
Installation Date : 20/05/2019 18:40:52
Display Version   : 
Update Type       : UpdateOrchestrator
Application       : 
Web Link          : http://support.microsoft.com/kb/4505056
Uninstall Command : 
Last Modified Time: 20/05/2019 18:40:52
Long Description  : Install this update to resolve issues in Windows. For a complete listing of the issues that are included in this update, see the associated Microsoft Knowledge Base article for more information. After you install this item, you may have to restart your computer.
==================================================

==================================================
Name              : KB4494441
Description       : 2019-05 Cumulative Update for Windows 10 Version 1809 for x64-based Systems (KB4494441)
Installed By      : 
Installation Date : 16/05/2019 18:33:21
Display Version   : 
Update Type       : UpdateOrchestrator
Application       : 
Web Link          : http://support.microsoft.com/kb/4494441
Uninstall Command : 
Last Modified Time: 16/05/2019 18:33:21
Long Description  : Install this update to resolve issues in Windows. For a complete listing of the issues that are included in this update, see the associated Microsoft Knowledge Base article for more information. After you install this item, you may have to restart your computer.
==================================================

==================================================
Name              : KB4494441
Description       : 2019-05 Cumulative Update for Windows 10 Version 1809 for x64-based Systems (KB4494441)
Installed By      : 
Installation Date : 15/05/2019 18:19:09
Display Version   : 
Update Type       : UpdateOrchestrator
Application       : 
Web Link          : http://support.microsoft.com/kb/4494441
Uninstall Command : 
Last Modified Time: 15/05/2019 18:19:09
Long Description  : Install this update to resolve issues in Windows. For a complete listing of the issues that are included in this update, see the associated Microsoft Knowledge Base article for more information. After you install this item, you may have to restart your computer.
==================================================

==================================================
Name              : KB4497932
Description       : 2019-05 Security Update for Adobe Flash Player for Windows 10 Version 1809 for x64-based Systems (KB4497932)
Installed By      : 
Installation Date : 15/05/2019 18:19:04
Display Version   : 
Update Type       : UpdateOrchestrator
Application       : 
Web Link          : http://support.microsoft.com/kb/4497932
Uninstall Command : 
Last Modified Time: 15/05/2019 18:19:04
Long Description  : A security issue has been identified in a Microsoft software product that could affect your system. You can help protect your system by installing this update from Microsoft. For a complete listing of the issues that are included in this update, see the associated Microsoft Knowledge Base article. After you install this update, you may have to restart your system.
==================================================

==================================================
Name              : KB4499405
Description       : 2019-05 Cumulative Update for .NET Framework 3.5, 4.7.2 and 4.8 for Windows 10 Version 1809 for x64 (KB4499405)
Installed By      : 
Installation Date : 15/05/2019 18:17:04
Display Version   : 
Update Type       : UpdateOrchestrator
Application       : 
Web Link          : http://support.microsoft.com/kb/4499405
Uninstall Command : 
Last Modified Time: 15/05/2019 18:17:04
Long Description  : A security issue has been identified in a Microsoft software product that could affect your system. You can help protect your system by installing this update from Microsoft. For a complete listing of the issues that are included in this update, see the associated Microsoft Knowledge Base article. After you install this update, you may have to restart your system.
==================================================

==================================================
Name              : KB4495667
Description       : 2019-04 Cumulative Update for Windows 10 Version 1809 for x64-based Systems (KB4495667)
Installed By      : 
Installation Date : 04/05/2019 19:51:25
Display Version   : 
Update Type       : UpdateOrchestrator
Application       : 
Web Link          : http://support.microsoft.com/kb/4495667
Uninstall Command : 
Last Modified Time: 04/05/2019 19:51:25
Long Description  : Install this update to resolve issues in Windows. For a complete listing of the issues that are included in this update, see the associated Microsoft Knowledge Base article for more information. After you install this item, you may have to restart your computer.
==================================================

==================================================
Name              : KB4480056
Description       : 2019-01 Cumulative Update for .NET Framework 3.5 and 4.7.2 for Windows 10 Version 1809 for x64 (KB4480056)
Installed By      : 
Installation Date : 02/05/2019 19:01:04
Display Version   : 
Update Type       : UpdateOrchestrator
Application       : 
Web Link          : http://support.microsoft.com/kb/4480056
Uninstall Command : 
Last Modified Time: 02/05/2019 19:01:04
Long Description  : A security issue has been identified in a Microsoft software product that could affect your system. You can help protect your system by installing this update from Microsoft. For a complete listing of the issues that are included in this update, see the associated Microsoft Knowledge Base article. After you install this update, you may have to restart your system.
==================================================

==================================================
Name              : KB4486553
Description       : 2019-02 Cumulative Update for .NET Framework 3.5 and 4.7.2 for Windows 10 Version 1809 for x64 (KB4486553)
Installed By      : 
Installation Date : 30/04/2019 00:57:34
Display Version   : 
Update Type       : UpdateOrchestrator
Application       : 
Web Link          : http://support.microsoft.com/kb/4486553
Uninstall Command : 
Last Modified Time: 30/04/2019 00:57:34
Long Description  : Install this update to resolve issues in Windows. For a complete listing of the issues that are included in this update, see the associated Microsoft Knowledge Base article for more information. After you install this item, you may have to restart your computer.
==================================================

0 Kudos
Reply