Skip to content

After running for more than 24 hours, errored out with pool.py  #2160

Description

@publicst

Description

After running following command over 36 hours, scan code removed temporary files, then it crashed without generating report.
F:\WS\FG1.5-venv>scancode -lpceiu -n 4 --csv FG15-Int.csv F:\WS\FG1.5-Int-Installer --license-text

...
[#-------------------] 107580 Scanned: Syncfusion.Grid.Grouping.Windows.dll
Removing temporary files...done.
Traceback (most recent call last):
File "C:\Users\XXX\AppData\Local\Programs\Python\Python36-32\lib\multiprocessing\pool.py", line 720, in next
item = self._items.popleft()
IndexError: pop from an empty deque

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "C:\Users\XXX\AppData\Local\Programs\Python\Python36-32\lib\multiprocessing\pool.py", line 726, in next
item = self._items.popleft()
IndexError: pop from an empty deque

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "C:\Users\XXX\AppData\Local\Programs\Python\Python36-32\lib\runpy.py", line 193, in _run_module_as_main
"main", mod_spec)
File "C:\Users\XXX\AppData\Local\Programs\Python\Python36-32\lib\runpy.py", line 85, in run_code
exec(code, run_globals)
File "f:\ws\FG1.5-venv\Scripts\scancode.exe_main
.py", line 9, in
File "f:\ws\fg1.5-venv\lib\site-packages\click\core.py", line 722, in call
return self.main(*args, **kwargs)
File "f:\ws\fg1.5-venv\lib\site-packages\scancode\utils.py", line 70, in main
standalone_mode=standalone_mode, **extra)
File "f:\ws\fg1.5-venv\lib\site-packages\click\core.py", line 697, in main
rv = self.invoke(ctx)
File "f:\ws\fg1.5-venv\lib\site-packages\click\core.py", line 895, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "f:\ws\fg1.5-venv\lib\site-packages\click\core.py", line 535, in invoke
return callback(*args, **kwargs)
File "f:\ws\fg1.5-venv\lib\site-packages\click\decorators.py", line 17, in new_func
return f(get_current_context(), *args, **kwargs)
File "f:\ws\fg1.5-venv\lib\site-packages\scancode\cli.py", line 513, in scancode
*args, **kwargs)
File "f:\ws\fg1.5-venv\lib\site-packages\scancode\cli.py", line 903, in run_scan
quiet=quiet, verbose=verbose, kwargs=kwargs, echo_func=echo_func,
File "f:\ws\fg1.5-venv\lib\site-packages\scancode\cli.py", line 1093, in run_scanners
with_timing=timing, progress_manager=progress_manager)
File "f:\ws\fg1.5-venv\lib\site-packages\scancode\cli.py", line 1187, in scan_codebase
location, rid, scan_errors, scan_time, scan_result, scan_timings = next(scans)
File "f:\ws\fg1.5-venv\lib\site-packages\click_termui_impl.py", line 259, in next
rv = next(self.iter)
File "f:\ws\fg1.5-venv\lib\site-packages\scancode\pool.py", line 48, in wrap
return func(self, timeout=timeout or 3600)
File "C:\Users\XXX\AppData\Local\Programs\Python\Python36-32\lib\multiprocessing\pool.py", line 730, in next
raise TimeoutError
multiprocessing.context.TimeoutError

How To Reproduce

Running scan code with huge code base with following command
F:\WS\FG1.5-venv>scancode -lpceiu -n 4 --csv FG15-Int.csv F:\WS\FG1.5-Int-Installer --license-text

System configuration

For bug reports, it really helps us to know:

  • What OS are you running on? (Windows/MacOS/Linux) Windows
  • What version of scancode-toolkit was used to generate the scan file? 3.1.1
  • What installation method was used to install/run scancode? (pip/source download/other) pip

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions