Build failed in Jenkins: magarena » magarena #1553

5 views
Skip to first unread message

BuildHive

unread,
Jul 29, 2015, 7:57:49 AM7/29/15
to maga...@googlegroups.com
See <https://buildhive.cloudbees.com/job/magarena/job/magarena/1553/changes>

Changes:

[ShawnieBoy] add AI activation restriction to Echoes of the Kin Tree #399

------------------------------------------
[...truncated 17744 lines...]

Turn : 15 Phase : FirstMain Step : Resolve Player : MCTS Score : -288
0] Player : MMABC Life : 8 Delayed : Blue=2 Colorless=1 Total=3
- Hand : Rebuild
- Graveyard : Sell-Sword Brute
- Permanent : Cloud Pirates Power : 1 Toughness : 1 Damage : 0
- Permanent : Copper Carapace
- Permanent : Frontier Bivouac Tapped Summoned
- Permanent : Island
- Permanent : Island
- Permanent : Island
- Permanent : Mischievous Quanar Power : 5 Toughness : 5 Damage : 0
- Permanent : Mountain
- Permanent : Mountain
- Permanent : Rakish Heir Power : 2 Toughness : 2 Damage : 0
- Permanent : Spincrusher Power : 0 Toughness : 2 Damage : 0
- Permanent : Sylvok Replica Power : 1 Toughness : 3 Damage : 0
1] Player : MCTS Life : 3 Delayed : Green=1 Colorless=3 Total=4
- Hand : Deus of Calamity
- Hand : Crookclaw Elder
- Hand : Radjan Spirit
- Hand : Healer's Headdress
- Hand : Borderland Ranger
- Hand : Ethereal Ambush
- Graveyard : Transguild Promenade
- Graveyard : Crookshank Kobolds
- Graveyard : Scourge of Skola Vale
- Graveyard : Wayfarer's Bauble
- Permanent : Forest
- Permanent : Forest
- Permanent : Forest
- Permanent : Island
Stack : 2
- Name : Edge of Autumn Player : MMABC
- Name : Edge of Autumn Player : MCTS
1. ExecuteFirstEventAction = 0
2. AddEventAction (EVENT: NONE Play a card or ability.) = 0
3. ExecuteFirstEventAction = 0
4. ReturnExiledAction = 0
5. AddEventAction (EVENT: NONE Play a card or ability.) = 0
6. ExecuteFirstEventAction = 0
7. AddEventAction (EVENT: NONE Play a card or ability.) = 0
8. ExecuteFirstEventAction = 0
9. CleanupTurnTriggersAction = 0
10. CleanupPlayerAction = 0
11. CleanupPermanentAction = 0
12. CleanupPermanentAction = 0
13. CleanupPermanentAction = 0
14. CleanupPermanentAction = 0
15. CleanupPermanentAction = 0
16. CleanupPermanentAction = 0
17. CleanupPermanentAction = 0
18. CleanupPermanentAction = 0
19. CleanupPermanentAction = 0
20. CleanupPermanentAction = 0
21. CleanupPermanentAction = 0
22. CleanupPlayerAction = 0
23. CleanupPermanentAction = 0
24. CleanupPermanentAction = 0
25. CleanupPermanentAction = 0
26. CleanupPermanentAction = 0
27. CleanupTurnStaticsAction = 0
28. UntapAction (Cloud Pirates) = -10
29. UntapAction (Island) = -5
30. UntapAction (Island) = -5
31. UntapAction (Island) = -5
32. UntapAction (Mischievous Quanar) = -10
33. UntapAction (Mountain) = -5
34. UntapAction (Mountain) = -5
35. ChangeStateAction = 0
36. ChangeStateAction = 0
37. ChangeStateAction = 0
38. ChangeStateAction = 0
39. UntapAction (Sylvok Replica) = -10
40. DrawAction = -300
41. AddEventAction (EVENT: NONE ...) = 0
42. ExecuteFirstEventAction = 0
43. AddEventAction (EVENT: NONE Play a card or ability.) = 0
44. ExecuteFirstEventAction = 0
45. AddEventAction (EVENT: NONE Play a card or ability.) = 0
46. ExecuteFirstEventAction = 0
47. AddEventAction (EVENT: NONE Declare attackers.) = 0
48. ExecuteFirstEventAction = 0
49. DeclareAttackersAction = 0
50. AddEventAction (EVENT: NONE Play a card or ability.) = 0
51. ExecuteFirstEventAction = 0
52. AddEventAction (EVENT: NONE Play a card or ability.) = 0
53. ExecuteFirstEventAction = 0
54. AddEventAction (EVENT: NONE Play a card or ability.) = 0
55. ExecuteFirstEventAction = 0
56. AddEventAction (EVENT: Frontier Bivouac Play Frontier Bivouac. ) = 0
57. ExecuteFirstEventAction = 0
58. RemoveCardAction (Frontier Bivouac) = 641
59. PlayCardAction = 0
60. AddEventAction (EVENT: Frontier Bivouac Put Frontier Bivouac onto the battlefield. ) = 0
61. ExecuteFirstEventAction = 0
62. PlayCardFromStackAction (Frontier Bivouac) = -936
63. TapAction (Frontier Bivouac) = 0
64. AddEventAction (EVENT: NONE Play a card or ability.) = 0
65. ExecuteFirstEventAction = 0
66. PlayAbilityAction = 0
67. AddEventAction (EVENT: Copper Carapace Pay {3}$. Choose how to pay the mana cost.) = 0
68. AddEventAction (EVENT: Copper Carapace Play activated ability of Copper Carapace. ) = 0
69. ExecuteFirstEventAction = 0
70. PayDelayedCostAction = 0
71. ExecuteFirstEventAction = 0
72. PutItemOnStackAction (MagicAbilityOnStack,Copper Carapace) = 1
73. AddEventAction (EVENT: Copper Carapace Choose target creature you control.) = 0
74. ExecuteFirstEventAction = 0
75. AddEventAction (EVENT: NONE Play a card or ability.) = 0
76. ExecuteFirstEventAction = 0
77. AddEventAction (EVENT: NONE Play a card or ability.) = 0
78. ExecuteFirstEventAction = 0
79. StackResolveAction = 0
80. AttachAction = 0
81. AddEventAction (EVENT: NONE Play a card or ability.) = 0
82. ExecuteFirstEventAction = 0
83. AddEventAction (EVENT: NONE Play a card or ability.) = 0
84. ExecuteFirstEventAction = 0
85. ReturnExiledAction = 0
86. AddEventAction (EVENT: NONE Play a card or ability.) = 0
87. ExecuteFirstEventAction = 0
88. AddEventAction (EVENT: NONE Play a card or ability.) = 0
89. ExecuteFirstEventAction = 0
90. TapAction (Wayfarer's Bauble) = -5
91. SacrificeAction (Wayfarer's Bauble,0) = -695
92. RemoveFromCombatAction (Wayfarer's Bauble) = 0
93. MoveCardAction (Wayfarer's Bauble,Play,Graveyard) = 0
94. RemoveTriggersStaticsAction = 0
95. AddEventAction (EVENT: Wayfarer's Bauble Pay {2}$. Choose how to pay the mana cost.) = 0
96. AddEventAction (EVENT: Wayfarer's Bauble Play activated ability of Wayfarer's Bauble. ) = 0
97. ExecuteFirstEventAction = 0
98. PayDelayedCostAction = 0
99. ExecuteFirstEventAction = 0
100. PutItemOnStackAction (MagicAbilityOnStack,Wayfarer's Bauble) = -1
101. AddEventAction (EVENT: NONE Play a card or ability.) = 0
102. ExecuteFirstEventAction = 0
103. AddEventAction (EVENT: NONE Play a card or ability.) = 0
104. ExecuteFirstEventAction = 0
105. StackResolveAction = 0
106. AddEventAction (EVENT: Wayfarer's Bauble Choose a basic land card from your library.) = 0
107. ExecuteFirstEventAction = 0
108. AIRevealAction = 0
109. RemoveCardAction (Forest) = 0
110. PlayCardAction = 0
111. AddEventAction (EVENT: Forest Put Forest onto the battlefield. ) = 0
112. ShuffleLibraryAction = 0
113. ExecuteFirstEventAction = 0
114. PlayCardFromStackAction (Forest) = 707
115. AddEventAction (EVENT: NONE Play a card or ability.) = 0
116. ExecuteFirstEventAction = 0
117. AddEventAction (EVENT: NONE Play a card or ability.) = 0
118. ExecuteFirstEventAction = 0
119. CleanupTurnTriggersAction = 0
120. CleanupPlayerAction = 0
121. CleanupPermanentAction = 0
122. CleanupPermanentAction = 0
123. CleanupPermanentAction = 0
124. CleanupPermanentAction = 0
125. CleanupPermanentAction = 0
126. CleanupPermanentAction = 0
127. CleanupPermanentAction = 0
128. CleanupPermanentAction = 0
129. CleanupPermanentAction = 0
130. CleanupPermanentAction = 0
131. CleanupPermanentAction = 0
132. CleanupPermanentAction = 0
133. CleanupPlayerAction = 0
134. CleanupPermanentAction = 0
135. CleanupPermanentAction = 0
136. CleanupPermanentAction = 0
137. CleanupPermanentAction = 0
138. CleanupTurnStaticsAction = 0
139. PayDelayedCostsAction = 0
140. ChangeStateAction = 0
141. ChangeStateAction = 0
142. UntapAction (Forest) = 5
143. UntapAction (Island) = 5
144. DrawAction = 297
145. AddEventAction (EVENT: NONE ...) = 0
146. ExecuteFirstEventAction = 0
147. AddEventAction (EVENT: NONE Play a card or ability.) = 0
148. ExecuteFirstEventAction = 0
149. AddEventAction (EVENT: Edge of Autumn Pay {1}{G}$. Choose how to pay the mana cost.) = 0
150. AddEventAction (EVENT: Edge of Autumn Play Edge of Autumn. ) = 0
151. ExecuteFirstEventAction = 0
152. PayDelayedCostAction = 0
153. ExecuteFirstEventAction = 0
154. RemoveCardAction (Edge of Autumn) = -297
155. PutItemOnStackAction (MagicCardOnStack,Edge of Autumn) = -1
156. AddEventAction (EVENT: Edge of Autumn ) = 0
157. ExecuteFirstEventAction = 0
158. AddEventAction (EVENT: NONE Play a card or ability.) = 0
159. ExecuteFirstEventAction = 0
160. AddEventAction (EVENT: NONE Play a card or ability.) = 0
161. ExecuteFirstEventAction = 0
162. AddEventAction (EVENT: Mischievous Quanar Pay {1}{U}{U}$. Choose how to pay the mana cost.) = 0
163. AddEventAction (EVENT: Mischievous Quanar ) = 0
164. ExecuteFirstEventAction = 0
165. PayDelayedCostAction = 0
166. ExecuteFirstEventAction = 0
167. TurnFaceUpAction = 0
168. ChangeStateAction = 0
169. EnqueueTriggerAction = 0
170. PutItemOnStackAction (MagicTriggerOnStack,Mischievous Quanar) = 1
171. AddEventAction (EVENT: Mischievous Quanar Choose target instant or sorcery spell.) = 0
172. DequeueTriggerAction = 0
173. AddEventAction (EVENT: NONE Play a card or ability.) = 0
174. ExecuteFirstEventAction = 0
175. ExecuteFirstEventAction = 0
176. StackResolveAction = 0
177. CopyCardOnStackAction (Edge of Autumn) = 0
Score = -633

Exception from controller.runGame: magic.exception.GameException: java.lang.RuntimeException: getTargetChoice called on MagicEvent.NONE
magic.exception.GameException: magic.exception.GameException: java.lang.RuntimeException: getTargetChoice called on MagicEvent.NONE
at magic.model.MagicGame.doAction(MagicGame.java:556)
at magic.model.phase.MagicPhase.executePhase(MagicPhase.java:43)
at magic.model.MagicGame.executePhase(MagicGame.java:470)
at magic.model.MagicGame.advanceToNextEventWithChoice(MagicGame.java:784)
at magic.ai.MCTSAI.runSimulation(MCTSAI.java:452)
at magic.ai.MCTSAI.randomPlay(MCTSAI.java:428)
at magic.ai.MCTSAI.access$000(MCTSAI.java:63)
at magic.ai.MCTSAI$2.run(MCTSAI.java:189)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)
Caused by: magic.exception.GameException: java.lang.RuntimeException: getTargetChoice called on MagicEvent.NONE
at magic.model.MagicGame.doAction(MagicGame.java:556)
at magic.model.event.MagicRuleEventAction$137$1.doAction(MagicRuleEventAction.java:2810)
at magic.model.event.MagicEvent.processTargetCardOnStack(MagicEvent.java:593)
at magic.model.event.MagicRuleEventAction$137.executeEvent(MagicRuleEventAction.java:2808)
at magic.model.event.MagicRuleEventAction$164$1.executeEvent(MagicRuleEventAction.java:3769)
at magic.model.event.MagicEvent.executeEvent(MagicEvent.java:659)
at magic.model.MagicGame.executeEvent(MagicGame.java:765)
at magic.model.stack.MagicItemOnStack.resolve(MagicItemOnStack.java:122)
at magic.model.action.StackResolveAction.doAction(StackResolveAction.java:13)
at magic.model.MagicGame.doAction(MagicGame.java:554)
... 10 more
Caused by: java.lang.RuntimeException: getTargetChoice called on MagicEvent.NONE
at magic.model.event.MagicEvent$1.getTargetChoice(MagicEvent.java:80)
at magic.model.action.CopyCardOnStackAction.doAction(CopyCardOnStackAction.java:22)
at magic.model.MagicGame.doAction(MagicGame.java:554)
... 19 more


make: *** [buildhive] Error 1
Build step 'Execute shell' marked build as failure
Archiving artifacts

ShawnieBoy

unread,
Jul 29, 2015, 8:27:39 AM7/29/15
to Magarena, buildhiv...@cloudbees.com
Could this be due to the Quanar effect having the option to have a new target for the copy - even though the original has no real target.

Melvin Zhang

unread,
Jul 29, 2015, 9:00:12 AM7/29/15
to maga...@googlegroups.com
No, it is because Edge of Autumn's event on the stack is MagicEvent.NONE. I thought it was solved by adding the casting restriction in https://github.com/magarena/magarena/commit/c6abcbba51b0a4f86a66b4223377f2dfdeda5ce2

Due to the way "if condition" is implemented, if you try to cast the spell and the condition is false, MagicEvent.NONE is returned. It is designed this way to allow it to work for triggers which return MagicEvent.NONE when there is nothing to trigger.

However, when used on a spell effect, it stores the NONE event in the card on stack. This causes problems when other spells try to call methods on the event in the card on stack.

Adding the casting restriction should have prevented casting the spell when the condition is false.. but it doesn't seem to be working.

Another card with the problem is Gift of Estates.

--
You received this message because you are subscribed to the Google Groups "Magarena" group.
To unsubscribe from this group and stop receiving emails from it, send an email to magarena+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

BuildHive

unread,
Jul 29, 2015, 10:26:38 AM7/29/15
to maga...@googlegroups.com

ShawnieBoy

unread,
Jul 30, 2015, 5:04:43 AM7/30/15
to Magarena, melvi...@gmail.com
Ahh, I see now.

It kind of needs a way to intercept the event calls if there's no event involved.
Reply all
Reply to author
Forward
0 new messages