Jump to content

Compute shader errors with splines


wilg
Go to solution Solved by Manny,

Recommended Posts

Roads and rivers are working wonky for me, and emitting lots of compute shader errors:

Compute shader (CheckLocation): Can't find kernel (0) variant with keywords: 
UnityEngine.StackTraceUtility:ExtractStackTrace ()
GeNa.Core.SpawnerShader:ProcessAabbTests (GeNa.Core.GeNaSpawnerData,System.Array,GeNa.Core.SpawnCriteria)
GeNa.Core.GeNaSpawnerInternal:ProcessAabbTests (GeNa.Core.GeNaSpawnerData,System.Array,GeNa.Core.SpawnCriteria,bool)
GeNa.Core.GeNaSpawnerInternal:CheckLocationForSpawn (GeNa.Core.GeNaSpawnerData,GeNa.Core.AabbTest,GeNa.Core.SpawnCriteria,bool)
GeNa.Core.GeNaSpawnerExtension:UpdateSpawnCallsGround (System.Collections.Generic.List`1<GeNa.Core.SpawnCall>) (at Assets/Procedural Worlds/GeNa/Scripts/Runtime/Extensions/GeNaSpawnerExtension.cs:213)
GeNa.Core.GeNaSpawnerExtension:PreExecute () (at Assets/Procedural Worlds/GeNa/Scripts/Runtime/Extensions/GeNaSpawnerExtension.cs:158)
GeNa.Core.GeNaSpline:UpdateSpline ()
GeNa.Core.GeNaSpline:Update ()
 

I'm using Unity 2021.3.7f1

Link to comment
Share on other sites

Hey @woffles,

This issue typically only occurs when your machine doesn't support compute shaders. 
Is there a way you can send me your system informaton? 
 

Here's a guide on how to export it if you're unsure:
https://success.trendmicro.com/dcx/s/solution/0115839-exporting-system-information-needed-for-technical-support?language=en_US#:~:text=Click File > Export.,System Information window will appear.

Link to comment
Share on other sites

6 hours ago, Manny said:

Hey @woffles,

This issue typically only occurs when your machine doesn't support compute shaders. 
Is there a way you can send me your system informaton? 
 

Here's a guide on how to export it if you're unsure:
https://success.trendmicro.com/dcx/s/solution/0115839-exporting-system-information-needed-for-technical-support?language=en_US#:~:text=Click File > Export.,System Information window will appear.

might've gotten me and the OP mixed up heh. @wilg is the person you're looking for, I assume.

Link to comment
Share on other sites

I'm sure my computer supports compute shaders - it's basically brand new.

Plus, the same thing happens on my Mac, which has an Apple M1 Max.

System Information report written at: 07/31/22 15:39:11
System Name: PEECEE
[System Summary]

Item    Value    
OS Name    Microsoft Windows 11 Pro    
Version    10.0.22000 Build 22000    
Other OS Description     Not Available    
OS Manufacturer    Microsoft Corporation    
System Name    PEECEE    
System Manufacturer    System manufacturer    
System Model    System Product Name    
System Type    x64-based PC    
System SKU    SKU    
Processor    AMD Ryzen 9 5900X 12-Core Processor, 3701 Mhz, 12 Core(s), 24 Logical Processor(s)    
BIOS Version/Date    American Megatrends Inc. 4005, 7/13/2021    
SMBIOS Version    3.3    
Embedded Controller Version    255.255    
BIOS Mode    UEFI    
BaseBoard Manufacturer    ASUSTeK COMPUTER INC.    
BaseBoard Product    ROG STRIX X570-E GAMING    
BaseBoard Version    Rev X.0x    
Platform Role    Desktop    
Secure Boot State    Off    
PCR7 Configuration    Elevation Required to View    
Windows Directory    C:\Windows    
System Directory    C:\Windows\system32    
Boot Device    \Device\HarddiskVolume1    
Locale    United States    
Hardware Abstraction Layer    Version = "10.0.22000.778"    
User Name    Peecee\wil    
Time Zone    Pacific Daylight Time    
Installed Physical Memory (RAM)    32.0 GB    
Total Physical Memory    31.9 GB    
Available Physical Memory    15.5 GB    
Total Virtual Memory    36.7 GB    
Available Virtual Memory    7.46 GB    
Page File Space    4.75 GB    
Page File    C:\pagefile.sys    
Kernel DMA Protection    Off    
Virtualization-based security    Not enabled    
Device Encryption Support    Elevation Required to View    
Hyper-V - VM Monitor Mode Extensions    Yes    
Hyper-V - Second Level Address Translation Extensions    Yes    
Hyper-V - Virtualization Enabled in Firmware    No    
Hyper-V - Data Execution Protection    Yes    

[Hardware Resources]

[Conflicts/Sharing]

Resource    Device    
I/O Port 0x00000000-0x000003AF    PCI Express Root Complex    
I/O Port 0x00000000-0x000003AF    Direct memory access controller    
        
Memory Address 0xFCC00000-0xFCC03FFF    Standard NVM Express Controller    
Memory Address 0xFCC00000-0xFCC03FFF    PCI-to-PCI Bridge    
        
Memory Address 0xFC700000-0xFC70FFFF    Realtek Gaming 2.5GbE Family Controller    
Memory Address 0xFC700000-0xFC70FFFF    PCI-to-PCI Bridge    
        
I/O Port 0x0000F000-0x0000FFFF    PCI-to-PCI Bridge    
I/O Port 0x0000F000-0x0000FFFF    NVIDIA GeForce RTX 3080 Ti    
        
Memory Address 0xFC200000-0xFC8FFFFF    PCI-to-PCI Bridge    
Memory Address 0xFC200000-0xFC8FFFFF    PCI-to-PCI Bridge    
Memory Address 0xFC200000-0xFC8FFFFF    PCI-to-PCI Bridge    
Memory Address 0xFC200000-0xFC8FFFFF    AMD USB 3.10 eXtensible Host Controller - 1.10 (Microsoft)    
        
Memory Address 0xFC900000-0xFCBFFFFF    PCI-to-PCI Bridge    
Memory Address 0xFC900000-0xFCBFFFFF    AMD USB 3.10 eXtensible Host Controller - 1.10 (Microsoft)    
        
IRQ 55    Microsoft ACPI-Compliant System    
IRQ 55    High Definition Audio Controller    
        
Memory Address 0xFC500000-0xFC5007FF    Standard SATA AHCI Controller    
Memory Address 0xFC500000-0xFC5007FF    PCI-to-PCI Bridge    
        
Memory Address 0xFB000000-0xFC0FFFFF    PCI-to-PCI Bridge    
Memory Address 0xFB000000-0xFC0FFFFF    NVIDIA GeForce RTX 3080 Ti    
        
Memory Address 0xFC400000-0xFC4007FF    Standard SATA AHCI Controller    
Memory Address 0xFC400000-0xFC4007FF    PCI-to-PCI Bridge    
        
I/O Port 0x0000E000-0x0000E0FF    Realtek Gaming 2.5GbE Family Controller    
I/O Port 0x0000E000-0x0000E0FF    PCI-to-PCI Bridge    
        
Memory Address 0xFEE00000-0xFFFFFFFF    PCI Express Root Complex    
Memory Address 0xFEE00000-0xFFFFFFFF    Motherboard resources    
        
Memory Address 0xD0000000-0xFEC02FFF    PCI Express Root Complex    
Memory Address 0xD0000000-0xFEC02FFF    PCI-to-PCI Bridge    
Memory Address 0xD0000000-0xFEC02FFF    NVIDIA GeForce RTX 3080 Ti    
        
Memory Address 0xFC600000-0xFC61FFFF    Intel(R) I211 Gigabit Network Connection    
Memory Address 0xFC600000-0xFC61FFFF    PCI-to-PCI Bridge    
        
IRQ 0    System timer    
IRQ 0    High precision event timer    
        
I/O Port 0x0000D000-0x0000DFFF    PCI-to-PCI Bridge    
I/O Port 0x0000D000-0x0000DFFF    PCI-to-PCI Bridge    
I/O Port 0x0000D000-0x0000DFFF    PCI-to-PCI Bridge    

 

Link to comment
Share on other sites

Also, I believe something broke after install, because I also get compute shader errors now when painting terrain with a Gaia spawner, and in all sorts of other situations. That worked originally. I have reimported Gaia and GeNA multiple times.

Link to comment
Share on other sites

Some more stack traces:

 

Compute shader (SimulateSpawnResult): Can't find kernel (0) variant with keywords: 
UnityEngine.StackTraceUtility:ExtractStackTrace ()
Gaia.Spawner:SimulateRule (Gaia.GaiaMultiTerrainOperation,int) (at Assets/Procedural Worlds/Gaia/Scripts/SpawningSystem/Spawner.cs:3199)
Gaia.Spawner:ExecuteSpawn (Gaia.GaiaMultiTerrainOperation,Gaia.BakedMaskCache,int,int&,bool) (at Assets/Procedural Worlds/Gaia/Scripts/SpawningSystem/Spawner.cs:2711)
Gaia.Spawner/<AreaSpawn>d__217:MoveNext () (at Assets/Procedural Worlds/Gaia/Scripts/SpawningSystem/Spawner.cs:2344)
Gaia.Spawner:EditorUpdate () (at Assets/Procedural Worlds/Gaia/Scripts/SpawningSystem/Spawner.cs:1009)
UnityEditor.EditorApplication:Internal_CallUpdateFunctions ()
 

 

SimulateSpawnResult.compute: Kernel at index (0) is invalid
UnityEngine.StackTraceUtility:ExtractStackTrace ()
Gaia.Spawner:SimulateRule (Gaia.GaiaMultiTerrainOperation,int) (at Assets/Procedural Worlds/Gaia/Scripts/SpawningSystem/Spawner.cs:3199)
Gaia.Spawner:ExecuteSpawn (Gaia.GaiaMultiTerrainOperation,Gaia.BakedMaskCache,int,int&,bool) (at Assets/Procedural Worlds/Gaia/Scripts/SpawningSystem/Spawner.cs:2711)
Gaia.Spawner/<AreaSpawn>d__217:MoveNext () (at Assets/Procedural Worlds/Gaia/Scripts/SpawningSystem/Spawner.cs:2344)
Gaia.Spawner:EditorUpdate () (at Assets/Procedural Worlds/Gaia/Scripts/SpawningSystem/Spawner.cs:1009)
UnityEditor.EditorApplication:Internal_CallUpdateFunctions ()
 

Link to comment
Share on other sites

Hey guys!

@wilg, Thank you so much for posting all the detailed information about the errors you're experiencing here. 
I've seen this error numerous times in the past and I only suggested looking if your computer supports compute shaders because it usually is in relation to that. 

However, I've also found that when those shaders fail to compile, it produces the exact same errors. This error basically means that the kernel inside that specific shader cannot be found, which typically means that it failed to compile. With that in mind, I have a few trouble-shooting things you can try and get back to me if they don't work so we can investigate further:

  1. Try completely deleting the GeNa folder and re-importing the asset from the asset store.
  2. Please select the file 'GeNaCarve' located in 'Procedural Worlds/GeNa/Resouces/Compute/Terrain Tools' and see if there are any outstanding errors in the Inspector window.
Link to comment
Share on other sites

I didn't see any errors in any compute shaders in the project, either in the inspector or the console.

I tried deleting and re-importing both Gaia and Gena (and my Polygon Nature spawner pack). I'm not seeing the issue with roads now (though maybe it always worked?). I still see errors with both river splines and the polygon nature spawners.

Worth noting that Unity crashed while importing GeNa. I tried twice. It looked like it crashed after the assets were compiled and while GeNa was upgrading its spawners or whatnot.

I also got this message on import:

image.thumb.png.dd40d0071b795a61d5a1d3907f99663a.png

Also, now my scene view is flickering black rapidly if I try to make a river spline.

CheckLocation.compute: Kernel at index (0) is invalid
UnityEngine.StackTraceUtility:ExtractStackTrace ()
GeNa.Core.SpawnerShader:ProcessAabbTests (GeNa.Core.GeNaSpawnerData,System.Array,GeNa.Core.SpawnCriteria)
GeNa.Core.GeNaSpawnerInternal:ProcessAabbTests (GeNa.Core.GeNaSpawnerData,System.Array,GeNa.Core.SpawnCriteria,bool)
GeNa.Core.GeNaSpawnerInternal:CheckLocationForSpawn (GeNa.Core.GeNaSpawnerData,GeNa.Core.AabbTest,GeNa.Core.SpawnCriteria,bool)
GeNa.Core.GeNaSpawnerExtension:UpdateSpawnCallsGround (System.Collections.Generic.List`1<GeNa.Core.SpawnCall>) (at Assets/Procedural Worlds/GeNa/Scripts/Runtime/Extensions/GeNaSpawnerExtension.cs:213)
GeNa.Core.GeNaSpawnerExtension:PreExecute () (at Assets/Procedural Worlds/GeNa/Scripts/Runtime/Extensions/GeNaSpawnerExtension.cs:158)
GeNa.Core.GeNaSpline:UpdateSpline ()
GeNa.Core.GeNaSpline:Update ()
 

