Loading...
Logo
Processing Forum
Hello I have a PApplet which I am initialising using

Copy code
  1. size(800, 800, P3D);

When I resize the window using the mouse the applet crashes:

Copy code
  1. #
  2. # A fatal error has been detected by the Java Runtime Environment:
  3. #
  4. #  EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x0000000000000000, pid=4680, tid=5000
  5. #
  6. # JRE version: 6.0_45-b06
  7. # Java VM: Java HotSpot(TM) 64-Bit Server VM (20.45-b01 mixed mode windows-amd64 compressed oops)
  8. # Problematic frame:
  9. # C  0x0000000000000000
  10. #
  11. # An error report file with more information is saved as:
  12. # D:\dev\java\projects\Games\aigames\Steering\bin\hs_err_pid4680.log
  13. #
  14. # If you would like to submit a bug report, please visit:
  15. #   http://java.sun.com/webapps/bugreport/crash.jsp
  16. # The crash happened outside the Java Virtual Machine in native code.
  17. # See problematic frame for where to report the bug.
I have installed the latest version of processing - processing-2.0b8
I have tried using the proclipse plugin

No change.

I am running on a dual core intel machine with win 7 and 4gb.
I have installed the latest nVidia drivers
I have tried running with java 1.6.0_45 and 1.7.0_21

Nothing works.

Any help would be extremely gratefully received with this.

Here is a small sample

Copy code
  1. import processing.core.PApplet;
  2. public class TestApplet extends PApplet {
  3.     private float rot;
  4.     public void setup() {
  5.         size(800, 800, P3D);
  6.     }
  7.    
  8.     public void draw() {
  9.         background(200);
  10.         pushMatrix();
  11.         translate(width/2, height/2);
  12.         rotate((float) Math.toRadians(rot));
  13.         line(-100, 0, 100, 0);
  14.         line(0, -100, 0, 100);
  15.         rot += 1f;
  16.         popMatrix();
  17.     }
  18. }

Running and resizing this causes the crash (on my setup anyway)


Replies(2)

Has noone ever had this problem?
Has noone any idea about this?

Mmmn that's strange, because by default sketches are not resizable. The code you show should not allow to resize the frame. I tested it on Windows 7 (removing the PApplet stuff, running it in the PDE), and indeed, there is no way to resize it without frame.setResizable(true);
Perhaps that's why it crashes, if you can resize it without it being prepared for that...