If IsolateRunner.kill() is called without setting the timeout duration to 0 seconds, then _commandPort.send(list1(_SHUTDOWN)); is called. However, _handleCommand in IsolateRunnerRemote expects the list to have length of at least 2, so SendPort responsePort = command[1]; is an invalid access which causes a crash.
If IsolateRunner.kill() is called without setting the timeout duration to 0 seconds, then
_commandPort.send(list1(_SHUTDOWN));
is called. However,_handleCommand
in IsolateRunnerRemote expects the list to have length of at least 2, soSendPort responsePort = command[1];
is an invalid access which causes a crash.