dreamworksanimation / openmoonray

MoonRay is DreamWorks’ open-source, award-winning, state-of-the-art production MCRT renderer.

Home Page:https://openmoonray.org/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

arras_render local-mode failed to connect

panda1100 opened this issue · comments

I tried arras_render local-mode described here but it failed to connect

  • What version should I use for REZ2_DEFAULT_VERSION?
  • It looks like execution of mcrt-rez_config due to "No such file", How to fix this issue?

The following is my execution log:

First attempt

Apptainer> source /installs/openmoonray/scripts/setup.sh 
Apptainer> cd pbrt_scenes/staircase2/
Apptainer> export PATH=/installs/openmoonray/bin:$PATH
Apptainer> export RDL2_DSO_PATH=/installs/openmoonray/rdl2dso.proxy
Apptainer> export ARRAS_SESSION_PATH=/installs/openmoonray/sessions
Apptainer> arras_render --rdl scene.rdla --dc local
>> ClientReceiverFb.cc infoRec interval:0sec display:10sec file:./run_
2023-03-25T08:30:47.342405 W client[14752]:22852542660608: [1489b9ad-4cfd-4d83-8567-4bc2b6a6baa1]: {warnBadConfigVal} In config for mcrt: item environment should be an object
2023-03-25T08:30:47.342485 W client[14752]:22852542660608: [1489b9ad-4cfd-4d83-8567-4bc2b6a6baa1]: {warnBadConfigVal} In config for mcrt: item environment should be an object
2023-03-25T08:30:47.342524 E client[14752]:22852542660608: [1489b9ad-4cfd-4d83-8567-4bc2b6a6baa1]: {RezSetupFail} [ rez2] Failed to setup rez environment for mcrt : Environment variable REZ2_DEFAULT_VERSION is not set
2023-03-25T08:30:47.342586 E client[14752]:22852542660608: Unable to connect to Arras: Failed to create local session :Environment variable REZ2_DEFAULT_VERSION is not set
Failed to connect!

Second attempt with setting made up (random) number to REZ2_DEFAULT_VERSION

Apptainer> export REZ2_DEFAULT_VERSION=1.0.7 # <--not sure what version I should use here
Apptainer> arras_render --rdl scene.rdla --dc local
>> ClientReceiverFb.cc infoRec interval:0sec display:10sec file:./run_
2023-03-25T08:31:03.198361 W client[14785]:22947941339136: [7ccc4031-ba1a-4e1a-a83d-caa7c85936ac]: {warnBadConfigVal} In config for mcrt: item environment should be an object
2023-03-25T08:31:03.198437 W client[14785]:22947941339136: [7ccc4031-ba1a-4e1a-a83d-caa7c85936ac]: {warnBadConfigVal} In config for mcrt: item environment should be an object
2023-03-25T08:31:03.298602 E client[14785]:22947941339136: [7ccc4031-ba1a-4e1a-a83d-caa7c85936ac]: {RezSetupFail} [ rez2] Failed to setup rez environment for mcrt :  : error code 5 : no output context was  produced : error output [2023-03-25T08:31:03.199288 F client[14794]:22947941339136: [ee53dda9-6326-4141-ac6d-70fc030e5d89]: {execFailed} Failed to exec mcrt-rez_config-ee53dda9-6326-4141-ac6d-70fc030e5d89 (ee53dda9-6326-4141-ac6d-70fc030e5d89) : No such file or directory
]
2023-03-25T08:31:03.298705 E client[14785]:22947941339136: [7ccc4031-ba1a-4e1a-a83d-caa7c85936ac]: {RezSetupFail} [ rez2] Failed to setup rez environment for mcrt : Rez error : error code 5 : no output context was  produced : error output [2023-03-25T08:31:03.199288 F client[14794]:22947941339136: [ee53dda9-6326-4141-ac6d-70fc030e5d89]: {execFailed} Failed to exec mcrt-rez_config-ee53dda9-6326-4141-ac6d-70fc030e5d89 (ee53dda9-6326-4141-ac6d-70fc030e5d89) : No such file or directory
]
2023-03-25T08:31:03.298817 E client[14785]:22947941339136: Unable to connect to Arras: Failed to create local session :Rez error : error code 5 : no output context was  produced : error output [2023-03-25T08:31:03.199288 F client[14794]:22947941339136: [ee53dda9-6326-4141-ac6d-70fc030e5d89]: {execFailed} Failed to exec mcrt-rez_config-ee53dda9-6326-4141-ac6d-70fc030e5d89 (ee53dda9-6326-4141-ac6d-70fc030e5d89) : No such file or directory
]
Failed to connect!

Try specifying the '--current-env' option to arras_render, i.e.
arras_render --rdl scene.rdla --dc local --current-env

@rgwilson68 That works for me!! Thank you

FYI

This is an output when I run arras_render.

MoonRay> arras_render --rdl scene.rdla --rdl scene.rdlb --dc local --current-env
>> ClientReceiverFb.cc infoRec interval:0sec display:10sec file:./run_
2023-03-28T10:54:27.555856 W client[390306]:23219565064192: [7264a030-14c6-4c5d-beb8-c65f014322fc]: {warnBadConfigVal} In config for mcrt: item environment should be an object
2023-03-28T10:54:27.555969 W client[390306]:23219565064192: [7264a030-14c6-4c5d-beb8-c65f014322fc]: {warnBadConfigVal} In config for mcrt: item environment should be an object
2023-03-28T10:54:27.556076 D client[390306]:23219565064192: [7264a030-14c6-4c5d-beb8-c65f014322fc]: {trace:comp} launch 6daac679-3c70-4231-a77b-1025722cc5b2 mcrt
{trace:mcrt} version mcrt_computation-(unknown) host rocky8
{trace:comp} ready 6daac679-3c70-4231-a77b-1025722cc5b2
2023-03-28T10:54:28.644160 D client[390306]:23219565064192: [7264a030-14c6-4c5d-beb8-c65f014322fc]: {trace:session} clientConnect 7264a030-14c6-4c5d-beb8-c65f014322fc local arras4_client-???;arras4_core_impl-???;arras4_network-???
Created session id 7264a030-14c6-4c5d-beb8-c65f014322fc
{trace:mcrt} stage ready start 6daac679-3c70-4231-a77b-1025722cc5b2
{trace:comp} start 6daac679-3c70-4231-a77b-1025722cc5b2
GlobalNodeInfo HostName {
  mClientHostName:
  mDispatchHostName:
  mMergeHostName: mMergeCpuTotal:0
  mcrt (totalMcrt:1 totalCpu:20) {
    mMachineId:0 mCpuTotal:20 mHostName:rocky8
  }
}
Starting Rendering (syncId:0)
{trace:mcrt} stage renderPrep start 6daac679-3c70-4231-a77b-1025722cc5b2 c2ae1735-f634-457d-86ac-4661cceb6cbd
Render prep time = 00:00:00.211
{trace:mcrt} stage shading start 0.000323425 6daac679-3c70-4231-a77b-1025722cc5b2 c2ae1735-f634-457d-86ac-4661cceb6cbd
QStandardPaths: error creating runtime directory '/run/user/1000' (Function not implemented)
QStandardPaths: error creating runtime directory '/run/user/1000' (Function not implemented)
Qt: Session management error: None of the authentication protocols specified are supported
>> CamPlayback.cc playback thread booted

unset XDG_RUNTIME_DIR fix QStandardPaths: error creating runtime directory '/run/user/1000' (Function not implemented) but maybe it should be treated on Apptainer side. I'll open issue on Apptainer and will update here again.

I submitted issue on Apptainer apptainer/apptainer#1238