Open anthraxn8b opened 8 months ago
The java version is bundeled with the application and should never be replaced by something else. I have to investigate how the described error could happen. At the moment I do not have an explanation for it.
I just downloaded the windows installer from the website and installed the program on a Windows 11 box. It runs without problems. This is also the only report in that direction so far. Maybe there is something special with your machine.
Could you tell me what the exact error indication was and maybe attache the log file from ˜/.AIPBrowserDE/logs/AIPBrowserDE.log
(That's in a normally invisible folder.)
That is the whole log content: 2023-12-13T08:44:50.996+0100 [main] INFO ModelBridgeImpl - java.vm.name: OpenJDK 64-Bit Server VM 2023-12-13T08:44:50.996+0100 [main] INFO ModelBridgeImpl - java.runtime.version: 17.0.9+9 2023-12-13T08:44:50.996+0100 [main] INFO ModelBridgeImpl - os.name: Windows 11 2023-12-13T08:44:50.996+0100 [main] INFO ModelBridgeImpl - os.arch: amd64 2023-12-13T08:44:50.996+0100 [main] INFO ModelBridgeImpl - java.vendor: Eclipse Adoptium 2023-12-13T08:44:51.012+0100 [main] INFO ModelBridgeImpl - Max Heap Size = maxMemory() = 8573157376 2023-12-13T08:44:51.012+0100 [main] INFO ModelBridgeImpl - Current Heap Size = totalMemory() = 536870912 2023-12-13T08:44:51.012+0100 [main] INFO ModelBridgeImpl - Available in Current Heap = freeMemory() = 523782616 2023-12-13T08:44:51.012+0100 [main] INFO ModelBridgeImpl - Currently Used Heap = 13088296 2023-12-13T08:44:51.012+0100 [main] INFO ModelBridgeImpl - Unassigned Heap = 8036286464 2023-12-13T08:44:51.012+0100 [main] INFO ModelBridgeImpl - Currently Totally Available Heap Space = 8560069080 2023-12-13T08:44:51.111+0100 [main] INFO ModelBridgeImpl - Config(release=Release(vendor=mpMediaSoft GmbH, appname=AIP Browser DE, version=1.1.3))
The popup shown: Title: AIP Browser DE.exe Text: Failed to launch JVM Symbol: Red circle with white "X"
This log file looks perfectly normal without any error indication. This is also strange because it mean that the JVM has been started successfully already. Otherwise the application could not have printed this log file. Do you have another JVM installed next to the application or do you have some special AV software installed? Could you try this again with this preview version of the next version of the software. This version has been tested by others already without problems so far. https://mpmediasoft.de/products/AIPBrowserDE/preview/AIP%20Browser%20DE-1.1.4-b06-windows-x86_64.msi
Of course I have also other JVMs (multiple) on the machine - but you provide your own one so this should have ZERO impact, right?
Same:
2023-12-13T10:03:48.262+0100 [main] INFO ModelBridgeImpl - java.vm.name: OpenJDK 64-Bit Server VM 2023-12-13T10:03:48.264+0100 [main] INFO ModelBridgeImpl - java.runtime.version: 21.0.1+12-LTS 2023-12-13T10:03:48.264+0100 [main] INFO ModelBridgeImpl - os.name: Windows 11 2023-12-13T10:03:48.264+0100 [main] INFO ModelBridgeImpl - os.arch: amd64 2023-12-13T10:03:48.264+0100 [main] INFO ModelBridgeImpl - java.vendor: Eclipse Adoptium 2023-12-13T10:03:48.267+0100 [main] INFO ModelBridgeImpl - Max Heap Size = maxMemory() = 8573157376 2023-12-13T10:03:48.267+0100 [main] INFO ModelBridgeImpl - Current Heap Size = totalMemory() = 536870912 2023-12-13T10:03:48.267+0100 [main] INFO ModelBridgeImpl - Available in Current Heap = freeMemory() = 522768760 2023-12-13T10:03:48.267+0100 [main] INFO ModelBridgeImpl - Currently Used Heap = 14102152 2023-12-13T10:03:48.267+0100 [main] INFO ModelBridgeImpl - Unassigned Heap = 8036286464 2023-12-13T10:03:48.267+0100 [main] INFO ModelBridgeImpl - Currently Totally Available Heap Space = 8559055224 2023-12-13T10:03:48.347+0100 [main] INFO ModelBridgeImpl - Config(release=Release(vendor=mpMediaSoft GmbH, appname=AIP Browser DE, version=1.1.4))
Having several other JVMs installed should indeed be no problem. As a Java developer I also have various JVMs installed without problem, but I vaguely remember to have seen a report somewhere which claims that having a JVM installed side by side (in the same root folder) to a packaged app does cause problems. I can't remember the details though and I also don't remember where I have seen that. That's the reason why I ask. Are you using such a configuration?
I also asked for help on the JetBrains Compose Desktop slack channel and they asked whether you could try running the app in a terminal window and send the output.
Running it in the Windows 11 Terminal (normal mode or admin does not matter) prints out nothing.
Forwarded your answer to JetBrains.
JetBrains pointed me to this issue which might explain your problem. It's the one I vaguely remembered. https://github.com/JetBrains/compose-multiplatform/issues/3902 The bug is confirmed and reproducible but there is no other solution yet than removing the root cause for it.
But that is not the case.
You initially said that downloading a JDK and exchanging the packaged one against this one solves the problem. Is this still true and if yes, which JDK did you download (Vendor, Link)? Do you have any other idea what might be causing this problem? I can't think of anything else to try.
Hi!
Maybe it is not such a good idea to install "your own" java version - as long as the mechanism does not install a compatible one for the respective OS. I am running Windows 11 got the error "failed to launch jvm".
I downloaded "openjdk-21.0.1_windows-x64_bin" and replaced the "runtime" folder. Not it is starting - hopefully does not throw more errors that then may be related to my manipulation ;-)