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

Error "Child Process exited with Code 2" shown when starting Cryptomator.exe twice #2138

Closed
2 tasks done
infeo opened this issue Mar 29, 2022 · 11 comments
Closed
2 tasks done
Labels
misc:gui type:bug Something isn't working
Milestone

Comments

@infeo
Copy link
Member

infeo commented Mar 29, 2022

Please agree to the following

Summary

Executing Cryptomator.exe while the application is already running shows an error message.

What software is involved?

  • Operating System: Windows 10
  • Cryptomator: 1.6.7

Volume Type

No response

Steps to Reproduce

  1. Start Cryptomator
  2. Start Cryptomator again

Expected Behavior

The GUI of the already running Cryptomator instance is shown

Actual Behavior

An error message is displayed stating "The Child process exited with Code 2" and in the background the GUI of the already running Cryptomator instance is shown.

Reproducibility

Always

Relevant Log Output

-/-

Anything else?

First reported in #2127 (but in German language)

@infeo infeo added type:bug Something isn't working misc:gui labels Mar 29, 2022
@overheadhunter overheadhunter changed the title Error "Child Process exited with Code 2" shown when running Cryptomator.exe again Error "Child Process exited with Code 2" shown when starting Cryptomator.exe twice Mar 29, 2022
@overheadhunter overheadhunter added this to the 1.6.8 milestone Mar 29, 2022
@RichardEb

This comment was marked as off-topic.

@RichardEb

This comment was marked as off-topic.

@RichardEb

This comment was marked as off-topic.

@SailReal

This comment was marked as off-topic.

@RichardEb

This comment was marked as off-topic.

@SailReal

This comment was marked as off-topic.

@RichardEb

This comment was marked as off-topic.

@KolFri3922

This comment was marked as outdated.

@infeo
Copy link
Member Author

infeo commented Mar 30, 2022

Thanks for the detailed reports.

We found the cause for the issue, it is unrelated to the similar error "... exited with Code 1"(see #2130 ), or any other issue when Cryptomator is running.

It is caused by an upstream "fix" in the JDK (see https://bugs.openjdk.java.net/browse/JDK-8272328). We need to find a way to circumvent that our Java applications spawns a child process due to a missing path.

@infeo infeo closed this as completed in e8c63dd Mar 30, 2022
@infeo
Copy link
Member Author

infeo commented Mar 30, 2022

The child process spawning on windows cannot easily be prevented, hence we decided to just return 0 if a running application is found.

@overheadhunter
Copy link
Member

For the record: https://bugs.openjdk.java.net/browse/JDK-8284067

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
misc:gui type:bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants