Search Issue Tracker
Fixed in 3.0.1
Found in [Package]
Invalid kernelIndex errors appear in the console when playing a tutorial project and creating 3D with Extras project
These errors appear in the console when following the Creator Kit: Puzzle tutorial, or making a new project with the 3d with extras template:
IndexOutOfRangeException: Invalid kernelIndex (1) passed, must be non-negative less than 4.
UnityEngine.Rendering.PostProcessing.MultiScaleVO.PushRenderCommands (UnityEngine.Rendering.CommandBuffer cmd, System.Int32 source, System.Int32 destination, UnityEngine.Vector3 sourceSize, System.Single tanHalfFovH, System.Boolean isMSAA) (at Library/PackageCachefirstname.lastname@example.org/PostProcessing/Runtime/Effects/MultiScaleVO.cs:371)
UnityEngine.Rendering.PostProcessing.MultiScaleVO.GenerateAOMap (UnityEngine.Rendering.CommandBuffer cmd, UnityEngine.Camera camera, UnityEngine.Rendering.RenderTargetIdentifier destination, System.Nullable`1[T] depthMap, System.Boolean invert, System.Boolean isMSAA) (at Library/PackageCacheemail@example.com/PostProcessing/Runtime/Effects/MultiScaleVO.cs:172)
UnityEngine.Rendering.PostProcessing.MultiScaleVO.RenderAfterOpaque (UnityEngine.Rendering.PostProcessing.PostProcessRenderContext context) (at Library/PackageCachefirstname.lastname@example.org/PostProcessing/Runtime/Effects/MultiScaleVO.cs:505)
UnityEngine.Rendering.PostProcessing.PostProcessLayer.BuildCommandBuffers () (at Library/PackageCacheemail@example.com/PostProcessing/Runtime/PostProcessLayer.cs:570)
UnityEngine.Rendering.PostProcessing.PostProcessLayer.OnPreCull () (at Library/PackageCachefirstname.lastname@example.org/PostProcessing/Runtime/PostProcessLayer.cs:462)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr, Boolean&)
- create a new project with the 3d with extras template
- notice the console
- if you clear the console but focus the Game Window, error reappears instantly
- error still spams console even after going into play mode
Reproducible with: 2020.1.0a24, 2020.1.0b5, 2020.2.0a5 (2.3.0)
Not reproducible with: 2019.3.0a5, 2020.1.0a23 (2.3.0)
Cannot reproduce this by simply adding the PostProcessing package to a new project made with the 3D Template and making a new PostProcessing effect.
There are 2 workarounds for this:
1 - reimport the project - or delete the Library folder and restart the project.
2 - delete the libcache folder - [Unity installation folder]\Unity\2020.1.0b8\Editor\Data\Resources\PackageManager\ProjectTemplates\libcache
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
- Filters dropdown: Window doesn't rescale on items collapse
- Sprite Preview is broken when the Sprite is too tall or too wide
- Objects are invisible in Scene view when using Wireframe Shading Mode
- Physics.Raycast does not work when used on the whole model
- Shader Graph changes the Position of Prefab instances in Play mode
Resolution Note (fix version 3.0.1):
The 3D+Extras template has been removed, but the issue itself has been fixed in 3.0.1.