Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash when using "Terminate running process" on linux #138

Open
davidsblog opened this issue Jan 25, 2017 · 2 comments
Open

Crash when using "Terminate running process" on linux #138

davidsblog opened this issue Jan 25, 2017 · 2 comments

Comments

@davidsblog
Copy link

On linux, if you run a program from Aporia and then choose "Terminate running process" from the menu then Aporia crashes. For example, use this example program in Aporia:

# a simple html server
import
  jester, asyncdispatch, htmlgen

routes:
  get "/":
    resp h1("Hello world")

runForever()

...and run it from Aporia with the Tools -> Compile & run current file menu option. Then, when the program is running, use the Tools -> Terminate running process menu option. The example program will quit, but Aporia will also quit unexpectedly.

I have a hack which allows me to keep using Aporia, which may shed some light on the problem. You can see my hack here: 6b008db where I'm checking to see if the process is still running before calling p.waitForExit().

@dom96
Copy link
Owner

dom96 commented Jan 25, 2017

What's the stack trace?

@davidsblog
Copy link
Author

Well ... what I get on the console is: Error: unhandled exception: No child processes [OSError].

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants