Skip to content

Incorrect Problems visualizing for InnerCalls.doubleCallFactorial #1381

Closed
@alisevych

Description

@alisevych

Description

Incorrect Problems visualizing for InnerCalls.doubleCallFactorial
There is an error test with StackOverflowError generated:

  • there is almost empty stack trace for it
  • the wrong line is addressed in code from Problems view

To Reproduce

  1. Install one of the latest plugin build from main in IDEA
  2. Run the 'UTBotJava' project in IntelliJ Idea
  3. Use default Settings -> Tools -> UnitTestBot, set Problems view to be shown
  4. Use plugin to generate tests for the sample org.utbot.examples.inner.InnerCalls.doubleCallFactorial() with default settings
  5. On Problems tab select the only error StackOverflowError

Expected behavior

Line in Recursion.factorial should be addressed - as it throws SOE.
Full stack trace is expected.

Actual behavior

Incorrect line is addressed - in not related method InnerCalls.callLoopInsideLoop()
Same incorrect lines are shown for different other methods in InnerCalls class.

Visual proofs (screenshots, logs, images)

  • there is almost empty stack trace for it:

image

  • the wrong line is addressed in code:

image

Environment

Windows 10 Pro
IntelliJ IDEA 2022.2.3

Additional context

Originally posted by @alisevych in #1364 (comment)

Metadata

Metadata

Assignees

Labels

ctg-bugIssue is a bug

Type

No type

Projects

Status

Done

Relationships

None yet

Development

No branches or pull requests

Issue actions