Skip to content

Analysis crash with --no-show-progress option. #598

@ismadirolas

Description

@ismadirolas

Describe the bug
We are executing an analysis over a folder and we get the next error when use the --no-show-progress option:

[ERR] Uncaught exception: AggregateException:One or more errors occurred. (One or more errors occurred. (Value cannot be null. (Parameter 'inputStream'))).
at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)
   at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)
   at System.Threading.Tasks.Task.Wait(TimeSpan timeout, CancellationToken cancellationToken)
   at System.Threading.Tasks.Task.Wait(TimeSpan timeout)
   at Microsoft.ApplicationInspector.Commands.AnalyzeCommand.DoProcessing(IEnumerable`1 fileEntries, CancellationTokenSource cts) in /mnt/vss/_work/1/s/AppInspector/Commands/AnalyzeCommand.cs:line 1132
   at Microsoft.ApplicationInspector.Commands.AnalyzeCommand.GetResult() in /mnt/vss/_work/1/s/AppInspector/Commands/AnalyzeCommand.cs:line 966
   at Microsoft.ApplicationInspector.CLI.Program.RunAnalyzeCommand(CLIAnalyzeCmdOptions cliOptions) in /mnt/vss/_work/1/s/AppInspector.CLI/Program.cs:line 310
   at Microsoft.ApplicationInspector.CLI.Program.VerifyOutputArgsAndRunAnalyze(CLIAnalyzeCmdOptions options) in /mnt/vss/_work/1/s/AppInspector.CLI/Program.cs:line 124
   at Microsoft.ApplicationInspector.CLI.Program.<>c.<Main>b__1_1(CLIAnalyzeCmdOptions cliAnalyzeCmdOptions) in /mnt/vss/_work/1/s/AppInspector.CLI/Program.cs:line 41
   at CommandLine.ParserResultExtensions.MapResult[T1,T2,T3,T4,T5,TResult](ParserResult`1 result, Func`2 parsedFunc1, Func`2 parsedFunc2, Func`2 parsedFunc3, Func`2 parsedFunc4, Func`2 parsedFunc5, Func`2 notParsedFunc)
   at Microsoft.ApplicationInspector.CLI.Program.Main(String[] args) in /mnt/vss/_work/1/s/AppInspector.CLI/Program.cs:line 40
Error: Process completed with exit code 2.

But the thing is that with the same folder and same args without using --no-show-progress option it works correctly.
we don't know what file is causing this (is a big java project) With other projects it doesn't happens.

Thanks in advance.

To Reproduce
Steps to reproduce the behavior:

  1. Run ApplicationInspector with -s . -f json --processing-timeout 900000 --file-timeout 300000 -A -u --no-show-progress -r /rules -i -M 20 -o result.json
  2. See error

Operating Environment (please complete the following information):

  • Application Inspector Version: 1.9.22
  • OS: Linux Ubuntu 20.04

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions