njpipeorgan / wolfram-language-notebook

Notebook support for Wolfram Language in VS Code
Apache License 2.0
159 stars 11 forks source link

Can not start kernel (even after restarting) . #38

Open userrand opened 1 year ago

userrand commented 1 year ago

I have not been able to start the kernel even after restarting the computer. I received this popup error:

The kernel has stopped due to the following error: The first packet is not a InputNamePacket; packet=Message[acket[SetOptions, optnf]

Screenshots [Fri, 07 Oct 2022 09:00:50 GMT] kernelIsRemote = false, kernelPort = 52714 [Fri, 07 Oct 2022 09:00:50 GMT] kernelInitPath = /home/name/.vscode/extensions/njpipeorgan.wolfram-language-notebook-0.1.0/resources/init-compressed.txt [Fri, 07 Oct 2022 09:00:50 GMT] kernelRenderInitPath = /home/name/.vscode/extensions/njpipeorgan.wolfram-language-notebook-0.1.0/resources/render-html.wl [Fri, 07 Oct 2022 09:00:50 GMT] launchCommand = wolframscript [Fri, 07 Oct 2022 09:00:50 GMT] launchArguments = -code,ToExpression["zmqPort=52714;"<>Uncompress["1:eJy9PA1X27iy96e4gsMBrkJJ+7bvHSB54fOWu0ApSXfvWdcLJhHEi2OnttNCQ/afvf/2ZvRhS7IdUtpddimJJY1Go9F8yy+u44vu/7n/+MfqurO1de737/xbtrXlrK993Gy+wl/e0GX9LIijvGF1/ [Fri, 07 Oct 2022 09:00:51 GMT] Received the following data from kernel: [Fri, 07 Oct 2022 09:00:51 GMT] [Fri, 07 Oct 2022 09:00:52 GMT] Received the following data from kernel: [Fri, 07 Oct 2022 09:00:52 GMT] $CommandLine={/usr/local/Wolfram/Mathematica/13.1/SystemFiles/Kernel/Binaries/Linux-x86-64/WolframKernel, -runfirst, Unprotect[$EvaluationEnvironment];$EvaluationEnvironment="Script";Protect[$EvaluationEnvironment [Fri, 07 Oct 2022 09:00:52 GMT] Received the following data from kernel: [Fri, 07 Oct 2022 09:00:52 GMT] $ScriptCommandLine={wolframscript, -code, ToExpression["zmqPort=52714;"<>Uncompress["1:eJy9PA1X27iy96e4gsMBrkJJ+7bvHSB54fOWu0ApSXfvWdcLJhHEi2OnttNCQ/afvf/2ZvRhS7IdUtpddimJJY1Go9F8yy+u44vu/7n/+MfqurO1de737/xbtrXlrK993Gy+ [Fri, 07 Oct 2022 09:00:52 GMT] Received the following data from kernel: [Fri, 07 Oct 2022 09:00:52 GMT] Using the following command to launch the subkernel process: [Fri, 07 Oct 2022 09:00:52 GMT] Received the following data from kernel: [Fri, 07 Oct 2022 09:00:52 GMT] /usr/local/Wolfram/Mathematica/13.1/SystemFiles/Kernel/Binaries/Linux-x86-64/WolframKernel -noicon -wstp -linkprotocol SharedMemory -linkmode connect -linkname doktjhhm6y8t1a5z [Fri, 07 Oct 2022 09:00:53 GMT] Killing kernel process, pid = 3662 [Fri, 07 Oct 2022 09:00:53 GMT] Process exited with code 0 and signal null.

Environment:

mariohuq commented 1 year ago

same issue

[Thu, 03 Nov 2022 19:36:22 GMT] kernelIsRemote = false, kernelPort = 49762
[Thu, 03 Nov 2022 19:36:22 GMT] kernelInitPath = /home/mhq/.vscode/extensions/njpipeorgan.wolfram-language-notebook-0.1.0/resources/init-compressed.txt
[Thu, 03 Nov 2022 19:36:22 GMT] kernelRenderInitPath = /home/mhq/.vscode/extensions/njpipeorgan.wolfram-language-notebook-0.1.0/resources/render-html.wl
[Thu, 03 Nov 2022 19:36:22 GMT] launchCommand = wolframscript
[Thu, 03 Nov 2022 19:36:22 GMT] launchArguments = -code,ToExpression["zmqPort=49762;"<>Uncompress["1:eJy9PA1X27iy96e4gsMBrkJJ+7bvHSB54fOWu0ApSXfvWdcLJhHEi2OnttNCQ/afvf/2ZvRhS7IdUtpddimJJY1Go9F8yy+u44vu/7n/+MfqurO1de737/xbtrXlrK993Gy+wl/e0GX9LIijvGF1/
[Thu, 03 Nov 2022 19:36:25 GMT] Received the following data from kernel:
[Thu, 03 Nov 2022 19:36:25 GMT] <INITIALIZATION STARTS>
[Thu, 03 Nov 2022 19:36:28 GMT] Received the following data from kernel:
[Thu, 03 Nov 2022 19:36:28 GMT] $CommandLine={/usr/local/Wolfram/WolframEngine/13.1/SystemFiles/Kernel/Binaries/Linux-x86-64/WolframKernel, -runfirst, Unprotect[$EvaluationEnvironment];$EvaluationEnvironment="Script";Protect[$EvaluationEnvironme
[Thu, 03 Nov 2022 19:36:28 GMT] Received the following data from kernel:
[Thu, 03 Nov 2022 19:36:28 GMT] $ScriptCommandLine={wolframscript, -code, ToExpression["zmqPort=49762;"<>Uncompress["1:eJy9PA1X27iy96e4gsMBrkJJ+7bvHSB54fOWu0ApSXfvWdcLJhHEi2OnttNCQ/afvf/2ZvRhS7IdUtpddimJJY1Go9F8yy+u44vu/7n/+MfqurO1de737/xbtrXlrK993Gy+
[Thu, 03 Nov 2022 19:36:28 GMT] Received the following data from kernel:
[Thu, 03 Nov 2022 19:36:28 GMT] Using the following command to launch the subkernel process:
[Thu, 03 Nov 2022 19:36:28 GMT] Received the following data from kernel:
[Thu, 03 Nov 2022 19:36:28 GMT] /usr/local/Wolfram/WolframEngine/13.1/SystemFiles/Kernel/Binaries/Linux-x86-64/WolframKernel -noicon -wstp -linkprotocol SharedMemory -linkmode connect -linkname r57jmcr8f9eecd7f
[Thu, 03 Nov 2022 19:36:30 GMT] Received the following data from kernel:
[Thu, 03 Nov 2022 19:36:30 GMT] 
LinkObject::linkd: Unable to communicate with closed link LinkObject[r57jmcr8f9eecd7f, 195, 2].

[Thu, 03 Nov 2022 19:36:30 GMT] Killing kernel process, pid = 12799
[Thu, 03 Nov 2022 19:36:30 GMT] Process exited with code 0 and signal null.
I-am-Rudi commented 1 year ago

edited

For me the issue has been resolved by downgrading to WolframEngine 13.0.1 (be sure to remove the old Kernel completely).

######################################################################################## old entry ########################################################################################

same issue

[Wed, 09 Nov 2022 01:13:52 GMT] kernelIsRemote = false, kernelPort = 64077 [Wed, 09 Nov 2022 01:13:52 GMT] kernelInitPath = /home/rudi/.vscode-oss/extensions/njpipeorgan.wolfram-language-notebook-0.1.0/resources/init-compressed.txt [Wed, 09 Nov 2022 01:13:52 GMT] kernelRenderInitPath = /home/rudi/.vscode-oss/extensions/njpipeorgan.wolfram-language-notebook-0.1.0/resources/render-html.wl [Wed, 09 Nov 2022 01:13:52 GMT] launchCommand = /usr/bin/wolframscript [Wed, 09 Nov 2022 01:13:52 GMT] launchArguments = -code,ToExpression["zmqPort=64077;"<>Uncompress["1:eJy9PA1X27iy96e4gsMBrkJJ+7bvHSB54fOWu0ApSXfvWdcLJhHEi2OnttNCQ/afvf/2ZvRhS7IdUtpddimJJY1Go9F8yy+u44vu/7n/+MfqurO1de737/xbtrXlrK993Gy+wl/e0GX9LIijvGF1/ [Wed, 09 Nov 2022 01:13:54 GMT] Received the following data from kernel: [Wed, 09 Nov 2022 01:13:54 GMT] [Wed, 09 Nov 2022 01:13:55 GMT] Received the following data from kernel: [Wed, 09 Nov 2022 01:13:55 GMT] $CommandLine={/usr/local/Wolfram/WolframEngine/13.1/SystemFiles/Kernel/Binaries/Linux-x86-64/WolframKernel, -runfirst, Unprotect[$EvaluationEnvironment];$EvaluationEnvironment="Script";Protect[$EvaluationEnvironme [Wed, 09 Nov 2022 01:13:55 GMT] Received the following data from kernel: [Wed, 09 Nov 2022 01:13:55 GMT] $ScriptCommandLine={/usr/bin/wolframscript, -code, ToExpression["zmqPort=64077;"<>Uncompress["1:eJy9PA1X27iy96e4gsMBrkJJ+7bvHSB54fOWu0ApSXfvWdcLJhHEi2OnttNCQ/afvf/2ZvRhS7IdUtpddimJJY1Go9F8yy+u44vu/7n/+MfqurO1de737/xbtrX [Wed, 09 Nov 2022 01:13:55 GMT] Received the following data from kernel: [Wed, 09 Nov 2022 01:13:55 GMT] Using the following command to launch the subkernel process: [Wed, 09 Nov 2022 01:13:55 GMT] Received the following data from kernel: [Wed, 09 Nov 2022 01:13:55 GMT] /usr/local/Wolfram/WolframEngine/13.1/SystemFiles/Kernel/Binaries/Linux-x86-64/WolframKernel -noicon -wstp -linkprotocol SharedMemory -linkmode connect -linkname y6pal31bt24odken [Wed, 09 Nov 2022 01:13:56 GMT] Received the following data from kernel: [Wed, 09 Nov 2022 01:13:56 GMT] LinkObject::linkd: Unable to communicate with closed link LinkObject[y6pal31bt24odken, 195, 2].

[Wed, 09 Nov 2022 01:13:56 GMT] Killing kernel process, pid = 17550 [Wed, 09 Nov 2022 01:13:56 GMT] Process exited with code 0 and signal null.

bzjan commented 1 year ago

What resolved this issue for me is deactivating the official Wolfram extension (bc it runs a wolfram kernel instance in the background). It works in version13.3.