Skip to content

Could not parse -1 for --display / Could not run the sketch (Target VM failed to initialize) when starting a sketch #5118

Closed

Description

@Bennettd77

I get the following msg everytime I hit play:

Could not parse -1 for --display
Could not run the sketch (Target VM failed to initialize).
For more information, read revisions.txt and Help ? Troubleshooting.

I'd like to work with this package but I have no idea what to do with this error.

Activity

  1. gohai commented on Jun 7, 2017

    @gohai
    Contributor

    Are you running a 64-bit version of Windows 7? Which version of Processing are you running (there are 32-bit and 64-bit versions of it as well).

    What happens when you hit play on an empty sketch?

  2. Bennettd77 commented on Jun 7, 2017

    @Bennettd77
    Author

    Windows 7 64 bit.
    I am using P3 3.3.4 64 bit
    The error I posted was in fact hitting play on an empty sketch.

  3. gohai commented on Jun 7, 2017

    @gohai
    Contributor

    Can you post your %windir%\system32\drivers\etc\hosts? Do you have any esoteric firewall or proxy running perhaps?

  4. Bennettd77 commented on Jun 7, 2017

    @Bennettd77
    Author

    Well I am behind a firewall as I am on a University computer.
    I think this is the relevant part of the 'hosts' file you are looking for:

    # localhost name resolution is handled within DNS itself.
    #	127.0.0.1       localhost
    #	::1             localhost
    
  5. reopened this on Jun 7, 2017
  6. changed the title [-]Processing 3 fails on Windows 7[/-] [+]Could not parse -1 for --display / Could not run the sketch (Target VM failed to initialize) when starting a sketch[/+] on Jun 8, 2017
  7. GKFX commented on Jun 8, 2017

    @GKFX
    Contributor

    @Bennettd77 Post code like the content of the hosts file between backticks:

    ```
    # code
    ```
    

    gives

    # code
    

    rather than

    code

    Anyway, was there a # before every line of the snippet of hosts file you posted? That would mean that the code was commented out (i.e. disabled), so it can't be the relevant part. Unless your hosts file is confidential to the university or for any other reason you can't post it, could you post the whole thing as an attachment?

  8. Bennettd77 commented on Jun 8, 2017

    @Bennettd77
    Author

    hosts.txt

    Every line in my host file is like this. Essentially I have nothing in my hosts file.

    capture

  9. BojidarLyutskanov commented on Jun 10, 2017

    @BojidarLyutskanov

    I have the exact same problem on Windows 10 64 bit. I am using the processing 3.3.4 version aswell.

  10. BojidarLyutskanov commented on Jun 10, 2017

    @BojidarLyutskanov

    I disabled the firewall but the problem still persists and my hosts.txt file is fully commented

  11. FrancisBourre commented on Jun 11, 2017

    @FrancisBourre

    Got the same message displayed in the console when I compile on Mac OSX Sierra from PDE (play button pressed): Could not parse -1 for --display

  12. deanmalmgren commented on Jun 12, 2017

    @deanmalmgren

    I have the same problem with OSX Sierra using processing 3.3.4. I see Could not parse -1 for --display. I can get a trivial example to work, but calls to size throw an error that results in no rendering. If there's anything else I can add that would be helpful for debugging, let me know.

  13. deanmalmgren commented on Jun 12, 2017

    @deanmalmgren

    quick update. i was able to resolve my problem after looking through the troubleshooting guide and moving the files of my sketch to a more standard location. not sure if that will help others on OSX, but I thought I'd mention it.

  14. Bennettd77 commented on Jun 12, 2017

    @Bennettd77
    Author

    I tried what deanmalmgren suggested and moved a sketch folder somewhere else (the Desktop) and executed from there. Same error with two different sketches.

  15. panwarab commented on Jun 15, 2017

    @panwarab

    Getting the same error on Windows 8 64-bit.

  16. ptr2null commented on Jun 16, 2017

    @ptr2null

    Can confirm this on Windows 10 64-bit (latest build). Versions 3.3.2 and 3.3.3 don't have this issue.

  17. added a commit that references this issue on Jun 19, 2017
    40cf90f
  18. shah253kt commented on Jun 20, 2017

    @shah253kt

    Happened to me as well. Windows 10 x64

  19. efroim102 commented on Jun 21, 2017

    @efroim102

    I have multiple monitors, to fix the bug and get it to work for now, I went to File -> Preferences and changed the "Run sketched on display:" property to my 2nd monitor which was actually labeled # 1 by processing.

    I can see a fix was committed 2 days ago but has yet to be released.

  20. shah253kt commented on Jun 21, 2017

    @shah253kt

    That actually fixed the problem for me. Thanks!

  21. Bennettd77 commented on Jun 21, 2017

    @Bennettd77
    Author

    I followed efroim102's instructions and was met with the following new error:

    Could not run the sketch (Target VM failed to initialize).
    For more information, read revisions.txt and Help ? Troubleshooting.

  22. efroim102 commented on Jun 22, 2017

    @efroim102

    @Bennettd77 There's a reported issue (#4853, #4863), with a Nvidia Driver, If you have a Nvidia Graphics card it might be related.

    I personally have a Nvidia GeForce GTX 1060 Graphics card, but changing the monitor selected in preferences fixed it.

  23. Swayin commented on Jun 22, 2017

    @Swayin

    i had same error and fixed it by moving Processing folder to desktop, but now i don't have this error and i still can't run sketch. Here is just empty field when i'm tryin to run sketch.
    7c4c44ec2b

  24. deleted a comment from shivmahesh on Mar 5, 2018
  25. benfry commented on Mar 5, 2018

    @benfry
    Contributor

    (Locking to prevent confusion/further posts because the issue was resolved almost a year ago)

  26. locked as resolved and limited conversation to collaborators on Mar 5, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions