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

Lots of log with Demo Picker : Called getWidth() on a recycle()'d bitmap! This is undefined behavior! #55

Closed
jscti opened this issue Apr 5, 2024 · 2 comments

Comments

@jscti
Copy link

jscti commented Apr 5, 2024

Hi there

Please complete the following information:

  • Library Version : 1.0.7
  • Affected Device(s) : Pixel 6 @ Android14

With a simple HSV Picker without any bitmap :

val controller = rememberColorPickerController()
HsvColorPicker(
                initialColor= value,
                modifier = Modifier
                    .fillMaxWidth()
                    .height(450.dp)
                    .padding(10.dp),
                controller = controller,
                onColorChanged = { colorEnvelope: ColorEnvelope ->
                   
                }
            )

I get a ton of logs for each touch/drag in the picker zone :

Called getWidth() on a recycle()'d bitmap! This is undefined behavior!
Called getHeight() on a recycle()'d bitmap! This is undefined behavior!
Called getWidth() on a recycle()'d bitmap! This is undefined behavior!
Called getHeight() on a recycle()'d bitmap! This is undefined behavior!
Called getWidth() on a recycle()'d bitmap! This is undefined behavior!
Called getHeight() on a recycle()'d bitmap! This is undefined behavior!
Called getWidth() on a recycle()'d bitmap! This is undefined behavior!
Called getHeight() on a recycle()'d bitmap! This is undefined behavior!
Called getWidth() on a recycle()'d bitmap! This is undefined behavior!
Called getHeight() on a recycle()'d bitmap! This is undefined behavior!

Except this logcat pollution, everything works like a charm :)

@sderr
Copy link
Contributor

sderr commented May 8, 2024

Hello, I had the same issue and I think I fixed the issue in this pull request:

#56

@skydoves
Copy link
Owner

skydoves commented May 9, 2024

Hi everyone, a new version, 1.0.8, has been released, and this issue has been fixed on #56.

@skydoves skydoves closed this as completed May 9, 2024
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

No branches or pull requests

3 participants