New issue
Advanced search Search tips

Issue 862530 link

Starred by 1 user

Issue metadata

Status: Unconfirmed
Owner: ----
Components:
EstimatedDays: ----
NextAction: ----
OS: Windows
Pri: 2
Type: Bug



Sign in to add a comment

Catch psutil.NoSuchProcess when iterating over processes in catapult

Reported by sabbaku...@yandex-team.ru, Jul 11

Issue description

UserAgent: Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.103 YaBrowser/18.7.0.1875 (beta) Yowser/2.5 Safari/537.36

Steps to reproduce the problem:
Traceback (most recent call last):
  <module> at d:\buildagent\temp\buildtmp\perf_root_lkioz5\src\tools\perf\run_benchmark:27
    sys.exit(main())
  main at d:\buildagent\temp\buildtmp\perf_root_lkioz5\src\tools\perf\run_benchmark:23
    return benchmark_runner.main(config, [trybot_command.Trybot])
  main at d:\buildagent\temp\buildtmp\perf_root_lkioz5\src\third_party\catapult\telemetry\telemetry\benchmark_runner.py:439
    return command_instance.Run(options)
  Run at d:\buildagent\temp\buildtmp\perf_root_lkioz5\src\third_party\catapult\telemetry\telemetry\benchmark_runner.py:309
    return min(255, b.Run(args))
  Run at d:\buildagent\temp\buildtmp\perf_root_lkioz5\src\third_party\catapult\telemetry\telemetry\benchmark.py:99
    return story_runner.RunBenchmark(self, finder_options)
  RunBenchmark at d:\buildagent\temp\buildtmp\perf_root_lkioz5\src\third_party\catapult\telemetry\telemetry\internal\story_runner.py:421
    memory_debug.LogHostMemoryUsage()
  LogHostMemoryUsage at d:\buildagent\temp\buildtmp\perf_root_lkioz5\src\third_party\catapult\common\py_utils\py_utils\memory_debug.py:64
    pinfo = _GetProcessInfo(p)
  _GetProcessInfo at d:\buildagent\temp\buildtmp\perf_root_lkioz5\src\third_party\catapult\common\py_utils\py_utils\memory_debug.py:34
    pinfo = p.as_dict(attrs=['pid', 'name', 'memory_info'])
  as_dict at d:\buildagent\temp\buildtmp\tmpfvfvb2.venv\bin\lib\site-packages\psutil\__init__.py:527
    ret = meth()
  name at d:\buildagent\temp\buildtmp\tmpfvfvb2.venv\bin\lib\site-packages\psutil\__init__.py:605
    name = self._proc.name()
  wrapper at d:\buildagent\temp\buildtmp\tmpfvfvb2.venv\bin\lib\site-packages\psutil\_pswindows.py:635
    return fun(self, *args, **kwargs)
  name at d:\buildagent\temp\buildtmp\tmpfvfvb2.venv\bin\lib\site-packages\psutil\_pswindows.py:687
    return py2_strencode(os.path.basename(self.exe()))
  wrapper at d:\buildagent\temp\buildtmp\tmpfvfvb2.venv\bin\lib\site-packages\psutil\_pswindows.py:640
    raise NoSuchProcess(self.pid, self._name)
NoSuchProcess: psutil.NoSuchProcess process no longer exists (pid=1860)

What is the expected behavior?

What went wrong?
When the running process is over the psutil.NoSuchProcess exception is raised but we don't handle that case.

Did this work before? N/A 

Chrome version: 67.0.3396.103  Channel: n/a
OS Version: 10.0
Flash Version: Shockwave Flash 30.0 r0
 
Components: Tests>Telemetry

Comment 2 by benhenry@google.com, Jan 16 (6 days ago)

Components: Test>Telemetry

Comment 3 by benhenry@google.com, Jan 16 (6 days ago)

Components: -Tests>Telemetry

Sign in to add a comment