Comments (7)
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.
@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.
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.
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.EmptyStackException
s being thrown and running being broken.
from processing.
Moving that here: benfry/processing4#338
from processing.
@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.
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)
- Python Mode has disappeared from the contribution manager window HOT 4
- PGraphics noSmooth compiler error in Processing 4 HOT 2
- Java 17 - error in PApplet HOT 2
- Second shortcut repopulates after capture and deployment HOT 2
- github-actions bot and closing issues after 30 days of last comment HOT 3
- "Missing right curly bracket"}" " is wrong (line.11) HOT 3
- not found core.jar HOT 2
- Could not find a method to load http://.... HOT 2
- Processing-4.0b2 crashes on Fedora 35 HOT 2
- Python Mode not working - Processing 4 on Mac (M1) HOT 4
- Release Processing 3.5.5 HOT 6
- could not run the sketch HOT 4
- Question: No desktop, not headless HOT 3
- Question: Python3 Mode HOT 2
- Please add a dark mode. HOT 2
- P3D not working in Win10 Framebuffer objects are not supported HOT 1
- Enhance Error Handling in PGraphicsOpenGL
- Thank you!
- m1 pro and processing can not run sketch say failed to load vm HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from processing.