-
-
Notifications
You must be signed in to change notification settings - Fork 334
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 #62
Comments
@Dimezis can you help? |
When does this appear? |
I have no clue, it does not seem related to my code!
|
Just a guess, but do you call Can you post where and how do you initialize the BlurView? |
Sure! It should only be called once. I'll check that again.
|
I'm investigating it, but so far can't find a cause. Ugly, but at least you'll be safe while I'm trying to fix it. |
I have deactivated the blur totally for now and replaced it with a alpha overlay. :) |
So I spent quite a lot of time investigating this crash. The conclusion is - from library's POV it's impossible to call RS without context, at least on API 23+. I'm obtaining it in BlurAlgorithm's constructor to use in the same object. Eventually, So I have only couple of potential explanations to the problem:
Long story short, at this point I'm not able to fix it, and I have only 3 suggestions for you:
|
I will look into it |
@Dimezis |
Hey, |
I was getting too many crashes (on cheap devices only), dirty or not this fallback prevents the devices from crashing. |
@tristanrichard This way the lib can stay hack/workaround free. Unfortunately I wasn't able to reproduce it, and I have a released product with crash reporting tools integrated, yet I didn't get any crashes like this. |
I know this is an old thread, but I am also having the same issue and it turned out to be because That happens in another activity, and when I return to the activity where I am using this lib, it crashes because when the I used the workaround proposed in an earlier comment but created another instance of RenderScriptBlur if it throws an exception. I know it's dirty, but at the moment I have no time to find a better way. Any comments to find a better solution are welcome :)
|
|
Hi,
Blurview v. 1.3.4
Been using this library for months.
Just started getting this error.
Any idea?
The text was updated successfully, but these errors were encountered: