Git Product home page Git Product logo

Comments (12)

fahhem avatar fahhem commented on May 7, 2024

This is usually a threading problem, they don't always like to die on their own. You can either set them to daemon mode or explicitly pass some "die now" data into them

from openhtf.

jettisonjoe avatar jettisonjoe commented on May 7, 2024

Yeah, I suspect the threads that aren't dying are in the Rocket instance in the HttpHandler. Once we flatten multi-cell support in the framework, there will be fewer places to look for the cause of this behavior.

from openhtf.

jettisonjoe avatar jettisonjoe commented on May 7, 2024

More info on this. It actually still happens with the bare-bones frontend API server we now have, so it wasn't specific to Rocket. SIGINT handling consistently fails if SIGINT happens while execution is inside one of the HTTP handlers.

from openhtf.

wallacbe avatar wallacbe commented on May 7, 2024

Provide a DUT ID in order to start the test.

^CReceived SIGINT. Stopping everything.

Exception happened during processing of request from ('127.0.0.1', 57906)
Traceback (most recent call last):
File "/usr/lib/python2.7/SocketServer.py", line 295, in _handle_request_noblock
self.process_request(request, client_address)
File "/usr/lib/python2.7/SocketServer.py", line 321, in process_request
self.finish_request(request, client_address)
File "/usr/lib/python2.7/SocketServer.py", line 334, in finish_request
self.RequestHandlerClass(request, client_address, self)
File "/usr/lib/python2.7/SocketServer.py", line 647, in init
self.setup()
File "/usr/lib/python2.7/SocketServer.py", line 699, in setup
self.rfile = self.connection.makefile('rb', self.rbufsize)
File "/usr/lib/python2.7/socket.py", line 217, in makefile
return _fileobject(self._sock, mode, bufsize)
ThreadTerminationError

from openhtf.

wallacbe avatar wallacbe commented on May 7, 2024

Observing this also with the bazel build environment

from openhtf.

wallacbe avatar wallacbe commented on May 7, 2024

Found that SIGQUIT ( Ctrl+) will kill the process.

from openhtf.

fahhem avatar fahhem commented on May 7, 2024

Does this only happen when the frontend is being accessed or can it be any time?

from openhtf.

wallacbe avatar wallacbe commented on May 7, 2024

My test cases about were without the front end running.

Also SIGQUIT may not be best method since tear down methods would be skipped.

from openhtf.

wallacbe avatar wallacbe commented on May 7, 2024

Additional observation from head:

If I start the tester like this then do CTRL+C it hangs
test.Execute(test_start=triggers.PromptForTestStart())

If I disable http and execute CTRL+C stops execution immediately:
test.Configure(http_port=None)
test.Execute(test_start=triggers.PromptForTestStart())

Does this point to http server being the issue?

from openhtf.

jettisonjoe avatar jettisonjoe commented on May 7, 2024

Yes, I believe the issue is in the http server. @grybmadsci and I have some changes planned for the HTTP API that will give us a good opportunity to investigate and resolve this.

from openhtf.

jettisonjoe avatar jettisonjoe commented on May 7, 2024

Is anyone still seeing issues with CTRL+c in the current PyPI version?

from openhtf.

jettisonjoe avatar jettisonjoe commented on May 7, 2024

I believe this is fixed now.

from openhtf.

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.