Skip to content

Stack overflow with Dagger 2.56.2 #4702

Open
@jrgonzalezg

Description

@jrgonzalezg

My app has been compiling fine until Dagger 2.56.1 (included). But if I try to update to Dagger/Hilt 2.56.2 I get this exception on every build:

Caused by: java.lang.StackOverflowError
        at com.squareup.kotlinpoet.TypeName.hashCode(TypeName.kt:111)
        at com.squareup.kotlinpoet.ParameterizedTypeName.hashCode(ParameterizedTypeName.kt:121)
        at com.squareup.kotlinpoet.TypeVariableName.hashCode(TypeVariableName.kt:92)
        at com.squareup.kotlinpoet.ParameterizedTypeName.hashCode(ParameterizedTypeName.kt:124)
        at com.squareup.kotlinpoet.TypeVariableName.hashCode(TypeVariableName.kt:92)
        at com.squareup.kotlinpoet.ParameterizedTypeName.hashCode(ParameterizedTypeName.kt:124)
        at com.squareup.kotlinpoet.TypeVariableName.hashCode(TypeVariableName.kt:92)
        at com.squareup.kotlinpoet.ParameterizedTypeName.hashCode(ParameterizedTypeName.kt:124)
        at com.squareup.kotlinpoet.TypeVariableName.hashCode(TypeVariableName.kt:92)

The stacktrace keeps repeating those lines which suggest some infinite recursion. And I have no information provided of which of my code leads to that.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions