Search Unity

Issues training with raytracing

Discussion in 'ML-Agents' started by AngrySamsquanch, Mar 15, 2021.

  1. AngrySamsquanch

    AngrySamsquanch

    Joined:
    Dec 28, 2014
    Posts:
    24
    I got the error:
    Unexpected exception when trying to initialize communication: System.NullReferenceException: Object reference not set to an instance of an object
    at Unity.MLAgents.RpcCommunicator.Initialize (Unity.MLAgents.CommunicatorInitParameters initParameters, Unity.MLAgents.UnityRLInitParameters& initParametersOut) [0x000d5] in

    if I try to train with raytracing enabled under project settings -> Quality -> HDRP -> HDRPasset -> rendering ->
    realtime raytracing preview.

    Raytracing isn't critical for my project. I was just wondering if it's something that's not supported yet or if I'm doing something wrong.
     
  2. awjuliani

    awjuliani

    Unity Technologies

    Joined:
    Mar 1, 2017
    Posts:
    69
    Hello. Unfortunately I don't have a device which supports ray-tracing handy to test this. Just to confirm, you are able to use the ML-Agents package without any errors when ray-tracing is turned off in your project?
     
  3. AngrySamsquanch

    AngrySamsquanch

    Joined:
    Dec 28, 2014
    Posts:
    24
    Yes, and inference appears to work just fine with raytracing.
     
  4. christophergoy

    christophergoy

    Joined:
    Sep 16, 2015
    Posts:
    735
    Hi @AngrySamsquanch,
    Can you give any more information about your environment? Ray Tracing may be a red herring in this case. Could you post your logs, screenshots, other errors that might have popped up?