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

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

Open
zhukui opened this issue Nov 24, 2022 · 1 comment
Open

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

zhukui opened this issue Nov 24, 2022 · 1 comment

Comments

@zhukui
Copy link

zhukui commented Nov 24, 2022

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)

@alextekartik
Copy link
Contributor

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');
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants