pressing change name button crashes game #120

Closed
opened 2026-04-17 12:25:48 +02:00 by jona.walpert · 3 comments
jona.walpert commented 2026-04-17 12:25:48 +02:00 (Migrated from git.scicore.unibas.ch)

Bug Report

Environment

  • Branch & Commit: main
  • Operating system: Windwos 11
  • How was execution started (Gradle task / IDE debug / IDE run):
  • Java version: 25
  • Gradle version: 9.3.1

Summary

If the change name button is clicked in the lobbyUI the game crashes

It should just do nothing

Actual Behavior

The game crashes

Steps to Reproduce

start a client (without a name)

click the change name button

Stack Trace / Error Message

12:21:58.963 INFO     ch.unibas.dmi.dbis.cs108.casono.client.network.ClientService Raw message '-ERR
        CODE=ALREADY_LOGGED_IN
        MSG='This session is already associated with an active user.'
END'
12:21:58.963 DEBUG    ch.unibas.dmi.dbis.cs108.casono.client.network.ClientService Parsed response lines (rid=102, success=false, openBlocks=0): [CODE=ALREADY_LOGGED_IN, MSG='This session is already associated with an active user.']
12:21:58.964 INFO     ch.unibas.dmi.dbis.cs108.casono.client.ui.lobbyui.CasinomainuiController Session already logged in, trying username change
12:21:59.026 INFO     ch.unibas.dmi.dbis.cs108.casono.client.network.ChatClient Asking server for new messages
12:22:30.370 WARN     ch.unibas.dmi.dbis.cs108.casono.client.network.ClientService IO error on transport reader

Possible Cause / Notes

Checklist

  • I reproduced the problem using the steps above
  • I searched documentation for relevant information
  • I added relevant labels
## Bug Report <!--The reccommended type is: Issue--> ### Environment - **Branch & Commit: main** - **Operating system: Windwos 11** - **How was execution started (Gradle task / IDE debug / IDE run):** - **Java version:** `25` - **Gradle version**: `9.3.1` ### Summary If the change name button is clicked in the lobbyUI the game crashes It should just do nothing ### Actual Behavior The game crashes ### Steps to Reproduce start a client (without a name) click the change name button ### Stack Trace / Error Message ``` 12:21:58.963 INFO ch.unibas.dmi.dbis.cs108.casono.client.network.ClientService Raw message '-ERR CODE=ALREADY_LOGGED_IN MSG='This session is already associated with an active user.' END' 12:21:58.963 DEBUG ch.unibas.dmi.dbis.cs108.casono.client.network.ClientService Parsed response lines (rid=102, success=false, openBlocks=0): [CODE=ALREADY_LOGGED_IN, MSG='This session is already associated with an active user.'] 12:21:58.964 INFO ch.unibas.dmi.dbis.cs108.casono.client.ui.lobbyui.CasinomainuiController Session already logged in, trying username change 12:21:59.026 INFO ch.unibas.dmi.dbis.cs108.casono.client.network.ChatClient Asking server for new messages 12:22:30.370 WARN ch.unibas.dmi.dbis.cs108.casono.client.network.ClientService IO error on transport reader ``` ### Possible Cause / Notes <!--Optional: your own hypothesis about the root cause--> ### Checklist - [x] I reproduced the problem using the steps above - [x] I searched documentation for relevant information - [x] I added relevant labels
jona.walpert commented 2026-04-17 12:25:48 +02:00 (Migrated from git.scicore.unibas.ch)

assigned to @jona.walpert

assigned to @jona.walpert
jona.walpert commented 2026-04-17 12:42:26 +02:00 (Migrated from git.scicore.unibas.ch)

changed the description

changed the description
jona.walpert (Migrated from git.scicore.unibas.ch) closed this issue 2026-04-17 12:45:11 +02:00
jona.walpert commented 2026-04-17 12:45:12 +02:00 (Migrated from git.scicore.unibas.ch)

Issue irrelevant. already fixed in main branch

Issue irrelevant. already fixed in main branch
This repo is archived. You cannot comment on issues.
1 Participants
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: University-of-Basel-Studentprojects/Programmierprojekt#120