skydoves / Cloudy

☁️ Jetpack Compose blur effect library, which falls back onto a CPU-based implementation to support older API levels.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

App crashes when Cloudy is used in a ModalBottomSheet

Rick-AB opened this issue · comments

Please complete the following information:

  • Library Version v0.1.2
  • Affected Device(s) Samsung S20(API 33), Pixel 4(API 33)

Describe the Bug:

When cloudy is used as a component inside a ModalBottomSheet, the exception java.lang.RuntimeException: Failed to copy pixels of the given bitmap! is thrown

Expected Behavior:

The application shouldn't crash

Have the same problem, but even in column

Have the same problem in preview:

FATAL EXCEPTION: main
                                                                                                    Process: com.test.app, PID: 9114
                                                                                                    java.lang.RuntimeException: Failed to copy pixels of the given bitmap!
                                                                                                    	at com.skydoves.cloudy.CloudyKt.drawBitmapWithPixelCopy$lambda$7(Cloudy.kt:281)
                                                                                                    	at com.skydoves.cloudy.CloudyKt.$r8$lambda$X2Nw-BPO6_ca_Hnlrx5we4hyARg(Unknown Source:0)
                                                                                                    	at com.skydoves.cloudy.CloudyKt$$ExternalSyntheticLambda0.onPixelCopyFinished(Unknown Source:6)
                                                                                                    	at android.view.PixelCopy$1.run(PixelCopy.java:191)
                                                                                                    	at android.os.Handler.handleCallback(Handler.java:942)
                                                                                                    	at android.os.Handler.dispatchMessage(Handler.java:99)
                                                                                                    	at android.os.Looper.loopOnce(Looper.java:226)
                                                                                                    	at android.os.Looper.loop(Looper.java:313)
                                                                                                    	at android.app.ActivityThread.main(ActivityThread.java:8757)
                                                                                                    	at java.lang.reflect.Method.invoke(Native Method)
                                                                                                    	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:571)
                                                                                                    	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1067)

Have the same problem

Have the same problem

Have the same problem