# TicTacToeData Op Code Error

**URL:** <https://community.konduit.ai/t/tictactoedata-op-code-error/3338>\
**Category:** DL4J\
**Created:** [March 13, 2025, 6:53pm UTC](https://community.konduit.ai/t/tictactoedata-op-code-error/3338 "2025-03-13T18:53:57Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mrenzi](https://avatars.discourse-cdn.com/v4/letter/m/82dd89/32.png) [@mrenzi](https://community.konduit.ai/u/mrenzi)\
**Post date:** [March 13, 2025, 6:53pm UTC](https://community.konduit.ai/t/tictactoedata-op-code-error/3338/1 "2025-03-13T18:53:57Z")

</div>

Hi - I am trying to get the TicTacToe dl4j example working. Since I don’t have the data file example, I’m using TicTacToeData (part of the example package) to generate the data file. It is failing with an op code exception when trying to put an INDArray object into a hashmap - (apparently INDArray does not support the java object hashcode method?). This is the stack trace:  
java.lang.RuntimeException: Op [hashcode] execution failed  
at org.nd4j.linalg.cpu.nativecpu.ops.NativeOpExecutioner.exec(NativeOpExecutioner.java:1710)  
at org.nd4j.linalg.factory.Nd4j.exec(Nd4j.java:6606)  
at org.nd4j.linalg.api.ndarray.BaseNDArray.hashCode(BaseNDArray.java:4552)  
at java.base/java.util.HashMap.hash(HashMap.java:338)  
at java.base/java.util.HashMap.put(HashMap.java:610)  
at org.deeplearning4j.examples.tictactoe.TicTacToeData.generateGameStatesAndRewardToIt(TicTacToeData.java:199)

Appreciate any help.

---

<div class="post-metadata">

**Author:** ![agibsonccc](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.konduit.ai/agibsonccc/32/697_2.png) [@agibsonccc](https://community.konduit.ai/u/agibsonccc)\
**Post date:** [March 14, 2025, 1:37am UTC](https://community.konduit.ai/t/tictactoedata-op-code-error/3338/2 "2025-03-14T01:37:28Z")

</div>

@mrenzi I answered our question on data. Is there more to the stack trace?
