From bc896398e268576beedbf51156deae7d04866aff Mon Sep 17 00:00:00 2001 From: Nikolay Rykunov Date: Mon, 23 Oct 2023 12:30:27 +0200 Subject: [PATCH] Handle exceptions during SkiaSwingLayer rendering --- .../awtMain/kotlin/org/jetbrains/skiko/swing/SkiaSwingLayer.kt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/skiko/src/awtMain/kotlin/org/jetbrains/skiko/swing/SkiaSwingLayer.kt b/skiko/src/awtMain/kotlin/org/jetbrains/skiko/swing/SkiaSwingLayer.kt index 8124d1059..128da3cd7 100644 --- a/skiko/src/awtMain/kotlin/org/jetbrains/skiko/swing/SkiaSwingLayer.kt +++ b/skiko/src/awtMain/kotlin/org/jetbrains/skiko/swing/SkiaSwingLayer.kt @@ -115,6 +115,8 @@ open class SkiaSwingLayer( redrawerManager.findNextWorkingRenderApi() repaint() } + } catch (e: Exception) { + Logger.warn(e) { "Exception during SkiaSwingLayer rendering" } } }