{"action":"created","issue":{"url":"https://api.github.com/repos/deeplearning4j/deeplearning4j/issues/5272","repository_url":"https://api.github.com/repos/deeplearning4j/deeplearning4j","labels_url":"https://api.github.com/repos/deeplearning4j/deeplearning4j/issues/5272/labels{/name}","comments_url":"https://api.github.com/repos/deeplearning4j/deeplearning4j/issues/5272/comments","events_url":"https://api.github.com/repos/deeplearning4j/deeplearning4j/issues/5272/events","html_url":"https://github.com/deeplearning4j/deeplearning4j/issues/5272","id":324857505,"number":5272,"title":"JVM Crash via HistoryProcessor.transform() - ","user":{"login":"AlexDBlack","id":2360237,"avatar_url":"https://avatars0.githubusercontent.com/u/2360237?v=4","gravatar_id":"","url":"https://api.github.com/users/AlexDBlack","html_url":"https://github.com/AlexDBlack","followers_url":"https://api.github.com/users/AlexDBlack/followers","following_url":"https://api.github.com/users/AlexDBlack/following{/other_user}","gists_url":"https://api.github.com/users/AlexDBlack/gists{/gist_id}","starred_url":"https://api.github.com/users/AlexDBlack/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AlexDBlack/subscriptions","organizations_url":"https://api.github.com/users/AlexDBlack/orgs","repos_url":"https://api.github.com/users/AlexDBlack/repos","events_url":"https://api.github.com/users/AlexDBlack/events{/privacy}","received_events_url":"https://api.github.com/users/AlexDBlack/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2018-05-21T09:59:21Z","updated_at":"2018-05-21T09:59:28Z","closed_at":null,"author_association":"MEMBER","body":"_From @edschwarz on March 3, 2018 14:21_\n\n#### Issue Description\r\n\r\nI am using RL4J 0.9.1, building with maven via the \"rl4j-examples\" dependency. I recently started using a Neural Network with a Convolution Layer where the kernel is 3x3 and the target input is 13x4 (card game - gin rummy). I created a version of the DQNFactoryStdConv class to accommodate this. \r\n\r\nWhen i run the generated code in an Amazon Linux \"p2.xlarge\" instance (their Machine Learning instance type), I get a jvm crash. It does not happen immediately, but after a few minutes of processing. The same packaging (a big shaded jar file) seems to run fine on both my Macbook Pro and on a local Mac Mini. \r\n\r\ndoes not crash the jvm\r\ncrashes the jvm\r\n\r\n#### Version Information\r\n\r\nPlease indicate relevant versions, including, if relevant:\r\n\r\n* Deeplearning4j version 0.9.1, rl4j - 0.9.1\r\n     -----> these are linked by building a SHADED jar from my compiled code and the \"rl4j-examples\" maven dependency.\r\n\r\n* platform information (OS, etc)\r\n    target \"hardware\": Amazon EC2 \"p2.xlarge\" instance \r\n    target OS: Linux ip-10-80-0-128 4.9.58-18.55.amzn1.x86_64 #1 SMP Thu Nov 2 04:38:47 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux\r\n    target JVM: crash occurs using both\r\n              java-1.7.0-openjdk-1.7.0.161.x86_64\r\n              java-1.8.0-openjdk-1.8.0.161-0.b14.36.amzn1.x86_64\r\n    build platform: MacBook Pro running OS X 10.12.6. \r\n    build compiler: tried Oracle jdk1.7.0_51.jdk, jdk1.8.0_151.jdk, jdk-9.0.1.jdk for Mac OS X\r\n\r\n* CUDA version, if used\r\n    I am not explicitly specifying this. nvcc output from target Amazon EC2 instance:\r\n\r\nnvcc: NVIDIA (R) Cuda compiler driver\r\nCopyright (c) 2005-2017 NVIDIA Corporation\r\nBuilt on Fri_Sep__1_21:08:03_CDT_2017\r\nCuda compilation tools, release 9.0, V9.0.176\r\n\r\n* NVIDIA driver version, if in use\r\n    I am not explicitly specifying this. nvidia-smi output from target Amazon EC2 instance:\r\n\r\nSat Mar  3 14:18:59 2018       \r\n+-----------------------------------------------------------------------------+\r\n| NVIDIA-SMI 384.81                 Driver Version: 384.81                    |\r\n|-------------------------------+----------------------+----------------------+\r\n| GPU  Name        Persistence-M| Bus-Id        Disp.A | Volatile Uncorr. ECC |\r\n| Fan  Temp  Perf  Pwr:Usage/Cap|         Memory-Usage | GPU-Util  Compute M. |\r\n|===============================+======================+======================|\r\n|   0  Tesla K80           On   | 00000000:00:1E.0 Off |                    0 |\r\n| N/A   35C    P8    31W / 149W |      0MiB / 11439MiB |      0%      Default |\r\n+-------------------------------+----------------------+----------------------+\r\n                                                                               \r\n+-----------------------------------------------------------------------------+\r\n| Processes:                                                       GPU Memory |\r\n|  GPU       PID   Type   Process name                             Usage      |\r\n|=============================================================================|\r\n|  No running processes found                                                 |\r\n+-----------------------------------------------------------------------------+\r\n\r\n#### Contributing\r\n\r\nHappy to contribute code, but I am not a native-code jockey these days. \r\n[hs_err_pid4959.log](https://github.com/deeplearning4j/rl4j/files/1777530/hs_err_pid4959.log)\r\n\r\n[hs_err_pid11505.log](https://github.com/deeplearning4j/rl4j/files/1777531/hs_err_pid11505.log)\r\n\n\n_Copied from original issue: deeplearning4j/rl4j#89_"},"comment":{"url":"https://api.github.com/repos/deeplearning4j/deeplearning4j/issues/comments/390609876","html_url":"https://github.com/deeplearning4j/deeplearning4j/issues/5272#issuecomment-390609876","issue_url":"https://api.github.com/repos/deeplearning4j/deeplearning4j/issues/5272","id":390609876,"user":{"login":"AlexDBlack","id":2360237,"avatar_url":"https://avatars0.githubusercontent.com/u/2360237?v=4","gravatar_id":"","url":"https://api.github.com/users/AlexDBlack","html_url":"https://github.com/AlexDBlack","followers_url":"https://api.github.com/users/AlexDBlack/followers","following_url":"https://api.github.com/users/AlexDBlack/following{/other_user}","gists_url":"https://api.github.com/users/AlexDBlack/gists{/gist_id}","starred_url":"https://api.github.com/users/AlexDBlack/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AlexDBlack/subscriptions","organizations_url":"https://api.github.com/users/AlexDBlack/orgs","repos_url":"https://api.github.com/users/AlexDBlack/repos","events_url":"https://api.github.com/users/AlexDBlack/events{/privacy}","received_events_url":"https://api.github.com/users/AlexDBlack/received_events","type":"User","site_admin":false},"created_at":"2018-05-21T09:59:28Z","updated_at":"2018-05-21T09:59:28Z","author_association":"MEMBER","body":"_From @saudet on March 14, 2018 1:52_\n\nDoes it still work fine on your Mac though? In any case, it's probably something wrong we're doing here:\r\nhttps://github.com/deeplearning4j/rl4j/blob/f515c6bc00dacd442ef9feb523b91b09c8ea3077/rl4j-core/src/main/java/org/deeplearning4j/rl4j/learning/HistoryProcessor.java#L100-L105\r\nThe code expects images with 3 channels. Maybe we're missing a check for that somewhere. Are you using images with 3 channels? In any case, please provide a code snippet to reproduce this! Thanks"}}
{"actor":{"display_login":"AlexDBlack"}}