Giter VIP home page Giter VIP logo

Comments (7)

benfry avatar benfry commented on June 1, 2024

Unfortunately there's not much more we can do here. There are already some things in the code that try to prevent the app from locking up in these cases. But at the end of the day, you're writing a program, and you ask the computer to do too much, then you can also make it crash.

from processing.

dzaima avatar dzaima commented on June 1, 2024

@benfry If stdout and stderr messages are mixed together, there is a bug in Processing in its multithreading handling this. I tried to fix this here with a lock, but that doesn't seem like a good way to do it (i know near nothing about multithreading). Thoughts?

(Processing 3 also seems to just lock up (no errors, no CPU usage) on lots of regular printing, but I can't reproduce this in processing 4)

from processing.

benfry avatar benfry commented on June 1, 2024

Not sure; I'm not aware of any stdout/stderr deadlock in that code but it's certainly a possibility. Unfortunately I can't make much sense of that commit because it's 23 files.

from processing.

dzaima avatar dzaima commented on June 1, 2024

I linked to the start of the important changes in the app/src/processing/app/ui/EditorConsole.java file, but the links can be buggy; link to final file. (I had to squash the files when the processing 4 history was rewritten to remove large files; probably could've avoided doing that, but didn't bother). for (int i = 0; i < 10000; i++) { println("out"); System.err.println("err"); } quickly results in some java.util.EmptyStackExceptions being thrown and running being broken.

from processing.

benfry avatar benfry commented on June 1, 2024

Moving that here: benfry/processing4#338

from processing.

benfry avatar benfry commented on June 1, 2024

@EinsMalte Found some related issues for this which are fixed here: benfry/processing4#338, so thanks for bringing it to my attention. Hopefully it'll help with the case that you ran into as well.

from processing.

github-actions avatar github-actions commented on June 1, 2024

This issue has been automatically locked. To avoid confusion with reports that have already been resolved, closed issues are automatically locked 30 days after the last comment. Please open a new issue for related bugs.

from processing.

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.