From 1c6eee6aace73792bad93ef6c949e6ef5be4e98e Mon Sep 17 00:00:00 2001 From: lunaticbum Date: Mon, 30 Mar 2026 17:33:14 +0900 Subject: [PATCH] ... --- src/main/kotlin/service/LlamaServerManager.kt | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/main/kotlin/service/LlamaServerManager.kt b/src/main/kotlin/service/LlamaServerManager.kt index b7b039b..87c1e50 100644 --- a/src/main/kotlin/service/LlamaServerManager.kt +++ b/src/main/kotlin/service/LlamaServerManager.kt @@ -114,10 +114,10 @@ object LlamaServerManager { val pb = ProcessBuilder(command) // 2. 윈도우 Vulkan 환경 변수 설정 - if (isWin && binPath.contains("win-x64")) { + if (isWin && binPath.endsWith("win-x64")) { val env = pb.environment() // 특정 GPU 선택 (내장 GPU가 여러 개일 경우) - // env["GGML_VULKAN_DEVICE"] = "0" + env["GGML_VULKAN_DEVICE"] = "0" // DLL 로드 경로 강제 지정 (bin 폴더 내 dll 참조) val libraryPath = File(binPath).parentFile.absolutePath @@ -140,7 +140,11 @@ object LlamaServerManager { println(status) // 콘솔 로그 TradingLogStore.addAnalyzer("System", "Port:$port", status, status.contains("✅")) } - + Thread { + process.errorStream.bufferedReader().use { reader -> + reader.lines().forEach { line -> println("[SERVER ERROR] $line") } + } + }.start() val reader = BufferedReader(InputStreamReader(process.inputStream)) var line: String? while (reader.readLine().also { line = it } != null) {