addisonElliott / SegmentedButton

Segmented Control/Button with animation for Android API 16+
Apache License 2.0
148 stars 39 forks source link

Android Studio crashing on set scale in xml file #17

Closed jadermoraes closed 4 years ago

jadermoraes commented 4 years ago

Hi! My IDE keep crashing when I set the scaleX on a SegmentedButton.

I'm using Ubuntu. Thank you, the lib is working great besides this error.

addisonElliott commented 4 years ago

Hello.

It's odd that it ends up crashing Android Studio itself. To make this easier, do you mind posting an example setup that reproduces the issue? In addition, the stack trace of the issue, if available, would be good.

jadermoraes commented 4 years ago

MyApplication2.zip I'm sorry, but couldn't get the log, the IDE crashes when i set the scalex in the xml file.

addisonElliott commented 4 years ago

No problem, this should be enough.

FYI, I expect this may take a few weeks to resolve. Anything you can do to temporarily keep working will be good. My main machine has a failing SSD that I'm focusing on resolving.

jadermoraes commented 4 years ago

No problem, i worked around that, and the lib is working amazingly, thanks for the support!

addisonElliott commented 4 years ago

@jadermoraes I finally got some time to debug and play around with your issue.

I tested your exact application on my Windows 10 machine and an Ubuntu 18.04 VM. I was able to change the scaleX parameter on the button group and buttons themselves with no crash in Android Studio.

This is likely an Android Studio bug and not an issue with the library. In theory, regardless of what code I have in my library, it shouldn't cause the IDE to crash.

I'm going to close this now. I recommend (if you are committed to getting it fixed), reporting it to Google to look into.