Anyone come across this crash? It happens 100% of ...
# compose-desktop
d
Anyone come across this crash? It happens 100% of the time for one user. They've moved the enclosing folder around and tried running as admin. Error is that
skiko-windows-x64.dll
is missing dependencies. They're on Windows 7 but have a x64 OS.
It's a crash immediately on launch.
d
Add this to
build.gradle.kts
if you use
kotlin("multiplatform")
:
Copy code
val jvmMain by getting {
  dependencies {
    implementation(compose.desktop.currentOs)
  }
}
If you use
kotlin("jvm")
Copy code
dependencies {
  implementation(compose.desktop.currentOs)
}
d
@Dragos Rachieru as the other person said, that doesn't help. https://github.com/davidwhitman/SMOL/blob/dev/App/build.gradle.kts#L45
It's working fine for dozens of people at least.
m
Quite possibly it doesn't work on Windows 7. Are they the only ones running on it?
Windows 7 is out of its support lifetime now, right, so they won't be getting any security updates. It may be that it's not being tested anymore.
👍🏻 1
d
I don't collect statistics so I'm not sure, but I can ask. Win7 being the issue is my best guess too
d
implementation("org.jetbrains.compose.components:components-splitpane-desktop:1.0.1")
I think this needs to be version
1.1.1
y
I’ve added and tried run on win 10 then build .jar and same error occur
Copy code
val jvmMain by getting {
  dependencies {
    implementation(compose.desktop.currentOs)
  }
}
m
I get similar exception on win srv 2012. As I found out it is because of a one system function available from windows 10. I think it should be possible to get around that, for that I have created an issue here https://github.com/JetBrains/skiko/issues/540
👍🏻 1
d
Nice troubleshooting! It would be excellent if this was an easy fix, not that I'm expecting anything.
m
I think I have fixed it already, I'm building skika right now. So I hope to test it soon.
🤞 1
Yup, now it works on windows server 2012.
I'm not sure it will be enough for windows 7 though.
d
Is it something as simple as an updated dll that I can send to the user with Win7?
Certainly not gonna go through a bunch of effort to support an EOL OS, but if it's easy...
m
Yes, it's just dll, but you'll need to compile the skiko yourself until they merge the fix.
d
Ah ok. Thank you for your time, at least now I have something to tell the guy who wanted to run it on 7
m
I'm not sure it's enough for windows 7 as it is older than server 2012
d
I'm just telling them that Compose doesn't support anything before Win10, and that JetBrains might take a look at the Issue you opened (since Skia supports 7+), but not to expect anything (and to update their OS, dammit)
m
Just discovered it is not enough for windows server 2012 R1 (initially tested with R2). So it probably won't be for windows 7.
👍 1
Buuut, by converting one other function I was able to run it on R1. So win 7 should be possible.
So apparently v1.2.0-alpha01-dev709 should run on Windows 7 trough 11
d
🦜 thank you for your work! i let the one user of mine on Win7 know that they'll have a shot at using the program in the future 😄