compose-multiplatform icon indicating copy to clipboard operation
compose-multiplatform copied to clipboard

[JS, Canvas] Some composables like `Button` with externally defined `shape` argument cause crash when shape is `RoundedCornerShape` with one or more zero corners

Open alexzhirkevich opened this issue 1 year ago • 2 comments

BottomSheetScaffold causes crash when sheetShape is RoundedCornerShape with one or more zero corners

EDIT: not only scaffold. Some other composables like Button with externally defined shape argument also causes crash

Affected platforms

  • Web (K/JS) - Canvas based API

Versions

  • Kotlin version: 1.8.10
  • Compose Multiplatform version: 1.3.1
  • OS version(s): Mac OS 13.3, Chrome

To Reproduce


fun App() {
    onWasmReady {
        Window {
            BottomSheetScaffold(
                sheetContent = {
                    Text("Content")
                },
                sheetShape = RoundedCornerShape(10.dp, 10.dp, 10.dp, 0.dp)
            ) {

            }
        }
    }
}

Screenshots image

alexzhirkevich avatar Apr 08 '23 01:04 alexzhirkevich

Still reproduces in 1.4.0-rc03

alexzhirkevich avatar Apr 10 '23 11:04 alexzhirkevich

Reproduced this crash on PR: https://github.com/JetBrains/compose-multiplatform-core/pull/503

dima-avdeev-jb avatar Apr 11 '23 08:04 dima-avdeev-jb

Please check the following ticket on YouTrack for follow-ups to this issue. GitHub issues will be closed in the coming weeks.

okushnikov avatar Jul 14 '24 16:07 okushnikov