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

Web Canvas - NotImplementedError: native atomic getAndIncrement #3143

Closed
eygraber opened this issue May 9, 2023 · 1 comment
Closed

Web Canvas - NotImplementedError: native atomic getAndIncrement #3143

eygraber opened this issue May 9, 2023 · 1 comment
Assignees
Labels
bug Something isn't working wait for build web

Comments

@eygraber
Copy link
Contributor

eygraber commented May 9, 2023

Describe the bug

When running my code in the browser, I get the following error:

"NotImplementedError: An operation is not implemented: Implement native atomic getAndIncrement
    at protoOf.getAndIncrement_alg4z6_k$ (webpack-internal:///./kotlin/compose-multiplatform-core-foundation.js:34996:11)
    at protoOf.nextSelectableId_50rfx8_k$ (webpack-internal:///./kotlin/compose-multiplatform-core-foundation.js:32056:33)
    at eval (webpack-internal:///./kotlin/compose-multiplatform-core-foundation.js:20110:34)
    at rememberSaveable$composable (webpack-internal:///./kotlin/compose-multiplatform-core-runtime-saveable.js:193:44)
    at BasicText$composable_0 (webpack-internal:///./kotlin/compose-multiplatform-core-foundation.js:19866:17)
    at Text$composable_0 (webpack-internal:///./kotlin/compose-multiplatform-core-material3.js:33295:7)
    at eval (webpack-internal:///./kotlin/ht-material-shared.js:16829:9)
    at protoOf.invoke_6harzl_k$ (webpack-internal:///./kotlin/compose-multiplatform-core-runtime.js:35865:92)
    at eval (webpack-internal:///./kotlin/ht-material-shared.js:16845:25)
    at eval (webpack-internal:///./kotlin/compose-multiplatform-core-foundation.js:30106:9)"

Affected platforms
Select one of the platforms below:

  • Web (K/JS) - Canvas based API

Versions

  • Kotlin version*: 1.8.21
  • Compose Multiplatform version*: 1.5.0-dev1043

I can get this to happen by opening a Dialog from another Dialog.

@eygraber eygraber added bug Something isn't working submitted labels May 9, 2023
@igordmn igordmn added web and removed submitted labels May 10, 2023
@eymar eymar self-assigned this May 17, 2023
@eymar
Copy link
Collaborator

eymar commented May 17, 2023

JetBrains/compose-multiplatform-core#570
Should be fixed in the next build.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working wait for build web
Projects
None yet
Development

No branches or pull requests

3 participants