henrytao-me / smooth-app-bar-layout

Smooth version of Google Support Design AppBarLayout
Apache License 2.0
1.77k stars 240 forks source link

StackOverflowError onMeasureChild #148

Closed arjunkn closed 8 years ago

arjunkn commented 8 years ago

I got this error on implementing smooth smoothappbarlayout

Process: com.solutions.miyamiya, PID: 22565 java.lang.StackOverflowError: stack size 8MB at me.henrytao.smoothappbarlayout.BaseBehavior.onMeasureChild(BaseBehavior.java:80) at android.support.design.widget.AppBarLayout$Behavior.onMeasureChild(AppBarLayout.java:755) at me.henrytao.smoothappbarlayout.BaseBehavior.onMeasureChild(BaseBehavior.java:80) at android.support.design.widget.AppBarLayout$Behavior.onMeasureChild(AppBarLayout.java:755) at me.henrytao.smoothappbarlayout.BaseBehavior.onMeasureChild(BaseBehavior.java:80) at android.support.design.widget.AppBarLayout$Behavior.onMeasureChild(AppBarLayout.java:755) at me.henrytao.smoothappbarlayout.BaseBehavior.onMeasureChild(BaseBehavior.java:80) at android.support.design.widget.AppBarLayout$Behavior.onMeasureChild(AppBarLayout.java:755) at me.henrytao.smoothappbarlayout.BaseBehavior.onMeasureChild(BaseBehavior.java:80) at android.support.design.widget.AppBarLayout$Behavior.onMeasureChild(AppBarLayout.java:755) at me.henrytao.smoothappbarlayout.BaseBehavior.onMeasureChild(BaseBehavior.java:80) at android.support.design.widget.AppBarLayout$Behavior.onMeasureChild(AppBarLayout.java:755) at me.henrytao.smoothappbarlayout.BaseBehavior.onMeasureChild(BaseBehavior.java:80) at android.support.design.widget.AppBarLayout$Behavior.onMeasureChild(AppBarLayout.java:755) at me.henrytao.smoothappbarlayout.BaseBehavior.onMeasureChild(BaseBehavior.java:80) at android.support.design.widget.AppBarLayout$Behavior.onMeasureChild(AppBarLayout.java:755) at me.henrytao.smoothappbarlayout.BaseBehavior.onMeasureChild(BaseBehavior.java:80) at android.support.design.widget.AppBarLayout$Behavior.onMeasureChild(AppBarLayout.java:755) at me.henrytao.smoothappbarlayout.BaseBehavior.onMeasureChild(BaseBehavior.java:80) at android.support.design.widget.AppBarLayout$Behavior.onMeasureChild(AppBarLayout.java:755) at me.henrytao.smoothappbarlayout.BaseBehavior.onMeasureChild(BaseBehavior.java:80) at android.support.design.widget.AppBarLayout$Behavior.onMeasureChild(AppBarLayout.java:755) at me.henrytao.smoothappbarlayout.BaseBehavior.onMeasureChild(BaseBehavior.java:80) at android.support.design.widget.AppBarLayout$Behavior.onMeasureChild(AppBarLayout.java:755) at me.henrytao.smoothappbarlayout.BaseBehavior.onMeasureChild(BaseBehavior.java:80) at android.support.design.widget.AppBarLayout$Behavior.onMeasureChild(AppBarLayout.java:755) at me.henrytao.smoothappbarlayout.BaseBehavior.onMeasureChild(BaseBehavior.java:80) at android.support.design.widget.AppBarLayout$Behavior.onMeasureChild(AppBarLayout.java:755) at me.henrytao.smoothappbarlayout.BaseBehavior.onMeasureChild(BaseBehavior.java:80) at android.support.design.widget.AppBarLayout$Behavior.onMeasureChild(AppBarLayout.java:755) at me.henrytao.smoothappbarlayout.BaseBehavior.onMeasureChild(BaseBehavior.java:80) at android.support.design.widget.AppBarLayout$Behavior.onMeasureChild(AppBarLayout.java:755) at me.henrytao.smoothappbarlayout.BaseBehavior.onMeasureChild(BaseBehavior.java:80) at android.support.design.widget.AppBarLayout$Behavior.onMeasureChild(AppBarLayout.java:755) at me.henrytao.smoothappbarlayout.BaseBehavior.onMeasureChild(BaseBehavior.java:80) at android.support.design.widget.AppBarLayout$Behavior.onMeasureChild(AppBarLayout.java:755) at me.henrytao.smoothappbarlayout.BaseBehavior.onMeasureChild(BaseBehavior.java:80) at android.support.design.widget.AppBarLayout$Behavior.onMeasureChild(AppBarLayout.java:755) at me.henrytao.smoothappbarlayout.BaseBehavior.onMeasureChild(BaseBehavior.java:80) at android.support.design.widget.AppBarLayout$Behavior.onMeasureChild(AppBarLayout.java:755) at me.henrytao.smoothappbarlayout.BaseBehavior.onMeasureChild(BaseBehavior.java:80) at android.support.design.widget.AppBarLayout$Behavior.onMeasureChild(AppBarLayout.java:755) at me.henrytao.smoothappbarlayout.BaseBehavior.onMeasureChild(BaseBehavior.java:80) at android.support.design.widget.AppBarLayout$Behavior.onMeasureChild(AppBarLayout.java:755) at me.hen

henrytao-me commented 8 years ago

Hi @arjunkn

What version of AppCompat, SupportDesign and SmoothAppBarLayout are you using?

arjunkn commented 8 years ago
compile 'me.henrytao:smooth-app-bar-layout:23.2.1'
compile 'com.android.support:design:24.2.1'
henrytao-me commented 8 years ago

Can you try these?

compile 'me.henrytao:smooth-app-bar-layout:24.2.1.0'
compile 'com.android.support:design:24.2.1'
henrytao-me commented 8 years ago

I believe it will work. So, I will close this issue for now. Feel free to ping me if you still have this issue. Thanks

arjunkn commented 8 years ago

thanks it worked.. sorry for the late replay.