Coder Social home page Coder Social logo

Windows/IOCP crashes about asyncoro HOT 9 OPEN

alxchk avatar alxchk commented on June 11, 2024
Windows/IOCP crashes

from asyncoro.

Comments (9)

alxchk avatar alxchk commented on June 11, 2024

After some testing I'm not sure about the reason of this issue. WSASend bla-bla only acquires with WinDbg, probably right in time of crash. Without WinDbg it just dies on recv or about it after some time.

from asyncoro.

alxchk avatar alxchk commented on June 11, 2024

gc.disable() doesn't fix the problem

from asyncoro.

pgiri avatar pgiri commented on June 11, 2024

I am not actually familiar with IOCP. The implementation is based on documentation of API (i.e., the only "experience" I have with IOCP is in implementing it for asyncoro). If you are familiar with it, please check/fix.

I didn't quite understand '_schedule' comment above. In the current master polling has been revamped and likely may affect how the error manifests.

Is it possible to use asyncoro's RCI and/or discoro instead of rpyc?

from asyncoro.

alxchk avatar alxchk commented on June 11, 2024

I am not actually familiar with IOCP. The implementation is based on documentation of API (i.e., the only "experience" I have with IOCP is in implementing it for asyncoro). If you are familiar with it, please check/fix.

Well, my even worse. I will try to figure out the problem, but for windows I don't know how to monitor memory issues properly.

I didn't quite understand '_schedule' comment above. In the current master polling has been revamped and likely may affect how the error manifests.

I tried asyncoro from pip

Is it possible to use asyncoro's RCI and/or discoro instead of rpyc?

Unfortunately no, because main project is already written using rpyc.

from asyncoro.

alxchk avatar alxchk commented on June 11, 2024

I started thread in pywin32 tracker (https://sourceforge.net/p/pywin32/bugs/744/), maybe somebody knows what to do

from asyncoro.

pgiri avatar pgiri commented on June 11, 2024

Please post here if there is any useful info regarding this. I am hoping to release asyncoro 4.4.0 tomorrow, unless there are any show stoppers (I have a few commits pending). Please test again with the release and see if you can reproduce this issue.

from asyncoro.

alxchk avatar alxchk commented on June 11, 2024

Same story with current master. Python interpreter dies in GC. I placed minimal working part of failed program here - https://gist.github.com/alxchk/482055c284dc3289f1b61b843908c2af
I have next setup with 100% reproduce:

  1. Windows 7/10
  2. rpyc_classic on Linux host
  3. asyncoroproxy-test.py runned on Windows host
  4. Firefox + Socks5 proxy walks via asyncoroproxy from Windows host
  5. Open several sites simultaneously (and youtube among them)

from asyncoro.

pgiri avatar pgiri commented on June 11, 2024

Can you try asyncoro without IOCP? If you comment import pywintypes around line 920, or add raise Exception('') in that block, asyncoro will use select poller instead of IOCP. select is not efficient, but will narrow down problem.

You can also try Python 3.5 / 3.6 with 32 or 64 bit versions to find which setup is causing this.

from asyncoro.

alxchk avatar alxchk commented on June 11, 2024

With select I cant get crash, but it sooooo sloooow. I'd better rewrite stuff with pyuv instead of using this backend :)

I can't check it with python3 right now - looks like a lot of stuff should be fixed to be compatible with python3 in my script

from asyncoro.

Related Issues (12)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.