-
-
Notifications
You must be signed in to change notification settings - Fork 13
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
"exited with code -11" error #518
Comments
Hi, @cabakasap ! Thank you for your question. Yes, sometimes when py5 Sketch exits there are some odd exit codes. I've done my best to tackle most of them and have been fairly successful. There are still some residual problems though. Much of the issue seems to come from within Processing itself. When Processing (running through the Processing Development Environment, aka the PDE) exits a Sketch, it will call The issue py5 faces is that it cannot call Since py5 cannot call This is something I do continue to think about, though, and if I come up with a better idea for how to handle it, I will certainly implement it. In the meantime, though, you can safely ignore the non-zero exit code. |
Hi there, |
Wait, that shouldn't happen. What do you mean by a "slideshow"? Is this something you programmed with py5? Can we see the relevant parts of your code? |
Cheers @cabakasap! I think we exchanged some messages about a slideshow-like idea... was it something like this? |
Please, @cabakasap, can you give us more information so we might be able to investigate this better for you and others on Macs?
|
Hi @villares. Yes that is me.
Here is the starting part of my code: def setup(): def draw(): *When I try to turn-off the py5 mode, it does not run anything. I mean even the error code does not occur. Thonny editor window just remains as it is. *I installed Thonny 4.1.6 version and it is still the same. Nothing changed. I still get the same error for the first 4 attempts and then in the fifth attempt, I can get it to work. Regards. |
Thank you for the patience and testing. The most curious thing is that it fails 4 times and then works, very unusual!
|
@villares, I just checked the first thing you suggested. I just changed the fullscreen() to a normal size (1600, 1600) that I have just assigned and it worked. I did not get any errors and it worked properly each time I tried. So the problems seems to be with the fullscreen() command. Any suggestion as to why that happens then? |
Thank you @cabakasap, that's very very very useful information and @hx2A will have a starting point to investigate now. But it could take some time before he can fix this, so, for the time being, you might need to try some workarounds like making the window a bit bigger than the screen and moving it up a bit to hide the title, maybe with |
Hi, @cabakasap ! Sorry for my slow reply, I have a lot happening here. Here are a few things I'd like you to try. First, a simple fullscreen py5 sketch: def setup():
py5.fullscreen()
def draw():
py5.rect(py5.mouse_x, py5.mouse_y, 10, 10)
py5.run_sketch() Next, replace def setup():
py5.size(500, 500)
def draw():
py5.rect(py5.mouse_x, py5.mouse_y, 10, 10)
py5.run_sketch(py5_options=["--present", "--window-color=#ff00cc"]) @villares , those Next, in the Processing PDE, try running this Java code: void setup() {
fullScreen();
}
void draw() {
rect(mouseX, mouseY, 10, 10);
} If the above py5 Sketches in Python don't work, I would suspect Processing has some system problem that keeps it from running full screen, and the last example won't work either. |
Hello @hx2A and @villares. @hx2A, I tried all of the options you mentioned above. None of them seems to be working. For the last sketch, I am using Thonny as an editor, not Processing PDE so I could not estimate where I have to place the Java code. But since the first part did not work, I do not think that this last Java part will work either. |
Just out of curiosity, if you have the time, you can download the Processing IDE (PDE) from https://processing.org/download |
@cabakasap , there might be an issue with your computer where it is not happy running Java Sketches fullscreen. I suspect that if you download and install the Processing PDE and run that last Java example, it won't work either. |
Hi,
I just noticed that Thonny sometimes runs the slide show but sometimes it gives the error 'process ended with exit code -11'.
I read somewhere that "the error message of code -11 typically indicates a "Segmentation Fault" (SIGSEGV). This is a specific kind of error caused by a program trying to read or write an incorrect location in memory, or when a program tries to write into a memory area that is read-only.
The "exited with code -11" part means that the script stopped because of the segmentation fault, which is represented by the signal number 11 in Unix-based systems. Segmentation faults are often caused by programming errors that involve the misuse of pointers, array bounds overruns, incorrect use of system calls, trying to use an uninitialized pointer, or a host of other issues."
I am running macOS Ventura 13.0. And my Thonny is 4.0.2.
Why do I encounter that error which runs from time to time? Is this a problem with the coding or a system memory error?
Thanks.
Çağrı Kasap
The text was updated successfully, but these errors were encountered: