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'
SlimeVR Server
Server app for SlimeVR ecosystem
Server orchestrates communication between multiple sensors and integrations, like SteamVR.
Sensors implementations:
- SlimeVR Tracker for ESP - ESP microcontrollers and multiple IMUs are supported
- owoTrack Mobile App - use phones as trackers (limited functionality and compatibility)
- SlimeVR Wrangler - use Nintendo Switch Joycon controllers as trackers
Integrations:
- Use SlimeVR OpenVR Driver as a driver for SteamVR.
- Use built-in OSC Trackers support for FBT integration with VRChat, PCVR or Standalone.
- Use built-in VMC support for sending and receiving tracking data to and from other apps such as VSeeFace.
- Export recordings as .BVH files to integrate motion capture data into 3d applications such as Blender.
Installing
It's highly recommended to install using the installer downloadable here: https://github.com/SlimeVR/SlimeVR-Installer/releases/latest/download/slimevr_web_installer.exe
Latest setup instructions are in our docs.
Building & Contributing
For information on building and contributing to the codebase, see CONTRIBUTING.md.
For an overview of the server architecture and design guidelines, see server/README.md.
Translating
Translation is done via Pontoon at i18n.slimevr.dev. Please join our Discord translation forum to coordinate.
License clarification
SlimeVR software (including server, firmware, drivers, installer, documents, and others - see licence for each case specifically) is distributed under a dual MIT/Apache 2.0 License (LICENSE-MIT and LICENSE-APACHE). The software is the copyright of the SlimeVR contributors.
However, these licenses have some limits, and if you wish to distribute software based on SlimeVR, you need to be aware of them:
- When distributing any software that uses or is based on SlimeVR, you have to provide
to the end-user at least one of the original, unmodified LICENSE-MIT or
LICENSE-APACHE files from SlimeVR. This includes the
Copyright (c) 2020 Eiren Rain and SlimeVR Contributorspart of the license. It is insufficient to use a generic MIT or Apache-2.0 License, it must be the original license file. - This applies even if you distribute software without the source code. In this case, one way to provide it to the end-user is to have a menu in your application that lists all the open source licenses used, including SlimeVR's.
Please refer to the LICENSE-MIT and LICENSE-APACHE files if you are at any point uncertain what the exact requirements are.
Trademark and Logo use
SlimeVR is a trademark or a registered trademark of SlimeVR B.V. Usage of SlimeVR software, hardware, or other intellectual property in this or other repositories does not grant you the right to use SlimeVR trademark as your own.
For more information, please refer to the TRADEMARK.
Contributions
Any contributions submitted for inclusion in this repository will be dual-licensed under either:
- MIT License (LICENSE-MIT)
- Apache License, Version 2.0 (LICENSE-APACHE)
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.
You also certify that the code you have used is compatible with those licenses or is authored by you. If you're doing so on your work time, you certify that your employer is okay with this and that you are authorized to provide the above licenses.
if you read this, u cute