AI: Tamiyo, Collector of Tales cause memory leaks
- Dominant language
- Java
- Stars
- 2.4k
- Forks
- 940
- Avg merge
- 2d 12h
- Merged PRs (30d)
- 160
Description
when both the opponent and me control 'Tamiyo, Collector of Tales',the +1 broken.
only test in player vs ai.
server log(...\n...\n... is a lot of duplicate rows):
```
ERROR 2019-04-27 14:43:40,992 Error getting non-land names from DB : org.h2.jdbc.JdbcSQLException: General error: "java.lang.IllegalStateException: Reading from nio:D:/XMAGE/mage-server/db/cards.h2.mv.db failed; file length -1 read length 768 at 79299345 [1.4.197/1]"; SQL statement:
SELECT DISTINCT `name` FROM `card` WHERE (NOT `types` LIKE ? ) [50000-197] =>[pool-1-thread-1] CardRepository.getNonLandNames
...
...
...
ERROR 2019-04-27 14:43:41,008 Error getting non-land names from DB : org.h2.jdbc.JdbcSQLException: General error: "java.lang.IllegalStateException: Reading from nio:D:/XMAGE/mage-server/db/cards.h2.mv.db failed; file length -1 read length 768 at 79299345 [1.4.197/1]"; SQL statement:
SELECT DISTINCT `name` FROM `card` WHERE (NOT `types` LIKE ? ) [50000-197] =>[pool-1-thread-1] CardRepository.getNonLandNames
INFO 2019-04-27 14:43:47,348 GAME END gameId: 9f165ed8-ffd7-487c-8d47-17e8bbdf792b [computer => L] - [PLAYER => W] =>[GAME 9f165ed8-ffd7-487c-8d47-17e8bbdf792b] GameImpl.play
ERROR 2019-04-27 14:43:48,174 Error finding card from DB : org.h2.jdbc.JdbcSQLException: General error: "java.lang.IllegalStateException: Reading from nio:D:/XMAGE/mage-server/db/cards.h2.mv.db failed; file length -1 read length 256 at 98918460 [1.4.197/1]"; SQL statement:
SELECT * FROM `card` WHERE ((`setCode` = ? AND `cardNumber` = ? ) AND `nightCard` = ? ) LIMIT 1 [50000-197] =>[CALL main-50] CardRepository.findCard
ERROR 2019-04-27 14:43:48,188 Tried to restart the DB: not successful =>[CALL main-50] Deck.createCardNotFoundGameException
Exception in thread "CALL main-50" java.lang.RuntimeException: mage.game.GameException: Card not found - Breeding Pool - RNA/246 for deck - null
Possible reason is, that you use cards in your deck, that are only supported in newer versions of the server.
So it can help to use the same card from another set, that's already supported from this server.
at mage.server.MageServerImpl.lambda$execute$67(MageServerImpl.java:1163)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: mage.game.GameException: Card not found - Breeding Pool - RNA/246 for deck - null
Possible reason is, that you use cards in your deck, that are only supported in newer versions of the server.
So it can help to use the same card from another set, that's already supported from this server.
at mage.cards.decks.Deck.createCardNotFoundGameException(Deck.java:119)
at mage.cards.decks.Deck.load(Deck.java:76)
at mage.server.TableController.updateDeck(TableController.java:445)
at mage.server.TableManager.updateDeck(TableManager.java:181)
at mage.server.MageServerImpl.lambda$updateDeck$2(MageServerImpl.java:351)
at mage.server.MageServerImpl.lambda$execute$67(MageServerImpl.java:1161)
... 3 more
ERROR 2019-04-27 14:43:53,178 Error finding card from DB : org.h2.jdbc.JdbcSQLException: General error: "java.lang.IllegalStateException: Reading from nio:D:/XMAGE/mage-server/db/cards.h2.mv.db failed; file length -1 read length 256 at 98918460 [1.4.197/1]"; SQL statement:
SELECT * FROM `card` WHERE ((`setCode` = ? AND `cardNumber` = ? ) AND `nightCard` = ? ) LIMIT 1 [50000-197] =>[CALL main-65] CardRepository.findCard
ERROR 2019-04-27 14:43:53,189 Tried to restart the DB: not successful =>[CALL main-65] Deck.createCardNotFoundGameException
Exception in thread "CALL main-65" java.lang.RuntimeException: mage.game.GameException: Card not found - Breeding Pool - RNA/246 for deck - null
Possible reason is, that you use cards in your deck, that are only supported in newer versions of the server.
So it can help to use the same card from another set, that's already supported from this server.
at mage.server.MageServerImpl.lambda$execute$67(MageServerImpl.java:1163)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: mage.game.GameException: Card not found - Breeding Pool - RNA/246 for deck - null
Possible reason is, that you use cards in your deck, that are only supported in newer versions of the server.
So it can help to use the same card from another set, that's already supported from this server.
at mage.cards.decks.Deck.createCardNotFoundGameException(Deck.java:119)
at mage.cards.decks.Deck.load(Deck.java:76)
at mage.server.TableController.updateDeck(TableController.java:445)
at mage.server.TableManager.updateDeck(TableManager.java:181)
at mage.server.MageServerImpl.lambda$updateDeck$2(MageServerImpl.java:351)
at mage.server.MageServerImpl.lambda$execute$67(MageServerImpl.java:1161)
... 3 more
ERROR 2019-04-27 14:43:53,270 Error finding card from DB : org.h2.jdbc.JdbcSQLException: General error: "java.lang.IllegalStateException: Reading from nio:D:/XMAGE/mage-server/db/cards.h2.mv.db failed; file length -1 read length 256 at 98918460 [1.4.197/1]"; SQL statement:
SELECT * FROM `card` WHERE ((`setCode` = ? AND `cardNumber` = ? ) AND `nightCard` = ? ) LIMIT 1 [50000-197] =>[WorkerThread#3[192.168.0.112:56213]] CardRepository.findCard
ERROR 2019-04-27 14:43:53,278 Tried to restart the DB: not successful =>[WorkerThread#3[192.168.0.112:56213]] Deck.createCardNotFoundGameException
FATAL 2019-04-27 14:43:53,279 =>[WorkerThread#3[192.168.0.112:56213]] MageServerImpl.handleException
mage.game.GameException: Card not found - Breeding Pool - RNA/246 for deck - null
Possible reason is, that you use cards in your deck, that are only supported in newer versions of the server.
So it can help to use the same card from another set, that's already supported from this server.
at mage.cards.decks.Deck.createCardNotFoundGameException(Deck.java:119)
at mage.cards.decks.Deck.load(Deck.java:76)
at mage.server.TableController.submitDeck(TableController.java:415)
at mage.server.TableManager.submitDeck(TableManager.java:168)
at mage.server.MageServerImpl$6.execute(MageServerImpl.java:334)
at mage.server.MageServerImpl$6.execute(MageServerImpl.java:326)
at mage.server.MageServerImpl.executeWithResult(MageServerImpl.java:1187)
at mage.server.MageServerImpl.submitDeck(MageServerImpl.java:326)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.jboss.remoting.transporter.TransporterHandler.invoke(TransporterHandler.java:87)
at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:967)
at org.jboss.remoting.transport.socket.ServerThread.completeInvocation(ServerThread.java:798)
at org.jboss.remoting.transport.socket.ServerThread.processInvocation(ServerThread.java:751)
at org.jboss.remoting.transport.socket.ServerThread.dorun(ServerThread.java:586)
at org.jboss.remoting.transport.socket.ServerThread.run(ServerThread.java:234)
```
when olny my control `Tamiyo, Collector of Tales`,+1 work, when ai cast `Tamiyo, Collector of Tales`,then -3,my control `Tamiyo, Collector of Tales` +1 broken,but ai control `Tamiyo, Collector of Tales` +1 still work.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.