Skip to content

Deadlock with SetPythonAttr from C++ Callback #68

Closed

Description

@Pepin-

Hi,
I am experiencing a deadlock when I call SetPythonAttrObject from within a C++ function invoked from Python. Is this something that should work currently? I have threading enabled, but everything UE-related is on the main thread. Other thread is running an async event loop that wouldn't be blocking.

Activity

  1. unbit commented on Oct 31, 2016

    @unbit
    Contributor

    Disable threading support, it currently introduces lot of implications when the call stack is pretty complex

  2. Pepin- commented on Oct 31, 2016

    @Pepin-
    ContributorAuthor

    Hmm, I'll see if I can work around this somehow... Unfortunately I need threading support for a framework I'm running alongside UEPython.

  3. Pepin- commented on Nov 1, 2016

    @Pepin-
    ContributorAuthor
  4. rdeioris commented on Nov 1, 2016

    @rdeioris
    Contributor

    i think it is the only viable appeoach. i will refactor it a bit and i will merge. thanks

  5. rdeioris commented on Nov 2, 2016

    @rdeioris
    Contributor

    Can you try if the latest code fixes the issue ?

  6. Pepin- commented on Nov 2, 2016

    @Pepin-
    ContributorAuthor

    Hi, I tried with your changes instead and they seem to crash the editor on my end...

  7. rdeioris commented on Nov 2, 2016

    @rdeioris
    Contributor

    Are you using python2 or 3 ?

  8. Pepin- commented on Nov 2, 2016

    @Pepin-
    ContributorAuthor

    python3

  9. added a commit that references this issue on Nov 3, 2016
  10. rdeioris commented on Nov 3, 2016

    @rdeioris
    Contributor

    Please, try again with latest code, i have made the gil scope struct smarter

  11. Pepin- commented on Dec 2, 2016

    @Pepin-
    ContributorAuthor

    Sorry for the delay. This new change seems to work!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions