AOT compilation doesn't work for Blackboard interface (PS4)

NodeCanvas Forums Support AOT compilation doesn't work for Blackboard interface (PS4)

Tagged: 

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #12536
    alice_funo
    Participant

    I get this error when I properly generated AOTClasses.cs:

    I edited AOTClasses.cs and found that all the compiler hints are generated using the IBlackboard interface, i.e.:

    and if I change them to use a specific blackboard, it’d work:

    It just seems like the derived classes need their own sets of hints as well. Is this something that you have tested and would it possibly be fixed in a newer release? (we are using v 2.6.2)

    Thanks.

    #12537
    Gavalakis
    Keymaster

    Hey,

    Hmm. If you access the method through the interface instead of the class itself, then the original hints using the interface should work with AOT, like for example:

    Of course, even if you have a Blackboard object reference, you could do something like this, and should work as well with AOT:

    Please let me know if that is a valid solution for you, or whether you have to use the Blackboard class itself.
    Thanks!

    Join us on Discord: https://discord.gg/97q2Rjh

    #12545
    alice_funo
    Participant

    Actually, we are accessing the blackboard via the Task.blackboard accessor. In theory it returns an IBlackboard, so it should be the same use case as you posted. I’m wondering if there’s differences in how the vtable is handled that leads to this.

    FYI I added the SpoofAOT attribute to the actual blackboard class and that worked.

    #12547
    Gavalakis
    Keymaster

    Hey,

    Thanks for the follow up.
    That’s interesting. I am pretty sure that the last time I tested AOT, it was working just by having the hints for IBlackboard when you access the methods as an IBlackboard type, but for the shake of convenience, I will add [SpoofAOT] to Blackboard class as well for the next version, so that the problem you are facing is avoided.
    Thanks for letting me know that 🙂

    Join us on Discord: https://discord.gg/97q2Rjh

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.