Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RSIllegalArgumentException: Radius out of range (0 < r <= 25) #33

Closed
AlaaZarifa opened this issue Sep 29, 2020 · 4 comments
Closed

RSIllegalArgumentException: Radius out of range (0 < r <= 25) #33

AlaaZarifa opened this issue Sep 29, 2020 · 4 comments

Comments

@AlaaZarifa
Copy link

I'm using it in a RecyclerView and it crashes the app with this error?

 android.renderscript.RSIllegalArgumentException: Radius out of range (0 < r <= 25).
        at android.renderscript.ScriptIntrinsicBlur.setRadius(ScriptIntrinsicBlur.java:82)
        at com.vipulasri.ticketview.BlurBuilder.blur(BlurBuilder.java:20)
        at com.vipulasri.ticketview.TicketView.generateShadow(TicketView.java:281)
        at com.vipulasri.ticketview.TicketView.doLayout(TicketView.java:262)
        at com.vipulasri.ticketview.TicketView.onDraw(TicketView.java:111)

Full logcat error in this gist

Here's the TicketView I'm using
it shows perfectly fine in the preview btw.

 <com.vipulasri.ticketview.TicketView
        android:id="@+id/ticketView"
        android:layout_width="match_parent"
        android:layout_height="250dp"
        android:layout_marginHorizontal="16dp"
        android:layout_marginVertical="5dp"
        app:ticketBackgroundColor="@color/white"
        app:ticketCornerRadius="10dp"
        app:ticketCornerType="rounded"
        app:ticketDividerColor="#D9D9D9"
        app:ticketDividerDashGap="6dp"
        app:ticketDividerDashLength="8dp"
        app:ticketDividerPadding="5dp"
        app:ticketDividerType="dash"
        app:ticketDividerWidth="1dp"
        app:ticketElevation="3dp"
        app:ticketOrientation="horizontal"
        app:ticketScallopPositionPercent="77"
        app:ticketScallopRadius="10dp"
        app:ticketShadowColor="@color/black"
        app:ticketShowBorder="false"
        app:ticketShowDivider="true" />
@vipulasri
Copy link
Owner

@AlaaZarifa which android OS you are running this on?
Have you tried the view alone (not in RecyclerView)?

@AlaaZarifa
Copy link
Author

AlaaZarifa commented Sep 29, 2020

@vipulasri I just tried it without RecyclerView and still the same crash.
I'm running Android 10 on Xiaomi Pocophone F1.

It appears the problem is in the latest release because I used the previous release 1.0.9 and the crash didn't occur.

@vipulasri
Copy link
Owner

@AlaaZarifa can you try the latest version: 1.1.2?

@AlaaZarifa
Copy link
Author

@vipulasri I just did and no crash occurred 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants