FAForever / downlords-faf-client

Official client for Forged Alliance Forever
https://faforever.com
MIT License
196 stars 121 forks source link

Getting it to run on mac 10.15 #1972

Closed tatsujb closed 2 years ago

tatsujb commented 4 years ago

Let's get this app working on apple mac.

1-alex98 commented 4 years ago

That does not look Something is not complied correctly. What branch are u using ? Please use feature/mac-support. Also use adopt open jdk please

tatsujb commented 4 years ago

ok for the open jdk, and i was already using mac-support branch

https://adoptopenjdk.net/archive.html?variant=openjdk14&jvmVariant=hotspot

this? I can't find a non-admin version of it; a folder I can drop somewhere, like I did for jdk se.

this one just has the installer and a binary file intellij can't recognize as its two options.

also would what intellij idea offers to download be ok/ the right version?

(my java i so rusty, it's likeI'm starting from scratch)

tatsujb commented 4 years ago

I figured out I could install jdk with brew. is 15 bad or acceptable? I can do either openjdk14 or AdoptOpenjdk15

tatsujb commented 4 years ago

here's the new output with openjdk 14

/usr/local/homebrew/Cellar/openjdk/14.0.1/libexec/openjdk.jdk/Contents/Home/bin/java -agentlib:jdwp=transport=dt_socket,address=127.0.0.1:50676,suspend=y,server=n -DnativeDir=build/resources/native -Dprism.dirtyopts=false -Xms128m -Xmx712m -XX:MinHeapFreeRatio=15 -XX:MaxHeapFreeRatio=33 -XX:+HeapDumpOnOutOfMemoryError -XX:+UseStringDeduplication -javaagent:webview-patch/build/libs/webview-patch.jar -Djava.net.preferIPv4Stack=true -XX:TieredStopAtLevel=1 -noverify -javaagent:/Users/IVUBARC/Library/Caches/JetBrains/IdeaIC2020.2/groovyHotSwap/gragent.jar -javaagent:/Users/IVUBARC/Library/Caches/JetBrains/IdeaIC2020.2/captureAgent/debugger-agent.jar -Dfile.encoding=UTF-8 -classpath /Users/IVUBARC/test/downlords/build/classes/java/main:/Users/IVUBARC/test/downlords/build/resources/main:/Users/IVUBARC/.gradle/caches/modules-2/files-2.1/org.springframework.boot/spring-boot-starter-logging/2.3.1.RELEASE/3f242a91ffddf7485fde1367e1354c7e13024c8/spring-boot-starter-logging-2.3.1.RELEASE.jar:/Users/IVUBARC/.gradle/caches/modules-2/files-2.1/org.springframework.security.oauth.boot/spring-security-oauth2-autoconfigure/2.3.1.RELEASE/12947b1a3b04322611371e67ebf0dc26227a3c0b/spring-security-oauth2-autoconfigure-2.3.1.RELEASE.jar:/Users/IVUBARC/.gradle/caches/modules-2/files-2.1/org.springframework.boot/spring-boot-starter-cache/2.3.1.RELEASE/70b9dfefc6f436b414934ba2e931284c723b5d7/spring-boot-starter-cache-2.3.1.RELEASE.jar:/Users/IVUBARC/.gradle/caches/modules-2/files-2.1/org.springframework.boot/spring-boot-starter/2.3.1.RELEASE/e0d28696fea064578cb01da346232284f922eba4/spring-boot-starter-2.3.1.RELEASE.jar:/Users/IVUBARC/.gradle/caches/modules-2/files-2.1/org.springframework/spring-web/5.2.7.RELEASE/50a27c77e1731f3b7af5c2ae7caf6fe59bcc309/spring-web-5.2.7.RELEASE.jar:/Users/IVUBARC/.gradle/caches/modules-2/files-2.1/com.github.FAForever/faf-java-commons/0b83fa48a039cea085a7d462cc937fb5a035c186/3e5e79fbf69e04fb38ab8323080457b3e51fe9ec/faf-java-commons-0b83fa48a039cea085a7d462cc937fb5a035c186.jar:/Users/IVUBARC/.gradle/caches/modules-2/files-2.1/com.google.code.gson/gson/2.8.5/f645ed69d595b24d4cf8b3fbb64cc505bede8829/gson-2.8.5.jar:/Users/IVUBARC/.gradle/caches/modules-2/files-2.1/com.github.micheljung/pircbotx/18481dcbfd/a8f4ecafb09c322f7bcc251dab70d91d90eb233d/pircbotx-18481dcbfd.jar:/Users/IVUBARC/.gradle/caches/modules-2/files-2.1/com.google.guava/guava/28.0-jre/54fed371b4b8a8cce1e94a9abd9620982d3aa54b/guava-28.0-jre.jar:/Users/IVUBARC/.gradle/caches/modules-2/files-2.1/org.apache.commons/commons-compress/1.18/1191f9f2bc0c47a8cce69193feb1ff0a8bcb37d5/commons-compress-1.18.jar:/Users/IVUBARC/.gradle/caches/modules-2/files-2.1/ch.micheljung.fxstage/fxstage/0.7.3/260c74db07f4816f4fd789005a3177242b1f0d29/fxstage-0.7.3.jar:/Users/IVUBARC/.gradle/caches/modules-2/files-2.1/net.java.dev.jna/jna-platform/5.0.0/15949855e46be4f528d7eb9904bb346bcedccbfa/jna-platform-5.0.0.jar:/Users/IVUBARC/.gradle/caches/modules-2/files-2.1/net.java.dev.jna/jna/5.0.0/a73c9c974cf7d3b1b84bca99e30d16ec3f371b44/jna-5.0.0.jar:/Users/IVUBARC/.gradle/caches/modules-2/files-2.1/org.eclipse.jgit/org.eclipse.jgit/5.1.3.201810200350-r/f270dbd1d792d5ad06074abe018a18644c90b60e/org.eclipse.jgit-5.1.3.201810200350-r.jar:/Users/IVUBARC/.gradle/caches/modules-2/files-2.1/org.jetbrains/annotations/16.0.3/62c7299ced2a089cc541726c6d763da9417604a0/annotations-16.0.3.jar:/Users/IVUBARC/.gradle/caches/modules-2/files-2.1/net.sf.jtidy/jtidy/r938/ab08d87a225a715a69107732b67f21e1da930349/jtidy-r938.jar:/Users/IVUBARC/.gradle/caches/modules-2/files-2.1/com.neovisionaries/nv-i18n/1.23/32269e00fa8cdd4a1576a564c661fc2acf2660b2/nv-i18n-1.23.jar:/Users/IVUBARC/.gradle/caches/modules-2/files-2.1/com.rometools/rome/1.11.1/ad04e529c37f990ac36e9e064c518e6ebfc8caf5/rome-1.11.1.jar:/Users/IVUBARC/.gradle/caches/modules-2/files-2.1/org.jsoup/jsoup/1.11.3/36da09a8f68484523fa2aaa100399d612b247d67/jsoup-1.11.3.jar:/Users/IVUBARC/.gradle/caches/modules-2/files-2.1/com.nativelibs4java/bridj/0.7.0/461c40ed578c92106579e370838ed4e224d0289e/bridj-0.7.0.jar:/Users/IVUBARC/.gradle/caches/modules-2/files-2.1/com.github.nocatch/nocatch/1.1/80a07fb6d21138c6f39f7543a1cc39c7b9380e81/nocatch-1.1.jar:/Users/IVUBARC/.gradle/caches/modules-2/files-2.1/org.luaj/luaj-jse/3.0.1/99245b2df284805e1cb835e9be47c243f9717511/luaj-jse-3.0.1.jar:/Users/IVUBARC/.gradle/caches/modules-2/files-2.1/commons-validator/commons-validator/1.6/e989d1e87cdd60575df0765ed5bac65c905d7908/commons-validator-1.6.jar:/Users/IVUBARC/.gradle/caches/modules-2/files-2.1/com.github.micheljung/JJsonRpc/01a7fba5f4/9ed5491f6dcbc3bb56ea540088b16358b1c4e7d1/JJsonRpc-01a7fba5f4.jar:/Users/IVUBARC/.gradle/caches/modules-2/files-2.1/javax.inject/javax.inject/1/6975da39a7040257bd51d21a231b76c915872d38/javax.inject-1.jar:/Users/IVUBARC/.gradle/caches/modules-2/files-2.1/com.fasterxml.jackson.datatype/jackson-datatype-jsr310/2.9.7/cbd919f1ce67533e07b98dd493247e8dbabc26b2/jackson-datatype-jsr310-2.9.7.jar:/Users/IVUBARC/.gradle/caches/modules-2/files-2.1/com.github.rutledgepaulv/q-builders/1.6/2308104774b6e876224eed1dd7d863e721fe8abb/q-builders-1.6.jar:/Users/IVUBARC/.gradle/caches/modules-2/files-2.1/com.github.nsp/JSkills/8b333ec63d/e87f49cbc8d7ed5321f3498a77dfc9634c559cc/JSkills-8b333ec63d.jar:/Users/IVUBARC/.gradle/caches/modules-2/files-2.1/com.github.jasminb/jsonapi-converter/0.9/ac9f5a3e2f3fa09cd2744d6fb6df7b6f940a7622/jsonapi-converter-0.9.jar:/Users/IVUBARC/.gradle/caches/modules-2/files-2.1/com.jfoenix/jfoenix/9.0.10/a7625792db8d15615ea6eebbc31e01504f20b2df/jfoenix-9.0.10.jar:/Users/IVUBARC/.gradle/caches/modules-2/files-2.1/javax.annotation/javax.annotation-api/1.3.1/20a2c0583598d68b0835474bbe07792d4f3b219f/javax.annotation-api-1.3.1.jar:/Users/IVUBARC/.gradle/caches/modules-2/files-2.1/com.github.ben-manes.caffeine/caffeine/2.8.4/e5730b11981406faa28e0912405a0ce7c2d0f377/caffeine-2.8.4.jar:/Users/IVUBARC/.gradle/caches/modules-2/files-2.1/org.apache.httpcomponents/httpclient/4.5.12/4023a2a80b64c25926911faf350b50cd2a29220f/httpclient-4.5.12.jar:/Users/IVUBARC/.gradle/caches/modules-2/files-2.1/ch.micheljung.waitomo/jfx-waitomo-theme/0.2.0/e43c761e5d3c3f019caf6c9d72757c0330eae26/jfx-waitomo-theme-0.2.0.jar:/Users/IVUBARC/.gradle/caches/modules-2/files-2.1/org.openjfx/javafx-fxml/11.0.2/23291af49fb53d2686c6995018775d19805247a2/javafx-fxml-11.0.2-mac.jar:/Users/IVUBARC/.gradle/caches/modules-2/files-2.1/org.openjfx/javafx-web/11.0.2/eb85cdd5edfe9f3d1f46c21fd29d16c66abdcf01/javafx-web-11.0.2-mac.jar:/Users/IVUBARC/.gradle/caches/modules-2/files-2.1/org.openjfx/javafx-controls/11.0.2/4ab633cf1eea60f76e2ae9905aedac862da88b08/javafx-controls-11.0.2.jar:/Users/IVUBARC/.gradle/caches/modules-2/files-2.1/org.openjfx/javafx-controls/11.0.2/996371d2868035845572cdb19179dca2bfd1139f/javafx-controls-11.0.2-mac.jar:/Users/IVUBARC/.gradle/caches/modules-2/files-2.1/org.openjfx/javafx-swing/11.0.2/47efd914c1ebdeda8789a779c8341266340c743/javafx-swing-11.0.2-mac.jar:/Users/IVUBARC/.gradle/caches/modules-2/files-2.1/org.openjfx/javafx-media/11.0.2/30b3246c67f308de4d7aefbf99acef8d1dce32ad/javafx-media-11.0.2.jar:/Users/IVUBARC/.gradle/caches/modules-2/files-2.1/org.openjfx/javafx-media/11.0.2/183246bfc1704cced6bdda2e7ba1c368694f10bd/javafx-media-11.0.2-mac.jar:/Users/IVUBARC/.gradle/caches/modules-2/files-2.1/org.openjfx/javafx-graphics/11.0.2/e522eb4ea422eceeee207b1c266ba3db19b2343a/javafx-graphics-11.0.2.jar:/Users/IVUBARC/.gradle/caches/modules-2/files-2.1/org.openjfx/javafx-graphics/11.0.2/c1d99ae5bc48e7173f4514a941d27d8f8c972c71/javafx-graphics-11.0.2-mac.jar:/Users/IVUBARC/.gradle/caches/modules-2/files-2.1/org.openjfx/javafx-base/11.0.2/7fb2e4a8528ec9e434a9ac9ee98b39af79e6dcb8/javafx-base-11.0.2.jar:/Users/IVUBARC/.gradle/caches/modules-2/files-2.1/org.openjfx/javafx-base/11.0.2/b774922e5da6a56afee221d1a288d179a1342aa9/javafx-base-11.0.2-mac.jar:/Users/IVUBARC/.gradle/caches/modules-2/files-2.1/com.github.axel1200/discord-rpc/1.6.2-jna/a7823321d71070463cd3769fc85279147d898101/discord-rpc-1.6.2-jna.jar:/Users/IVUBARC/test/downlords/webview-patch/build/classes/java/main:/Users/IVUBARC/.gradle/caches/modules-2/files-2.1/org.javassist/javassist/3.23.1-GA/c072c13dcb7f705471c40bafb1536171df850ab2/javassist-3.23.1-GA.jar:/Users/IVUBARC/.gradle/caches/modules-2/files-2.1/org.projectlombok/lombok/1.18.12/48e4e5d60309ebd833bc528dcf77668eab3cd72c/lombok-1.18.12.jar:/Users/IVUBARC/.gradle/caches/modules-2/files-2.1/com.install4j/install4j-runtime/7.0.7/b921adc9ec7fc2fc2cb64c7dbf8250102cdf9e42/install4j-runtime-7.0.7.jar:/Users/IVUBARC/.gradle/caches/modules-2/files-2.1/ch.qos.logback/logback-classic/1.2.3/7c4f3c474fb2c041d8028740440937705ebb473a/logback-classic-1.2.3.jar:/Users/IVUBARC/.gradle/caches/modules-2/files-2.1/org.apache.logging.log4j/log4j-to-slf4j/2.13.3/966f6fd1af4959d6b12bfa880121d4a2b164f857/log4j-to-slf4j-2.13.3.jar:/Users/IVUBARC/.gradle/caches/modules-2/files-2.1/org.slf4j/jul-to-slf4j/1.7.30/d58bebff8cbf70ff52b59208586095f467656c30/jul-to-slf4j-1.7.30.jar:/Users/IVUBARC/.gradle/caches/modules-2/files-2.1/org.springframework.boot/spring-boot-autoconfigure/2.3.1.RELEASE/6d679d6ba26235a0e81ca1d58f9c1024d9427411/spring-boot-autoconfigure-2.3.1.RELEASE.jar:/Users/IVUBARC/.gradle/caches/modules-2/files-2.1/org.springframework.boot/spring-boot/2.3.1.RELEASE/ce8d8b6838ecceb68962b975b18682f4237ccf71/spring-boot-2.3.1.RELEASE.jar:/Users/IVUBARC/.gradle/caches/modules-2/files-2.1/org.springframework.security.oauth/spring-security-oauth2/2.4.1.RELEASE/e87d650eebf1532102173ce2c1d28795a04c29e7/spring-security-oauth2-2.4.1.RELEASE.jar:/Users/IVUBARC/.gradle/caches/modules-2/files-2.1/com.fasterxml.jackson.core/jackson-databind/2.11.0/8f5aaf3878b0647ff3a16610af53b1a5c05d9f15/jackson-databind-2.11.0.jar:/Users/IVUBARC/.gradle/caches/modules-2/files-2.1/com.fasterxml.jackson.core/jackson-annotations/2.11.0/c626020ae55d19c690d25cb51c1532ba76e5890f/jackson-annotations-2.11.0.jar:/Users/IVUBARC/.gradle/caches/modules-2/files-2.1/javax.xml.bind/jaxb-api/2.3.1/8531ad5ac454cc2deb9d4d32c40c4d7451939b5d/jaxb-api-2.3.1.jar:/Users/IVUBARC/.gradle/caches/modules-2/files-2.1/org.springframework.security/spring-security-jwt/1.1.1.RELEASE/32a64cdbe06b8aa8fe98e59689cf0c377725868b/spring-security-jwt-1.1.1.RELEASE.jar:/Users/IVUBARC/.gradle/caches/modules-2/files-2.1/org.springframework/spring-context-support/5.2.7.RELEASE/e01150b47dca4f4afc1b256bc7766ee564cdfd7d/spring-context-support-5.2.7.RELEASE.jar:/Users/IVUBARC/.gradle/caches/modules-2/files-2.1/jakarta.annotation/jakarta.annotation-api/1.3.5/59eb84ee0d616332ff44aba065f3888cf002cd2d/jakarta.annotation-api-1.3.5.jar:/Users/IVUBARC/.gradle/caches/modules-2/files-2.1/org.springframework/spring-core/5.2.7.RELEASE/56e14a3a5e2813534b5db2da1502cd58ab5bc61d/spring-core-5.2.7.RELEASE.jar:/Users/IVUBARC/.gradle/caches/modules-2/files-2.1/org.yaml/snakeyaml/1.26/a78a8747147d2c5807683e76ec2b633e95c14fe9/snakeyaml-1.26.jar:/Users/IVUBARC/.gradle/caches/modules-2/files-2.1/org.springframework/spring-beans/5.2.7.RELEASE/5465ab17688ed62254fdef411cf883fd5c3b77a/spring-beans-5.2.7.RELEASE.jar:/Users/IVUBARC/.gradle/caches/modules-2/files-2.1/com.github.FAForever.faf-java-commons/faf-commons-api/0b83fa48a039cea085a7d462cc937fb5a035c186/c17cd19d4f76d5671fa3ebab4588ccabe4c38172/faf-commons-api-0b83fa48a039cea085a7d462cc937fb5a035c186.jar:/Users/IVUBARC/.gradle/caches/modules-2/files-2.1/com.github.FAForever.faf-java-commons/faf-commons-data/0b83fa48a039cea085a7d462cc937fb5a035c186/ac43081c1005ba43d1820d081c1a4180706287c3/faf-commons-data-0b83fa48a039cea085a7d462cc937fb5a035c186.jar:/Users/IVUBARC/.gradle/caches/modules-2/files-2.1/org.apache.commons/commons-lang3/3.10/e155460aaf5b464062a09c3923f089ce99128a17/commons-lang3-3.10.jar:/Users/IVUBARC/.gradle/caches/modules-2/files-2.1/org.slf4j/slf4j-api/1.7.30/b5a4b6d16ab13e34a88fae84c35cd5d68cac922c/slf4j-api-1.7.30.jar:/Users/IVUBARC/.gradle/caches/modules-2/files-2.1/commons-codec/commons-codec/1.14/3cb1181b2141a7e752f5bdc998b7ef1849f726cf/commons-codec-1.14.jar:/Users/IVUBARC/.gradle/caches/modules-2/files-2.1/com.google.guava/failureaccess/1.0.1/1dcf1de382a0bf95a3d8b0849546c88bac1292c9/failureaccess-1.0.1.jar:/Users/IVUBARC/.gradle/caches/modules-2/files-2.1/com.google.guava/listenablefuture/9999.0-empty-to-avoid-conflict-with-guava/b421526c5f297295adef1c886e5246c39d4ac629/listenablefuture-9999.0-empty-to-avoid-conflict-with-guava.jar:/Users/IVUBARC/.gradle/caches/modules-2/files-2.1/com.google.code.findbugs/jsr305/3.0.2/25ea2e8b0c338a877313bd4672d3fe056ea78f0d/jsr305-3.0.2.jar:/Users/IVUBARC/.gradle/caches/modules-2/files-2.1/org.checkerframework/checker-qual/3.4.0/36830784bdefda6dcf8fc217e0416d8291bfe7fa/checker-qual-3.4.0.jar:/Users/IVUBARC/.gradle/caches/modules-2/files-2.1/com.google.errorprone/error_prone_annotations/2.3.4/dac170e4594de319655ffb62f41cbd6dbb5e601e/error_prone_annotations-2.3.4.jar:/Users/IVUBARC/.gradle/caches/modules-2/files-2.1/com.google.j2objc/j2objc-annotations/1.3/ba035118bc8bac37d7eff77700720999acd9986d/j2objc-annotations-1.3.jar:/Users/IVUBARC/.gradle/caches/modules-2/files-2.1/org.codehaus.mojo/animal-sniffer-annotations/1.17/f97ce6decaea32b36101e37979f8b647f00681fb/animal-sniffer-annotations-1.17.jar:/Users/IVUBARC/.gradle/caches/modules-2/files-2.1/org.apache.logging.log4j/log4j-api/2.13.3/ec1508160b93d274b1add34419b897bae84c6ca9/log4j-api-2.13.3.jar:/Users/IVUBARC/.gradle/caches/modules-2/files-2.1/com.jcraft/jsch/0.1.54/da3584329a263616e277e15462b387addd1b208d/jsch-0.1.54.jar:/Users/IVUBARC/.gradle/caches/modules-2/files-2.1/com.jcraft/jzlib/1.1.1/a1551373315ffc2f96130a0e5704f74e151777ba/jzlib-1.1.1.jar:/Users/IVUBARC/.gradle/caches/modules-2/files-2.1/com.googlecode.javaewah/JavaEWAH/1.1.6/94ad16d728b374d65bd897625f3fbb3da223a2b6/JavaEWAH-1.1.6.jar:/Users/IVUBARC/.gradle/caches/modules-2/files-2.1/com.rometools/rome-utils/1.11.1/8dc6594b46896917eff81ce87688327636743ef/rome-utils-1.11.1.jar:/Users/IVUBARC/.gradle/caches/modules-2/files-2.1/org.jdom/jdom2/2.0.6/6f14738ec2e9dd0011e343717fa624a10f8aab64/jdom2-2.0.6.jar:/Users/IVUBARC/.gradle/caches/modules-2/files-2.1/com.google.android.tools/dx/1.7/70eab4a00d9f7ca8849e960a87f5b6736aa4ec11/dx-1.7.jar:/Users/IVUBARC/.gradle/caches/modules-2/files-2.1/commons-beanutils/commons-beanutils/1.9.2/7a87d845ad3a155297e8f67d9008f4c1e5656b71/commons-beanutils-1.9.2.jar:/Users/IVUBARC/.gradle/caches/modules-2/files-2.1/commons-digester/commons-digester/1.8.1/3dec9b9c7ea9342d4dbe8c38560080d85b44a015/commons-digester-1.8.1.jar:/Users/IVUBARC/.gradle/caches/modules-2/files-2.1/commons-logging/commons-logging/1.2/4bfc12adfe4842bf07b657f0369c4cb522955686/commons-logging-1.2.jar:/Users/IVUBARC/.gradle/caches/modules-2/files-2.1/commons-collections/commons-collections/3.2.2/8ad72fe39fa8c91eaaf12aadb21e0c3661fe26d5/commons-collections-3.2.2.jar:/Users/IVUBARC/.gradle/caches/modules-2/files-2.1/com.thetransactioncompany/jsonrpc2-base/1.38/a3e788c39d580c969c30eab66135b3518dde2c9/jsonrpc2-base-1.38.jar:/Users/IVUBARC/.gradle/caches/modules-2/files-2.1/com.fasterxml.jackson.core/jackson-core/2.11.0/f84302e14648f9f63c0c73951054aeb2ff0b810a/jackson-core-2.11.0.jar:/Users/IVUBARC/.gradle/caches/modules-2/files-2.1/org.ejml/simple/0.28/9ed74a2da17f469fc35f6bdb99f44888cf46eb4e/simple-0.28.jar:/Users/IVUBARC/.gradle/caches/modules-2/files-2.1/com.squareup.retrofit2/retrofit/2.1.0/2de7cd8b95b7021b1d597f049bcb422055119f2c/retrofit-2.1.0.jar:/Users/IVUBARC/.gradle/caches/modules-2/files-2.1/org.apache.httpcomponents/httpcore/4.4.13/853b96d3afbb7bf8cc303fe27ee96836a10c1834/httpcore-4.4.13.jar:/Users/IVUBARC/.gradle/caches/modules-2/files-2.1/ch.qos.logback/logback-core/1.2.3/864344400c3d4d92dfeb0a305dc87d953677c03c/logback-core-1.2.3.jar:/Users/IVUBARC/.gradle/caches/modules-2/files-2.1/org.springframework/spring-context/5.2.7.RELEASE/7fd9c4ea311a5d9ab92770be7fc93cc53db334f9/spring-context-5.2.7.RELEASE.jar:/Users/IVUBARC/.gradle/caches/modules-2/files-2.1/org.springframework/spring-webmvc/5.2.7.RELEASE/dcd97bcb0a2aa33f272b0031e4771134e327d942/spring-webmvc-5.2.7.RELEASE.jar:/Users/IVUBARC/.gradle/caches/modules-2/files-2.1/org.springframework.security/spring-security-web/5.3.3.RELEASE/a7edf55294e312f4c09e372c333e94d96bcf7c70/spring-security-web-5.3.3.RELEASE.jar:/Users/IVUBARC/.gradle/caches/modules-2/files-2.1/org.springframework.security/spring-security-config/5.3.3.RELEASE/4df881cc253f63e6aaff9dd66528c2dc18ca61e8/spring-security-config-5.3.3.RELEASE.jar:/Users/IVUBARC/.gradle/caches/modules-2/files-2.1/org.springframework.security/spring-security-core/5.3.3.RELEASE/abdd5a67b3fdc2f4a63023c3f60bbbf21c7c08cf/spring-security-core-5.3.3.RELEASE.jar:/Users/IVUBARC/.gradle/caches/modules-2/files-2.1/javax.activation/javax.activation-api/1.2.0/85262acf3ca9816f9537ca47d5adeabaead7cb16/javax.activation-api-1.2.0.jar:/Users/IVUBARC/.gradle/caches/modules-2/files-2.1/org.bouncycastle/bcpkix-jdk15on/1.64/3dac163e20110817d850d17e0444852a6d7d0bd7/bcpkix-jdk15on-1.64.jar:/Users/IVUBARC/.gradle/caches/modules-2/files-2.1/org.springframework/spring-jcl/5.2.7.RELEASE/72282e1f89c58284632220437b5a1e8066c53d7d/spring-jcl-5.2.7.RELEASE.jar:/Users/IVUBARC/.gradle/caches/modules-2/files-2.1/net.minidev/json-smart/1.3.1/69b3835e96d282ec85fc2e1517b8164c45ed639e/json-smart-1.3.1.jar:/Users/IVUBARC/.gradle/caches/modules-2/files-2.1/org.ejml/dense64/0.28/b79609796212567ed4e6f361c6f30cffd009e4a3/dense64-0.28.jar:/Users/IVUBARC/.gradle/caches/modules-2/files-2.1/org.ejml/core/0.28/d02bf881401f8a005a58b91e87198d18b77347dc/core-0.28.jar:/Users/IVUBARC/.gradle/caches/modules-2/files-2.1/com.squareup.okhttp3/okhttp/3.14.9/3e6d101343c7ea687cd593e4990f73b25c878383/okhttp-3.14.9.jar:/Users/IVUBARC/.gradle/caches/modules-2/files-2.1/org.springframework/spring-aop/5.2.7.RELEASE/9cf69f8e888091684c05f0a287bb638502e90725/spring-aop-5.2.7.RELEASE.jar:/Users/IVUBARC/.gradle/caches/modules-2/files-2.1/org.springframework/spring-expression/5.2.7.RELEASE/c98d7b10f959f9bedfbbbd4d723cf7a1f17a1f71/spring-expression-5.2.7.RELEASE.jar:/Users/IVUBARC/.gradle/caches/modules-2/files-2.1/org.bouncycastle/bcprov-jdk15on/1.64/1467dac1b787b5ad2a18201c0c281df69882259e/bcprov-jdk15on-1.64.jar:/Users/IVUBARC/.gradle/caches/modules-2/files-2.1/com.squareup.okio/okio/1.17.2/78c7820b205002da4d2d137f6f312bd64b3d6049/okio-1.17.2.jar:/Users/IVUBARC/.gradle/caches/modules-2/files-2.1/org.glassfish.jaxb/jaxb-runtime/2.3.3/c46b68a6e3a2d84ba4eb14c6a8a1a9a7be4048bc/jaxb-runtime-2.3.3.jar:/Users/IVUBARC/.gradle/caches/modules-2/files-2.1/org.apache.logging.log4j/log4j-core/2.13.3/4e857439fc4fe974d212adaaaa3b118b8b50e3ec/log4j-core-2.13.3.jar:/Users/IVUBARC/.gradle/caches/modules-2/files-2.1/org.glassfish.jaxb/txw2/2.3.3/12f70b0ea4fc1ad45315e842f63f7c9a46f46530/txw2-2.3.3.jar:/Users/IVUBARC/.gradle/caches/modules-2/files-2.1/com.sun.activation/jakarta.activation/1.2.2/74548703f9851017ce2f556066659438019e7eb5/jakarta.activation-1.2.2.jar:/Users/IVUBARC/.gradle/caches/modules-2/files-2.1/jakarta.xml.bind/jakarta.xml.bind-api/2.3.3/48e3b9cfc10752fba3521d6511f4165bea951801/jakarta.xml.bind-api-2.3.3.jar:/Users/IVUBARC/.gradle/caches/modules-2/files-2.1/com.sun.istack/istack-commons-runtime/3.0.11/4293b5f4e4e89d598f62bb2ba73b32132e7c3a27/istack-commons-runtime-3.0.11.jar:/Users/IVUBARC/Applications/IntelliJ IDEA CE.app/Contents/lib/idea_rt.jar com.faforever.client.Main
OpenJDK 64-Bit Server VM warning: Options -Xverify:none and -noverify were deprecated in JDK 13 and will likely be removed in a future release.
Connected to the target VM, address: '127.0.0.1:50676', transport: 'socket'
OpenJDK 64-Bit Server VM warning: Sharing is only supported for boot loader classes because bootstrap classpath has been appended
10:08:30.053 [main] DEBUG com.faforever.client.preferences.PreferencesService - Logger initialized
2020-10-05 10:08:32.980  INFO 13962 --- [JavaFX-Launcher] o.s.boot.SpringApplication               : Starting application on MAC125BB with PID 13962 (started by IVUBARC in /Users/IVUBARC/test/downlords)
2020-10-05 10:08:32.984  INFO 13962 --- [JavaFX-Launcher] o.s.boot.SpringApplication               : The following profiles are active: mac,prod
2020-10-05 10:08:34.095  INFO 13962 --- [JavaFX-Launcher] trationDelegate$BeanPostProcessorChecker : Bean 'asyncConfig' of type [com.faforever.client.config.AsyncConfig$$EnhancerBySpringCGLIB$$9392c4a7] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2020-10-05 10:08:34.143  INFO 13962 --- [JavaFX-Launcher] trationDelegate$BeanPostProcessorChecker : Bean 'cacheConfig' of type [com.faforever.client.config.CacheConfig$$EnhancerBySpringCGLIB$$f4d177ed] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by com.google.gson.internal.reflect.UnsafeReflectionAccessor (file:/Users/IVUBARC/.gradle/caches/modules-2/files-2.1/com.google.code.gson/gson/2.8.5/f645ed69d595b24d4cf8b3fbb64cc505bede8829/gson-2.8.5.jar) to field java.net.HttpCookie.name
WARNING: Please consider reporting this to the maintainers of com.google.gson.internal.reflect.UnsafeReflectionAccessor
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
2020-10-05 10:08:34.622  INFO 13962 --- [JavaFX-Launcher] o.s.s.c.ThreadPoolTaskScheduler          : Initializing ExecutorService 'taskScheduler'
Error in LSRegisterURL: -10811
2020-10-05 10:08:35.079  INFO 13962 --- [JavaFX-Launcher] c.f.c.map.generator.MapGeneratorService  : Deleting leftover generated maps...
2020-10-05 10:08:35.086  WARN 13962 --- [JavaFX-Launcher] com.faforever.client.map.MapService      : Could not load maps: installation path is not set
2020-10-05 10:08:35.111  INFO 13962 --- [JavaFX-Launcher] com.faforever.client.update.Version      : The current application version is: snapshot
2020-10-05 10:08:35.114  INFO 13962 --- [JavaFX-Launcher] c.f.c.update.ClientUpdateServiceImpl     : Current version: snapshot
2020-10-05 10:08:35.132  INFO 13962 --- [pool-3-thread-2] c.f.client.update.CheckForUpdateTask     : Checking for client update
2020-10-05 10:08:35.181 java[13962:92539] [JRSAppKitAWT markAppIsDaemon]: Process manager already initialized: can't fully enable headless mode.
2020-10-05 10:08:35.181  WARN 13962 --- [JavaFX-Launcher] c.f.client.os.FileOpeningHandler         : This desktop is not supported by awt therefore file opening handler was not registered
2020-10-05 10:08:35.195  WARN 13962 --- [  AppKit Thread] com.faforever.client.task.TaskService    : Task failed

