Skip to content
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

Processing is not working with enabled system proxy since version 3.0a8 #645

Open
processing-bot opened this issue Sep 28, 2015 · 7 comments
Labels
help wanted Extra attention is needed

Comments

@processing-bot
Copy link
Collaborator

Created by: torranto

On some computers the Processing does not start.

  1. Run Processing
  2. Splash screen is shown.
  3. After one minute splash screen is closed.
  4. Processing crashed.

This error depends on some of network settings.
Testing steps:

  1. Delete folder C:%USER%\AppData\Roaming\Processing\
  2. Run Processing. Processing is running.
  3. Quit Processing.
  4. Run Processing. Processing crashed on start.
  5. Delete string "instance_server.port=..." in file "preferences.txt" in folder C:%USER%\AppData\Roaming\Processing\
  6. Run Processing. Processing is running.
  7. Quit Processing.
  8. Run Processing. Processing crashed on start.
  9. Disconnect network.
  10. Run Processing. Processing is running.
  11. Сonnect network.
  12. Run Processing. Processing crashed on start.

This problem is repeated in versions 3.0a8 to 3.0b7.
Versions 2.2.1 and 3.0a1 to 3.0a7 runs great.
It seems in version 3.0a8 you broke something.

I can repeat this problem on 5 computers. (all on Windows 7 x32)

I think you should alter the startup process. And make it less dependent on the network.
If any errors in the network, the Processing should show error message and not crash.

@processing-bot
Copy link
Collaborator Author

Created by: benfry

Nothing in the startup process "relies" on the network, that would be idiotic.

instance_server.port is about connecting to your local machine to make sure that there isn't more than one version of Processing running at a time, because that can cause serious problems. Deleting it just prevents a second copy of Processing from checking to see if the first version is running.

What does "Processing crashed" mean? That it's not running, or that Windows shows an error message that says that it has crashed?

It sounds like you have an error on startup, but that Processing is not quitting completely after the error, so attempts to run it again see the first version still running, and quit. Check your Task Manager to confirm.

@processing-bot
Copy link
Collaborator Author

Created by: torranto

Maybe I was wrong.
The Processing not crashed on start. Sketch editor window is not shown on start.

Testing steps (with check in Task Manager)

  1. Delete folder C:%USER%\AppData\Roaming\Processing\
  2. Run Processing.
    • Splash screen is shown
    • In Task Manager. Processes "processing.exe" and "javaw.exe" is running.
    • Splash screen is closed.
    • Process "processing.exe" is stopped.
    • Editor window is shown.
    • Quit Processing.
    • Process "javaw.exe" is stopped.
    • Everything is great.
  3. Run Processing again.
    • Splash screen is shown.
    • In Task Manager. Processes "processing.exe" and "javaw.exe" is running.
    • Waiting
    • After one minute (I checked with timer) splash screen is closed.
    • Process "processing.exe" is stopped.
    • Process "javaw.exe" is not stopped.
    • Editor window is not shown.
    • I kill "javaw.exe" process manually.
  4. I delete string "instance_server.port=..." in file "preferences.txt" in folder C:%USER%\AppData\Roaming\Processing\
  5. Run Processing again.
    • Everything is great.
    • Executed all points from step 2.
  6. Run Processing again (without removing the string "instance_server.port=...").
    • Editor window is not shown.
    • Executed all points from step 3.
  7. Disconnect network.
  8. Run Processing again (without removing the string "instance_server.port=...").
    • Everything is great.
    • Executed all points from step 2.
  9. Connect network.
  10. Run Processing again (without removing the string "instance_server.port=...").
    • Editor window is not shown.
    • Executed all points from step 3.
  11. I tried to run the program several times without killing "javaw.exe" process manually.
    (with connected network and without removing the string "instance_server.port=...")
    • Run processing
    • Executed all points from step 3.
    • In Task Manager. Process "javaw.exe" is running.
    • Run processing a second time.
    • Executed all points from step 3.
    • In Task Manager. Two processes "javaw.exe" is running.
    • Run processing a third time
    • Executed all points from step 3.
    • In Task Manager. Three processes "javaw.exe" is running.
    • I kill all "javaw.exe" processes manually.

@processing-bot
Copy link
Collaborator Author

Created by: benfry

That's what I expected.

Try running .\processing.exe --l4j-debug as described on the troubleshooting page. What messages do you see?

