Yellow-Dog-Man / Resonite-Issues

Issue repository for Resonite.
https://resonite.com
140 stars 2 forks source link

Using the OpenWorld PF with a non-world resrec, causes an undismissable world loading indicator #3181

Open ProbablePrime opened 1 week ago

ProbablePrime commented 1 week ago

Describe the bug?

Using the OpenWorld PF with a non-world resrec, causes an undismissable world loading indicator, with exceptions in the logs.

I only tested, a folder. But based on the handling, we should verify the record is a world before attempting to treat it as one.

To Reproduce

  1. Spawn out a "OpenWorld" ProtoFlux Node
  2. Specify the URI, as a non-world resrec link, e.g. a folder: resrec:///U-Dankman69/R-D0F749129F2B125BE356878FC0A2D36F0CF9613A1D9C5EAE94A0B81008740A1C
  3. Call the node
  4. Done

Expected behavior

World Loading Indicator should inform the user of the issue, or at least it should vanish when an incompatible record is attempted to be loaded.

Screenshots

No response

Resonite Version Number

2024.11.12.1329

What Platforms does this occur on?

Windows

What headset if any do you use?

N/A

Log Files

ALFRED - 2024.11.12.1329 - 2024-11-13 23_56_28.log

Additional Context

01:46:49.546 ( 40 FPS)  Exception running asynchronous task:
System.AggregateException: One or more errors occurred. ---> System.ArgumentNullException: Value cannot be null.
Parameter name: uriString
  at System.Uri..ctor (System.String uriString) [0x00009] in <ef151b6abb5d474cb2c1cb8906a8b5a4>:0 
  at FrooxEngine.Userspace+<LoadWorld>d__199.MoveNext () [0x0032c] in <b538c0f11fa4494daf345ca6bb1ea9bf>:0 
--- End of stack trace from previous location where exception was thrown ---

In the case of directories, assetUri doesn't exist. Image

Reporters

No response