-
Notifications
You must be signed in to change notification settings - Fork 22
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
Sometimes GAP is started multiple times from Julia #333
Comments
One instance of this problem is the following: |
@fingolfin Could the situation described in my comment above be an explanation of what you had observed? |
This pull request addresses issue oscar-system#334. - By default, `using GAP` will not show the banner. - If Julia's `ENV[ "GAP_SHOW_BANNER" ]` is set to `"true"` then the GAP banner is shown on `using GAP`. - When the user loads GAP packages, it depends on the `LoadPackage` call whether a package banner is shown. This is the standard GAP behaviour in the situation that banners are in principle enabled: If there is a second argument `false` then the banner is not shown, otherwise it is shown. (The idea is to set the command line option `-b` when GAP shall be started without banner, and to reset this option after the start of GAP.) I think we should wait until issue oscar-system#333 gets resolved before switching off the GAP banner by default.
This pull request addresses issue oscar-system#334. - By default, `using GAP` will not show the banner. - If Julia's `ENV[ "GAP_SHOW_BANNER" ]` is set to `"true"` then the GAP banner is shown on `using GAP`. - When the user loads GAP packages, it depends on the `LoadPackage` call whether a package banner is shown. This is the standard GAP behaviour in the situation that banners are in principle enabled: If there is a second argument `false` then the banner is not shown, otherwise it is shown. (The idea is to set the command line option `-b` when GAP shall be started without banner, and to reset this option after the start of GAP.) I think we should wait until issue oscar-system#333 gets resolved before switching off the GAP banner by default.
@ThomasBreuer sorry, I missed your comment earlier. Indeed, I think you are right. I just came upon this again, too, and it matches what you say: I loaded
After starting Julia again, I couldn't reproduce this anymore, presumably because the precompilation result was stored and hence no precompilation was necessary. This should now allow us to debug the problem. |
Note that the banner is called when we call the GAP kernel function So I am lead to the conclusion that the
This also shows that the Repeating this immediately then avoids the precompilation and GAP is started just once:
|
Note that in both settings, we have The Julia documentation is somewhat ambiguous on how and when
One way to read it is that GAP's Regarding the wording of the documentation, I suspect that when GAPGroups is precompiled, a world counter gets increment, and/or the packages used by GAPGroups are marked as "stale"; and when they are accessed, Julia treats them as "new" and reloads the module(s) in question. This suggests that we can fix the issue by remembering that we executed |
OK, problem (re)solved: I realized that the second banner is actually printed by a separate Julia process (I printed |
@fingolfin So should I update Pull Request #342 and merge it? |
Yes please |
This pull request addresses issue oscar-system#334. - By default, `using GAP` will not show the banner. - If Julia's `ENV[ "GAP_SHOW_BANNER" ]` is set to `"true"` then the GAP banner is shown on `using GAP`. - When the user loads GAP packages, it depends on the `LoadPackage` call whether a package banner is shown. This is the standard GAP behaviour in the situation that banners are in principle enabled: If there is a second argument `false` then the banner is not shown, otherwise it is shown. (The idea is to set the command line option `-b` when GAP shall be started without banner, and to reset this option after the start of GAP.) I think we should wait until issue oscar-system#333 gets resolved before switching off the GAP banner by default.
This pull request addresses issue #334. - By default, `using GAP` will not show the banner. - If Julia's `ENV[ "GAP_SHOW_BANNER" ]` is set to `"true"` then the GAP banner is shown on `using GAP`. - When the user loads GAP packages, it depends on the `LoadPackage` call whether a package banner is shown. This is the standard GAP behaviour in the situation that banners are in principle enabled: If there is a second argument `false` then the banner is not shown, otherwise it is shown. (The idea is to set the command line option `-b` when GAP shall be started without banner, and to reset this option after the start of GAP.) I think we should wait until issue #333 gets resolved before switching off the GAP banner by default.
Sometimes GAP is started more than one time in Julia. That is, I've seen instances were a package depending on GAP was loaded, and I saw the GAP banner printed twice. Unfortunately, I don't have a way to reproduce it so far; but I saw it happen on somebody else's computer today, so I wanted to at least make a note of it.
My suspicion is that this could be caused by different GAP versions being loaded by different packages, each getting its "own" GAP. But I am not sure about that. I am somewhat worried about negative interactions, though.
The text was updated successfully, but these errors were encountered: