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

[GS] verbose mode disconnects the server #3766

Closed
sriramab opened this issue Apr 14, 2023 · 4 comments
Closed

[GS] verbose mode disconnects the server #3766

sriramab opened this issue Apr 14, 2023 · 4 comments
Assignees

Comments

@sriramab
Copy link
Member

When starting the headless websocket, using the python wrapper, with the verbose flag, the connection is not stable and disconnects after the first call.

When starting the headless websocket, using the python wrapper, "without" the verbose flag, the connection is stable.

@sriramab
Copy link
Member Author

see also gama-platform/gama#3756 gama-platform/gama#3758

@RoiArthurB RoiArthurB transferred this issue from gama-platform/gama.old Apr 14, 2023
@lesquoyb lesquoyb changed the title python wrapper - verbose mode disconnects the server [GS] verbose mode disconnects the server Apr 14, 2023
@lesquoyb lesquoyb transferred this issue from another repository Apr 14, 2023
@hqnghi88
Copy link
Member

It is relate with the launch script on Mac OS (gama-headless.sh). The last produced command is:
java -cp ./../Eclipse/plugins/org.eclipse.equinox.launcher_1.6.400.v20210924-0641.jar -Xms512m -Xmx4096m -Djava.awt.headless=true org.eclipse.core.launcher.Main -configuration ./configuration -application msi.gama.headless.product -data -v/.workspace0 -socket 6868 -v

The problem come from -data -v/.workspace0 , it is miss recognized/construct and the workspace is then corrupted that lead to unpredictable error (compilation, runtime error of models)
@RoiArthurB please review the generation of arguments

@AlexisDrogoul
Copy link
Member

This issue should be moved to a proper repository, either https://github.com/gama-platform/gama.client or whatever new name we give it (gama.server ?).

@lesquoyb lesquoyb moved this to Todo in GAMA 1.9.2 May 22, 2023
@github-project-automation github-project-automation bot moved this from Todo to Done in GAMA 1.9.2 Aug 8, 2023
@RoiArthurB
Copy link
Collaborator

The wrapper had a little type (copy-pasting ?) path error which was taking the last command parameter in the workspace path giving the error from 3766 (-data -v/.workspace, wrong folder name in MacOS).

In general, it remains a good practice (i.e bug-free) to set headless options before any gama headless runner command (cf. bash ./gama-headless.sh -help to know which is what ;) )

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Status: Done
Development

No branches or pull requests

5 participants