Giter Club home page Giter Club logo

Comments (6)

philippedistributive avatar philippedistributive commented on August 12, 2024

stack looks like

Thread 1 "python" received signal SIGSEGV, Segmentation fault.
0x00007ffff768597e in FuncType::getPyObject (cx=0x55555561b3f0, fval=...)
at /home/philippe/Sources/PythonMonkey/src/FuncType.cc:19
19 proxy->jsFunc->set(&fval.toObject());
(gdb) bt
#0 0x00007ffff768597e in FuncType::getPyObject (cx=0x55555561b3f0, fval=...)
at /home/philippe/Sources/PythonMonkey/src/FuncType.cc:19
#1 0x00007ffff76c605e in pyTypeFactory (cx=0x55555561b3f0, rval=...)
at /home/philippe/Sources/PythonMonkey/src/pyTypeFactory.cc:108
#2 0x00007ffff76b8ef4 in enqueueWithDelay (cx=0x55555561b3f0, argc=4, vp=0x7fffffffb998)
at /home/philippe/Sources/PythonMonkey/src/internalBinding/timers.cc:34
#3 0x000026506dd3de1b in ?? ()
#4 0x00001327f7a5d780 in ?? ()
#5 0x00007fffffffb970 in ?? ()
#6 0x0000000000000000 in ?? ()

from pythonmonkey.

philippedistributive avatar philippedistributive commented on August 12, 2024

@wiwichips
This is due to quit not being async, (all other functions in the example are async) and is thus not supported without an async wrapper such as

async def async_quit():
quit()

my_j.on('accepted', lambda: async_quit())

from pythonmonkey.

caleb-distributive avatar caleb-distributive commented on August 12, 2024

Even if its unsupported, it should result in an exception, not a segmentation fault

from pythonmonkey.

philippedistributive avatar philippedistributive commented on August 12, 2024

also works fine if not using lambda:
def non_async_quit():
quit()

my_j.on('accepted', non_async_quit())

from pythonmonkey.

philippedistributive avatar philippedistributive commented on August 12, 2024

just made an incorrect pr closes comment

from pythonmonkey.

philippedistributive avatar philippedistributive commented on August 12, 2024

note same result if call exit or sys.exit

from pythonmonkey.

Related Issues (20)

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.