https://kotlinlang.org logo
#korge
Title
# korge
d

Dima Avdeev

06/04/2020, 10:16 AM
I found bug with sample-tic-tac-toe-swf in korge-samples I run "./gradlew clean sample-tic-tac-toe-swf:runJs" It work's on korgePluginVersion=1.11.3.0 But don't work on korgePluginVersion=1.12.8.0 and 1.12.12.0
JS output:
Copy code
korio-root-korio.js:46500 DOMException: Failed to execute 'getImageData' on 'CanvasRenderingContext2D': The source width is 0.
    at HtmlNativeImage.readPixelsUnsafe_zddtuu$$default (<http://127.0.0.1:8080/korim-root-korim.js:21539:26>)
    at HtmlNativeImage.Bitmap.readPixelsUnsafe_zddtuu$ (<http://127.0.0.1:8080/korim-root-korim.js:634:82>)
    at HtmlNativeImage.NativeImage.toBMP32 (<http://127.0.0.1:8080/korim-root-korim.js:2486:10>)
    at new BitmapFont$Glyph (<http://127.0.0.1:8080/korim-root-korim.js:6628:39>)
    at Coroutine$readBitmapFontTxt.doResume (<http://127.0.0.1:8080/korim-root-korim.js:6952:33>)
    at Coroutine$loadImage_ivxn3r$.CoroutineImpl.resumeWith_tl1gpc$ (<http://127.0.0.1:8080/kotlin.js:29534:35>)
    at CancellableContinuationImpl.DispatchedTask.run (<http://127.0.0.1:8080/kotlinx-coroutines-core.js:33744:22>)
    at GameWindowCoroutineDispatcher.executePending_p8meis$ (<http://127.0.0.1:8080/korgw-root-korgw.js:12702:30>)
d

Deactivated User

06/04/2020, 3:01 PM
Thanks for reporting! I’ll have a look 👀
3 Views