VRCSpineMode No longer needed with new spine model
And for shoulder width compensation, that's a per-avatar thing, not really related to SlimeVR and should've never been here.
When we log for the first time, the static initialiser for
io.klogging.internal.hostname is called, since it instantiates a
LogEvent class where the 'host' field defaults to the aforementioned
hostname variable when no host is provided in the constructor.
The static initialiser may throw an UnknownHostException (since Java
may perform a DNS lookup in `InetAddress.getLocalHost().getHostName()`),
which is caught and tries to log the exception to stderr inside the
catch block.
Since we redirect the streams before the first time we log, the message
ends up getting passed to our LineLogger where we try to log it with
Klogger. This ends up trying to instantiate a LogEvent again with no
host field specified, and since an exception was thrown in hostname's
static initialiser, it is null, so an exception is thrown by the
constructor. This manifests as a crash with VERY CONFUSING log output:
INFO [ main] : Configuration : Configuration set using the DSL with append=false
Exception: java.lang.NoClassDefFoundError thrown from the UncaughtExceptionHandler in thread "main"
Output with debugger printing all exceptions:
Connected to the target VM, address: 'localhost:35355', transport: 'socket'
---snip---
Exception 'java.net.UnknownHostException' occurred in thread 'main @Main#1' at java.net.Inet6AddressImpl.lookupAllHostAddr(Inet6AddressImpl.java:-1)
Breakpoint reached
at java.net.Inet6AddressImpl.lookupAllHostAddr(Inet6AddressImpl.java:-1)
at java.net.Inet6AddressImpl.lookupAllHostAddr(Inet6AddressImpl.java:52)
at java.net.InetAddress$PlatformResolver.lookupByName(InetAddress.java:1134)
at java.net.InetAddress.getAddressesFromNameService(InetAddress.java:1712)
at java.net.InetAddress$NameServiceAddresses.get(InetAddress.java:1060)
at java.net.InetAddress.getAllByName0(InetAddress.java:1702)
at java.net.InetAddress.getLocalHost(InetAddress.java:1796)
at io.klogging.internal.KloggingEngine_jvmKt.<clinit>(KloggingEngine.jvm.kt:26)
at io.klogging.events.LogEvent.<init>(LogEvent.kt:51)
at io.klogging.BaseLogger.eventFrom(BaseLogger.kt:108)
at io.klogging.impl.KloggerImpl.eventFrom(KloggerImpl.kt:39)
at io.klogging.impl.KloggerImpl.emitEvent(KloggerImpl.kt:57)
at io.klogging.Klogger.emitEvent$default(Klogger.kt:48)
at io.klogging.Klogger.log$suspendImpl(Klogger.kt:123)
at io.klogging.Klogger.log(Klogger.kt:-1)
at io.klogging.impl.KloggerImpl.log(KloggerImpl.kt:39)
at io.klogging.Klogger.info$suspendImpl(Klogger.kt:323)
at io.klogging.Klogger.info(Klogger.kt:-1)
at io.klogging.impl.KloggerImpl.info(KloggerImpl.kt:39)
at dev.slimevr.logging.LoggerKt.configureLogging(logger.kt:74)
at dev.slimevr.logging.LoggerKt.configureLogging$default(logger.kt:48)
at dev.slimevr.desktop.LoggingKt.setupDesktopLogging(logging.kt:13)
at dev.slimevr.desktop.Main$main$1.invokeSuspend(Main.kt:62)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith$$$capture(ContinuationImpl.kt:34)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:-1)
at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:100)
at kotlinx.coroutines.EventLoopImplBase.processNextEvent(EventLoop.common.kt:263)
at kotlinx.coroutines.BlockingCoroutine.joinBlocking(Builders.kt:94)
at kotlinx.coroutines.BuildersKt__BuildersKt.runBlocking(Builders.kt:70)
at kotlinx.coroutines.BuildersKt.runBlocking(Unknown Source:1)
at dev.slimevr.desktop.Main.main(Main.kt:61)
Exception 'java.net.UnknownHostException' occurred in thread 'main @Main#1' at java.net.InetAddress$PlatformResolver.lookupByName(InetAddress.java:1137)
Breakpoint reached
at java.net.InetAddress$PlatformResolver.lookupByName(InetAddress.java:1137)
at java.net.InetAddress.getAddressesFromNameService(InetAddress.java:1712)
at java.net.InetAddress$NameServiceAddresses.get(InetAddress.java:1060)
at java.net.InetAddress.getAllByName0(InetAddress.java:1702)
at java.net.InetAddress.getLocalHost(InetAddress.java:1796)
at io.klogging.internal.KloggingEngine_jvmKt.<clinit>(KloggingEngine.jvm.kt:26)
at io.klogging.events.LogEvent.<init>(LogEvent.kt:51)
at io.klogging.BaseLogger.eventFrom(BaseLogger.kt:108)
at io.klogging.impl.KloggerImpl.eventFrom(KloggerImpl.kt:39)
at io.klogging.impl.KloggerImpl.emitEvent(KloggerImpl.kt:57)
at io.klogging.Klogger.emitEvent$default(Klogger.kt:48)
at io.klogging.Klogger.log$suspendImpl(Klogger.kt:123)
at io.klogging.Klogger.log(Klogger.kt:-1)
at io.klogging.impl.KloggerImpl.log(KloggerImpl.kt:39)
at io.klogging.Klogger.info$suspendImpl(Klogger.kt:323)
at io.klogging.Klogger.info(Klogger.kt:-1)
at io.klogging.impl.KloggerImpl.info(KloggerImpl.kt:39)
at dev.slimevr.logging.LoggerKt.configureLogging(logger.kt:74)
at dev.slimevr.logging.LoggerKt.configureLogging$default(logger.kt:48)
at dev.slimevr.desktop.LoggingKt.setupDesktopLogging(logging.kt:13)
at dev.slimevr.desktop.Main$main$1.invokeSuspend(Main.kt:62)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith$$$capture(ContinuationImpl.kt:34)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:-1)
at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:100)
at kotlinx.coroutines.EventLoopImplBase.processNextEvent(EventLoop.common.kt:263)
at kotlinx.coroutines.BlockingCoroutine.joinBlocking(Builders.kt:94)
at kotlinx.coroutines.BuildersKt__BuildersKt.runBlocking(Builders.kt:70)
at kotlinx.coroutines.BuildersKt.runBlocking(Unknown Source:1)
at dev.slimevr.desktop.Main.main(Main.kt:61)
Exception 'java.net.UnknownHostException' occurred in thread 'main @Main#1' at java.net.InetAddress.getAddressesFromNameService(InetAddress.java:1727)
Breakpoint reached
at java.net.InetAddress.getAddressesFromNameService(InetAddress.java:1727)
at java.net.InetAddress$NameServiceAddresses.get(InetAddress.java:1060)
at java.net.InetAddress.getAllByName0(InetAddress.java:1702)
at java.net.InetAddress.getLocalHost(InetAddress.java:1796)
at io.klogging.internal.KloggingEngine_jvmKt.<clinit>(KloggingEngine.jvm.kt:26)
at io.klogging.events.LogEvent.<init>(LogEvent.kt:51)
at io.klogging.BaseLogger.eventFrom(BaseLogger.kt:108)
at io.klogging.impl.KloggerImpl.eventFrom(KloggerImpl.kt:39)
at io.klogging.impl.KloggerImpl.emitEvent(KloggerImpl.kt:57)
at io.klogging.Klogger.emitEvent$default(Klogger.kt:48)
at io.klogging.Klogger.log$suspendImpl(Klogger.kt:123)
at io.klogging.Klogger.log(Klogger.kt:-1)
at io.klogging.impl.KloggerImpl.log(KloggerImpl.kt:39)
at io.klogging.Klogger.info$suspendImpl(Klogger.kt:323)
at io.klogging.Klogger.info(Klogger.kt:-1)
at io.klogging.impl.KloggerImpl.info(KloggerImpl.kt:39)
at dev.slimevr.logging.LoggerKt.configureLogging(logger.kt:74)
at dev.slimevr.logging.LoggerKt.configureLogging$default(logger.kt:48)
at dev.slimevr.desktop.LoggingKt.setupDesktopLogging(logging.kt:13)
at dev.slimevr.desktop.Main$main$1.invokeSuspend(Main.kt:62)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith$$$capture(ContinuationImpl.kt:34)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:-1)
at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:100)
at kotlinx.coroutines.EventLoopImplBase.processNextEvent(EventLoop.common.kt:263)
at kotlinx.coroutines.BlockingCoroutine.joinBlocking(Builders.kt:94)
at kotlinx.coroutines.BuildersKt__BuildersKt.runBlocking(Builders.kt:70)
at kotlinx.coroutines.BuildersKt.runBlocking(Unknown Source:1)
at dev.slimevr.desktop.Main.main(Main.kt:61)
Exception 'java.net.UnknownHostException' occurred in thread 'main @Main#1' at java.net.InetAddress$NameServiceAddresses.get(InetAddress.java:1104)
Breakpoint reached
at java.net.InetAddress$NameServiceAddresses.get(InetAddress.java:1104)
at java.net.InetAddress.getAllByName0(InetAddress.java:1702)
at java.net.InetAddress.getLocalHost(InetAddress.java:1796)
at io.klogging.internal.KloggingEngine_jvmKt.<clinit>(KloggingEngine.jvm.kt:26)
at io.klogging.events.LogEvent.<init>(LogEvent.kt:51)
at io.klogging.BaseLogger.eventFrom(BaseLogger.kt:108)
at io.klogging.impl.KloggerImpl.eventFrom(KloggerImpl.kt:39)
at io.klogging.impl.KloggerImpl.emitEvent(KloggerImpl.kt:57)
at io.klogging.Klogger.emitEvent$default(Klogger.kt:48)
at io.klogging.Klogger.log$suspendImpl(Klogger.kt:123)
at io.klogging.Klogger.log(Klogger.kt:-1)
at io.klogging.impl.KloggerImpl.log(KloggerImpl.kt:39)
at io.klogging.Klogger.info$suspendImpl(Klogger.kt:323)
at io.klogging.Klogger.info(Klogger.kt:-1)
at io.klogging.impl.KloggerImpl.info(KloggerImpl.kt:39)
at dev.slimevr.logging.LoggerKt.configureLogging(logger.kt:74)
at dev.slimevr.logging.LoggerKt.configureLogging$default(logger.kt:48)
at dev.slimevr.desktop.LoggingKt.setupDesktopLogging(logging.kt:13)
at dev.slimevr.desktop.Main$main$1.invokeSuspend(Main.kt:62)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith$$$capture(ContinuationImpl.kt:34)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:-1)
at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:100)
at kotlinx.coroutines.EventLoopImplBase.processNextEvent(EventLoop.common.kt:263)
at kotlinx.coroutines.BlockingCoroutine.joinBlocking(Builders.kt:94)
at kotlinx.coroutines.BuildersKt__BuildersKt.runBlocking(Builders.kt:70)
at kotlinx.coroutines.BuildersKt.runBlocking(Unknown Source:1)
at dev.slimevr.desktop.Main.main(Main.kt:61)
Exception 'java.net.UnknownHostException' occurred in thread 'main @Main#1' at java.net.InetAddress$NameServiceAddresses.get(InetAddress.java:1111)
Breakpoint reached
at java.net.InetAddress$NameServiceAddresses.get(InetAddress.java:1111)
at java.net.InetAddress.getAllByName0(InetAddress.java:1702)
at java.net.InetAddress.getLocalHost(InetAddress.java:1796)
at io.klogging.internal.KloggingEngine_jvmKt.<clinit>(KloggingEngine.jvm.kt:26)
at io.klogging.events.LogEvent.<init>(LogEvent.kt:51)
at io.klogging.BaseLogger.eventFrom(BaseLogger.kt:108)
at io.klogging.impl.KloggerImpl.eventFrom(KloggerImpl.kt:39)
at io.klogging.impl.KloggerImpl.emitEvent(KloggerImpl.kt:57)
at io.klogging.Klogger.emitEvent$default(Klogger.kt:48)
at io.klogging.Klogger.log$suspendImpl(Klogger.kt:123)
at io.klogging.Klogger.log(Klogger.kt:-1)
at io.klogging.impl.KloggerImpl.log(KloggerImpl.kt:39)
at io.klogging.Klogger.info$suspendImpl(Klogger.kt:323)
at io.klogging.Klogger.info(Klogger.kt:-1)
at io.klogging.impl.KloggerImpl.info(KloggerImpl.kt:39)
at dev.slimevr.logging.LoggerKt.configureLogging(logger.kt:74)
at dev.slimevr.logging.LoggerKt.configureLogging$default(logger.kt:48)
at dev.slimevr.desktop.LoggingKt.setupDesktopLogging(logging.kt:13)
at dev.slimevr.desktop.Main$main$1.invokeSuspend(Main.kt:62)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith$$$capture(ContinuationImpl.kt:34)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:-1)
at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:100)
at kotlinx.coroutines.EventLoopImplBase.processNextEvent(EventLoop.common.kt:263)
at kotlinx.coroutines.BlockingCoroutine.joinBlocking(Builders.kt:94)
at kotlinx.coroutines.BuildersKt__BuildersKt.runBlocking(Builders.kt:70)
at kotlinx.coroutines.BuildersKt.runBlocking(Unknown Source:1)
at dev.slimevr.desktop.Main.main(Main.kt:61)
Exception 'java.net.UnknownHostException' occurred in thread 'main @Main#1' at java.net.InetAddress.getLocalHost(InetAddress.java:1803)
Breakpoint reached
at java.net.InetAddress.getLocalHost(InetAddress.java:1803)
at io.klogging.internal.KloggingEngine_jvmKt.<clinit>(KloggingEngine.jvm.kt:26)
at io.klogging.events.LogEvent.<init>(LogEvent.kt:51)
at io.klogging.BaseLogger.eventFrom(BaseLogger.kt:108)
at io.klogging.impl.KloggerImpl.eventFrom(KloggerImpl.kt:39)
at io.klogging.impl.KloggerImpl.emitEvent(KloggerImpl.kt:57)
at io.klogging.Klogger.emitEvent$default(Klogger.kt:48)
at io.klogging.Klogger.log$suspendImpl(Klogger.kt:123)
at io.klogging.Klogger.log(Klogger.kt:-1)
at io.klogging.impl.KloggerImpl.log(KloggerImpl.kt:39)
at io.klogging.Klogger.info$suspendImpl(Klogger.kt:323)
at io.klogging.Klogger.info(Klogger.kt:-1)
at io.klogging.impl.KloggerImpl.info(KloggerImpl.kt:39)
at dev.slimevr.logging.LoggerKt.configureLogging(logger.kt:74)
at dev.slimevr.logging.LoggerKt.configureLogging$default(logger.kt:48)
at dev.slimevr.desktop.LoggingKt.setupDesktopLogging(logging.kt:13)
at dev.slimevr.desktop.Main$main$1.invokeSuspend(Main.kt:62)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith$$$capture(ContinuationImpl.kt:34)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:-1)
at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:100)
at kotlinx.coroutines.EventLoopImplBase.processNextEvent(EventLoop.common.kt:263)
at kotlinx.coroutines.BlockingCoroutine.joinBlocking(Builders.kt:94)
at kotlinx.coroutines.BuildersKt__BuildersKt.runBlocking(Builders.kt:70)
at kotlinx.coroutines.BuildersKt.runBlocking(Unknown Source:1)
at dev.slimevr.desktop.Main.main(Main.kt:61)
Exception 'java.lang.NullPointerException' occurred in thread 'main @Main#1' at kotlin.jvm.internal.Intrinsics.throwParameterIsNullNPE(Intrinsics.java:140)
Breakpoint reached
at kotlin.jvm.internal.Intrinsics.throwParameterIsNullNPE(Intrinsics.java:140)
at kotlin.jvm.internal.Intrinsics.checkNotNullParameter(Intrinsics.java:131)
at io.klogging.events.LogEvent.<init>(LogEvent.kt:48)
at io.klogging.events.LogEvent.<init>(LogEvent.kt:48)
at io.klogging.BaseLogger.eventFrom(BaseLogger.kt:108)
at io.klogging.impl.NoCoLoggerImpl.eventFrom(NoCoLoggerImpl.kt:41)
at io.klogging.impl.NoCoLoggerImpl.emitEvent(NoCoLoggerImpl.kt:66)
at io.klogging.NoCoLogger.emitEvent$default(NoCoLogger.kt:43)
at io.klogging.NoCoLogger.log(NoCoLogger.kt:79)
at io.klogging.impl.NoCoLoggerImpl.log(NoCoLoggerImpl.kt:41)
at dev.slimevr.logging.LineLogger.write(standard-streams.kt:36)
at java.io.OutputStream.write(OutputStream.java:167)
at java.io.PrintStream.write(PrintStream.java:539)
at sun.nio.cs.StreamEncoder.writeBytes(StreamEncoder.java:220)
at sun.nio.cs.StreamEncoder.implFlushBuffer(StreamEncoder.java:315)
at sun.nio.cs.StreamEncoder.flushBuffer(StreamEncoder.java:101)
at java.io.OutputStreamWriter.flushBuffer(OutputStreamWriter.java:179)
at java.io.PrintStream.writeln(PrintStream.java:690)
at java.io.PrintStream.println(PrintStream.java:1004)
at io.klogging.internal.PrintErr_jvmKt.printErr(PrintErr.jvm.kt:21)
at io.klogging.internal.InternalLoggingKt.log(InternalLogging.kt:64)
at io.klogging.internal.InternalLoggingKt.warn(InternalLogging.kt:127)
at io.klogging.internal.KloggingEngine_jvmKt.<clinit>(KloggingEngine.jvm.kt:28)
at io.klogging.events.LogEvent.<init>(LogEvent.kt:51)
at io.klogging.BaseLogger.eventFrom(BaseLogger.kt:108)
at io.klogging.impl.KloggerImpl.eventFrom(KloggerImpl.kt:39)
at io.klogging.impl.KloggerImpl.emitEvent(KloggerImpl.kt:57)
at io.klogging.Klogger.emitEvent$default(Klogger.kt:48)
at io.klogging.Klogger.log$suspendImpl(Klogger.kt:123)
at io.klogging.Klogger.log(Klogger.kt:-1)
at io.klogging.impl.KloggerImpl.log(KloggerImpl.kt:39)
at io.klogging.Klogger.info$suspendImpl(Klogger.kt:323)
at io.klogging.Klogger.info(Klogger.kt:-1)
at io.klogging.impl.KloggerImpl.info(KloggerImpl.kt:39)
at dev.slimevr.logging.LoggerKt.configureLogging(logger.kt:74)
at dev.slimevr.logging.LoggerKt.configureLogging$default(logger.kt:48)
at dev.slimevr.desktop.LoggingKt.setupDesktopLogging(logging.kt:13)
at dev.slimevr.desktop.Main$main$1.invokeSuspend(Main.kt:62)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith$$$capture(ContinuationImpl.kt:34)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:-1)
at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:100)
at kotlinx.coroutines.EventLoopImplBase.processNextEvent(EventLoop.common.kt:263)
at kotlinx.coroutines.BlockingCoroutine.joinBlocking(Builders.kt:94)
at kotlinx.coroutines.BuildersKt__BuildersKt.runBlocking(Builders.kt:70)
at kotlinx.coroutines.BuildersKt.runBlocking(Unknown Source:1)
at dev.slimevr.desktop.Main.main(Main.kt:61)
Exception 'java.lang.NullPointerException' occurred in thread 'main @Main#1' at java.io.PrintStream.write(PrintStream.java:542)
Breakpoint reached
at java.io.PrintStream.write(PrintStream.java:542)
at sun.nio.cs.StreamEncoder.writeBytes(StreamEncoder.java:220)
at sun.nio.cs.StreamEncoder.implFlushBuffer(StreamEncoder.java:315)
at sun.nio.cs.StreamEncoder.flushBuffer(StreamEncoder.java:101)
at java.io.OutputStreamWriter.flushBuffer(OutputStreamWriter.java:179)
at java.io.PrintStream.writeln(PrintStream.java:690)
at java.io.PrintStream.println(PrintStream.java:1004)
at io.klogging.internal.PrintErr_jvmKt.printErr(PrintErr.jvm.kt:21)
at io.klogging.internal.InternalLoggingKt.log(InternalLogging.kt:64)
at io.klogging.internal.InternalLoggingKt.warn(InternalLogging.kt:127)
at io.klogging.internal.KloggingEngine_jvmKt.<clinit>(KloggingEngine.jvm.kt:28)
at io.klogging.events.LogEvent.<init>(LogEvent.kt:51)
at io.klogging.BaseLogger.eventFrom(BaseLogger.kt:108)
at io.klogging.impl.KloggerImpl.eventFrom(KloggerImpl.kt:39)
at io.klogging.impl.KloggerImpl.emitEvent(KloggerImpl.kt:57)
at io.klogging.Klogger.emitEvent$default(Klogger.kt:48)
at io.klogging.Klogger.log$suspendImpl(Klogger.kt:123)
at io.klogging.Klogger.log(Klogger.kt:-1)
at io.klogging.impl.KloggerImpl.log(KloggerImpl.kt:39)
at io.klogging.Klogger.info$suspendImpl(Klogger.kt:323)
at io.klogging.Klogger.info(Klogger.kt:-1)
at io.klogging.impl.KloggerImpl.info(KloggerImpl.kt:39)
at dev.slimevr.logging.LoggerKt.configureLogging(logger.kt:74)
at dev.slimevr.logging.LoggerKt.configureLogging$default(logger.kt:48)
at dev.slimevr.desktop.LoggingKt.setupDesktopLogging(logging.kt:13)
at dev.slimevr.desktop.Main$main$1.invokeSuspend(Main.kt:62)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith$$$capture(ContinuationImpl.kt:34)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:-1)
at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:100)
at kotlinx.coroutines.EventLoopImplBase.processNextEvent(EventLoop.common.kt:263)
at kotlinx.coroutines.BlockingCoroutine.joinBlocking(Builders.kt:94)
at kotlinx.coroutines.BuildersKt__BuildersKt.runBlocking(Builders.kt:70)
at kotlinx.coroutines.BuildersKt.runBlocking(Unknown Source:1)
at dev.slimevr.desktop.Main.main(Main.kt:61)
Exception 'java.lang.NullPointerException' occurred in thread 'main @Main#1' at sun.nio.cs.StreamEncoder.flushBuffer(StreamEncoder.java:104)
Breakpoint reached
at sun.nio.cs.StreamEncoder.flushBuffer(StreamEncoder.java:104)
at java.io.OutputStreamWriter.flushBuffer(OutputStreamWriter.java:179)
at java.io.PrintStream.writeln(PrintStream.java:690)
at java.io.PrintStream.println(PrintStream.java:1004)
at io.klogging.internal.PrintErr_jvmKt.printErr(PrintErr.jvm.kt:21)
at io.klogging.internal.InternalLoggingKt.log(InternalLogging.kt:64)
at io.klogging.internal.InternalLoggingKt.warn(InternalLogging.kt:127)
at io.klogging.internal.KloggingEngine_jvmKt.<clinit>(KloggingEngine.jvm.kt:28)
at io.klogging.events.LogEvent.<init>(LogEvent.kt:51)
at io.klogging.BaseLogger.eventFrom(BaseLogger.kt:108)
at io.klogging.impl.KloggerImpl.eventFrom(KloggerImpl.kt:39)
at io.klogging.impl.KloggerImpl.emitEvent(KloggerImpl.kt:57)
at io.klogging.Klogger.emitEvent$default(Klogger.kt:48)
at io.klogging.Klogger.log$suspendImpl(Klogger.kt:123)
at io.klogging.Klogger.log(Klogger.kt:-1)
at io.klogging.impl.KloggerImpl.log(KloggerImpl.kt:39)
at io.klogging.Klogger.info$suspendImpl(Klogger.kt:323)
at io.klogging.Klogger.info(Klogger.kt:-1)
at io.klogging.impl.KloggerImpl.info(KloggerImpl.kt:39)
at dev.slimevr.logging.LoggerKt.configureLogging(logger.kt:74)
at dev.slimevr.logging.LoggerKt.configureLogging$default(logger.kt:48)
at dev.slimevr.desktop.LoggingKt.setupDesktopLogging(logging.kt:13)
at dev.slimevr.desktop.Main$main$1.invokeSuspend(Main.kt:62)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith$$$capture(ContinuationImpl.kt:34)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:-1)
at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:100)
at kotlinx.coroutines.EventLoopImplBase.processNextEvent(EventLoop.common.kt:263)
at kotlinx.coroutines.BlockingCoroutine.joinBlocking(Builders.kt:94)
at kotlinx.coroutines.BuildersKt__BuildersKt.runBlocking(Builders.kt:70)
at kotlinx.coroutines.BuildersKt.runBlocking(Unknown Source:1)
at dev.slimevr.desktop.Main.main(Main.kt:61)
Exception 'java.lang.NullPointerException' occurred in thread 'main @Main#1' at java.io.PrintStream.writeln(PrintStream.java:693)
Breakpoint reached
at java.io.PrintStream.writeln(PrintStream.java:693)
at java.io.PrintStream.println(PrintStream.java:1004)
at io.klogging.internal.PrintErr_jvmKt.printErr(PrintErr.jvm.kt:21)
at io.klogging.internal.InternalLoggingKt.log(InternalLogging.kt:64)
at io.klogging.internal.InternalLoggingKt.warn(InternalLogging.kt:127)
at io.klogging.internal.KloggingEngine_jvmKt.<clinit>(KloggingEngine.jvm.kt:28)
at io.klogging.events.LogEvent.<init>(LogEvent.kt:51)
at io.klogging.BaseLogger.eventFrom(BaseLogger.kt:108)
at io.klogging.impl.KloggerImpl.eventFrom(KloggerImpl.kt:39)
at io.klogging.impl.KloggerImpl.emitEvent(KloggerImpl.kt:57)
at io.klogging.Klogger.emitEvent$default(Klogger.kt:48)
at io.klogging.Klogger.log$suspendImpl(Klogger.kt:123)
at io.klogging.Klogger.log(Klogger.kt:-1)
at io.klogging.impl.KloggerImpl.log(KloggerImpl.kt:39)
at io.klogging.Klogger.info$suspendImpl(Klogger.kt:323)
at io.klogging.Klogger.info(Klogger.kt:-1)
at io.klogging.impl.KloggerImpl.info(KloggerImpl.kt:39)
at dev.slimevr.logging.LoggerKt.configureLogging(logger.kt:74)
at dev.slimevr.logging.LoggerKt.configureLogging$default(logger.kt:48)
at dev.slimevr.desktop.LoggingKt.setupDesktopLogging(logging.kt:13)
at dev.slimevr.desktop.Main$main$1.invokeSuspend(Main.kt:62)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith$$$capture(ContinuationImpl.kt:34)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:-1)
at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:100)
at kotlinx.coroutines.EventLoopImplBase.processNextEvent(EventLoop.common.kt:263)
at kotlinx.coroutines.BlockingCoroutine.joinBlocking(Builders.kt:94)
at kotlinx.coroutines.BuildersKt__BuildersKt.runBlocking(Builders.kt:70)
at kotlinx.coroutines.BuildersKt.runBlocking(Unknown Source:1)
at dev.slimevr.desktop.Main.main(Main.kt:61)
Exception 'java.lang.ExceptionInInitializerError' occurred in thread 'main @Main#1' at io.klogging.events.LogEvent.<init>(LogEvent.kt:51)
Breakpoint reached
at io.klogging.events.LogEvent.<init>(LogEvent.kt:51)
at io.klogging.BaseLogger.eventFrom(BaseLogger.kt:108)
at io.klogging.impl.KloggerImpl.eventFrom(KloggerImpl.kt:39)
at io.klogging.impl.KloggerImpl.emitEvent(KloggerImpl.kt:57)
at io.klogging.Klogger.emitEvent$default(Klogger.kt:48)
at io.klogging.Klogger.log$suspendImpl(Klogger.kt:123)
at io.klogging.Klogger.log(Klogger.kt:-1)
at io.klogging.impl.KloggerImpl.log(KloggerImpl.kt:39)
at io.klogging.Klogger.info$suspendImpl(Klogger.kt:323)
at io.klogging.Klogger.info(Klogger.kt:-1)
at io.klogging.impl.KloggerImpl.info(KloggerImpl.kt:39)
at dev.slimevr.logging.LoggerKt.configureLogging(logger.kt:74)
at dev.slimevr.logging.LoggerKt.configureLogging$default(logger.kt:48)
at dev.slimevr.desktop.LoggingKt.setupDesktopLogging(logging.kt:13)
at dev.slimevr.desktop.Main$main$1.invokeSuspend(Main.kt:62)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith$$$capture(ContinuationImpl.kt:34)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:-1)
at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:100)
at kotlinx.coroutines.EventLoopImplBase.processNextEvent(EventLoop.common.kt:263)
at kotlinx.coroutines.BlockingCoroutine.joinBlocking(Builders.kt:94)
at kotlinx.coroutines.BuildersKt__BuildersKt.runBlocking(Builders.kt:70)
at kotlinx.coroutines.BuildersKt.runBlocking(Unknown Source:1)
at dev.slimevr.desktop.Main.main(Main.kt:61)
Exception 'java.lang.ExceptionInInitializerError' occurred in thread 'main' at kotlinx.coroutines.BlockingCoroutine.joinBlocking(Builders.kt:108)
Breakpoint reached
at kotlinx.coroutines.BlockingCoroutine.joinBlocking(Builders.kt:108)
at kotlinx.coroutines.BuildersKt__BuildersKt.runBlocking(Builders.kt:70)
at kotlinx.coroutines.BuildersKt.runBlocking(Unknown Source:1)
at dev.slimevr.desktop.Main.main(Main.kt:61)
Exception 'java.lang.NoClassDefFoundError' occurred in thread 'main' at java.io.PrintStream.write(PrintStream.java:542)
Breakpoint reached
at java.io.PrintStream.write(PrintStream.java:542)
at sun.nio.cs.StreamEncoder.writeBytes(StreamEncoder.java:220)
at sun.nio.cs.StreamEncoder.implFlushBuffer(StreamEncoder.java:315)
at sun.nio.cs.StreamEncoder.flushBuffer(StreamEncoder.java:101)
at java.io.OutputStreamWriter.flushBuffer(OutputStreamWriter.java:179)
at java.io.PrintStream.writeln(PrintStream.java:690)
at java.io.PrintStream.println(PrintStream.java:1027)
at java.lang.Throwable$WrappedPrintStream.println(Throwable.java:790)
at java.lang.Throwable.printStackTrace(Throwable.java:697)
at java.lang.Throwable.printStackTrace(Throwable.java:686)
at java.lang.ThreadGroup.uncaughtException(ThreadGroup.java:579)
at java.lang.ThreadGroup.uncaughtException(ThreadGroup.java:571)
at java.lang.Thread.dispatchUncaughtException(Thread.java:2556)
Exception 'java.lang.NoClassDefFoundError' occurred in thread 'main' at sun.nio.cs.StreamEncoder.flushBuffer(StreamEncoder.java:104)
Breakpoint reached
at sun.nio.cs.StreamEncoder.flushBuffer(StreamEncoder.java:104)
at java.io.OutputStreamWriter.flushBuffer(OutputStreamWriter.java:179)
at java.io.PrintStream.writeln(PrintStream.java:690)
at java.io.PrintStream.println(PrintStream.java:1027)
at java.lang.Throwable$WrappedPrintStream.println(Throwable.java:790)
at java.lang.Throwable.printStackTrace(Throwable.java:697)
at java.lang.Throwable.printStackTrace(Throwable.java:686)
at java.lang.ThreadGroup.uncaughtException(ThreadGroup.java:579)
at java.lang.ThreadGroup.uncaughtException(ThreadGroup.java:571)
at java.lang.Thread.dispatchUncaughtException(Thread.java:2556)
Exception 'java.lang.NoClassDefFoundError' occurred in thread 'main' at java.io.PrintStream.writeln(PrintStream.java:693)
Breakpoint reached
at java.io.PrintStream.writeln(PrintStream.java:693)
at java.io.PrintStream.println(PrintStream.java:1027)
at java.lang.Throwable$WrappedPrintStream.println(Throwable.java:790)
at java.lang.Throwable.printStackTrace(Throwable.java:697)
at java.lang.Throwable.printStackTrace(Throwable.java:686)
at java.lang.ThreadGroup.uncaughtException(ThreadGroup.java:579)
at java.lang.ThreadGroup.uncaughtException(ThreadGroup.java:571)
at java.lang.Thread.dispatchUncaughtException(Thread.java:2556)
Exception 'java.lang.NoClassDefFoundError' occurred in thread 'main' at java.lang.Throwable.printStackTrace(Throwable.java:710)
Breakpoint reached
at java.lang.Throwable.printStackTrace(Throwable.java:710)
at java.lang.Throwable.printStackTrace(Throwable.java:686)
at java.lang.ThreadGroup.uncaughtException(ThreadGroup.java:579)
at java.lang.ThreadGroup.uncaughtException(ThreadGroup.java:571)
at java.lang.Thread.dispatchUncaughtException(Thread.java:2556)
Disconnected from the target VM, address: 'localhost:35355', transport: 'socket'
Something still seems wrong, reset all proportions doesn't work 100%
correctly - like if you set neck length to a high value then reset,
the neck is *extremely* small in the skeleton. The values in the config
seem fine though, and if you restart the server the skeleton then looks
fine. I also don't understand why this fixes proportions doubling when
you try to adjust them, but oh well...
Please follow general contribution guidelines: [CONTRIBUTING.md](https://github.com/SlimeVR/.github/blob/main/profile/CONTRIBUTING.md).
This document describes essential knowledge required to contribute to the SlimeVR Server.
### Prerequisites
@@ -22,21 +24,26 @@ Now you can open the codebase in [IDEA](https://www.jetbrains.com/idea/download/
### Java (server)
Before contributing to the server, read [server/README.md](server/README.md) for an overview of its architecture and design guidelines.
The Java code is built with `gradle`, a CLI tool that manages java projects and their
dependencies.
- You can run the server by running `./gradlew run` in your IDE's terminal.
- You can run the server by running `./gradlew :server:desktop:run` in your IDE's terminal.
- To compile the code, run `./gradlew shadowJar`. The result will
be at `server/build/libs/slimevr.jar` (you can ignore `server.jar`).
be at `server/desktop/build/libs/slimevr.jar` (you can ignore `server.jar`).
(Note: Your IDE may be able to do all of the above for you.)
### Electron (gui)
- Activate corepack (included with Node.JS) via `corepack enable`(might require administrator permissions)
- Activate corepack (included with Node.js) via `corepack enable`
(might require launching Git Bash as administrator on Windows)
- Make sure you're at the root of the repository.
- Run `pnpm i` in your IDE's terminal to download and install dependencies.
- To launch the GUI in dev mode, run `pnpm gui`.
-Finally, to compile for production, run `pnpm package:build`. The result
will be at `dist/artifacts/` content will change depending of the platform.
-If you get an "Electron uninstall" error, run `node .\gui\electron\node_modules\electron\install.js`.
- Finally, to compile for production, run `pnpm package:build` under `gui/electron`.
The result will be in `gui/dist/artifacts/`. Content will change depending on the platform.
## Code style
@@ -85,7 +92,7 @@ Eclipse will only do a subset of the checks in `spotless`, so you may still want
### Electron (gui)
We use ESLint and Prettier to format GUI code.
-First, go into the GUI's directory with your terminal by running `cd gui`.
-Make sure you're at the root of the repository.
- To check code formatting, run `pnpm run lint`.
- To fix code formatting, run `pnpm run lint:fix` and `pnpm run format`
@@ -115,8 +122,9 @@ licensed under `GPL-v3`.
We use discord *a lot* to coordinate and discuss development. Come join us at
https://discord.gg/SlimeVR!
## Use of AI
We DO NOT accept contributions that are generated with AI (for example, "vibe-coding").
## Use of AI, LLM, and code generation
**Submission of any content directly from AI is strictly forbidden in all SlimeVR repositories**, including code, documentation, translation, images, sounds, etc. Including, but not limited to: vibe-coding, snippets generated by LLM, AI-generated icons, copilot auto-complete, commit descriptions, PR notes, issues texts and comments. If your auto-complete system suggest next word, function name or variable name - it's okay to use, if it suggest a whole code snipped - it's not allowed.
If you do use AI, and you believe your usage of AI is reasonable, you must clearly disclose
how you used AI in your submission.
An exception is using translation tools to communicate with us if you're unable to properly express yourself in English. Please leave a comment that your post was translated and from which language. Submissions of machine translations to repositories are forbidden.
AI is allowed for things such as research, debugging, and questions, if no output of AI is submitted.
For information on building and contributing to the codebase, see [CONTRIBUTING.md](CONTRIBUTING.md).
For an overview of the server architecture and design guidelines, see [server/README.md](server/README.md).
## Translating
Translation is done via Pontoon at [i18n.slimevr.dev](https://i18n.slimevr.dev/). Please join our [Discord translation forum](https://discord.com/channels/817184208525983775/1050413434249949235) to coordinate.
$errorObj=New-ObjectSystem.IO.FileNotFoundException("clang-format is not installed, please install clang-format via your package manager (e.g. winget/chocolatey/scoop) and re-run the script")
logger.Info("Initialised OpenVR, HMD model '{}'",VRUtils::GetStringProp(vr::k_unTrackedDeviceIndex_Hmd,vr::Prop_ModelNumber_String).value_or("<unknown>"));
# solarxr-protocol:kotlin-codegen's generateTestSchemas isn't cache-compatible yet (submodule); degrade to a warning there instead of failing the whole build
oid sha256:8180983bcdd98afc329b23b8fbe549d448b861e625926f19cfef1f1d17e96713
size 183196
Loaded 100 of 1691 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.