Thank you for your reply!
I corrected this, but unfortunately it doesn't solve the problem. The
front end still freezes.
I used the following in the front end setup ("arguments to MLOpen"):
-LinkName "8000,8001" -LinkMode Listen -LinkProtocol TCPIP -LinkHost
"MY-IP-HERE" -LinkOptions MLDontInteract
I did this from the command line kernel:
link=LinkConnect["8000,8001", LinkProtocol -> "TCPIP"]
$ParentLink = link;
Again, everything appears to work for a while, but Manipulate[n,
{n,0,1}] will freeze the kernel if I play for long enough with it.
(Not immediately, but usually it'll freeze in less than 10 seconds if
I keep dragging the slider up and down without letting it go.)
Based on your comment I tested whether aborting computations works
correctly, and it does.
I tried other variations too such as including the IP in the link name
("8000@MY-IP,8001@MY-IP"), or using -LinkMode Connect in the front end
configuration after doing LinkCreate["8000,8001", LinkProtocol ->
"TCPIP"] in the kernel. The result is the same every time. Everything
appears to work correctly for a while, but Dynamic cells will surely
freeze up the front end sooner or later.
This talk <
http://library.wolfram.com/infocenter/Conferences/7250/>
mentions that actually not one, but three links are used for
communication between the front end and the kernel. Is it possible
that something is going wrong with the other two links? Is there a
way I could see if they are created and work correctly? (I am only
creating a single link manually, and it's not clear to me how the
other two are made.) Evaluating Links[] does indeed show three TCPIP
links (as well as some others), but this is kernel-side only. Can I
verify that everything is fine on the front end side as well?
Szabolcs
On 4 January 2012 20:52, John Fultz <
jfu...@wolfram.com> wrote:
> I don't know if this is the cause of the problem or not, but that's the wrong
> linkname syntax for the TCPIP protocol. =C2 TCPIP uses *two* ports,
> comma-delimited. =C2 One is the regular data channel, and the other is for urgent
> "messages", which includes things like interrupt, abort, and terminate.
>
> Try doing...
>
> LinkCreate[LinkProtocol -> "TCPIP"]
>
> to see an example of a proper linkname.
>
> Sincerely,
>
> John Fultz
>
jfu...@wolfram.com
> User Interface Group
> Wolfram Research, Inc.
>
> On Wed, 4 Jan 2012 05:01:45 -0500 (EST), Szabolcs Horv=C3=A1t wrote:
>>
>> Note: I already asked this question here, but I'm hoping to reach a
>> larger audience:
>>
>>
http://stackoverflow.com/questions/8717211/understanding-kernel-frontend-
>> communication-why-does-my-front-end-freeze
>>
>>
>> The question:
>>
>> When I try to connect to a remote kernel, the front end always freezes
>> sooner or later. =C2 I managed to reproduce the problem on the *local*
>> machine. =C2 Can you please take a look at what I am doing wrong, and how I
>> Note: I am on Windows XP. =C2 I should also link to this presentation and
>> Szabolcs Horv==E1t