BUG - server logs spams by SourceId NOT found
- Dominant language
- Java
- Stars
- 2.4k
- Forks
- 940
- Avg merge
- 2d 12h
- Merged PRs (30d)
- 160
Description
Kind of took things to the limit.
~480ish treasure tokens, 8 [[Roaming Throne]]s, and [[Reflections of Litjara]] on a Miirym deck. I decided I wanted to swing out and see how much damage I could do after stealing [[Nettlecyst]] and [[Adaptive Omnitool]] from an opponent. Put Nettle on one Roaming Throne to protect it, and cast [[Blastphemous Act]] to clear my board so I could cast and copy [[Twinflame Hellkite]] without [[Ganax, Astral Hunter]] trying to make 100 instances of treasure on the stack.
However, I forgot I had three [[Wrathful Red Dragon]]s on the battlefield. Act goes off, everything dies, and my client immediately disconnects. Server is still running. I can connect back into the game, but it immediately disconnects again.
I check the logfile and I have.. 79MB of.. (Trimmed from 303,000 lines to... This.)
`ERROR 2025-04-13 02:53:54,920 The provided sourceId is not connected to an object in the game id: 0df2380a-99d7-42dc-9b7d-a04f4496771b =>[AI-SIM-MAD - 3] MageObjectReference.
ERROR 2025-04-13 02:53:54,920 StackObject: a70bdccb-deb4-4768-8aeb-71b82d9611d0 sourceId 0fa785db-ab45-4ecc-9707-429d91abe935 name stack ability (Whenever you cast a spell of the chosen type, copy that spell.) =>[AI-SIM-MAD - 3] MageObjectReference.
ERROR 2025-04-13 02:53:54,920 StackObject: 37030d89-60a6-490a-a5ec-cb5684e3f058 sourceId 93161606-c550-4a91-8980-a452949d1970 name Blast-Furnace Hellkite =>[AI-SIM-MAD - 3] MageObjectReference.
ERROR 2025-04-13 02:53:54,920 StackObject: f2fd2a3b-89b6-45ee-b820-28dcdf89c48c sourceId 3e58a850-261e-4475-a90f-7857f1a0118f name stack ability (Whenever {this} or another Dragon you control enters, create a Treasure token.) =>[AI-SIM-MAD - 3] MageObjectReference.
ERROR 2025-04-13 02:53:54,920 SourceId NOT found in LKI =>[AI-SIM-MAD - 3] MageObjectReference.
ERROR 2025-04-13 02:53:56,066 The provided sourceId is not connected to an object in the game id: 0df2380a-99d7-42dc-9b7d-a04f4496771b =>[AI-SIM-MAD - 2] MageObjectReference.
ERROR 2025-04-13 02:54:12,533 The provided sourceId is not connected to an object in the game id: 0df2380a-99d7-42dc-9b7d-a04f4496771b =>[AI-SIM-MAD - 4] MageObjectReference.
ERROR 2025-04-13 02:54:12,533 SourceId NOT found in LKI =>[AI-SIM-MAD - 4] MageObjectReference.
ERROR 2025-04-13 02:54:21,528 SourceId NOT found in LKI =>[GAME 23a4945f-04cd-4593-9c8a-ea83e8d896b4] MageObjectReference.
ERROR 2025-04-13 02:54:21,528 The provided sourceId is not connected to an object in the game id: 0df2380a-99d7-42dc-9b7d-a04f4496771b =>[GAME 23a4945f-04cd-4593-9c8a-ea83e8d896b4] MageObjectReference.
ERROR 2025-04-13 02:54:32,773 StackObject: 70746495-85a1-484d-9efa-01a1cefad611 sourceId 50ec2651-f7b4-41e8-86f1-4bbb0ee74514 name Blasphemous Act =>[GAME 23a4945f-04cd-4593-9c8a-ea83e8d896b4] MageObjectReference.
ERROR 2025-04-13 02:54:32,773 SourceId NOT found in LKI =>[GAME 23a4945f-04cd-4593-9c8a-ea83e8d896b4] MageObjectReference.
ERROR 2025-04-13 02:54:32,773 The provided sourceId is not connected to an object in the game id: 0df2380a-99d7-42dc-9b7d-a04f4496771b =>[GAME 23a4945f-04cd-4593-9c8a-ea83e8d896b4] MageObjectReference.
ERROR 2025-04-13 02:54:32,773 StackObject: 70746495-85a1-484d-9efa-01a1cefad611 sourceId 50ec2651-f7b4-41e8-86f1-4bbb0ee74514 name Blasphemous Act =>[GAME 23a4945f-04cd-4593-9c8a-ea83e8d896b4] MageObjectReference.
ERROR 2025-04-13 02:54:32,773 SourceId NOT found in LKI =>[GAME 23a4945f-04cd-4593-9c8a-ea83e8d896b4] MageObjectReference.
ERROR 2025-04-13 02:54:32,773 The provided sourceId is not connected to an object in the game id: 0df2380a-99d7-42dc-9b7d-a04f4496771b =>[GAME 23a4945f-04cd-4593-9c8a-ea83e8d896b4] MageObjectReference.
ERROR 2025-04-13 02:54:32,773 StackObject: 70746495-85a1-484d-9efa-01a1cefad611 sourceId 50ec2651-f7b4-41e8-86f1-4bbb0ee74514 name Blasphemous Act =>[GAME 23a4945f-04cd-4593-9c8a-ea83e8d896b4] MageObjectReference.
ERROR 2025-04-13 02:54:32,773 SourceId NOT found in LKI =>[GAME 23a4945f-04cd-4593-9c8a-ea83e8d896b4] MageObjectReference.
ERROR 2025-04-13 02:54:35,927 The provided sourceId is not connected to an object in the game id: 0df2380a-99d7-42dc-9b7d-a04f4496771b =>[AI-SIM-MAD - 1] MageObjectReference.
ERROR 2025-04-13 02:54:35,927 SourceId NOT found in LKI =>[AI-SIM-MAD - 1] MageObjectReference.
ERROR 2025-04-13 02:54:39,343 StackObject: fd865c60-966a-42b8-b439-58e4ebb5289d sourceId bd4d6e98-c20c-4119-93ab-0eb8b55d9e6a name stack ability (Whenever a Dragon you control is dealt damage, it deals that much damage to any target that isn't a Dragon.) =>[GAME 23a4945f-04cd-4593-9c8a-ea83e8d896b4] MageObjectReference. `
----
I go back to near the top, and see the console spammed with
`ERROR 2025-04-13 02:37:19,460 The provided sourceId is not connected to an object in the game id: 0df2380a-99d7-42dc-9b7d-a04f4496771b =>[AI-SIM-MAD - 5] MageObjectReference.
ERROR 2025-04-13 02:37:19,460 SourceId NOT found in LKI =>[AI-SIM-MAD - 5] MageObjectReference.
ERROR 2025-04-13 02:37:19,564 The provided sourceId is not connected to an object in the game id: 0df2380a-99d7-42dc-9b7d-a04f4496771b =>[AI-SIM-MAD - 5] MageObjectReference.
ERROR 2025-04-13 02:37:19,564 StackObject: 7db84fe6-cf68-4da1-a061-c6ba1c0c9a31 sourceId 40930448-5ba0-4597-9bf9-b7b56bfdc149 name Deceptive Frostkite =>[AI-SIM-MAD - 5] MageObjectReference.
ERROR 2025-04-13 02:37:19,564 StackObject: 04405d8c-f3cc-40d0-b9cd-0049d259f9ff sourceId c684df53-a1e0-4da4-9403-f893774d921c name Deceptive Frostkite =>[AI-SIM-MAD - 5] MageObjectReference.
ERROR 2025-04-13 02:37:19,564 SourceId NOT found in LKI =>[AI-SIM-MAD - 5] MageObjectReference.
ERROR 2025-04-13 02:37:19,707 SourceId NOT found in LKI =>[AI-SIM-MAD - 5] MageObjectReference.
ERROR 2025-04-13 02:37:19,946 The provided sourceId is not connected to an object in the game id: 0df2380a-99d7-42dc-9b7d-a04f4496771b =>[AI-SIM-MAD - 5] MageObjectReference.
ERROR 2025-04-13 02:37:19,946 SourceId NOT found in LKI =>[AI-SIM-MAD - 5] MageObjectReference.
ERROR 2025-04-13 02:37:19,946 The provided sourceId is not connected to an object in the game id: 0df2380a-99d7-42dc-9b7d-a04f4496771b =>[AI-SIM-MAD - 5] MageObjectReference.
ERROR 2025-04-13 02:37:19,946 SourceId NOT found in LKI =>[AI-SIM-MAD - 5] MageObjectReference.
ERROR 2025-04-13 02:37:19,946 The provided sourceId is not connected to an object in the game id: 0df2380a-99d7-42dc-9b7d-a04f4496771b =>[AI-SIM-MAD - 5] MageObjectReference.
ERROR 2025-04-13 02:37:19,946 SourceId NOT found in LKI =>[AI-SIM-MAD - 5] MageObjectReference. `
Despite me never playing the card over the course of the game. The card is in my deck, but was not on the field.
This tells me something somewhere was wrong even at the start of the game and the server was spamming errors the whole time.
Contributor guide
No contributing guide indexed for this repository
Research direction
Start at the MageObjectReference. entry point named in the server logs and trace how sourceId and LKI lookups behave after cards leave play. Reproduce the reported Blasphemous Act and Dragon-trigger scenario, then verify that the server remains usable without repeated SourceId errors or client disconnects.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- backend, game-dev
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100