Neos-Metaverse / NeosPublic

A public issue/wiki only repository for the NeosVR project
197 stars 9 forks source link

Parent Sessions Works unstable. #3170

Open kazu0617 opened 2 years ago

kazu0617 commented 2 years ago

Describe the bug?

When I create a Headless session, even if I set the parentsessionIds, it behaves differently depending on the person. (In my case, it was visible to everyone when I checked from within Neos even though it was in nestedsessionids). Therefore, in this state, the parentsession setting is very unstable and cannot be used regularly.

Relevant issues

3101 checks how to set parentsessions because want to check how to set nestedsessions officialy.

To Reproduce

  1. Launch NeosVR Headless with parentsessionid configs and host session.
  2. checks from api.neos.com/api/sessions that correctly nestedsessions it.
  3. Launch NeosVR Client and check visible continuously (some sesisons invisible correctly, but some session visible it).
  4. And If you leave the world browser open for about 30 minutes, it will hide normally (it will show up again when you start it again).

Expected behavior

If the parentsessionid is set and the proper setup is in place, it should be stable and invisible. And I would like it to be visible once you enter the world.

Log Files

No response

Screenshots

image

How often does it happen?

Always

Does the bug persist after restarting Neos?

Yes

Neos Version Number

2021.10.5.1054

What Platforms does this occur on?

Windows

Link to Reproduction Item/World

No response

Did this work before?

I Don't Know

If it worked before, on which build?

No response

Additional context

No response

Reporters

kazu / kiyomaru / ChameleonO2

Frooxius commented 2 years ago

Can you please share a sample configuration file for the nested sessions?

Nested sessions will only be hidden in the world browser if the parent session itself is visible, so it might not be active at the time, resulting in those sessions appearing directly.

kazu0617 commented 2 years ago

At, #3101 Shows sample configration.some other headless owner also apply that configuration. for example, this config allows parentsession, but not correct works.(username and password passes from args).

{
  "tickRate": 30.0,
  "maxConcurrentAssetTransfers": 80,
  "usernameOverride": "kazuHL-S",
  "startWorlds": [
    {
      "accessLevel": "Anyone",
      "description": "チュートリアルワールドのヘッドレスです。by kazu",
      "maxUsers": 6,
      "loadWorldURL": "neosrec:///G-Neos-East-Japan/R-95d04d7b-322f-47ea-a18e-0fc1f473d41e",
      "keepOriginalRoles": true,
      "idleRestartInterval": 1800.0,
      "awayKickMinutes": 3.0,
      "autoSleep": false,
      "parentSessionIds": [
        "S-U-kiyomaruHDL:JPTutorial"
      ]
    }
  ]
}

And kiyomaruHDL is kazuheadless-varinant1's friend. image

But this session not parented and not hidden it. image