scancode-toolkit
scancode-toolkit copied to clipboard
ScanCode times out on scanning a file with very long lines
Describe the bug
ScanCode times out on scanning the file https://github.com/ElinamLLC/SharpVectors/blob/master/Source/SharpVectorModel/Compressions/Brotli/Dictionary.cs which contains exceedingly long strings.
I cannot see another reason why this might happen.
To Reproduce
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net8.0</TargetFramework>
<RootNamespace>ort-test</RootNamespace>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="SharpVectors.Reloaded" Version="1.8.1" />
</ItemGroup>
</Project>
Steps to reproduce the behavior:
- use the given minimal C# project example
- scan
- See error
Expected behavior
Scan runs successfully.
Console / log output
NuGet:SharpVectors:Reloaded:1.8.1
ERROR: Timeout after 300 seconds while scanning file 'Source/SharpVectorModel/Compressions/Brotli/Dictionary.cs'.
Environment
- ORT version: 29.1.0
- Java version: JDK 11.0.24+8 Java 21.0.4
- OS: Ubuntu 22.04
PS: See the related issue for ORT.