aboutcode-org / aboutcode-org/scancode-toolkit

ScanCode 31.2.1 fail to scan a large XMI file

未關閉
#3,175 6 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
bug
主要語言
Python
星號
2.6k
分支
791
平均合併
1 天 12 小時
30 天內合併 PR
5

描述

### Description

Scanning https://raw.githubusercontent.com/apache/poi/51cdefee23536aa916dd93f229c5cd6301be378c/src/models/poi.xmi with `--copyright --license --info --strip-root -n 4 --timeout 300 --processes 7` results in

```
09:59:43.356 [main] INFO org.ossreviewtoolkit.scanner.Scanner - Scan of RepositoryProvenance(vcsInfo=VcsInfo(type=Git, url=https://github.com/apache/poi.git, revision=, path=), resolvedRevision=51cdefee23536aa916dd93f229c5cd6301be378c) with path scanner 'ScanCode' started.
09:59:43.359 [main] INFO org.ossreviewtoolkit.utils.common.ProcessCapture - Running 'scancode --copyright --license --info --strip-root -n 4 --timeout 300 --processes 7 /tmp/ort-DefaultProvenanceDownloader12179513788909952484 --json-pp /tmp/ort-ScanCode727923217993477194/result.json' in '/home/ort'...
Exception in thread "main" java.io.IOException: Running 'scancode --copyright --license --info --strip-root -n 4 --timeout 300 --processes 7 /tmp/ort-DefaultProvenanceDownloader12179513788909952484 --json-pp /tmp/ort-ScanCode727923217993477194/result.json' in '/home/ort' failed with exit code 1:
Setup plugins...
Collect file inventory...
Scan files for: info, licenses, copyrights with 7 process(es)...
Scanning done.
Some files failed to scan properly:
Path: ort-DefaultProvenanceDownloader12179513788909952484/src/models/poi.xmi
Summary: info, licenses, copyrights with 7 process(es)
Errors count: 1
Scan Speed: 2.36 files/sec. 54.30 KB/sec.
Initial counts: 4259 resource(s): 3836 file(s) and 423 directorie(s)
Final counts: 4258 resource(s): 3836 file(s) and 422 directorie(s) for 86.02 MB
Timings:
scan_start: 2022-12-15T095944.898917
scan_end: 2022-12-15T102654.718183
setup_scan:licenses: 5.10s
setup: 5.10s
inventory: 1.09s
scan: 1622.26s
output:json-pp: 3.77s
output: 3.77s
total: 1633.86s
Removing temporary files...done.

at org.ossreviewtoolkit.utils.common.ProcessCapture.requireSuccess(ProcessCapture.kt:154)
at org.ossreviewtoolkit.utils.common.CommandLineTool$DefaultImpls.run(CommandLineTool.kt:74)
at org.ossreviewtoolkit.scanner.CommandLinePathScannerWrapper.run(CommandLinePathScannerWrapper.kt:32)
```
and exit code 1.

Full log is available at https://foundation.eclipse.org/ci/infra/job/ort/job/Staging/job/staging_run_ort/20/console

### How To Reproduce

See above.

### System configuration

* What OS are you running on? Linux
* What version of scancode-toolkit was used to generate the scan file? 31.2.1
* What installation method was used to install/run scancode? pip

貢獻指南

開啟貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。