Skip to content

"using DiffEqPy" stalls sometimes #20

Closed

Description

@tkf

The main problem is that:

It looks like the test itself choke sometimes randomly. It happens both locally and in Travis. It's probably that using DiffEqPy hangs. When it occurs, sudo strace -p <pid> shows something like

futex(0x7f507c45caa0, FUTEX_WAIT_PRIVATE, 2, NULL

I'm not sure it helps. Does it mean there is a deadlock somewhere in Julia-Python bridge?

--- #3 (comment)

Not sure if it's related (Edit: no it's not #20 (comment)), but:

Locally playing with setup Julia function, it looks like pollings are not triggered during using DiffEqPy. Is it probably due to some non-Julia blocking calls?

--- #19 (comment)

Activity

  1. tkf commented on Apr 26, 2018

    @tkf
    ContributorAuthor

    See also #18 where I tried to debug appveyor.yml.

  2. tkf commented on Apr 26, 2018

    @tkf
    ContributorAuthor

    I guess #19 (comment) mentioned above is not relevant. It seems that using is always blocking since there is no yield. I forgot Julia was cooperative multitasking...

    For example,

    tsk = @schedule @eval using DifferentialEquations
    @time timedwait(1.0) do
        print(".")
        istaskdone(tsk)
    end

    takes more than 1 second.

  3. tkf commented on Apr 26, 2018

    @tkf
    ContributorAuthor

    Let's hope we can find a solution in JuliaPy/PyCall.jl#498

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