diff --git a/Projekte/mdga/client/hs_err_pid54211.log b/Projekte/mdga/client/hs_err_pid54211.log new file mode 100644 index 00000000..9b6e3d33 --- /dev/null +++ b/Projekte/mdga/client/hs_err_pid54211.log @@ -0,0 +1,21 @@ +# +# A fatal error has been detected by the Java Runtime Environment: +# +# SIGSEGV (0xb) at pc=0x000070ba272e8104, pid=54211, tid=54346 +# +# JRE version: OpenJDK Runtime Environment Temurin-20.0.2+9 (20.0.2+9) (build 20.0.2+9) +# Java VM: OpenJDK 64-Bit Server VM Temurin-20.0.2+9 (20.0.2+9, mixed mode, sharing, tiered, compressed oops, compressed class ptrs, g1 gc, linux-amd64) +# Problematic frame: +# V [libjvm.so+0xee8104] SystemDictionary::find_or_define_helper(Symbol*, Handle, InstanceKlass*, JavaThread*)+0x304 +# +# Core dump will be written. Default location: Core dumps may be processed with "/usr/lib/systemd/systemd-coredump %P %u %g %s %t %c %h" (or dumping to /home/cedric/ProgProjekt/Gruppe-01/Projekte/mdga/client/core.54211) +# +# If you would like to submit a bug report, please visit: +# https://github.com/adoptium/adoptium-support/issues +# + +--------------- S U M M A R Y ------------ + +Command Line: -Ddebugger.agent.enable.coroutines=true -Djava.util.logging.config.file=logging.properties -Dkotlinx.coroutines.debug.enable.creation.stack.trace=false -Dkotlinx.coroutines.debug.enable.flows.stack.trace=true -Dkotlinx.coroutines.debug.enable.mutable.state.flows.stack.trace=true -agentlib:jdwp=transport=dt_socket,server=n,suspend=y,address=127.0.0.1:40559 -javaagent:/usr/share/idea/plugins/java/lib/rt/debugger-agent.jar -Dfile.encoding=UTF-8 -Duser.country=US -Duser.language=en -Duser.variant -ea pp.mdga.client.MdgaApp + +Host: AMD Ryzen 5 8640HS w/ Radeon 760M Graphics, 12 cores, 14G, \ No newline at end of file diff --git a/Projekte/mdga/client/hs_err_pid60653.log b/Projekte/mdga/client/hs_err_pid60653.log new file mode 100644 index 00000000..974a6ce1 --- /dev/null +++ b/Projekte/mdga/client/hs_err_pid60653.log @@ -0,0 +1,171 @@ +# +# A fatal error has been detected by the Java Runtime Environment: +# +# SIGSEGV (0xb) at pc=0x00007fc14e0eef41, pid=60653, tid=60689 +# +# JRE version: OpenJDK Runtime Environment (21.0.5+11) (build 21.0.5+11) +# Java VM: OpenJDK 64-Bit Server VM (21.0.5+11, mixed mode, sharing, tiered, compressed oops, compressed class ptrs, g1 gc, linux-amd64) +# Problematic frame: +# C [libgallium-24.2.8-arch1.1.so+0x8eef41] +# +# Core dump will be written. Default location: Core dumps may be processed with "/usr/lib/systemd/systemd-coredump %P %u %g %s %t %c %h" (or dumping to /home/cedric/ProgProjekt/Gruppe-01/Projekte/mdga/client/core.60653) +# +# If you would like to submit a bug report, please visit: +# https://bugreport.java.com/bugreport/crash.jsp +# The crash happened outside the Java Virtual Machine in native code. +# See problematic frame for where to report the bug. +# + +--------------- S U M M A R Y ------------ + +Command Line: -Ddebugger.agent.enable.coroutines=true -Djava.util.logging.config.file=logging.properties -Dkotlinx.coroutines.debug.enable.creation.stack.trace=false -Dkotlinx.coroutines.debug.enable.flows.stack.trace=true -Dkotlinx.coroutines.debug.enable.mutable.state.flows.stack.trace=true -agentlib:jdwp=transport=dt_socket,server=n,suspend=y,address=127.0.0.1:39131 -javaagent:/usr/share/idea/plugins/java/lib/rt/debugger-agent.jar -Dfile.encoding=UTF-8 -Duser.country=US -Duser.language=en -Duser.variant -ea pp.mdga.client.MdgaApp + +Host: AMD Ryzen 5 8640HS w/ Radeon 760M Graphics, 12 cores, 14G, Manjaro Linux +Time: Sun Dec 8 18:11:23 2024 CET elapsed time: 295.650309 seconds (0d 0h 4m 55s) + +--------------- T H R E A D --------------- + +Current thread (0x00007fc17ca803b0): JavaThread "jME3 Main" [_thread_in_native, id=60689, stack(0x00007fc159425000,0x00007fc159525000) (1024K)] + +Stack: [0x00007fc159425000,0x00007fc159525000], sp=0x00007fc159522300, free space=1012k +Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code) +C [libgallium-24.2.8-arch1.1.so+0x8eef41] +C [libgallium-24.2.8-arch1.1.so+0xf4a849] +C [libgallium-24.2.8-arch1.1.so+0x6ccb71] +C [libgallium-24.2.8-arch1.1.so+0x6c58ae] +C [libgallium-24.2.8-arch1.1.so+0x6c6013] +C [libgallium-24.2.8-arch1.1.so+0x6cddf8] +C [libgallium-24.2.8-arch1.1.so+0x141327] +C [libgallium-24.2.8-arch1.1.so+0x5fc8b] +C [libGLX_mesa.so.0+0x4f2e0] +C [libGLX_mesa.so.0+0x40496] +C [libGLX_mesa.so.0+0x2efa5] +J 2042 org.lwjgl.system.JNI.invokePV(JJ)V (0 bytes) @ 0x00007fc16c1abb6f [0x00007fc16c1abaa0+0x00000000000000cf] +J 4039 c1 org.lwjgl.glfw.GLFW.glfwSwapBuffers(J)V (21 bytes) @ 0x00007fc164d8684c [0x00007fc164d86760+0x00000000000000ec] +J 3912 c1 com.jme3.system.lwjgl.LwjglWindow.runLoop()V (177 bytes) @ 0x00007fc164d44b34 [0x00007fc164d442c0+0x0000000000000874] +j com.jme3.system.lwjgl.LwjglWindow.run()V+54 +j java.lang.Thread.runWith(Ljava/lang/Object;Ljava/lang/Runnable;)V+5 java.base@21.0.5 +j java.lang.Thread.run()V+19 java.base@21.0.5 +v ~StubRoutines::call_stub 0x00007fc16bb37cc6 +V [libjvm.so+0x6d0894] +V [libjvm.so+0x6d14fd] +V [libjvm.so+0x79a7be] +V [libjvm.so+0x6cac55] +V [libjvm.so+0x9d62c1] +C [libc.so.6+0x9439d] +Java frames: (J=compiled Java code, j=interpreted, Vv=VM code) +J 2042 org.lwjgl.system.JNI.invokePV(JJ)V (0 bytes) @ 0x00007fc16c1abafc [0x00007fc16c1abaa0+0x000000000000005c] +J 4039 c1 org.lwjgl.glfw.GLFW.glfwSwapBuffers(J)V (21 bytes) @ 0x00007fc164d8684c [0x00007fc164d86760+0x00000000000000ec] +J 3912 c1 com.jme3.system.lwjgl.LwjglWindow.runLoop()V (177 bytes) @ 0x00007fc164d44b34 [0x00007fc164d442c0+0x0000000000000874] +j com.jme3.system.lwjgl.LwjglWindow.run()V+54 +j java.lang.Thread.runWith(Ljava/lang/Object;Ljava/lang/Runnable;)V+5 java.base@21.0.5 +j java.lang.Thread.run()V+19 java.base@21.0.5 +v ~StubRoutines::call_stub 0x00007fc16bb37cc6 + +siginfo: si_signo: 11 (SIGSEGV), si_code: 1 (SEGV_MAPERR), si_addr: 0x00000000000000c9 + +Registers: +RAX=0x0000000000000000, RBX=0x00007fc09825b2a0, RCX=0x0000000000000006, RDX=0x0000000028200000 +RSP=0x00007fc159522300, RBP=0x00007fc159522310, RSI=0x00007fc0998d3604, RDI=0x00007fc09825b7a0 +R8 =0x0000000000000006, R9 =0x00000000aa959a6a, R10=0x0000000000000263, R11=0x00007fc099bc36c0 +R12=0x00007fc0998d35e0, R13=0x000000058bc5f100, R14=0x000000058bc5f140, R15=0x0000000000000040 +RIP=0x00007fc14e0eef41, EFLAGS=0x0000000000010202, CSGSFS=0x002b000000000033, ERR=0x0000000000000004 + TRAPNO=0x000000000000000e + + +Register to memory mapping: + +RAX=0x0 is null +RBX=0x00007fc09825b2a0 points into unknown readable memory: 0x00007fc098239c40 | 40 9c 23 98 c0 7f 00 00 +RCX=0x0000000000000006 is an unknown value +RDX=0x0000000028200000 is an unknown value +RSP=0x00007fc159522300 is pointing into the stack for thread: 0x00007fc17ca803b0 +RBP=0x00007fc159522310 is pointing into the stack for thread: 0x00007fc17ca803b0 +RSI=0x00007fc0998d3604 points into unknown readable memory: 00 00 00 00 +RDI=0x00007fc09825b7a0 points into unknown readable memory: 0x00001c7c00000265 | 65 02 00 00 7c 1c 00 00 +R8 =0x0000000000000006 is an unknown value +R9 =0x00000000aa959a6a is an unknown value +R10=0x0000000000000263 is an unknown value +R11=0x00007fc099bc36c0 points into unknown readable memory: 0x00007fc14e121570 | 70 15 12 4e c1 7f 00 00 +R12=0x00007fc0998d35e0 points into unknown readable memory: 0x0000000000000000 | 00 00 00 00 00 00 00 00 +R13=0x000000058bc5f100 is an unknown value +R14=0x000000058bc5f140 is an unknown value +R15=0x0000000000000040 is an unknown value + +Top of Stack: (sp=0x00007fc159522300) +0x00007fc159522300: 00007fc09825b2a0 ffffffffffffffff +0x00007fc159522310: 00007fc1595223d0 00007fc14e74a849 +0x00007fc159522320: 0000000000000000 00000000cc0016c8 +0x00007fc159522330: 00007fc09920b000 00007fc100000004 +0x00007fc159522340: 00007fc100000001 00007fc100000000 +0x00007fc159522350: ffff800100000002 00007fc09825b7a0 +0x00007fc159522360: 00007fc1595223e0 0000000100000b02 +0x00007fc159522370: 0000000000000000 00007fc0983eca88 +0x00007fc159522380: 00007fc100000000 00007fc099e33780 +0x00007fc159522390: 00007fc159523170 b36c5690f9bb0900 +0x00007fc1595223a0: 00007fc15951fd20 00007fc0983eca80 +0x00007fc1595223b0: 00007fc09825b2a0 00007fc0983edb60 +0x00007fc1595223c0: 00007fc098415b10 00007fc0983ec850 +0x00007fc1595223d0: 00007fc159523280 00007fc14deccb71 +0x00007fc1595223e0: 00000bdc00000000 00007fc100000000 +0x00007fc1595223f0: 00007fc159523290 00007fc159523294 +0x00007fc159522400: 00007fc159523320 00007fc159523324 +0x00007fc159522410: 00007fc1595231b0 00007fc1595231b4 +0x00007fc159522420: 00007fc159522860 00007fc164c8401c +0x00007fc159522430: 00007fc159523310 00007fc159523314 +0x00007fc159522440: 00007fc1595232a0 00007fc1595232a4 +0x00007fc159522450: 00007fc159522860 00007fc159523334 +0x00007fc159522460: 00007fc159523400 00007fc159523404 +0x00007fc159522470: 00007fc1595232d0 00007fc1595232d4 +0x00007fc159522480: 00007fc16bc61f10 00007fc0c80123d0 +0x00007fc159522490: 00007fc1595231f0 00007fc1595231f4 +0x00007fc1595224a0: 00007fc1595223e0 00000000e31c914f +0x00007fc1595224b0: 00007fc159523350 00007fc159523354 +0x00007fc1595224c0: 00007fc1595232e0 00007fc1595232e4 +0x00007fc1595224d0: 00007f0000000000 00000000e3193478 +0x00007fc1595224e0: 00007fc159523440 00007fc159523444 +0x00007fc1595224f0: 00007fc159523310 00007fc159523314 + +Instructions: (pc=0x00007fc14e0eef41) +0x00007fc14e0eee41: 0f 1e fa 55 48 83 c6 24 48 89 e5 41 55 41 54 53 +0x00007fc14e0eee51: 48 89 fb 48 83 ec 08 8b 97 00 05 00 00 44 0f b7 +0x00007fc14e0eee61: 6e f0 48 8b 87 08 05 00 00 49 89 d4 45 01 ec 48 +0x00007fc14e0eee71: 8d 3c 90 42 8d 14 ad 00 00 00 00 ff 15 ee 7e c3 +0x00007fc14e0eee81: 01 44 89 a3 00 05 00 00 48 83 c4 08 5b 41 5c 41 +0x00007fc14e0eee91: 5d 5d c3 66 2e 0f 1f 84 00 00 00 00 00 66 90 f3 +0x00007fc14e0eeea1: 0f 1e fa 55 48 89 e5 41 57 41 56 41 55 41 54 41 +0x00007fc14e0eeeb1: 89 f4 53 48 89 fb 48 83 ec 08 4e 8b b4 e7 88 09 +0x00007fc14e0eeec1: 00 00 8b 97 00 05 00 00 48 8b 87 08 05 00 00 45 +0x00007fc14e0eeed1: 0f b7 7e 14 49 89 d5 49 8d 76 24 48 8d 3c 90 45 +0x00007fc14e0eeee1: 01 fd 42 8d 14 bd 00 00 00 00 ff 15 7f 7e c3 01 +0x00007fc14e0eeef1: 44 89 ab 00 05 00 00 4e 89 b4 e3 d8 09 00 00 48 +0x00007fc14e0eef01: 83 c4 08 5b 41 5c 41 5d 41 5e 41 5f 5d c3 90 f3 +0x00007fc14e0eef11: 0f 1e fa 55 89 f0 48 89 e5 41 54 53 4c 8b a4 c7 +0x00007fc14e0eef21: 88 09 00 00 48 89 fb e8 73 ff ff ff 49 8b 84 24 +0x00007fc14e0eef31: 80 01 00 00 ba 00 00 20 28 48 8d bb 00 05 00 00 +0x00007fc14e0eef41: 0f b6 88 c9 00 00 00 48 8b b0 b0 00 00 00 48 8b +0x00007fc14e0eef51: 83 f0 04 00 00 ff 90 00 01 00 00 49 8b 04 24 48 +0x00007fc14e0eef61: 85 c0 74 13 48 89 df be ff ff ff ff 5b 41 5c 5d +0x00007fc14e0eef71: ff e0 0f 1f 44 00 00 5b 41 5c 5d c3 0f 1f 00 f3 +0x00007fc14e0eef81: 0f 1e fa 66 0f ef c0 31 c9 ba 01 00 00 00 0f 11 +0x00007fc14e0eef91: 87 d8 09 00 00 0f 11 87 e8 09 00 00 0f 11 87 f8 +0x00007fc14e0eefa1: 09 00 00 0f 11 87 08 0a 00 00 0f 11 87 18 0a 00 +0x00007fc14e0eefb1: 00 66 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 00 48 +0x00007fc14e0eefc1: 83 bc cf 88 09 00 00 00 74 0d 48 89 d0 48 d3 e0 +0x00007fc14e0eefd1: 48 09 87 80 09 00 00 48 83 c1 01 48 83 f9 0a 75 +0x00007fc14e0eefe1: de c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 00 f3 +0x00007fc14e0eeff1: 0f 1e fa 55 48 89 e5 41 56 41 89 d6 41 55 41 89 +0x00007fc14e0ef001: f5 8d 34 b5 28 00 00 00 41 54 49 89 fc bf 01 00 +0x00007fc14e0ef011: 00 00 53 ff 15 7e 89 c3 01 48 89 c3 48 85 c0 74 +0x00007fc14e0ef021: 2a 66 44 89 68 1a 41 0f b6 ce 48 8d 78 08 41 0f +0x00007fc14e0ef031: b6 94 24 97 08 00 00 49 8d b4 24 90 02 00 00 c0 + + +Stack slot to memory mapping: + +stack at sp + 0 slots: 0x00007fc09825b2a0 points into unknown readable memory: 0x00007fc098239c40 | 40 9c 23 98 c0 7f 00 00 +stack at sp + 1 slots: 0xffffffffffffffff is an unknown value +stack at sp + 2 slots: 0x00007fc1595223d0 is pointing into the stack for thread: 0x00007fc17ca803b0 +stack at sp + 3 slots: 0x00007fc14e74a849: in /usr/lib/libgallium-24.2.8-arch1.1.so at 0x00007fc14d800000 +stack at sp + 4 slots: 0x0 is null +stack at sp + 5 slots: \ No newline at end of file diff --git a/Projekte/mdga/client/src/main/java/pp/mdga/client/MdgaApp.java b/Projekte/mdga/client/src/main/java/pp/mdga/client/MdgaApp.java index 6a69b6ba..9dcf17cc 100644 --- a/Projekte/mdga/client/src/main/java/pp/mdga/client/MdgaApp.java +++ b/Projekte/mdga/client/src/main/java/pp/mdga/client/MdgaApp.java @@ -66,7 +66,7 @@ public class MdgaApp extends SimpleApplication { private ServerConnection networkConnection; - public static final int DEBUG_MULTIPLIER = 0; + public static final int DEBUG_MULTIPLIER = 1; public MdgaApp() { networkConnection = new NetworkSupport(this); diff --git a/Projekte/mdga/client/src/main/java/pp/mdga/client/gui/DiceControl.java b/Projekte/mdga/client/src/main/java/pp/mdga/client/gui/DiceControl.java index 42e356aa..a8c4fb3c 100644 --- a/Projekte/mdga/client/src/main/java/pp/mdga/client/gui/DiceControl.java +++ b/Projekte/mdga/client/src/main/java/pp/mdga/client/gui/DiceControl.java @@ -21,7 +21,7 @@ public class DiceControl extends AbstractControl { private Quaternion targetRotation; private final Vector3f angularVelocity = new Vector3f(); - private float deceleration = 0.5f; + private float deceleration = 1.7f; private float timeElapsed = 0.0f; private float rollDuration = 1f; private static final int ANGULAR_MIN = 5; diff --git a/Projekte/mdga/model/src/main/java/pp/mdga/visitor/ServerCardVisitor.java b/Projekte/mdga/model/src/main/java/pp/mdga/visitor/ServerCardVisitor.java index 64efdc03..6050d29d 100644 --- a/Projekte/mdga/model/src/main/java/pp/mdga/visitor/ServerCardVisitor.java +++ b/Projekte/mdga/model/src/main/java/pp/mdga/visitor/ServerCardVisitor.java @@ -41,7 +41,13 @@ public ServerCardVisitor(ServerGameLogic logic) { */ @Override public void visit(TurboCard card) { - this.cards.add(card); + for (Piece piece : this.logic.getGame().getPlayerByColor(this.logic.getGame().getActiveColor()).getPieces()) { + if (piece.getState() == PieceState.ACTIVE) { + if (!this.cards.contains(card)) { + this.cards.add(card); + } + } + } } /**