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

Demo breaks (macOS 10.13.6). #34

Open
RalphieBoy opened this issue May 18, 2021 · 4 comments
Open

Demo breaks (macOS 10.13.6). #34

RalphieBoy opened this issue May 18, 2021 · 4 comments

Comments

@RalphieBoy
Copy link

New user for SCSCP (version 2.2.3), GAP 4.10.1, macOS 10.13.6. Tried the test in README.md. It blew up. Short transcript attached.

SCSCP.txt

I keyed "return" as instructed, which did nothing. Then ^D got me back to shell prompt.

@olexandr-konovalov
Copy link
Member

olexandr-konovalov commented May 19, 2021

Thanks, I see what happened - the demo runs through examples from https://github.com/gap-packages/scscp/blob/master/demo/paris2011.g and this line EvaluateBySCSCP( "ChangeInfoLevel", [4], server, port ); for the demo purposes increases the verbosity on the server. But that is only available if https://github.com/gap-packages/scscp/blob/master/example/private.g is loaded, what's not by default. if you would like your SCSCP server to understand ChangeInfoLevel, you can add the block

ChangeInfoLevel:=function( n )
SetInfoLevel( InfoSCSCP, n );
return true;
end;

InstallSCSCPprocedure( "ChangeInfoLevel",  ChangeInfoLevel, 	
    "To change InfoSCSCP level on the server without restarting", 1, 1 );

to your server configuration file. Otherwise, remove that problematic call from demo/paris2011.g (or, instead of calling gap rundemo.g try examples from there line by one.

Thanks for reporting this - I will fix the demo for the next release.

@olexandr-konovalov
Copy link
Member

P.S. A demo of distributed parallel calculations with SCSCP at https://github.com/alex-konovalov/scscp-demo is more recently tested. It extends an example of the search in the GAP Small Groups Library from the Carpentries-style GAP lesson at https://github.com/carpentries-incubator/gap-lesson.

@RalphieBoy
Copy link
Author

RalphieBoy commented May 23, 2021 via email

@olexandr-konovalov
Copy link
Member

@RalphieBoy apologies, demos are in a messy state (see #11). This is what happens when you don't run them regularly. The tests from tst are actually run more often, and I have just fixed CI in #33, switching from Travis CI to GitHub actions. Now you can see e.g. at https://github.com/gap-packages/scscp/runs/2669740442?check_suite_focus=true, by expanding the output section named "Run gap-actions/run-pkg-tests@v2", the tests output. It shows diffs due to some random ID in tests, but otherwise those are working examples of communication. Look for EvaluateBySCSCP calls, if you're interested in a user-level functionality.

SCSCP debugging is not most-user friendly - in particular, when an error occurs on the server during the call evaluation, it catches an error messages, sends it to the client, and resumes waiting for a new call. I am happy to look at error messages, they may look familiar and I might be able to spot the problem quickly. In particular, missing PqStandardPresentation means that the ANUPQ package is not compiled.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants