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

SpatialTrigger Receiver fails to execute AudioSource.Play on Audiosource #162

Closed
6 tasks done
pkirsten opened this issue Jul 5, 2023 · 1 comment
Closed
6 tasks done
Labels
fixed → to verify but needs testing

Comments

@pkirsten
Copy link

pkirsten commented Jul 5, 2023

Describe the bug 💬

I use a Spatial Trigger Reciever, which should play a sound when a trigger object enters.
I connected an Audiosource in the On Enter Event and call AudioSource.Play.
I expected that the sound would play when I test it using the local server but the the renderer freezes and prompts the following error:

image

Operating System 👩‍💻

Windows

What browsers are you seeing the problem on? 🏄‍♂️

Chrome

Editor Version 🎲

2021.3

Needle Exporter version

3.6.13

Project Info (Unity only) 📜

{
  "ExportInfoGameObjectName": "Export",
  "ExportInfoGameObjectIsEnabled": true,
  "UnityProjectPath": "F:/Git/ukhalle-digivid/development/Digivid/Assets",
  "UnityVersion": "2021.3.15f1",
  "SceneName": "Audioplay",
  "ProjectPath": "Needle/Issues/Audioplay",
  "ProjectDirectoryExists": true,
  "ProjectIsInstalled": true,
  "NeedleEngineInstalled": true,
  "HasNodeInstalled": true,
  "NodeVersion": "v16.18.0",
  "NpmVersion": "8.19.2",
  "TypescriptVersion": "'\u0000t\u0000s\u0000c\u0000'\u0000 \u0000i\u0000s\u0000 \u0000n\u0000o\u0000t\u0000 \u0000r\u0000e\u0000c\u0000o\u0000g\u0000n\u0000i\u0000z\u0000e\u0000d\u0000 \u0000a\u0000s\u0000 \u0000a\u0000n\u0000 \u0000i\u0000n\u0000t\u0000e\u0000r\u0000n\u0000a\u0000l\u0000 \u0000o\u0000r\u0000 \u0000e\u0000x\u0000t\u0000e\u0000r\u0000n\u0000a\u0000l\u0000 \u0000c\u0000o\u0000m\u0000m\u0000a\u0000n\u0000d\u0000,\u0000; \u0000; \u0000o\u0000p\u0000e\u0000r\u0000a\u0000b\u0000l\u0000e\u0000 \u0000p\u0000r\u0000o\u0000g\u0000r\u0000a\u0000m\u0000 \u0000o\u0000r\u0000 \u0000b\u0000a\u0000t\u0000c\u0000h\u0000 \u0000f\u0000i\u0000l\u0000e\u0000.\u0000; \u0000; \u0000",
  "HasTokTxInstalled": true,
  "HasMinimumToktxVersionInstalled": true,
  "RenderPipeline": "URP-HighFidelity (UnityEngine.Rendering.Universal.UniversalRenderPipelineAsset)",
  "GzipEnabled": false,
  "NeedleEngineExporterVersion": "3.6.13",
  "NeedleEngineVersion": "3.6.15",
  "NeedleEngineExporterPath": "Packages/com.needle.engine-exporter/package.json",
  "NeedleEnginePath": "F:/Git/ukhalle-digivid/development/Digivid/Assets/../Needle/Issues/Audioplay/node_modules/@needle-tools/engine/package.json",
  "FileStats": "By Type:\r\n\t.json →  x 1 = 0.0 mb\r\n\t.png →  x 1 = 0.1 mb\r\n\t.mp3 →  x 1 = 0.0 mb\r\n\t.glb →  x 1 = 0.1 mb\r\n\t<b>Total = 0.2 mb</b>\r\n----\r\nBy Directory:\r\n\tassets →  x 4 = 0.2 mb\r\n",
  "NeedleComponentsInScene": [
    "Needle.Engine.ExportInfo",
    "Needle.Engine.Codegen.ComponentGenerator",
    "Needle.Engine.Deployment.DeployToGlitch",
    "Needle.Engine.Components.GltfObject",
    "Needle.Engine.Components.ObjectRaycaster",
    "Needle.Engine.Components.WebARSessionRoot",
    "Needle.Engine.Components.WebXR",
    "Needle.Engine.Components.OrbitControls",
    "Needle.Engine.Components.GridHelper",
    "Needle.Engine.Components.AxesHelper",
    "Needle.Engine.Components.SpatialTriggerReceiver",
    "Needle.Engine.Components.DragControls",
    "Needle.Engine.Components.SpatialTrigger"
  ],
  "TypeCacheIsDirty": false,
  "TypeScriptTypes": []
}

Steps to reproduce 🔢

1.Create a Spatial Trigger and Spatial Trigger Reciever, setup to use the same mask
2.Create an Audiossource with an audioclip
3.Assign the Audiosource in the On Enter Event of Spatial Trigger Reciever
4.Move the Spatial Trigger into the Reciever

Reproduction ♻

Bugreport-Audioplay-230705-062137_uw.zip

Discord or Discussion link

https://prefrontalcortex.slack.com/archives/C03SCU2KF7B/p1688570465356399

Validations 🩹

@pkirsten pkirsten added the untriaged Newly reported issue label Jul 5, 2023
@marwie marwie added fixed → to verify but needs testing and removed untriaged Newly reported issue labels Jul 6, 2023
@marwie
Copy link
Member

marwie commented Jul 6, 2023

should be fixed in 3.7.5-alpha

@marwie marwie closed this as completed Jul 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fixed → to verify but needs testing
Projects
None yet
Development

No branches or pull requests

2 participants