@processing-bot
Copy link
Collaborator Author

Created by: gtitaev

I have the similar problem processing/processing#3588. @torranto try to disable the system proxy in Internet Explorer.

@processing-bot
Copy link
Collaborator Author

Created by: torranto

launch4j.log

Version:    3.8
CmdLine:    C:\Program Files\processing-3.0\processing.exe --l4j-debug
WOW64:      no
Working dir:    C:\Program Files\processing-3.0\.
Bundled JRE:    java
Check launcher: C:\Program Files\processing-3.0\java\bin\javaw.exe (OK)
Heap -Xmx:  Requested 256 MB / 0%, Available: 1454 MB, Heap size: 256 MB
Add classpath:  lib\pde.jar
Add classpath:  core\library\core.jar
Add classpath:  lib\jna.jar
Add classpath:  lib\antlr.jar
Add classpath:  lib\ant.jar
Add classpath:  lib\ant-launcher.jar
Add classpath:  lib\org-netbeans-swing-outline.jar
Add classpath:  lib\com.ibm.icu_4.4.2.v20110823.jar
Add classpath:  lib\jdi.jar
Add classpath:  lib\jdimodel.jar
Add classpath:  lib\org.eclipse.osgi_3.8.1.v20120830-144521.jar
Launcher:   C:\Program Files\processing-3.0\java\bin\javaw.exe
Launcher args:  -Xmx256m -Djna.nosys=true -Djna.boot.library.path=lib -Djna.nounpack=true -classpath "lib;lib\pde.jar;core\library\core.jar;lib\jna.jar;lib\antlr.jar;lib\ant.jar;lib\ant-launcher.jar;lib\org-netbeans-swing-outline.jar;lib\com.ibm.icu_4.4.2.v20110823.jar;lib\jdi.jar;lib\jdimodel.jar;lib\org.eclipse.osgi_3.8.1.v20120830-144521.jar" processing.app.Base
Args length:    351/32768 chars
Exit code:  259

@processing-bot
Copy link
Collaborator Author

Created by: torranto

New details. The Processing runs for a very long time.
I forgot to kill "javaw.exe" processes manually. And after some time the editor window is shown.

Testing steps (with enabled system proxy and without removing the string "instance_server.port=...")

  1. Run Processing (with connected network)
    • Splash screen is shown.
    • In Task Manager. Processes "processing.exe" and "javaw.exe" is running.
    • Waiting
    • After 60 seconds (I checked with timer) splash screen is closed.
    • Process "processing.exe" is stopped.
    • Process "javaw.exe" is not stopped.
    • Editor window is not shown.
    • Waiting
    • After 14 minutes (I checked with timer) editor window is shown.
    • Open any sketch
    • Click button "Run sketch"
    • In Task Manager. Processes "java.exe" is running
    • Sketch windows is not shown.
    • Click button "Stop"
    • Exit processing
    • Process "javaw.exe" is stopped.
    • Process "java.exe" is not stopped.
    • Kill "java.exe" process manually.
  2. I tried to run the program several times
    • Disconnect network.
    • Run Processing. Editor window is shown with name "sketch_151002a"
    • Run processing a second time. Second editor window is shown with name "sketch_151002a"
    • Run processing a third time. Three editor window is shown with name "sketch_151002a"
    • All window with suffix "a" in name, not "a, b, c".
  3. I try to change proxy to IP:localhost port:80
    • Run Processing
    • Splash screen is shown.
    • After 1 minutes splash screen is closed and editor window is shown.
    • (when I use localhost I don't need waiting 14 minutes)
    • Open any sketch
    • Click button "Run sketch"
    • Sketch windows is not shown.

I try run with disabled system proxy:

  • Disable the system proxy in Internet Explorer.
  • Run Processing. Editor window is shown.
  • Run sketch. Sketch windows is shown.
  • Run Processing several times. Editor windows is shown with different default names: "sketch_151002a", "sketch_151002b", "sketch_151002c"
  • Everything is great.

@gtitaev you right, problem with the system proxy. I confirm problems in processing/processing#3588.

Processing 3.0-windows32
OS: Windows 7 x32, Windows 8.1 x64

@processing-bot
Copy link
Collaborator Author

Created by: ghost

Same Problem under Windows 10 7 and 8 while having System-wide Proxy enabled.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant