tekartik / process_run.dart

Process run helper

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

OS Error: 句柄无效。 , errno = 6

zhukui opened this issue · comments

do "adb kill-server" error:
Crashed in non-app: file_impl.dart in _RandomAccessFile.writeFromSync
process_run.dart in runExecutableArguments. at line 152:14 within process_run
Called from: zone.dart in _RootZone.runUnaryGuarded
FileSystemException
FileSystemException: writeFrom failed, path = '' (OS Error: 句柄无效。
, errno = 6)

Not sure on which platform you are running (mac, linux, win), if you are using flutter or plain part and which version of process_run you use (0.12.3+2 ?). And since you don't share any code it is hard to do any investigation. The following dart app work well for me (assuming adb is in your path):

import 'package:process_run/shell.dart';

void main(List<String> arguments) async {
  await run('adb kill-server');
}