Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IndexOutOfRangeException: Invalid kernelIndex (0) passed, must be non-negative less than 20. #85

Closed
yuancaimaiyi opened this issue Dec 27, 2023 · 4 comments

Comments

@yuancaimaiyi
Copy link

@aras-p
Hello ,when I import 3DGS pointcloud to unity ,error:"IndexOutOfRangeException: Invalid kernelIndex (0) passed, must be non-negative less than 20. UnityEngine.ComputeShader.GetKernelThreadGroupSizes (System.Int32 kernelIndex, System.UInt32& x, System.UInt32& y, System.UInt32& z) (at <5cd59f99245548bdbfa6531b54530320>:0)
So,how do i solve it? thanks

@aras-p
Copy link
Owner

aras-p commented Dec 27, 2023

@yuancaimaiyi I'd need more details to be able to tell what's wrong.

  • Which Unity version?
  • What OS? (Windows, Mac, Linux)
  • Which project are you opening?
  • What is your GPU?
  • What is the full callstack of that error (it is shown in lower part of Unity Console window when you select that error)

@yuancaimaiyi
Copy link
Author

yuancaimaiyi commented Dec 28, 2023

@aras-p
Sorry, I forgot to mention my detailed environment.
platform: linux /ubuntu 18.04
unity version : Unityhub has tried various unity versions, 2022, 2023, etc.
project : I tried both master branch and tag v0.7.0
GPU : GTX 1660 Ti
detail error: IndexOutOfRangeException: Invalid kernelIndex (0) passed, must be non-negative less than 20. UnityEngine.ComputeShader.GetKernelThreadGroupSizes (System.Int32 kernelIndex, System.UInt32& x, System.UInt32& y, System.UInt32& z) (at <5cd59f99245548bdbfa6531b54530320>:0) GaussianSplatting.Runtime.GaussianSplatRenderer.InitSortBuffers (System.Int32 count) (at UnityGaussianSplatting/package/Runtime/GaussianSplatRenderer.cs:423) GaussianSplatting.Runtime.GaussianSplatRenderer.CreateResourcesForAsset () (at UnityGaussianSplatting/package/Runtime/GaussianSplatRenderer.cs:408) GaussianSplatting.Runtime.GaussianSplatRenderer.Update () (at UnityGaussianSplatting/package/Runtime/GaussianSplatRenderer.cs:614)

@michnaugh1
Copy link

Hi aras-p: Big thanks on your work on this project. I'm experiencing the same problem in this comment.

Platform: Win11, Ubuntu 22.10
project: 0.8.0
GPU: rtx 4070

I'm trying to use this to develop for an Meta Quest 3. Problem occurs when development set for Quest. No issues when running without Quest settings.

Thanks again. I've really enjoyed following this project.

@aras-p
Copy link
Owner

aras-p commented Dec 30, 2023

@michnaugh1 that sounds like the editor is in active platform (Android?) that has OpenGL ES (and not Vulkan) setup as the graphics API, i.e. issue #26 -- currently OpenGL or OpenGL ES is not supported.

@aras-p aras-p closed this as not planned Won't fix, can't repro, duplicate, stale Feb 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants