JetBrains / compose-multiplatform

Compose Multiplatform, a modern UI framework for Kotlin that makes building performant and beautiful user interfaces easy and enjoyable.
https://jetbrains.com/lp/compose-multiplatform
Apache License 2.0
15.34k stars 1.12k forks source link

TypeError: Cannot read properties of undefined (reading 'getParameter') #4130

Open Sagar-upadhayay opened 5 months ago

Sagar-upadhayay commented 5 months ago

when i run web module at first time after localhost run see this error on webpage

Cannot read properties of undefined (reading 'getParameter') TypeError: Cannot read properties of undefined (reading 'getParameter') at _glGetString (webpack-internal:///./kotlin/skiko.mjs:942:99458) at http://localhost:8080/skiko.wasm:wasm-function[7771]:0x2a23ec at http://localhost:8080/skiko.wasm:wasm-function[610]:0x1f01d at .org.jetbrains.skia.Companion.makeGL (http://localhost:8080/composeApp.wasm:wasm-function[21441]:0x2c5080) at .org.jetbrains.skiko.CanvasRenderer. (http://localhost:8080/composeApp.wasm:wasm-function[23916]:0x2f6841) at .org.jetbrains.skiko.. (http://localhost:8080/composeApp.wasm:wasm-function[23963]:0x2f7604) at .org.jetbrains.skiko.SkiaLayer.attachTo (http://localhost:8080/composeApp.wasm:wasm-function[24013]:0x2f7ebc) at .org.jetbrains.skiko.SkiaLayer.attachTo$default (http://localhost:8080/composeApp.wasm:wasm-function[24014]:0x2f7fd7) at .androidx.compose.ui.window.ComposeWindow. (http://localhost:8080/composeApp.wasm:wasm-function[33584]:0x3bb44f) at .androidx.compose.ui.window.CanvasBasedWindow (http://localhost:8080/composeApp.wasm:wasm-function[33546]:0x3baa29)

pjBooms commented 5 months ago

Can you describe in details the steps to reproduce the problem?

Sagar-upadhayay commented 5 months ago

After download projects template from jetbrain website target android, destop, web with and after open project in android studio Run compose multiplatform web app in windows pc not in mac ios. Localhost run webpage show this error

On Tue, 16 Jan, 2024, 5:42 pm Nikita Lipsky, @.***> wrote:

Can you describe in details the steps to reproduce the problem?

— Reply to this email directly, view it on GitHub https://github.com/JetBrains/compose-multiplatform/issues/4130#issuecomment-1893622211, or unsubscribe https://github.com/notifications/unsubscribe-auth/ASJZZZA2UPSTN2T55TCOYC3YOZVCPAVCNFSM6AAAAABB4KBNXKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQOJTGYZDEMRRGE . You are receiving this because you authored the thread.Message ID: @.***>

pjBooms commented 5 months ago

Unfortunately I cannot reproduce this error. What browser of what version do you use?

Sagar-upadhayay commented 5 months ago

Chrome browser version 120 Its latest version of chrome in windows 10

On Thu, 18 Jan, 2024, 11:24 pm Nikita Lipsky, @.***> wrote:

Unfortunately I cannot reproduce this error. What browser of what version do you use?

— Reply to this email directly, view it on GitHub https://github.com/JetBrains/compose-multiplatform/issues/4130#issuecomment-1898953832, or unsubscribe https://github.com/notifications/unsubscribe-auth/ASJZZZBAOUCTUE4DEWQG66TYPFOVVAVCNFSM6AAAAABB4KBNXKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQOJYHE2TGOBTGI . You are receiving this because you authored the thread.Message ID: @.***>

pjBooms commented 5 months ago

Same for me (Version 120.0.6099.225 (Official Build) (64-bit)). Then what JDK (version, vendor, build) do you use?

Sagar-upadhayay commented 5 months ago

Please connect with my pc on Google Meet or any desk. I have used Jdk

GRADLE LOCAL JAVA HOME jetbrain Runtime version 17.0.7

On Mon, 22 Jan, 2024, 5:47 pm Nikita Lipsky, @.***> wrote:

Same for me (Version 120.0.6099.225 (Official Build) (64-bit)). Then what JDK (version, vendor, build) do you use?

— Reply to this email directly, view it on GitHub https://github.com/JetBrains/compose-multiplatform/issues/4130#issuecomment-1903886517, or unsubscribe https://github.com/notifications/unsubscribe-auth/ASJZZZCGKY3MOMJYZJMMR2LYPZKHLAVCNFSM6AAAAABB4KBNXKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMBTHA4DMNJRG4 . You are receiving this because you authored the thread.Message ID: @.***>

Intex32 commented 5 months ago

Hey, I have the same error in my project based on this repo. This was compiled using Oracle OpenJDK 17. The main html file of the output of gradle task wasmJsBrowserDistribution was opened in Chromium (Version 119) on Linux: Nothing renders, above error in the console. Strangely, opening the same html file in Chrome on Windows works.

Intex32 commented 5 months ago

@pjBooms I just tested if the behavior is alike for the above referenced repo (kotlin-wasm-examples/image-viewer). And indeed, same error is shown when exported and opened. Btw the Chromium browser I use is the latest version as of today for Raspberry Pi 3b+. With that I assume it should be reproduceable somehow. Let me know if you need any other information.

dosier commented 4 months ago

Same issue here on Chrome Version 121.0.6167.85 (Official Build) (arm64) and Chrome Version 122.0.6261.94 (Official Build) (arm64)

Sagar-upadhayay commented 3 months ago

please give solution