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

Opening and cancelling colour picker on PlatformColorPalette component crashes world #2

Closed
shiftyscales opened this issue Oct 7, 2023 · 1 comment
Assignees
Labels
bug Something isn't working as intended.

Comments

@shiftyscales
Copy link
Collaborator

Describe the bug?

When opening a platform colour, upon hitting 'cancel' on the picker, an unhandled exception is thrown crashing the world.

To Reproduce

  • Attach the PlatformColorPalette component (found in the Utility grouping) to a slot
  • Open one of the platform colours with the colour picker
  • Cancel the colour picker

resrec:///U-Shifty/R-87212473-6cf9-4a18-8cb7-aae974ea7aa4
Open a session of the above world, and cancel the colour picker.

Expected behavior

The platform colour should remain unmodified and the world should not crash.

Screenshots

image

Resonite Version Number

2023.10.6.1038

What Platforms does this occur on?

Windows

What headset if any do you use?

Desktop

Log Files

SHIFTY-LAPTOP - 2023.10.6.1038 - 2023-10-07 10_01_02.log
Relevant exception appears to be at line 2602.

10:02:14 AM.705 (162 FPS)	Unhandled Exception when updating world: Shifty World. State Running, Refresh Stage: ProtoFluxEvents, Init State: Finished, SyncTick 5623, StateVersion: 11246
Dumped world state to: C:/Users/Laura/AppData/Local/Temp/Yellow Dog Man Studios/Resonite\Cache\g18n2c3vrkk5652i.lz4bson
System.InvalidOperationException: Output field can be only updated from the update methods of its component
  at FrooxEngine.RawOutput`1[T].set_Value (T value) [0x00008] in <fed17e9233b14ab186c80aff64867c24>:0 
  at FrooxEngine.ProtoFlux.CoreNodes.FieldAsVariable`1[T].Write (T value, FrooxEngine.ProtoFlux.FrooxEngineContext context) [0x00043] in <fed17e9233b14ab186c80aff64867c24>:0 
  at ProtoFlux.Runtimes.Execution.Nodes.WriteBase`2[C,T].Run (C context) [0x00014] in <712d67076f074428b34c21311dbc5def>:0 
  at ProtoFlux.Runtimes.Execution.SyncOperationSequence`1[C].ExecuteSync (C context) [0x00031] in <712d67076f074428b34c21311dbc5def>:0 
  at ProtoFlux.Runtimes.Execution.ExecutionRuntime`1[C].ExecuteSequence (ProtoFlux.Core.ISyncOperation operation, C context) [0x00034] in <712d67076f074428b34c21311dbc5def>:0 
  at ProtoFlux.Runtimes.Execution.ExecutionRuntime`1[C].Execute (ProtoFlux.Core.ISyncOperation action, ProtoFlux.Runtimes.Execution.ExecutionContext context) [0x00012] in <712d67076f074428b34c21311dbc5def>:0 
  at ProtoFlux.Runtimes.Execution.Nodes.FrooxEngine.Interaction.ButtonEvents.OnPressed (FrooxEngine.IButton button, FrooxEngine.ButtonEventData& eventData, FrooxEngine.ProtoFlux.FrooxEngineContext context) [0x00008] in <5a62d066d2454949b7801d9c116b953a>:0 
  at ProtoFlux.Runtimes.Execution.Nodes.FrooxEngine.Interaction.ButtonEvents+<>c__DisplayClass20_1.<OnButtonChanged>b__6 (FrooxEngine.ProtoFlux.FrooxEngineContext c) [0x00000] in <5a62d066d2454949b7801d9c116b953a>:0 
  at ProtoFlux.Runtimes.Execution.ExecutionEventDispatcher`1+<>c__DisplayClass15_0[C].<ScheduleEvent>b__0 (C context, System.Object eventData) [0x00000] in <712d67076f074428b34c21311dbc5def>:0 
  at ProtoFlux.Runtimes.Execution.ExecutionEventDispatcher`1[C].DispatchEvents (ProtoFlux.Runtimes.Execution.ExecutionRuntime`1[C] runtime, C context) [0x0005b] in <712d67076f074428b34c21311dbc5def>:0 
  at FrooxEngine.ProtoFlux.ProtoFluxNodeGroup.RunNodeEvents () [0x00030] in <fed17e9233b14ab186c80aff64867c24>:0 
  at FrooxEngine.ProtoFlux.ProtoFluxController.RunNodeEvents () [0x0001c] in <fed17e9233b14ab186c80aff64867c24>:0 
  at FrooxEngine.World.RefreshStep () [0x003f4] in <fed17e9233b14ab186c80aff64867c24>:0 
  at FrooxEngine.World.Refresh () [0x00073] in <fed17e9233b14ab186c80aff64867c24>:0 
  at FrooxEngine.WorldManager.UpdateStep () [0x004a3] in <fed17e9233b14ab186c80aff64867c24>:0 

  at System.Environment.get_StackTrace () [0x00000] in <9577ac7a62ef43179789031239ba8798>:0 
  at Elements.Core.UniLog.Error (System.String message, System.Boolean stackTrace) [0x00000] in <9c21f0e5c97b48d9b393bb518dd53389>:0 
  at FrooxEngine.WorldManager.UpdateStep () [0x00000] in <fed17e9233b14ab186c80aff64867c24>:0 
  at FrooxEngine.WorldManager.RunUpdateLoop () [0x00000] in <fed17e9233b14ab186c80aff64867c24>:0 
  at FrooxEngine.Engine.UpdateStep () [0x00000] in <fed17e9233b14ab186c80aff64867c24>:0 
  at FrooxEngine.Engine.RunUpdateLoop () [0x00000] in <fed17e9233b14ab186c80aff64867c24>:0 
  at UnityFrooxEngineRunner.FrooxEngineRunner.UpdateFrooxEngine () [0x00000] in <c4ab429ec4194aae9edc4353a5ade5e1>:0 
  at UnityFrooxEngineRunner.FrooxEngineRunner.Update () [0x00000] in <c4ab429ec4194aae9edc4353a5ade5e1>:0 

Additional Context

Discovered this while opening a colour picker to grab the hex code for one of the platform colours.

Reporters

@shiftyscales

@shiftyscales shiftyscales added the bug Something isn't working as intended. label Oct 7, 2023
@shiftyscales shiftyscales self-assigned this Oct 7, 2023
@shiftyscales shiftyscales removed their assignment Oct 16, 2023
@Frooxius Frooxius self-assigned this Oct 17, 2023
@Frooxius
Copy link
Member

Fixed in 2023.10.17.464, thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working as intended.
Projects
None yet
Development

No branches or pull requests

2 participants