java.net.UnknownHostException: content.faforever.com
    at java.base/sun.nio.ch.NioSocketImpl.connect(NioSocketImpl.java:567)
    at java.base/java.net.SocksSocketImpl.connect(SocksSocketImpl.java:333)
    at java.base/java.net.Socket.connect(Socket.java:648)
    at java.base/sun.security.ssl.SSLSocketImpl.connect(SSLSocketImpl.java:290)
    at java.base/sun.net.NetworkClient.doConnect(NetworkClient.java:177)
    at java.base/sun.net.www.http.HttpClient.openServer(HttpClient.java:474)
    at java.base/sun.net.www.http.HttpClient.openServer(HttpClient.java:569)
    at java.base/sun.net.www.protocol.https.HttpsClient.<init>(HttpsClient.java:265)
    at java.base/sun.net.www.protocol.https.HttpsClient.New(HttpsClient.java:372)
    at java.base/sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.getNewHttpClient(AbstractDelegateHttpsURLConnection.java:177)
    at java.base/sun.net.www.protocol.http.HttpURLConnection.plainConnect0(HttpURLConnection.java:1194)
    at java.base/sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:1082)
    at java.base/sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:163)
    at java.base/sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1595)
    at java.base/sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1523)
    at java.base/sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:224)
    at com.faforever.client.preferences.PreferencesService.getRemotePreferences(PreferencesService.java:443)
    at com.faforever.client.update.CheckForBetaUpdateTask.call(CheckForBetaUpdateTask.java:41)
    at com.faforever.client.update.CheckForBetaUpdateTask.call(CheckForBetaUpdateTask.java:19)
    at javafx.concurrent.Task$TaskCallable.call(Task.java:1425)
    at java.base/java.util.concurrent.FutureTask.run$$$capture(FutureTask.java:264)
    at java.base/java.util.concurrent.FutureTask.run(FutureTask.java)
    at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1130)
    at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:630)
    at java.base/java.lang.Thread.run(Thread.java:832)

2020-10-05 10:08:35.196  WARN 13962 --- [  AppKit Thread] com.faforever.client.task.TaskService    : Task failed

java.net.UnknownHostException: content.faforever.com
    at java.base/sun.nio.ch.NioSocketImpl.connect(NioSocketImpl.java:567)
    at java.base/java.net.SocksSocketImpl.connect(SocksSocketImpl.java:333)
    at java.base/java.net.Socket.connect(Socket.java:648)
    at java.base/sun.security.ssl.SSLSocketImpl.connect(SSLSocketImpl.java:290)
    at java.base/sun.net.NetworkClient.doConnect(NetworkClient.java:177)
    at java.base/sun.net.www.http.HttpClient.openServer(HttpClient.java:474)
    at java.base/sun.net.www.http.HttpClient.openServer(HttpClient.java:569)
    at java.base/sun.net.www.protocol.https.HttpsClient.<init>(HttpsClient.java:265)
    at java.base/sun.net.www.protocol.https.HttpsClient.New(HttpsClient.java:372)
    at java.base/sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.getNewHttpClient(AbstractDelegateHttpsURLConnection.java:177)
    at java.base/sun.net.www.protocol.http.HttpURLConnection.plainConnect0(HttpURLConnection.java:1194)
    at java.base/sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:1082)
    at java.base/sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:163)
    at java.base/sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1595)
    at java.base/sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1523)
    at java.base/sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:224)
    at com.faforever.client.preferences.PreferencesService.getRemotePreferences(PreferencesService.java:443)
    at com.faforever.client.update.CheckForUpdateTask.call(CheckForUpdateTask.java:53)
    at com.faforever.client.update.CheckForUpdateTask.call(CheckForUpdateTask.java:20)
    at javafx.concurrent.Task$TaskCallable.call(Task.java:1425)
    at java.base/java.util.concurrent.FutureTask.run$$$capture(FutureTask.java:264)
    at java.base/java.util.concurrent.FutureTask.run(FutureTask.java)
    at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1130)
    at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:630)
    at java.base/java.lang.Thread.run(Thread.java:832)

2020-10-05 10:08:35.566  INFO 13962 --- [JavaFX-Launcher] o.s.boot.SpringApplication               : Started application in 3.387 seconds (JVM running for 6.29)
Exception in Application start method
2020-10-05 10:08:35.581  WARN 13962 --- [  AppKit Thread] c.f.client.fa.relay.ice.IceAdapterImpl   : Ignoring call to ICE adapter as we are not connected: quit([])
2020-10-05 10:08:35.585  INFO 13962 --- [  AppKit Thread] com.faforever.client.config.AsyncConfig  : Shutting down ExecutorService 'taskExecutor'
2020-10-05 10:08:35.585  INFO 13962 --- [  AppKit Thread] o.s.s.c.ThreadPoolTaskScheduler          : Shutting down ExecutorService 'taskScheduler'
Exception in thread "main" java.lang.RuntimeException: Exception in Application start method
    at com.sun.javafx.application.LauncherImpl.launchApplication1(LauncherImpl.java:900)
    at com.sun.javafx.application.LauncherImpl.lambda$launchApplication$2(LauncherImpl.java:195)
    at java.base/java.lang.Thread.run(Thread.java:832)
Caused by: java.lang.ExceptionInInitializerError
    at ch.micheljung.fxwindow.BuilderImpl.apply(BuilderImpl.java:152)
    at com.faforever.client.FafClientApplication.start(FafClientApplication.java:105)
    at com.sun.javafx.application.LauncherImpl.lambda$launchApplication1$9(LauncherImpl.java:846)
    at com.sun.javafx.application.PlatformImpl.lambda$runAndWait$12(PlatformImpl.java:455)
    at com.sun.javafx.application.PlatformImpl.lambda$runLater$10(PlatformImpl.java:428)
    at java.base/java.security.AccessController.doPrivileged(AccessController.java:391)
    at com.sun.javafx.application.PlatformImpl.lambda$runLater$11(PlatformImpl.java:427)
    at com.sun.glass.ui.InvokeLaterDispatcher$Future.run$$$capture(InvokeLaterDispatcher.java:96)
    at com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java)
Caused by: java.lang.NullPointerException
    at javafx.fxml.JavaFXBuilderFactory.<init>(JavaFXBuilderFactory.java:101)
    at javafx.fxml.JavaFXBuilderFactory.<init>(JavaFXBuilderFactory.java:90)
    at javafx.fxml.FXMLLoader.<clinit>(FXMLLoader.java:1828)
    ... 9 more
Disconnected from the target VM, address: '127.0.0.1:50676', transport: 'socket'

Process finished with exit code 1
1-alex98 commented 4 years ago

jdk 15 was never tested i would advice against it very strongly t not introduce even more isuues

tatsujb commented 4 years ago

so my error log changed, I am on openjdk 14, looks better right?

tatsujb commented 4 years ago
11:01:17: Executing task 'Main.main()'...

Starting Gradle Daemon...
Connected to the target VM, address: '127.0.0.1:55239', transport: 'socket'
Gradle Daemon started in 1 s 112 ms

> Configure project :
Platform is: mac

> Task :downloadIceAdapter SKIPPED
> Task :downloadUnixUid SKIPPED
> Task :downloadWindowsUid SKIPPED
> Task :downloadNativeDependencies UP-TO-DATE
> Task :processResources UP-TO-DATE
> Task :webview-patch:compileJava UP-TO-DATE
> Task :webview-patch:processResources NO-SOURCE
> Task :webview-patch:classes UP-TO-DATE
> Task :webview-patch:jar UP-TO-DATE
> Task :webview-patch:assemble UP-TO-DATE
> Task :webview-patch:compileTestJava NO-SOURCE
> Task :webview-patch:processTestResources NO-SOURCE
> Task :webview-patch:testClasses UP-TO-DATE
> Task :webview-patch:test NO-SOURCE
> Task :webview-patch:check UP-TO-DATE
> Task :webview-patch:build UP-TO-DATE
> Task :compileJava UP-TO-DATE
> Task :classes UP-TO-DATE
Connected to the VM started by ':Main.main()' (localhost:55248). Open the debugger session tab

> Task :Main.main()
11:01:26.493 [main] DEBUG com.faforever.client.preferences.PreferencesService - Logger initialized
OpenJDK 64-Bit Server VM warning: Options -Xverify:none and -noverify were deprecated in JDK 13 and will likely be removed in a future release.
OpenJDK 64-Bit Server VM warning: Options -Xverify:none and -noverify were deprecated in JDK 13 and will likely be removed in a future release.
2020-10-05 11:01:29.232  INFO 18260 --- [JavaFX-Launcher] o.s.boot.SpringApplication               : Starting application on MAC125BB with PID 18260 (started by IVUBARC in /Users/IVUBARC/test/downlords)
2020-10-05 11:01:29.233  INFO 18260 --- [JavaFX-Launcher] o.s.boot.SpringApplication               : The following profiles are active: mac,prod
2020-10-05 11:01:30.423  INFO 18260 --- [JavaFX-Launcher] trationDelegate$BeanPostProcessorChecker : Bean 'asyncConfig' of type [com.faforever.client.config.AsyncConfig$$EnhancerBySpringCGLIB$$e117349c] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2020-10-05 11:01:30.469  INFO 18260 --- [JavaFX-Launcher] trationDelegate$BeanPostProcessorChecker : Bean 'cacheConfig' of type [com.faforever.client.config.CacheConfig$$EnhancerBySpringCGLIB$$4255e7e2] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by com.google.gson.internal.reflect.UnsafeReflectionAccessor (file:/Users/IVUBARC/.gradle/caches/modules-2/files-2.1/com.google.code.gson/gson/2.8.5/f645ed69d595b24d4cf8b3fbb64cc505bede8829/gson-2.8.5.jar) to field java.net.HttpCookie.name
WARNING: Please consider reporting this to the maintainers of com.google.gson.internal.reflect.UnsafeReflectionAccessor
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
2020-10-05 11:01:31.058  INFO 18260 --- [JavaFX-Launcher] o.s.s.c.ThreadPoolTaskScheduler          : Initializing ExecutorService 'taskScheduler'
Error in LSRegisterURL: -10811
2020-10-05 11:01:31.552  INFO 18260 --- [JavaFX-Launcher] c.f.c.map.generator.MapGeneratorService  : Deleting leftover generated maps...
2020-10-05 11:01:31.561  WARN 18260 --- [JavaFX-Launcher] com.faforever.client.map.MapService      : Could not load maps: installation path is not set
2020-10-05 11:01:31.596  INFO 18260 --- [JavaFX-Launcher] com.faforever.client.update.Version      : The current application version is: snapshot
2020-10-05 11:01:31.600  INFO 18260 --- [JavaFX-Launcher] c.f.c.update.ClientUpdateServiceImpl     : Current version: snapshot
2020-10-05 11:01:31.620  INFO 18260 --- [pool-3-thread-2] c.f.client.update.CheckForUpdateTask     : Checking for client update
2020-10-05 11:01:31.685 java[18260:125870] [JRSAppKitAWT markAppIsDaemon]: Process manager already initialized: can't fully enable headless mode.
2020-10-05 11:01:31.685  WARN 18260 --- [JavaFX-Launcher] c.f.client.os.FileOpeningHandler         : This desktop is not supported by awt therefore file opening handler was not registered
2020-10-05 11:01:31.699  WARN 18260 --- [  AppKit Thread] com.faforever.client.task.TaskService    : Task failed

