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

Calling RS with no Context active #103

Open
slott opened this issue Jan 21, 2021 · 5 comments · Fixed by #117
Open

Calling RS with no Context active #103

slott opened this issue Jan 21, 2021 · 5 comments · Fixed by #117
Assignees
Milestone

Comments

@slott
Copy link

slott commented Jan 21, 2021

Regarding this change

631da3f

I'm pretty sure this is causing a nasty crash that we are seeing.

This is only happening after upgrading from 3.0.0 to 4.0.0

We get a crash from another library "RealtimeBlurView" - with the following crash log

android.renderscript.RSInvalidStateException: Calling RS with no Context active.
at android.renderscript.RenderScript.validate(RenderScript.java:1255)
at android.renderscript.Allocation.copyFrom(Allocation.java:992)
at h.g.b.a.a.a(AndroidStockBlurImpl.java:66)
at com.github.mmin18.widget.RealtimeBlurView.j(RealtimeBlurView.java:233)

Could it be that the change you made somehow interferes with this ?

If we revert to version 3.0.0 both libs happily co-exists.

@rtsketo
Copy link

rtsketo commented Jul 21, 2021

I can confirm. Spent hours on this crash.
Although in my case it seems that there was a conflict with ShadowLayout (net.orandja.shadowlayout:shadowlayout:1.0.1).

@hexianqiao3755
Copy link

same question

@rtsketo
Copy link

rtsketo commented Dec 7, 2021

Reverting to 3.0.0 seems the only solution so far for me.
I really like @wasabeef's libraries, but this hasn't been addressed in several moths and I find it appropriate (although awkward as well) to suggest an alternative library I'm using. I hope I can help others devs by doing so and to bash this library.

@wasabeef
Copy link
Owner

@slott @hexianqiao3755 @rtsketo

I'm sorry that I was late. Just released the revert version v4.0.1.

@hexianqiao3755
Copy link

@wasabeef oh, that's great.

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

Successfully merging a pull request may close this issue.

4 participants