How to exit fullScreen

edited August 2017 in Questions about Code

I have searched the examples and tutorials, and finding it difficult to locate a fix for this, At present I have a patch that runs successfully and opens fullscreen - When I press escape to exit the patch quits unexpectedly with the issue 'Could not run the sketch (Target VM failed to initialize).'

What am i missing out here? Can I create a keypress to exit fullScreen and cut out this error?

 void setup() {



  fullScreen(P3D);

  PJOGL.profile=1;
    surface.setResizable(true);

Answers

  • edited August 2017

    So I have moved the fullscreen command to settings

      void settings() {     
     fullScreen(P3D);
    
      }
    

    And at the end of my code created a keypress

    exit();

    command

    The patch still runs successfully and only when I exit do I end up with the same issue. Any ideas what might be causing this?

    A fatal error has been detected by the Java Runtime Environment:
    #
    #  SIGSEGV (0xb) at pc=0x000000012597504e, pid=5167, tid=0x0000000000015803
    #
    # JRE version: Java(TM) SE Runtime Environment (8.0_131-b11) (build 1.8.0_131-b11)
    # Java VM: Java HotSpot(TM) 64-Bit Server VM (25.131-b11 mixed mode bsd-amd64 compressed oops)
    # Problematic frame:
    # C  [libmethcla.dylib+0x5604e]  remove_free_block+0x3e
    #
    # Failed to write core dump. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
    #
    # An error report file with more information is saved as:
    # /Users/newfuturenow/hs_err_pid5167.log
    #
    # If you would like to submit a bug report, please visit:
    #   http://bugreport.java.com/bugreport/crash.jsp
    #
    Could not run the sketch (Target VM failed to initialize).
    For more information, read revisions.txt and Help → Troubleshooting.
    
  • I have yet to find a fix for this. The patch works, but appears to crash on exit every time. If anyone has any solutions to stop this, if you can let me know.. Thanks!

Sign In or Register to comment.