Skip to content
This repository has been archived by the owner on Jun 1, 2023. It is now read-only.

Strange app crash #43

Open
shakalaca opened this issue May 20, 2016 · 3 comments
Open

Strange app crash #43

shakalaca opened this issue May 20, 2016 · 3 comments

Comments

@shakalaca
Copy link

The following lines will crash in Android 5.0 (API 21) with XposedFramework v80+ but work fine without XposedFramework installed. Crash log is here: http://pastebin.com/Hp5mNT5F

@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    t(new AccelerateInterpolator());
}

private void t(BaseInterpolator a) {   
    Log.d("TEST", "here");
}

After spent an hour inspecting the code, I found out if I don't return nullptr here:

the sample code above will run without problem. I'm not familiar with this area, if someone can help fix the problem, I'd appreciate it. :)

@Liliniser
Copy link

Liliniser commented May 28, 2016

I had the same problem and reverting the commit 0e430fa helped.

@rovo89
Copy link
Owner

rovo89 commented May 29, 2016

It's good to know that this line is triggering the issue. Obviously, I didn't add this commit just for fun, so I'll need to check why GenerateDequickenMap() fails in this case.

@rovo89
Copy link
Owner

rovo89 commented May 29, 2016

It seems that BaseInterpolator isn't even supported on API 21, it was added in API 22: https://developer.android.com/reference/android/view/animation/BaseInterpolator.html

I need to check why/how this case can be handled in AOSP ART, but the real root cause seems to be in your code. See also: http://stackoverflow.com/questions/34879343/baseinterpolator-cannot-be-resolved-to-a-type

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

No branches or pull requests

3 participants