aboutcode-org / aboutcode-org/scancode-toolkit
Hang/freeze during scanning specific codebase
- Dominant language
- Python
- Stars
- 2.6k
- Forks
- 791
- Avg merge
- 1d 12h
- Merged PRs (30d)
- 5
Description
### Description
I scanned many codebases for licensing using this tool and I think it's reliable, thank you! However this time it was only able to scan ~80% of the big code before stopping at the 6000th resource. Specifically I was scanning https://github.com/bisq-network/bisq2/archive/v2.1.7.tar.gz.
When it hanged, the fans just stopped spinning and it seemed like if the program just rested. Pressing ^C behaved like normal, showing the summary and such.
### How To Reproduce
Download https://github.com/bisq-network/bisq2/archive/v2.1.7.tar.gz, untar it, and scan it (I used command `scancode --copyright --license --csv ../bisq2.csv .` in codebase dir). Wait for ~10 mins (atleast on my computer) and see how at the 6000th resource it stops. Appending -v for verbose to the arguments doesn't show anything new.
Copying the file that the hang happened on (in this case 6000th resource =`PaymentAccountChangeRequest.java`) and scanning it seperately doesn't make it hang.
> For bug reports, it really helps us to know:
* What OS are you running on? GNU/Linux
* What version of scancode-toolkit was used to generate the scan file? 32.2.1 and newest 32.3.3 (latter didn't try -v option in scan, but I don't think output would become different than in former version)
* What installation method was used to install/run scancode? bash, pip in virtualenv
Contributor guide
Assessment
This issue has not been assessed yet.