java.net.UnknownHostException: content.faforever.com
    at java.base/sun.nio.ch.NioSocketImpl.connect(NioSocketImpl.java:567)
    at java.base/java.net.SocksSocketImpl.connect(SocksSocketImpl.java:333)
    at java.base/java.net.Socket.connect(Socket.java:648)
    at java.base/sun.security.ssl.SSLSocketImpl.connect(SSLSocketImpl.java:290)
    at java.base/sun.net.NetworkClient.doConnect(NetworkClient.java:177)
    at java.base/sun.net.www.http.HttpClient.openServer(HttpClient.java:474)
    at java.base/sun.net.www.http.HttpClient.openServer(HttpClient.java:569)
    at java.base/sun.net.www.protocol.https.HttpsClient.<init>(HttpsClient.java:265)
    at java.base/sun.net.www.protocol.https.HttpsClient.New(HttpsClient.java:372)
    at java.base/sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.getNewHttpClient(AbstractDelegateHttpsURLConnection.java:177)
    at java.base/sun.net.www.protocol.http.HttpURLConnection.plainConnect0(HttpURLConnection.java:1194)
    at java.base/sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:1082)
    at java.base/sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:163)
    at java.base/sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1595)
    at java.base/sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1523)
    at java.base/sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:224)
    at com.faforever.client.preferences.PreferencesService.getRemotePreferences(PreferencesService.java:443)
    at com.faforever.client.update.CheckForBetaUpdateTask.call(CheckForBetaUpdateTask.java:41)
    at com.faforever.client.update.CheckForBetaUpdateTask.call(CheckForBetaUpdateTask.java:19)
    at javafx.concurrent.Task$TaskCallable.call(Task.java:1425)
    at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
    at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1130)
    at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:630)
    at java.base/java.lang.Thread.run(Thread.java:832)

2020-10-05 11:01:31.700  WARN 18260 --- [  AppKit Thread] com.faforever.client.task.TaskService    : Task failed

java.net.UnknownHostException: content.faforever.com
    at java.base/sun.nio.ch.NioSocketImpl.connect(NioSocketImpl.java:567)
    at java.base/java.net.SocksSocketImpl.connect(SocksSocketImpl.java:333)
    at java.base/java.net.Socket.connect(Socket.java:648)
    at java.base/sun.security.ssl.SSLSocketImpl.connect(SSLSocketImpl.java:290)
    at java.base/sun.net.NetworkClient.doConnect(NetworkClient.java:177)
    at java.base/sun.net.www.http.HttpClient.openServer(HttpClient.java:474)
    at java.base/sun.net.www.http.HttpClient.openServer(HttpClient.java:569)
    at java.base/sun.net.www.protocol.https.HttpsClient.<init>(HttpsClient.java:265)
    at java.base/sun.net.www.protocol.https.HttpsClient.New(HttpsClient.java:372)
    at java.base/sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.getNewHttpClient(AbstractDelegateHttpsURLConnection.java:177)
    at java.base/sun.net.www.protocol.http.HttpURLConnection.plainConnect0(HttpURLConnection.java:1194)
    at java.base/sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:1082)
    at java.base/sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:163)
    at java.base/sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1595)
    at java.base/sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1523)
    at java.base/sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:224)
    at com.faforever.client.preferences.PreferencesService.getRemotePreferences(PreferencesService.java:443)
    at com.faforever.client.update.CheckForUpdateTask.call(CheckForUpdateTask.java:53)
    at com.faforever.client.update.CheckForUpdateTask.call(CheckForUpdateTask.java:20)
    at javafx.concurrent.Task$TaskCallable.call(Task.java:1425)
    at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
    at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1130)
    at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:630)
    at java.base/java.lang.Thread.run(Thread.java:832)

2020-10-05 11:01:32.070  INFO 18260 --- [JavaFX-Launcher] o.s.boot.SpringApplication               : Started application in 3.731 seconds (JVM running for 6.302)
2020-10-05 11:01:32.106  WARN 18260 --- [  AppKit Thread] c.f.client.fa.relay.ice.IceAdapterImpl   : Ignoring call to ICE adapter as we are not connected: quit([])
2020-10-05 11:01:32.115  INFO 18260 --- [  AppKit Thread] com.faforever.client.config.AsyncConfig  : Shutting down ExecutorService 'taskExecutor'
2020-10-05 11:01:32.117  INFO 18260 --- [  AppKit Thread] o.s.s.c.ThreadPoolTaskScheduler          : Shutting down ExecutorService 'taskScheduler'
Exception in Application start method
Exception in thread "main" java.lang.RuntimeException: Exception in Application start method
    at com.sun.javafx.application.LauncherImpl.launchApplication1(LauncherImpl.java:900)
    at com.sun.javafx.application.LauncherImpl.lambda$launchApplication$2(LauncherImpl.java:195)
    at java.base/java.lang.Thread.run(Thread.java:832)
Caused by: java.lang.ExceptionInInitializerError
    at ch.micheljung.fxwindow.BuilderImpl.apply(BuilderImpl.java:152)
    at com.faforever.client.FafClientApplication.start(FafClientApplication.java:105)
    at com.sun.javafx.application.LauncherImpl.lambda$launchApplication1$9(LauncherImpl.java:846)
    at com.sun.javafx.application.PlatformImpl.lambda$runAndWait$12(PlatformImpl.java:455)
    at com.sun.javafx.application.PlatformImpl.lambda$runLater$10(PlatformImpl.java:428)
    at java.base/java.security.AccessController.doPrivileged(AccessController.java:391)
    at com.sun.javafx.application.PlatformImpl.lambda$runLater$11(PlatformImpl.java:427)
    at com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:96)
Caused by: java.lang.NullPointerException
    at javafx.fxml.JavaFXBuilderFactory.<init>(JavaFXBuilderFactory.java:101)
    at javafx.fxml.JavaFXBuilderFactory.<init>(JavaFXBuilderFactory.java:90)
    at javafx.fxml.FXMLLoader.<clinit>(FXMLLoader.java:1828)
    ... 8 more

> Task :Main.main() FAILED

Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/6.5/userguide/command_line_interface.html#sec:command_line_warnings
5 actionable tasks: 1 executed, 4 up-to-date

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':Main.main()'.
> Process 'command '/usr/local/homebrew/Cellar/openjdk/14.0.1/libexec/openjdk.jdk/Contents/Home/bin/java'' finished with non-zero exit value 1

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 15s
Disconnected from the target VM, address: '127.0.0.1:55239', transport: 'socket'
11:01:33: Task execution finished 'Main.main()'.
1-alex98 commented 4 years ago

ok I am a little lost there... No idea what the Exception means looks like nothing we are responsible for

tatsujb commented 4 years ago

must be the wrong java version. If I had admin privileges this would be solved.

I need help finding a correct version of Java 14 for mac as a zip I can extract into a folder to point to with intellij

FishusOne commented 3 years ago

Got this issue under Linux, did some digging, FXMLLoader() is getting An illegal reflective access operation has occurred when loading news.fxml, removing the WebView tag from that FXML file means that it loads, but fails later on another component.

jsnprtr commented 3 years ago

Looks like JavaFX is having a problem getting the classloader. If I add the system classloader to the current thread before building the FxStage then I can get the login window to flash up, but it doesn't stay - it immediately closes.

jsnprtr commented 3 years ago

I think it has something to do with this: https://stackoverflow.com/questions/62521369/javafx-start-method-runs-on-appkit-thread-instead-of-javafx-thread I don't know what the workaround is except setting the classloader manually on the thread, but even that doesn't show the login window properly.

micheljung commented 3 years ago

@tatsujb you're a Java developer, right? Did you try debugging to where the stacktrace throw the NPE? Or even look at the code line?

Caused by: java.lang.NullPointerException
    at javafx.fxml.JavaFXBuilderFactory.<init>(JavaFXBuilderFactory.java:101)
    at javafx.fxml.JavaFXBuilderFactory.<init>(JavaFXBuilderFactory.java:90)
    at javafx.fxml.FXMLLoader.<clinit>(FXMLLoader.java:1828)
    ... 8 more

It might be very obvious once you do.

jmgrill commented 3 years ago

Following.

I'm a software engineer with a mac and happy to help in any way I can. I have no experience with game dev or anything, but happy to contribute if you have specific instructions.

tatsujb commented 3 years ago

@tatsujb you're a Java developer, right? Did you try debugging to where the stacktrace throw the NPE? Or even look at the code line?

Caused by: java.lang.NullPointerException
  at javafx.fxml.JavaFXBuilderFactory.<init>(JavaFXBuilderFactory.java:101)
  at javafx.fxml.JavaFXBuilderFactory.<init>(JavaFXBuilderFactory.java:90)
  at javafx.fxml.FXMLLoader.<clinit>(FXMLLoader.java:1828)
  ... 8 more

It might be very obvious once you do.

no longer. I've been doing Angular now for nearly 4 years. a bit of Vue, React and C# as well. No Java. I'll admit I could probably sort it out. but I'm just too swamped ATM, so I'm only following this issue, not really taking the time quite yet.

Also this is not my Mac, it's some big company's, it only connects via corporate proxy and I don't have admin privileges so installing the right JDK is not possible and and downloads or connections attempted by the FAF client fail. it's not the most ideal working environment.

tatsujb commented 3 years ago

Following.

I'm a software engineer with a mac and happy to help in any way I can. I have no experience with game dev or anything, but happy to contribute if you have specific instructions.

that's very helpful!

Instructions

Open a handy terminal

install brew : https://brew.sh/index

then install adoptopenJDK14 (I think another method for installing Java Development Kit 14 will work but it has to be version 14) :

brew update
brew tap AdoptOpenJDK/openjdk
brew cask install adoptopenjdk14

then

download this https://www.jetbrains.com/fr-fr/idea/download/download-thanks.html?platform=mac&code=IIC

Install and run (yes to all defaults)

once you get to this, go into "Structure for New Project" : Capture d’écran 2020-10-23 à 10 29 19

and make sure your JDK is detected, if not you'll want to configure it : Capture d’écran 2020-10-23 à 10 31 10 (make sure the language level is also 14)

