Open LAP2 opened 3 years ago
Seems crash is in
j org.jetbrains.skiko.redrawer.Direct3DRedrawer.makeDirectXRenderTarget(JII)J+0
j org.jetbrains.skiko.redrawer.Direct3DRedrawer.makeRenderTarget(JII)Lorg/jetbrains/skija/BackendRenderTarget;+9
j org.jetbrains.skiko.context.Direct3DContextHandler.initCanvas()V+55
j org.jetbrains.skiko.SkiaLayer.draw()V+83
j org.jetbrains.skiko.redrawer.Direct3DRedrawer.draw()V+4
j org.jetbrains.skiko.redrawer.Direct3DRedrawer.redrawImmediately()V+57
j org.jetbrains.skiko.SkiaLayer.paint(Ljava/awt/Graphics;)V+77
j javax.swing.JComponent.paintChildren(Ljava/awt/Graphics;)V+523 java.desktop@15
j javax.swing.JComponent.paint(Ljava/awt/Graphics;)V+318 java.desktop@15
j javax.swing.JLayeredPane.paint(Ljava/awt/Graphics;)V+73 java.desktop@15
j javax.swing.JComponent.paintChildren(Ljava/awt/Graphics;)V+523 java.desktop@15
j javax.swing.JComponent.paint(Ljava/awt/Graphics;)V+318 java.desktop@15
j javax.swing.JComponent.paintChildren(Ljava/awt/Graphics;)V+523 java.desktop@15
j javax.swing.JComponent.paint(Ljava/awt/Graphics;)V+318 java.desktop@15
What is your video card?
Intel(R) HD Graphics 4400 But I don't think it connected with card. Cause in one of three runs it run fine.
Try to run your application with OpenGL rendering, example code:
fun main() {
System.setProperty("skiko.renderApi", "OPENGL")
Window(
... // your window settings
) {
... // your content
}
}
Tried. Works cool. I have zero crashes for 7 runs.
Hello,
I also got the same EXCEPTION_UNCAUGHT_CXX_EXCEPTION error when my Composer Desktop program was running with my Intel graphics chipset (Intel HD Graphics 4600 chipset to be precise). During the day, I searched on the internet for the EXCEPTION_UNCAUGHT_CXX_EXCEPTION error code, and I indeed found one (and only one) result that indicated the mood incompatibility between intel chipsets (I say them, but I don't know if all are concerned) and the applications developed with this framework.
I thought I would open an issue if none was already open on this subject, so I searched for "intel" in the already open issues and I found this one.
So I took the opportunity to test @Rsedaikin solution, and yes, it works.
So why this message ?
Several reasons :
v1.2.1 resolved the issue for me (see this pull request and this related issue).
I also have this problem when running the plain compose desktop project created by IntelliJ.
I'm currently using the workaround above suggested by @Rsedaikin.
This is the system the program is running on:
IntelliJ IDEA 2021.3:
IntelliJ IDEA 2021.3 (Community Edition)
Build #IC-213.5744.223, built on November 27, 2021
Runtime version: 11.0.13+7-b1751.19 amd64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
Windows 10 10.0
GC: ParNew, ConcurrentMarkSweep
Memory: 1469M
Cores: 8
Registry:
debugger.click.disable.breakpoints=true
Non-Bundled Plugins:
[...]
org.jetbrains.kotlin (213-1.6.10-release-923-IJ5744.223)
Kotlin: 213-1.6.10-release-923-IJ5744.223
I used to have no problem running my app before version v1.2.0-alpha01-dev770
. When I tried v1.2.0-alpha01-dev770 or now, v1.2.0-alpha01-dev774, the application fails to run with:
#
# A fatal error has been detected by the Java Runtime Environment:
#
# EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x00007ffab1886716, pid=1264, tid=9704
#
# JRE version: OpenJDK Runtime Environment (11.0.12+7) (build 11.0.12+7-b1504.28-7817840)
# Java VM: OpenJDK 64-Bit Server VM (11.0.12+7-b1504.28-7817840, mixed mode, tiered, compressed oops, g1 gc, windows-amd64)
# Problematic frame:
# C [skiko-windows-x64.dll+0x56716]
#
# No core dump will be written. Minidumps are not enabled by default on client versions of Windows
#
# If you would like to submit a bug report, please visit:
# https://bugreport.java.com/bugreport/crash.jsp
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#
But thankfully, after trying out:
...Try to run your application with OpenGL rendering, example code:
System.setProperty("skiko.renderApi", "OPENGL")
the issue disappeared.
Please check the following ticket on YouTrack for follow-ups to this issue. GitHub issues will be closed in the coming weeks.
Hi team. I used 0.4.0-build184 build 1.4.32 kotlin version. And in two of three runs have crash.
Crash reports in attachment. Command line part omitted. hs_err_pid6104.log hs_err_pid18996.log Code to reproduce: