CameraKit / blurkit-android

The missing Android blurring library. Fast blur-behind layout that parallels iOS.
MIT License
3.72k stars 309 forks source link

RenderScript fails #52

Open ajgr opened 5 years ago

ajgr commented 5 years ago

I am using BlurKit in a fragment laying it out in xml as shown below. That generates a "V/RenderScript: User-backed allocation failed stride requirement, falling back to separate allocation" every couple of milliseconds for each instance. When used programmatically I get the same message. On sdk 24 the app eventually runs out of memory and crashes.

<io.alterac.blurkit.BlurLayout xmlns:blurkit="http://schemas.android.com/apk/res-auto"
    android:id="@+id/top_blurLayout"
    android:layout_width="match_parent"
    android:layout_height="@dimen/playback_view_topbar_height"
    android:background="@color/blur_color"
    app:layout_constraintBottom_toBottomOf="@+id/tab_bar_layout"
    app:layout_constraintEnd_toEndOf="parent"
    app:layout_constraintStart_toStartOf="parent"
    app:layout_constraintTop_toTopOf="parent"

    blurkit:blk_blurRadius="20"
    blurkit:blk_cornerRadius="0dp"
    blurkit:blk_downscaleFactor="0.12"
    blurkit:blk_fps="0" />
fawwazali14 commented 2 years ago

Did this get solved?