Next Ideally you can add an ssh key to your Github account (if you haven't already done so) :

  1. https://docs.github.com/en/free-pro-team@latest/github/authenticating-to-github/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent
  2. https://docs.github.com/en/free-pro-team@latest/github/authenticating-to-github/adding-a-new-ssh-key-to-your-github-account

This is helpful because this way you can directly use the intellij "get from version control" option and paste the ssh .git url you get from here on this github project : Capture d’écran 2020-10-23 à 10 33 23

this will download this project (when it's done say yes to opening the project)

you'll get this little tooltip at the bottom right : Capture d’écran 2020-10-23 à 10 39 22

click on "import gradle porject"

It should automatically run Gradle which gets the dependencies and be ready to run.

then click this button : Capture d’écran 2020-10-23 à 10 41 09

then this : Capture d’écran 2020-10-23 à 10 41 29

then search for mac (or find it and click on it directly), and click checkout : Capture d’écran 2020-10-23 à 10 42 05

then at long last click this in the top bar :

Capture d’écran 2020-10-23 à 10 44 02

this should run FAF ... when everything works.

For me it doesn't, maybe it does for you, but even if it doesn't your outputted console log will be useful here.

tatsujb commented 3 years ago

currently I'm stuck on :

Capture d’écran 2020-10-23 à 11 06 29

Execution failed for task ':downloadIceAdapter'.
> javax.net.ssl.SSLHandshakeException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

this is probably. just corporate proxy preventing vital downloads/connections

jsnprtr commented 3 years ago

@tatsujb The fix I found was to set the FXMLLoader classLoader manually in the Main class:

Screenshot 2020-10-23 at 12 17 11

This gets rid of the NullPointerExceptions, but I can only get the login window to flash up very briefly, see the following screenshot:

Screenshot 2020-10-23 at 12 26 41

after showMainWindow is called, the login window appears, but as soon as the program exits the start method the window "disappears". There are no exceptions or errors or warnings in the log.

I say it "disappears" - I'm not sure what happens to it - I've never used JavaFX before so I don't know if it's possible the window is hidden / rendered off screen / something else.

Note the name of the current thread is "AppKit Thread" whereas in Windows it's "JavaFX Application Thread" - which leads me to believe this is a similar problem to this: https://stackoverflow.com/questions/62521369/javafx-start-method-runs-on-appkit-thread-instead-of-javafx-thread.

Here's the line in the JDK which seems to be the cause of the NPE we were seeing in JavaFXBuilderFactory - https://github.com/AdoptOpenJDK/openjdk-jdk/blob/jdk-14%2B0/src/java.desktop/macosx/classes/sun/lwawt/macosx/LWCToolkit.java#L562

jsnprtr commented 3 years ago

As I thought, the window gets immediately hidden.

You can show it by changing maximized to true in ~/.faforever/client.prefs.

Not sure if this is a bug in JavaFX, but calling setMaximized on javafx.stage.Stage with the value false causes the window to be hidden completely.

Don't try and drag the window, the same problem occurs.

tatsujb commented 3 years ago

all of these are bugs for FXStage not Downlord FAF Client : https://github.com/micheljung/fxstage/issues/1

I think the lib as a whole needs to be removed as it's a source of issues not only for linux and mac but for windows as well.

These issues could all probably be fixed with time and strenuous effort but I don't see how it would be justified when the gain is simply a small perk of having a themed window border for this client.

OR

from what I gather it comes down to StageStyle.DECORATED vs StageStyle.UNDECORATED, this could be an option in the settings that the user can turn off and also one of the things the app could do by itself on a retry after crash.

jmgrill commented 3 years ago

@tatsujb I followed the directions you provided and got an error this error on the initial debug. I restarted IntelliJ and ran it again to double-check and got the same problem. Here is a link to the Gradle build scan and the console output is pasted below:

11:52:00 PM: Executing task 'Main.main() --scan'...

Starting Gradle Daemon... Connected to the target VM, address: '127.0.0.1:57653', transport: 'socket' Gradle Daemon started in 787 ms

Configure project : Platform is: mac

Task :downloadIceAdapter UP-TO-DATE Unable to get progress logger. Download progress will not be displayed.

Task :downloadUnixUid Unable to get progress logger. Download progress will not be displayed.

Task :downloadWindowsUid UP-TO-DATE

Task :downloadNativeDependencies Unable to get progress logger. Download progress will not be displayed. Task :processResources UP-TO-DATE Task :webview-patch:compileJava UP-TO-DATE Task :webview-patch:processResources NO-SOURCE Task :webview-patch:classes UP-TO-DATE Task :webview-patch:jar UP-TO-DATE Task :webview-patch:assemble UP-TO-DATE Task :webview-patch:compileTestJava NO-SOURCE Task :webview-patch:processTestResources NO-SOURCE Task :webview-patch:testClasses UP-TO-DATE Task :webview-patch:test NO-SOURCE Task :webview-patch:check UP-TO-DATE Task :webview-patch:build UP-TO-DATE

Task :compileJava /Users/josh/IdeaProjects/downlords-faf-client/src/main/java/com/faforever/client/api/dto/Tutorial.java:7: warning: Generating equals/hashCode implementation but without a call to superclass, even though this class does not extend java.lang.Object. If this is intentional, add '@EqualsAndHashCode(callSuper=false)' to your type. @Data ^ /Users/josh/IdeaProjects/downlords-faf-client/src/main/java/com/faforever/client/theme/UiService.java:279: warning: non-varargs call of varargs method with inexact argument type for last parameter; logger.debug("Changes detected, reloading stylesheets: {}", styleSheets); ^ cast to Object for a varargs call cast to Object[] for a non-varargs call and to suppress this warning /Users/josh/IdeaProjects/downlords-faf-client/src/main/java/com/faforever/client/api/dto/LegacyAccessLevel.java:9: warning: [dep-ann] deprecated item is not annotated with @Deprecated public enum LegacyAccessLevel { ^ Note: Some input files use or override a deprecated API. Note: Recompile with -Xlint:deprecation for details. Note: Some input files use unchecked or unsafe operations. Note: Recompile with -Xlint:unchecked for details. 3 warnings Connected to the VM started by ':Main.main()' (localhost:57672). Open the debugger session tab

Task :classes

Task :Main.main() 23:52:31.388 [main] DEBUG com.faforever.client.preferences.PreferencesService - Logger initialized 2020-11-02 23:52:32.267 INFO 11877 --- [JavaFX-Launcher] o.s.boot.SpringApplication : Starting application on Joshuas-MacBook-Pro.local with PID 11877 (started by josh in /Users/josh/IdeaProjects/downlords-faf-client) 2020-11-02 23:52:32.268 INFO 11877 --- [JavaFX-Launcher] o.s.boot.SpringApplication : The following profiles are active: mac,prod OpenJDK 64-Bit Server VM warning: Options -Xverify:none and -noverify were deprecated in JDK 13 and will likely be removed in a future release. OpenJDK 64-Bit Server VM warning: Options -Xverify:none and -noverify were deprecated in JDK 13 and will likely be removed in a future release. 2020-11-02 23:52:32.890 INFO 11877 --- [JavaFX-Launcher] trationDelegate$BeanPostProcessorChecker : Bean 'asyncConfig' of type [com.faforever.client.config.AsyncConfig$$EnhancerBySpringCGLIB$$b40a6904] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) 2020-11-02 23:52:32.925 INFO 11877 --- [JavaFX-Launcher] trationDelegate$BeanPostProcessorChecker : Bean 'cacheConfig' of type [com.faforever.client.config.CacheConfig$$EnhancerBySpringCGLIB$$15491c4a] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) WARNING: An illegal reflective access operation has occurred WARNING: Illegal reflective access by com.google.gson.internal.reflect.UnsafeReflectionAccessor (file:/Users/josh/.gradle/caches/modules-2/files-2.1/com.google.code.gson/gson/2.8.5/f645ed69d595b24d4cf8b3fbb64cc505bede8829/gson-2.8.5.jar) to field java.net.HttpCookie.name WARNING: Please consider reporting this to the maintainers of com.google.gson.internal.reflect.UnsafeReflectionAccessor WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations WARNING: All illegal access operations will be denied in a future release 2020-11-02 23:52:33.292 INFO 11877 --- [JavaFX-Launcher] o.s.s.c.ThreadPoolTaskScheduler : Initializing ExecutorService 'taskScheduler' Error in LSRegisterURL: -10811 2020-11-02 23:52:33.628 INFO 11877 --- [JavaFX-Launcher] c.f.c.map.generator.MapGeneratorService : Deleting leftover generated maps... 2020-11-02 23:52:33.634 WARN 11877 --- [JavaFX-Launcher] com.faforever.client.map.MapService : Could not load maps: installation path is not set 2020-11-02 23:52:33.654 INFO 11877 --- [JavaFX-Launcher] com.faforever.client.update.Version : The current application version is: snapshot 2020-11-02 23:52:33.656 INFO 11877 --- [JavaFX-Launcher] c.f.c.update.ClientUpdateServiceImpl : Current version: snapshot 2020-11-02 23:52:33.668 INFO 11877 --- [pool-3-thread-2] c.f.client.update.CheckForUpdateTask : Checking for client update 2020-11-02 23:52:33.705 java[11877:563801] [JRSAppKitAWT markAppIsDaemon]: Process manager already initialized: can't fully enable headless mode. 2020-11-02 23:52:33.706 WARN 11877 --- [JavaFX-Launcher] c.f.client.os.FileOpeningHandler : This desktop is not supported by awt therefore file opening handler was not registered 2020-11-02 23:52:33.899 INFO 11877 --- [JavaFX-Launcher] o.s.boot.SpringApplication : Started application in 2.17 seconds (JVM running for 2.98) 2020-11-02 23:52:33.910 WARN 11877 --- [ AppKit Thread] c.f.client.fa.relay.ice.IceAdapterImpl : Ignoring call to ICE adapter as we are not connected: quit([]) 2020-11-02 23:52:33.914 INFO 11877 --- [ AppKit Thread] com.faforever.client.config.AsyncConfig : Shutting down ExecutorService 'taskExecutor' 2020-11-02 23:52:33.914 INFO 11877 --- [ AppKit Thread] o.s.s.c.ThreadPoolTaskScheduler : Shutting down ExecutorService 'taskScheduler' Exception in Application start method Exception in thread "main" java.lang.RuntimeException: Exception in Application start method at com.sun.javafx.application.LauncherImpl.launchApplication1(LauncherImpl.java:900) at com.sun.javafx.application.LauncherImpl.lambda$launchApplication$2(LauncherImpl.java:195) at java.base/java.lang.Thread.run(Thread.java:832) Caused by: java.lang.ExceptionInInitializerError at ch.micheljung.fxwindow.BuilderImpl.apply(BuilderImpl.java:152) at com.faforever.client.FafClientApplication.start(FafClientApplication.java:105) at com.sun.javafx.application.LauncherImpl.lambda$launchApplication1$9(LauncherImpl.java:846) at com.sun.javafx.application.PlatformImpl.lambda$runAndWait$12(PlatformImpl.java:455) at com.sun.javafx.application.PlatformImpl.lambda$runLater$10(PlatformImpl.java:428) at java.base/java.security.AccessController.doPrivileged(AccessController.java:391) at com.sun.javafx.application.PlatformImpl.lambda$runLater$11(PlatformImpl.java:427) at com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:96) Caused by: java.lang.NullPointerException at javafx.fxml.JavaFXBuilderFactory.(JavaFXBuilderFactory.java:101) at javafx.fxml.JavaFXBuilderFactory.(JavaFXBuilderFactory.java:90) at javafx.fxml.FXMLLoader.(FXMLLoader.java:1828) ... 8 more

Task :Main.main() FAILED

Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0. Use '--warning-mode all' to show the individual deprecation warnings. See https://docs.gradle.org/6.5/userguide/command_line_interface.html#sec:command_line_warnings 8 actionable tasks: 3 executed, 5 up-to-date

FAILURE: Build failed with an exception.

Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights. Get more help at https://help.gradle.org

BUILD FAILED in 34s

Publishing a build scan to scans.gradle.com requires accepting the Gradle Terms of Service defined at https://gradle.com/terms-of-service. Do you accept these terms? [yes, no] yes

Gradle Terms of Service accepted.

Publishing build scan... https://gradle.com/s/kx5pj2jsezk2k

Disconnected from the target VM, address: '127.0.0.1:57653', transport: 'socket' 11:53:31 PM: Task execution finished 'Main.main() --scan'.

jmgrill commented 3 years ago

Just let me know if theres a specific error or issue you'd like me to work on. Otherwise I'm happy to just try and run builds whenever its useful.

tatsujb commented 3 years ago

@jmgrill could you run a new build for 1.3.0-RC1? it uses java 15

manningkyle304 commented 3 years ago

@jmgrill did you ever get the build working on mac? I'm running into the same null pointer exception

UEAdmiral commented 3 years ago

@tatsujb Greetings! I run MacOS High Sierra (10.13.6). I understand you don't have a mac to test on, so you're at the mercy of mac-using participants. I have effectively zero coding background, but I wonder if I might be a useful guinea pig?

Caveat: I will need my hand held through pretty much everything, start to finish. Pictures, written instruction, the works. Benefit: I promise I will be more active in the process than only once every two weeks.

Anything I can do to help you?

Katharsas commented 3 years ago

Can somebody with a mac message me on FAF Discord? Maybe i can help debugging via remote on your machine (bring some time).

Katharsas commented 3 years ago

Ok so @manningkyle304 and me got it working on his Mac by adding the line suggested by @jmgrill. I have pushed that change to the mac branch.

The login window seemed to work just fine, however the UID file seems to be missing (probably because we dont have a build for Mac/BSD). A guy on the forum managed to work around that some time ago (see https://forums.faforever.com/viewtopic.php?f=2&t=16947), but we should fix that properly.

tatsujb commented 3 years ago

I'm not entirely sure that that file is required at all anymore.

Katharsas commented 3 years ago

I have pushed another commit to the branch feature/mac-support. With that you should now be able to start the client and login successfully, and see the list of games. If you tried to maximize the client and your client doesnt show up anymore, you need to delete the ~/.faforever/client.prefs file (thanks @jsnprtr and @manningkyle304).

What is left now is to properly configure the client so it can start the game through wine/proton, but i cannot help with that, maybe @tatsujb knows more about that. There is also the Linux thread on the forum: https://forum.faforever.com/topic/12/linux-support/100

EDIT: Any errors related to tooltips / PlayerCardTooltipController can be ignored (Tooltips dont work but that shouldnt be a big problem for now).

djrobust commented 3 years ago

I am a Mac user running Mojave 10.14 who would like to play FAF online. I was able to compile and get https://github.com/FAForever/downlords-faf-client/commit/57eeaca8cf94c0282bfbcde052aab40c2b1439d3 running to the point where the lobby log-in screen shows up. I would like to run the game through Steam running via Crossover. I do not know Java, but please let me know if I can be of any help to get FAF running on Mac.

tatsujb commented 3 years ago

@djrobust well does it login? does the whole FAF set of tabs work?

The choice of Crossover confuses me. does proton (steam play) not work for you on mac with the mac steam native? (try this : https://youtu.be/Rv3ZXA4FNFk )

if you are dead-set on using crossover to do this it should work.

crossover works like wine right? you can call it with the exe game as an argument, right? (In the hay-day of running FAF on linux, we ran a native FAF, that ran a FA from wine, this should still be possible.)

In the FAF run args point to your crossover binary and crossover prefix and pass it the supreme commander.exe within the steam common folder.

djrobust commented 3 years ago

Yes, I am able to login and all tabs seem to be working, see screenshots below. By the way, I am using Adopt's 14.0.2 Java SDK.

https://github.com/ValveSoftware/Proton/issues/1344 sounded to me like Proton was not an option for Mac.

The following allows to me start FA from the Mac terminal. I was able to copy paste it into FAF (I could not just select it using the file selecting dialogue, because the FAF client is looking for .exe files only) /Applications/CrossOver.app/Contents/SharedSupport/CrossOver/bin/cxstart --bottle "Steam" "C:\Program Files (x86)\Steam\steamapps\common\Supreme Commander Forged Alliance\bin\SupremeCommander.exe"

(I did not set an execution directory)

Using a randomly generated map, I cannot start the game yet; I get

java.util.concurrent.CompletionException: java.util.concurrent.CancellationException: User cancelled
    at java.base/java.util.concurrent.CompletableFuture.encodeThrowable(CompletableFuture.java:331)
    at java.base/java.util.concurrent.CompletableFuture.completeThrowable(CompletableFuture.java:346)
    at java.base/java.util.concurrent.CompletableFuture$UniCompose.tryFire(CompletableFuture.java:1137)
    at java.base/java.util.concurrent.CompletableFuture.postComplete(CompletableFuture.java:506)
    at java.base/java.util.concurrent.CompletableFuture.completeExceptionally(CompletableFuture.java:2152)
    at com.faforever.client.game.GamePathHandler.lambda$onGameDirectoryChosenEvent$0(GamePathHandler.java:66)
    at java.base/java.util.Optional.ifPresent(Optional.java:176)
    at com.faforever.client.game.GamePathHandler.onGameDirectoryChosenEvent(GamePathHandler.java:66)
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.base/java.lang.reflect.Method.invoke(Method.java:564)
    at com.google.common.eventbus.Subscriber.invokeSubscriberMethod(Subscriber.java:87)
    at com.google.common.eventbus.Subscriber$SynchronizedSubscriber.invokeSubscriberMethod(Subscriber.java:144)
    at com.google.common.eventbus.Subscriber$1.run(Subscriber.java:72)
    at com.google.common.util.concurrent.DirectExecutor.execute(DirectExecutor.java:30)
    at com.google.common.eventbus.Subscriber.dispatchEvent(Subscriber.java:67)
    at com.google.common.eventbus.Dispatcher$PerThreadQueuedDispatcher.dispatch(Dispatcher.java:108)
    at com.google.common.eventbus.EventBus.post(EventBus.java:212)
    at com.faforever.client.ui.preferences.GameDirectoryRequiredHandler.lambda$onChooseGameDirectory$0(GameDirectoryRequiredHandler.java:50)
    at com.sun.javafx.application.PlatformImpl.lambda$runLater$10(PlatformImpl.java:428)
    at java.base/java.security.AccessController.doPrivileged(AccessController.java:391)
    at com.sun.javafx.application.PlatformImpl.lambda$runLater$11(PlatformImpl.java:427)
    at com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:96)
Caused by: java.util.concurrent.CancellationException: User cancelled
    ... 19 more
Screen Shot1 Screen Shot2 Screen Shot3
djrobust commented 3 years ago

Is that not C:\Program Files (x86)\Steam\steamapps\common\Supreme Commander Forged Alliance\bin\SupremeCommander.exe?

Where do I paste your line?

Katharsas commented 3 years ago

I removed my comment because it was wrong. Corrected:

Keep in mind that i am on windows so most of this is guessing.

I think "Game Location" should be the folder of the steam game. The client does not run it, it just needs to copy files from there to get all the needed game files. The "command line format for executable" should be were you run crossover with all needed arguments. However, you dont want to run steam, because FAF does not run the executable from stream. It has its own executable that is probably inside ~/.faforever/, not sure though.

And i think you can just put "%s" instead of putting the path to the executable there. The client will replace it with the path to the executable and game arguments.

Katharsas commented 3 years ago

I guess something like this: grafik

djrobust commented 3 years ago

I totally understand that this is harder for you without having access to a Mac, and I am grateful you are taking the time to help with this.

I'm trying /Users/wisp/Library/Application\ Support/CrossOver/Bottles/Steam/drive_c/Program\ Files\ \(x86\)/Steam/steamapps/common/Supreme\ Commander\ Forged\ Alliance/bin/

... I had to create a symlink in order to open the directory with the FAF GUI, but I think there is progress. I'm able to see the maps, no error, but game is also not starting.

I get a notification from Java (IntelliJ?) "FAForever ICE Adapter started" and then nothing happens.

Katharsas commented 3 years ago

So the path above is what you put into "Game Location"? There is by the way in the general settings the option "Write ICE log file", you might need to enable that and then check the logs by clicking on the FAF menu -> Show log folder.

djrobust commented 3 years ago

So the path above is what you put into "Game Location"? Yes; the other options I kept at default values.

I found this in the IntelliJ log, when trying to start the game:

2021-01-25 20:47:04.504  INFO 54551 --- [ool-3-thread-17] c.f.c.patch.GameBinariesUpdateTaskImpl   : Updating binaries to 3719
2021-01-25 20:47:04.844  INFO 54551 --- [     Thread-160] c.f.client.fa.relay.ice.IceAdapterImpl   : Starting ICE adapter with command: [/Library/Java/JavaVirtualMachines/adoptopenjdk-14.jdk/Contents/Home/bin/java, -jar, /Users/wisp/IdeaProjects/downlords-faf-client/build/resources/native/faf-ice-adapter.jar, --id, 396352, --login, CENSORED, --rpc-port, 9694, --gpgnet-port, 61039]
2021-01-25 20:47:08.890  INFO 54551 --- [     Thread-160] c.f.client.fa.ForgedAllianceService      : Starting Forged Alliance with command: [/Users/wisp/.faforever/bin/ForgedAlliance.exe, /init, init.lua, /nobugreport, /log, /Users/wisp/.faforever/logs/game_CENSORED.log, /gpgnet, 127.0.0.1:61039, /mean, 1500.0, /deviation, 500.0, /savereplay, gpgnet://127.0.0.1:51945/CENSORED/CENSORED.SCFAreplay, /country, US, /numgames, 0] in directory: /Users/wisp/.faforever/bin
/Users/wisp/.faforever/bin/ForgedAlliance.exe: /Users/wisp/.faforever/bin/ForgedAlliance.exe: cannot execute binary file
2021-01-25 20:47:08.909  INFO 54551 --- [ool-3-thread-17] com.faforever.client.game.GameService    : Forged Alliance terminated with exit code 126
2021-01-25 20:47:08.999  WARN 54551 --- [     Thread-104] c.f.client.fa.relay.ice.IceAdapterImpl   : Ignoring call to ICE adapter as we are not connected: setIceServers([[{credentialType=token, urls=[turn:faforever.com?transport=tcp, turn:faforever.com?transport=udp, stun:faforever.com], credential=CENSORED=, username=CENSORED}, {credentialType=token, urls=[turn:faf.mabula.net?transport=tcp, turn:faf.mabula.net?transport=udp, stun:faf.mabula.net], credential=CENSORED=, username=CENSORED}]])
2021-01-25 20:47:09.078  INFO 54551 --- [     Thread-160] c.f.client.fa.relay.ice.IceAdapterImpl   : ICE adapter terminated normally

and this from the advanced ice log:

20:47:08.537 [main] INFO  c.f.i.u.TrayIcon - Created tray icon
20:47:08.546 [main] INFO  c.f.i.IceAdapter - Version: SNAPSHOT
20:47:08.559 [main] INFO  c.f.i.g.GPGNetServer - Using GPGNET_PORT: 61039
20:47:08.589 [main] INFO  c.f.i.g.GPGNetServer - Generated LOBBY_PORT: 48301
20:47:08.594 [main] INFO  c.f.i.g.GPGNetServer - GPGNetServer started
20:47:08.779 [main] INFO  c.f.i.r.RPCService - Creating RPC server on port 9694
Jan 25, 2021 8:47:08 PM com.nbarraille.jjsonrpc.TcpServer start
INFO: TCP Server started.
Jan 25, 2021 8:47:08 PM com.nbarraille.jjsonrpc.SocketListener run
INFO: New client connected on port 51987
Jan 25, 2021 8:47:08 PM com.nbarraille.jjsonrpc.JJsonPeer run
INFO: JJSON Peer listening
20:47:08.915 [JJsonPeer] DEBUG c.f.i.r.RPCHandler - LobbyInitMode set to normal
Jan 25, 2021 8:47:08 PM com.nbarraille.jjsonrpc.JJsonPeer sendResponse
INFO: Sending Response:{"result":null,"id":0,"jsonrpc":"2.0"}
20:47:08.944 [JJsonPeer] WARN  c.f.i.r.RPCHandler - Close requested, stopping...
20:47:08.945 [JJsonPeer] INFO  c.f.i.IceAdapter - close() - stopping the adapter
20:47:08.953 [JJsonPeer] INFO  c.f.i.g.GPGNetServer - GPGNetServer stopped
java.net.SocketException: Socket closed
    at java.base/sun.nio.ch.NioSocketImpl.endAccept(NioSocketImpl.java:689)
    at java.base/sun.nio.ch.NioSocketImpl.accept(NioSocketImpl.java:762)
    at java.base/java.net.ServerSocket.implAccept(ServerSocket.java:684)
    at java.base/java.net.ServerSocket.platformImplAccept(ServerSocket.java:650)
    at java.base/java.net.ServerSocket.implAccept(ServerSocket.java:626)
    at java.base/java.net.ServerSocket.implAccept(ServerSocket.java:583)
    at java.base/java.net.ServerSocket.accept(ServerSocket.java:540)
    at com.nbarraille.jjsonrpc.SocketListener.run(SocketListener.java:36)
djrobust commented 3 years ago

I have added the following as "Command Line Format for Executable" and progressed! /Applications/CrossOver.app/Contents/SharedSupport/CrossOver/bin/cxstart --bottle "Steam" "%s"

Now when creating my own game, the game opens, goes into to black full screen and then this error comes up:

CD3DDeviceResources::DevResInitResources: Unable to load effect file /effects/cartographic.fx

Program : Y:\.faforever\bin\ForgedAlliance.exe
Cmd line arguments : /init Y:\.faforever\bin\init.lua /nobugreport /log /Users/wisp/.faforever/logs/game_CENSORED.log /gpgnet 127.0.0.1:27943 /mean 1500.0 /deviation 500.0 /savereplay gpgnet://127.0.0.1:52996/CENSORED/CENSORED.SCFAreplay /country US /numgames 0

Callstack:
    unavailable.

Last 100 lines of log...

info: mounting maps from: C:\users\crossover\My Documents\My Games\Gas Powered Games\Supreme Commander Forged Alliance\maps\
info: checking C:\users\crossover\My Documents\My Games\Gas Powered Games\Supreme Commander Forged Alliance\maps\
info: mounting maps from: Y:\.faforever\bin\..\user\My Games\Gas Powered Games\Supreme Commander Forged Alliance\maps\
info: checking Y:\.faforever\bin\..\user\My Games\Gas Powered Games\Supreme Commander Forged Alliance\maps\
info: checking C:\users\crossover\My Documents\My Games\Gas Powered Games\Supreme Commander Forged Alliance\mods
info: checking C:\users\crossover\My Documents\My Games\Gas Powered Games\Supreme Commander Forged Alliance\maps
info: checking Y:\.faforever\bin\..\user\My Games\Gas Powered Games\Supreme Commander Forged Alliance\mods
info: checking Y:\.faforever\bin\..\user\My Games\Gas Powered Games\Supreme Commander Forged Alliance\maps
info: checking Y:\.faforever\bin\..\gamedata\*.nxt
info: checking Y:\.faforever\bin\..\gamedata\*.nx2
info: checking /Users/wisp/Library/Application Support/CrossOver/Bottles/Steam/drive_c/Program Files (x86)/Steam/steamapps/common/Supreme Commander Forged Alliance\gamedata\*.scd
info: DISK: AddSearchPath: 'y:\.faforever\gamedata\effects.nx2', mounted as '/'
info: DISK: AddSearchPath: 'y:\.faforever\gamedata\env.nx2', mounted as '/'
info: DISK: AddSearchPath: 'y:\.faforever\gamedata\etc.nx2', mounted as '/'
info: DISK: AddSearchPath: 'y:\.faforever\gamedata\loc.nx2', mounted as '/'
info: DISK: AddSearchPath: 'y:\.faforever\gamedata\lua.nx2', mounted as '/'
info: DISK: AddSearchPath: 'y:\.faforever\gamedata\meshes.nx2', mounted as '/'
info: DISK: AddSearchPath: 'y:\.faforever\gamedata\modules.nx2', mounted as '/'
info: DISK: AddSearchPath: 'y:\.faforever\gamedata\projectiles.nx2', mounted as '/'
info: DISK: AddSearchPath: 'y:\.faforever\gamedata\schook.nx2', mounted as '/'
info: DISK: AddSearchPath: 'y:\.faforever\gamedata\textures.nx2', mounted as '/'
info: DISK: AddSearchPath: 'y:\.faforever\gamedata\units.nx2', mounted as '/'
warning: Search path element "Y:\Users\wisp\Library\Application Support\CrossOver\Bottles\Steam\drive_c\Program Files (x86)\Steam\steamapps\common\Supreme Commander Forged Alliance\gamedata\ambience.scd" does not match any files
warning: Search path element "Y:\Users\wisp\Library\Application Support\CrossOver\Bottles\Steam\drive_c\Program Files (x86)\Steam\steamapps\common\Supreme Commander Forged Alliance\gamedata\editor.scd" does not match any files
warning: Search path element "Y:\Users\wisp\Library\Application Support\CrossOver\Bottles\Steam\drive_c\Program Files (x86)\Steam\steamapps\common\Supreme Commander Forged Alliance\gamedata\effects.scd" does not match any files
warning: Search path element "Y:\Users\wisp\Library\Application Support\CrossOver\Bottles\Steam\drive_c\Program Files (x86)\Steam\steamapps\common\Supreme Commander Forged Alliance\gamedata\env.scd" does not match any files
warning: Search path element "Y:\Users\wisp\Library\Application Support\CrossOver\Bottles\Steam\drive_c\Program Files (x86)\Steam\steamapps\common\Supreme Commander Forged Alliance\gamedata\loc_US.scd" does not match any files
warning: Search path element "Y:\Users\wisp\Library\Application Support\CrossOver\Bottles\Steam\drive_c\Program Files (x86)\Steam\steamapps\common\Supreme Commander Forged Alliance\gamedata\lua.scd" does not match any files
warning: Search path element "Y:\Users\wisp\Library\Application Support\CrossOver\Bottles\Steam\drive_c\Program Files (x86)\Steam\steamapps\common\Supreme Commander Forged Alliance\gamedata\meshes.scd" does not match any files
warning: Search path element "Y:\Users\wisp\Library\Application Support\CrossOver\Bottles\Steam\drive_c\Program Files (x86)\Steam\steamapps\common\Supreme Commander Forged Alliance\gamedata\mods.scd" does not match any files
warning: Search path element "Y:\Users\wisp\Library\Application Support\CrossOver\Bottles\Steam\drive_c\Program Files (x86)\Steam\steamapps\common\Supreme Commander Forged Alliance\gamedata\mohodata.scd" does not match any files
warning: Search path element "Y:\Users\wisp\Library\Application Support\CrossOver\Bottles\Steam\drive_c\Program Files (x86)\Steam\steamapps\common\Supreme Commander Forged Alliance\gamedata\moholua.scd" does not match any files
warning: Search path element "Y:\Users\wisp\Library\Application Support\CrossOver\Bottles\Steam\drive_c\Program Files (x86)\Steam\steamapps\common\Supreme Commander Forged Alliance\gamedata\objects.scd" does not match any files
warning: Search path element "Y:\Users\wisp\Library\Application Support\CrossOver\Bottles\Steam\drive_c\Program Files (x86)\Steam\steamapps\common\Supreme Commander Forged Alliance\gamedata\projectiles.scd" does not match any files
warning: Search path element "Y:\Users\wisp\Library\Application Support\CrossOver\Bottles\Steam\drive_c\Program Files (x86)\Steam\steamapps\common\Supreme Commander Forged Alliance\gamedata\props.scd" does not match any files
warning: Search path element "Y:\Users\wisp\Library\Application Support\CrossOver\Bottles\Steam\drive_c\Program Files (x86)\Steam\steamapps\common\Supreme Commander Forged Alliance\gamedata\schook.scd" does not match any files
warning: Search path element "Y:\Users\wisp\Library\Application Support\CrossOver\Bottles\Steam\drive_c\Program Files (x86)\Steam\steamapps\common\Supreme Commander Forged Alliance\gamedata\skins.scd" does not match any files
warning: Search path element "Y:\Users\wisp\Library\Application Support\CrossOver\Bottles\Steam\drive_c\Program Files (x86)\Steam\steamapps\common\Supreme Commander Forged Alliance\gamedata\textures.scd" does not match any files
warning: Search path element "Y:\Users\wisp\Library\Application Support\CrossOver\Bottles\Steam\drive_c\Program Files (x86)\Steam\steamapps\common\Supreme Commander Forged Alliance\gamedata\units.scd" does not match any files
warning: Search path element "Y:\Users\wisp\Library\Application Support\CrossOver\Bottles\Steam\drive_c\Program Files (x86)\Steam\steamapps\common\Supreme Commander Forged Alliance" does not match any files
info: Hooked /lua/userInit.lua with /schook/lua/userInit.lua
warning: Error in file /lua/userInit.lua : Unable to find file /lua/globalInit.lua
         stack traceback:
            [C]: in function `doscript'
            y:\.faforever\gamedata\lua.nx2\lua\userinit.lua(18): in main chunk
warning: Error localizing "<LOC Engine0020>My Games": attempt to call a nil value
         stack traceback:
warning: Unable to create document path: C
warning: Unable to create document path: C
warning: Unable to create document path: C
warning: CUIKeyHandler::LoadKeyMappings unable to open default key names file.
warning: Error running '/lua/user/prefs.lua:GetOption': attempt to index a boolean value
         stack traceback:
warning: Error running '/lua/user/prefs.lua:GetOption': attempt to index a boolean value
         stack traceback:
warning: Error running '/lua/user/prefs.lua:GetOption': attempt to index a boolean value
         stack traceback:
warning: Error running '/lua/user/prefs.lua:GetOption': attempt to index a boolean value
         stack traceback:
warning: Error running '/lua/user/prefs.lua:GetOption': attempt to index a boolean value
         stack traceback:
warning: Error running '/lua/user/prefs.lua:GetOption': attempt to index a boolean value
         stack traceback:
warning: GAL Exception: file : c:\work\rts\main\code\src\libs\gpggal\DeviceD3D9.cpp(1229)
         error: invalid head count
warning: y:\.faforever\gamedata\effects.nx2\effects\cartographic.fx: unable to compile effect: y:\.faforever\gamedata\effects.nx2\effects\cartographic.fx reason: (190): warning X3083: Truncating 4-vector to size 1
         (204): error X3000: syntax error: unexpected token '('
tatsujb commented 3 years ago

By the way, I am using Adopt's 14.0.2 Java SDK.

should be version 15

djrobust commented 3 years ago

I have changed to Adopt's 15.0.2+7 Java SDK, but the error remains.

Any ideas what's causing the issue? Could setting the right execution directory help?

Katharsas commented 3 years ago

You could try creating a new bottle from the FA for FAF .exe file that is somewhere, probably ~/.faforever/FAForever/bin/ForgedAlliance.exe or similar and use that instead of the "Steam" bottle in the "Command Line Format for Executable". No idea what is causing the error though. And try running that bottle directly from CrossOver without FAF so you can check if that works.

djrobust commented 3 years ago

Thank you for the idea. Unfortunately, launching ~/.faforever/FAForever/bin/ForgedAlliance.exe in a different bottle causes the same error with the game just starting with a black screen.

jmgrill commented 3 years ago

Hi All,

Sorry I went MIA there for a bit. work got really crazy. I'm back and happy to try to run anything on my mac to help debug or dump logs; please let me know!

jmgrill commented 2 years ago

bump.

Please let me know if there's anything I can do to help.

Katharsas commented 2 years ago

I have rebased the branch feature/mac-support on top of develop, so you should be perfectly able to run the FAF client if you check out that branch again. The problem was that we did find no way to run the actual game, which is not surprising because it needs an emulation layer like Wine/Proton, and there is probably nothing as good as Proton on Mac.

So i think unless somebody gets the game itself running first (without FAF) we can close this issue, because that is a prerequisite to anything else.

Sheikah45 commented 2 years ago

Closing as no one is able to get the game to run