Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ClassCastException with Blood token or Wedding Crasher or werewolf cast in the Night #13055

Open
Jipsu opened this issue Nov 2, 2024 · 0 comments

Comments

@Jipsu
Copy link
Contributor

Jipsu commented Nov 2, 2024

I tried activating a Blood token with Circle of Containment in hand, got a ClassCastException. After that all my game actions caused the same error. Rollback didn't help. It was Night and the opponent had cast Wolfkin Outcast the last turn (which is Wedding Crasher on Night-time). There was Fearsome Werewolf, Blood Petal Celebrant and Hungry Ridgewolf on the opponent's side.

Error type: General error - ClassCastException
Client version: 1.4.54-V3 (build: 2024-09-25 12:58)

mage.view.CardView cannot be cast to mage.view.PermanentView

Stack trace:
org.mage.card.arcane.CardPanel.getOriginalPermanent(CardPanel.java:838)
mage.client.game.BattlefieldPanel.update(BattlefieldPanel.java:185)
mage.client.game.PlayAreaPanel.update(PlayAreaPanel.java:515)
mage.client.game.GamePanel.updateGame(GamePanel.java:1164)
mage.client.game.GamePanel.updateGame(GamePanel.java:1065)
mage.client.game.GamePanel.playMana(GamePanel.java:2116)
mage.client.remote.CallbackClientImpl.lambda$onCallback$2(CallbackClientImpl.java:342)
java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
java.awt.EventQueue.dispatchEventImpl(EventQueue.java:758)
java.awt.EventQueue.access$500(EventQueue.java:97)
and other 11 lines

And second error after rollback:

Error type: General error - ClassCastException
Client version: 1.4.54-V3 (build: 2024-09-25 12:58)

ClassCastException - look at server or client logs for more details

Stack trace:

From the log:

INFO 2024-11-02 14:41:49,401 Game 57e44443-9b30-4e5f-b44a-4748379edb50 started for player 35b80381-4ecd-4fb5-8cea-147ac7ec71ab =>[AWT-EventQueue-0] CallbackClientImpl.gameStarted
WARN 2024-11-02 14:44:26,681 ignore un-synced message 4670 - UPDATE - GAME_UPDATE, possible reason: slow connection/performance =>[AWT-EventQueue-0] CallbackClientImpl.lambda$onCallback$2
WARN 2024-11-02 14:47:14,000 ignore un-synced message 4818 - UPDATE - GAME_UPDATE, possible reason: slow connection/performance =>[AWT-EventQueue-0] CallbackClientImpl.lambda$onCallback$2
WARN 2024-11-02 14:49:09,925 ignore un-synced message 4902 - UPDATE - GAME_UPDATE, possible reason: slow connection/performance =>[AWT-EventQueue-0] CallbackClientImpl.lambda$onCallback$2
ERROR 2024-11-02 14:55:10,733 can't find second side to toggle transform from second side to main: Wedding Crasher =>[Animation] CardPanel.toggleTransformed
FATAL 2024-11-02 14:56:11,199 General error
=>[AWT-EventQueue-0] CallbackClientImpl.handleException
java.lang.: mage.view.CardView cannot be cast to mage.view.PermanentView
at org.mage.card.arcane.CardPanel.getOriginalPermanent(CardPanel.java:838)
at mage.client.game.BattlefieldPanel.update(BattlefieldPanel.java:185)
at mage.client.game.PlayAreaPanel.update(PlayAreaPanel.java:515)
at mage.client.game.GamePanel.updateGame(GamePanel.java:1164)
at mage.client.game.GamePanel.updateGame(GamePanel.java:1065)
at mage.client.game.GamePanel.playMana(GamePanel.java:2116)
at mage.client.remote.CallbackClientImpl.lambda$onCallback$2(CallbackClientImpl.java:342)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:758)
at java.awt.EventQueue.access$500(EventQueue.java:97)
at java.awt.EventQueue$3.run(EventQueue.java:709)
at java.awt.EventQueue$3.run(EventQueue.java:703)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:74)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:728)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:205)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
FATAL 2024-11-02 14:57:15,526 General error

and afterwards, after a rollback:

=>[AWT-EventQueue-0] CallbackClientImpl.handleException
java.lang.ClassCastException
FATAL 2024-11-02 14:57:53,045 General error

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant