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

kernel "hangs" after error #73

Open
haraldschilly opened this issue Jul 19, 2018 · 8 comments
Open

kernel "hangs" after error #73

haraldschilly opened this issue Jul 19, 2018 · 8 comments
Assignees
Labels
bug: does not terminate A computation runs into an infinite loop bug All bugs should have this label, even if they have a more specific one

Comments

@haraldschilly
Copy link

haraldschilly commented Jul 19, 2018

we've seen an issue, where evaluating a cell with the content x (i.e. undefined variable or whatever) causes an error message and no further communication is possible. is this a known problem?

/cc @DrXyzzy

@olexandr-konovalov
Copy link
Member

olexandr-konovalov commented Jul 19, 2018

This was known, and I believe this has been fixed. Which version of GAP and packages do you have? Attached is what works for me.
screen shot 2018-07-19 at 22 55 56

@haraldschilly
Copy link
Author

Attached is my screenshot, from a similar session. It's compiled on ubuntu 18.04, everything as how it comes from the tarball provided on the website. I don't know how to also list the version numbers of relevant packages, though. However, here is how it looks to me, with a freshly-restarted kernel:

screenshot from 2018-07-24 20-40-55

@olexandr-konovalov
Copy link
Member

olexandr-konovalov commented Jul 24, 2018

@haraldschilly thank you, that's really helpful. I can reproduce exactly this session with exactly the same issue on a mac. The same issue is happening when using mybinder from https://github.com/alex-konovalov/gap-teaching (currently using the master branch of GAP).

BTW, you can get versions of packages as follows:

gap> GAPInfo.PackagesInfo.jupyterkernel[1].Version;
"0.99999"

with the packagename there in lowercase. PackageInfo("JupyterKernel"); returns all meta-data about the package, and is not case-sensitive.

@olexandr-konovalov olexandr-konovalov added the bug All bugs should have this label, even if they have a more specific one label Jul 24, 2018
@DrXyzzy
Copy link

DrXyzzy commented Jul 24, 2018

Thanks. I was using the following and getting info from the generated log file

JUPYTER_LogProtocol("gaplog.out");

@haraldschilly
Copy link
Author

Ok, glad you could reproduce it … and thank you for the version info command, our versions of jupyterkernel are the same.

@markuspf
Copy link
Member

The problem is in GAP's error handling: gap-system/gap#2487,
I'll try and see whether I can do some wrangling to get it to not crash...

@olexandr-konovalov
Copy link
Member

Since gap-system/gap#2487 is closed, it may be worth testing if the GAP Jupyter kernel works better with the GAP master branch...

@olexandr-konovalov
Copy link
Member

In GAP 4.11.1, crucial part for reproducing the error above is to enter x without a semicolon. With semicolon, it does not hang.

@olexandr-konovalov olexandr-konovalov self-assigned this Jul 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug: does not terminate A computation runs into an infinite loop bug All bugs should have this label, even if they have a more specific one
Projects
None yet
Development

No branches or pull requests

5 participants