Compute shader (CheckLocation): Can't find kernel (0) variant with keywords: 
UnityEngine.StackTraceUtility:ExtractStackTrace ()
GeNa.Core.SpawnerShader:ProcessAabbTests (GeNa.Core.GeNaSpawnerData,System.Array,GeNa.Core.SpawnCriteria)
GeNa.Core.GeNaSpawnerInternal:ProcessAabbTests (GeNa.Core.GeNaSpawnerData,System.Array,GeNa.Core.SpawnCriteria,bool)
GeNa.Core.GeNaSpawnerInternal:CheckLocationForSpawn (GeNa.Core.GeNaSpawnerData,GeNa.Core.AabbTest,GeNa.Core.SpawnCriteria,bool)
GeNa.Core.GeNaSpawnerExtension:UpdateSpawnCallsGround (System.Collections.Generic.List`1<GeNa.Core.SpawnCall>) (at Assets/Procedural Worlds/GeNa/Scripts/Runtime/Extensions/GeNaSpawnerExtension.cs:213)
GeNa.Core.GeNaSpawnerExtension:PreExecute () (at Assets/Procedural Worlds/GeNa/Scripts/Runtime/Extensions/GeNaSpawnerExtension.cs:158)
GeNa.Core.GeNaSpline:UpdateSpline ()
GeNa.Core.GeNaSpline:Update ()

Link to comment
Share on other sites

  • Solution
On 8/1/2022 at 1:04 PM, wilg said:

I didn't see any errors in any compute shaders in the project, either in the inspector or the console.

I tried deleting and re-importing both Gaia and Gena (and my Polygon Nature spawner pack). I'm not seeing the issue with roads now (though maybe it always worked?). I still see errors with both river splines and the polygon nature spawners.

Worth noting that Unity crashed while importing GeNa. I tried twice. It looked like it crashed after the assets were compiled and while GeNa was upgrading its spawners or whatnot.

I also got this message on import:

image.thumb.png.dd40d0071b795a61d5a1d3907f99663a.png

Also, now my scene view is flickering black rapidly if I try to make a river spline.

CheckLocation.compute: Kernel at index (0) is invalid
UnityEngine.StackTraceUtility:ExtractStackTrace ()
GeNa.Core.SpawnerShader:ProcessAabbTests (GeNa.Core.GeNaSpawnerData,System.Array,GeNa.Core.SpawnCriteria)
GeNa.Core.GeNaSpawnerInternal:ProcessAabbTests (GeNa.Core.GeNaSpawnerData,System.Array,GeNa.Core.SpawnCriteria,bool)
GeNa.Core.GeNaSpawnerInternal:CheckLocationForSpawn (GeNa.Core.GeNaSpawnerData,GeNa.Core.AabbTest,GeNa.Core.SpawnCriteria,bool)
GeNa.Core.GeNaSpawnerExtension:UpdateSpawnCallsGround (System.Collections.Generic.List`1<GeNa.Core.SpawnCall>) (at Assets/Procedural Worlds/GeNa/Scripts/Runtime/Extensions/GeNaSpawnerExtension.cs:213)
GeNa.Core.GeNaSpawnerExtension:PreExecute () (at Assets/Procedural Worlds/GeNa/Scripts/Runtime/Extensions/GeNaSpawnerExtension.cs:158)
GeNa.Core.GeNaSpline:UpdateSpline ()
GeNa.Core.GeNaSpline:Update ()
 

Compute shader (CheckLocation): Can't find kernel (0) variant with keywords: 
UnityEngine.StackTraceUtility:ExtractStackTrace ()
GeNa.Core.SpawnerShader:ProcessAabbTests (GeNa.Core.GeNaSpawnerData,System.Array,GeNa.Core.SpawnCriteria)
GeNa.Core.GeNaSpawnerInternal:ProcessAabbTests (GeNa.Core.GeNaSpawnerData,System.Array,GeNa.Core.SpawnCriteria,bool)
GeNa.Core.GeNaSpawnerInternal:CheckLocationForSpawn (GeNa.Core.GeNaSpawnerData,GeNa.Core.AabbTest,GeNa.Core.SpawnCriteria,bool)
GeNa.Core.GeNaSpawnerExtension:UpdateSpawnCallsGround (System.Collections.Generic.List`1<GeNa.Core.SpawnCall>) (at Assets/Procedural Worlds/GeNa/Scripts/Runtime/Extensions/GeNaSpawnerExtension.cs:213)
GeNa.Core.GeNaSpawnerExtension:PreExecute () (at Assets/Procedural Worlds/GeNa/Scripts/Runtime/Extensions/GeNaSpawnerExtension.cs:158)
GeNa.Core.GeNaSpline:UpdateSpline ()
GeNa.Core.GeNaSpline:Update ()

That message shows up in newer versions of GeNa because we originally made it originally supported by 2020.3 and Unity went ahead and moved the 'TerrainCallbacks' class to another namespace so internal DLL methods needed to be re-referenced. So unfortunately we can't remove this message because it would cause GeNa to not be backwards compatible.

Did you click 'Yes' on that message? 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Tell a friend

    Love Canopy - Procedural Worlds? Tell a friend!
  • Need help?

    We work with some of the biggest brands in global gaming, automotive, technology, and government to create environments, games, simulations, and product launches for desktop, mobile, and VR.

    Our unique expertise and technology enable us to deliver solutions that look and run better at a fraction of the time and cost of a typical project.

    Check out some of our non-NDA work in the Gallery, and then Contact Us to accelerate your next project!

×
×
  • Create New...