{"action":"created","issue":{"url":"https://api.github.com/repos/apache/incubator-mxnet/issues/5146","repository_url":"https://api.github.com/repos/apache/incubator-mxnet","labels_url":"https://api.github.com/repos/apache/incubator-mxnet/issues/5146/labels{/name}","comments_url":"https://api.github.com/repos/apache/incubator-mxnet/issues/5146/comments","events_url":"https://api.github.com/repos/apache/incubator-mxnet/issues/5146/events","html_url":"https://github.com/apache/incubator-mxnet/issues/5146","id":210225589,"number":5146,"title":"Weird align issue when training on datasets other than mnist","user":{"login":"stoneyang","id":1033186,"avatar_url":"https://avatars0.githubusercontent.com/u/1033186?v=4","gravatar_id":"","url":"https://api.github.com/users/stoneyang","html_url":"https://github.com/stoneyang","followers_url":"https://api.github.com/users/stoneyang/followers","following_url":"https://api.github.com/users/stoneyang/following{/other_user}","gists_url":"https://api.github.com/users/stoneyang/gists{/gist_id}","starred_url":"https://api.github.com/users/stoneyang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stoneyang/subscriptions","organizations_url":"https://api.github.com/users/stoneyang/orgs","repos_url":"https://api.github.com/users/stoneyang/repos","events_url":"https://api.github.com/users/stoneyang/events{/privacy}","received_events_url":"https://api.github.com/users/stoneyang/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-02-25T10:09:25Z","updated_at":"2017-09-13T03:35:22Z","closed_at":"2017-09-13T03:35:22Z","author_association":"NONE","body":"## Environment info\r\nOperating System: Ubuntu 16.04\r\nCompiler: GCC 4.9.4\r\nPackage used (Python/R/Scala/Julia): Python\r\nMXNet commit hash (`git rev-parse HEAD`): 5e5f19a\r\nPython version and distribution: 2.7.12 GCC 5.4.0 20160609\r\n\r\n## Error Message:\r\nSegmentation fault (core dumped)\r\n\r\n## Steps to reproduce\r\n\r\n1. compile mxnet according to the official tutorial\r\n2. go to python directory and input `sudo python setup.py install`\r\n3. run `python train_cifar10.py` (as stated in the title, we can sucessfully train model on mnist by running `train_mnist.py`), then the error message:\r\n\r\nINFO:root:start with arguments Namespace(batch_size=128, benchmark=0, data_nthreads=4, data_train='data/cifar10_train.rec', data_val='data/cifar10_val.rec', disp_batches=20, dtype='float32', gpus=None, image_shape='3,28,28', kv_store='device', load_epoch=None,)\r\n[18:05:28] src/io/iter_image_recordio.cc:221: ImageRecordIOParser: data/cifar10_train.rec, use 4 threads for decoding..\r\n[18:05:28] /opt/share1/xxx/Engine/mxnet/dmlc-core/include/dmlc/./logging.h:300: [18:05:28] src/io/input_split_base.cc:23: Check failed: files_[i].size % align_bytes == 0 file do not align by 4 bytes\r\n\r\nStack trace returned 10 entries:\r\n[bt] (0) /usr/local/lib/python2.7/dist-packages/mxnet-0.9.4-py2.7.egg/mxnet/libmxnet.so(_ZN4dmlc15LogMessageFatalD1Ev+0x3c) [0x7f2a7a136f0c]\r\n[bt] (1) /usr/local/lib/python2.7/dist-packages/mxnet-0.9.4-py2.7.egg/mxnet/libmxnet.so(_ZN4dmlc2io14InputSplitBase4InitEPNS0_10FileSystemEPKcm+0x1ad) [0x7f2a7adbec5d]\r\n[bt] (2) /usr/local/lib/python2.7/dist-packages/mxnet-0.9.4-py2.7.egg/mxnet/libmxnet.so(_ZN4dmlc10InputSplit6CreateEPKcjjS2_+0xe2e) [0x7f2a7ad8eefe]\r\n[bt] (3) /usr/local/lib/python2.7/dist-packages/mxnet-0.9.4-py2.7.egg/mxnet/libmxnet.so(_ZN5mxnet2io19ImageRecordIOParserIfE4InitERKSt6vectorISt4pairISsSsESaIS5_EE+0x76a) [0x7f2a7a9fceda]\r\n[bt] (4) /usr/local/lib/python2.7/dist-packages/mxnet-0.9.4-py2.7.egg/mxnet/libmxnet.so(_ZN5mxnet2io15ImageRecordIterIfE4InitERKSt6vectorISt4pairISsSsESaIS5_EE+0x8a) [0x7f2a7a9fd3ba]\r\n[bt] (5) /usr/local/lib/python2.7/dist-packages/mxnet-0.9.4-py2.7.egg/mxnet/libmxnet.so(_ZN5mxnet2io18ImageNormalizeIter4InitERKSt6vectorISt4pairISsSsESaIS4_EE+0x88) [0x7f2a7a9f9508]\r\n[bt] (6) /usr/local/lib/python2.7/dist-packages/mxnet-0.9.4-py2.7.egg/mxnet/libmxnet.so(_ZN5mxnet2io11BatchLoader4InitERKSt6vectorISt4pairISsSsESaIS4_EE+0x48f) [0x7f2a7a9cdc9f]\r\n[bt] (7) /usr/local/lib/python2.7/dist-packages/mxnet-0.9.4-py2.7.egg/mxnet/libmxnet.so(_ZN5mxnet2io14PrefetcherIter4InitERKSt6vectorISt4pairISsSsESaIS4_EE+0x1fc) [0x7f2a7a9ce5fc]\r\n[bt] (8) /usr/local/lib/python2.7/dist-packages/mxnet-0.9.4-py2.7.egg/mxnet/libmxnet.so(MXDataIterCreateIter+0x2c8) [0x7f2a7ad477d8]\r\n[bt] (9) /usr/lib/x86_64-linux-gnu/libffi.so.6(ffi_call_unix64+0x4c) [0x7f2ad4936e40]\r\n\r\nTraceback (most recent call last):\r\n  File \"train_cifar10.py\", line 53, in <module>\r\n    fit.fit(args, sym, data.get_rec_iter)\r\n  File \"/opt/share1/xxx/Engine/mxnet/example/image-classification/common/fit.py\", line 105, in fit\r\n    (train, val) = data_loader(args, kv)\r\n  File \"/opt/share1/xxx/Engine/mxnet/example/image-classification/common/data.py\", line 134, in get_rec_iter\r\n    part_index          = rank)\r\n  File \"/usr/local/lib/python2.7/dist-packages/mxnet-0.9.4-py2.7.egg/mxnet/io.py\", line 667, in creator\r\n    ctypes.byref(iter_handle)))\r\n  File \"/usr/local/lib/python2.7/dist-packages/mxnet-0.9.4-py2.7.egg/mxnet/base.py\", line 77, in check_call\r\n    raise MXNetError(py_str(_LIB.MXGetLastError()))\r\nmxnet.base.MXNetError: [18:05:28] src/io/input_split_base.cc:23: Check failed: files_[i].size % align_bytes == 0 file do not align by 4 bytes\r\n\r\nStack trace returned 10 entries:\r\n[bt] (0) /usr/local/lib/python2.7/dist-packages/mxnet-0.9.4-py2.7.egg/mxnet/libmxnet.so(_ZN4dmlc15LogMessageFatalD1Ev+0x3c) [0x7f2a7a136f0c]\r\n[bt] (1) /usr/local/lib/python2.7/dist-packages/mxnet-0.9.4-py2.7.egg/mxnet/libmxnet.so(_ZN4dmlc2io14InputSplitBase4InitEPNS0_10FileSystemEPKcm+0x1ad) [0x7f2a7adbec5d]\r\n[bt] (2) /usr/local/lib/python2.7/dist-packages/mxnet-0.9.4-py2.7.egg/mxnet/libmxnet.so(_ZN4dmlc10InputSplit6CreateEPKcjjS2_+0xe2e) [0x7f2a7ad8eefe]\r\n[bt] (3) /usr/local/lib/python2.7/dist-packages/mxnet-0.9.4-py2.7.egg/mxnet/libmxnet.so(_ZN5mxnet2io19ImageRecordIOParserIfE4InitERKSt6vectorISt4pairISsSsESaIS5_EE+0x76a) [0x7f2a7a9fceda]\r\n[bt] (4) /usr/local/lib/python2.7/dist-packages/mxnet-0.9.4-py2.7.egg/mxnet/libmxnet.so(_ZN5mxnet2io15ImageRecordIterIfE4InitERKSt6vectorISt4pairISsSsESaIS5_EE+0x8a) [0x7f2a7a9fd3ba]\r\n[bt] (5) /usr/local/lib/python2.7/dist-packages/mxnet-0.9.4-py2.7.egg/mxnet/libmxnet.so(_ZN5mxnet2io18ImageNormalizeIter4InitERKSt6vectorISt4pairISsSsESaIS4_EE+0x88) [0x7f2a7a9f9508]\r\n[bt] (6) /usr/local/lib/python2.7/dist-packages/mxnet-0.9.4-py2.7.egg/mxnet/libmxnet.so(_ZN5mxnet2io11BatchLoader4InitERKSt6vectorISt4pairISsSsESaIS4_EE+0x48f) [0x7f2a7a9cdc9f]\r\n[bt] (7) /usr/local/lib/python2.7/dist-packages/mxnet-0.9.4-py2.7.egg/mxnet/libmxnet.so(_ZN5mxnet2io14PrefetcherIter4InitERKSt6vectorISt4pairISsSsESaIS4_EE+0x1fc) [0x7f2a7a9ce5fc]\r\n[bt] (8) /usr/local/lib/python2.7/dist-packages/mxnet-0.9.4-py2.7.egg/mxnet/libmxnet.so(MXDataIterCreateIter+0x2c8) [0x7f2a7ad477d8]\r\n[bt] (9) /usr/lib/x86_64-linux-gnu/libffi.so.6(ffi_call_unix64+0x4c) [0x7f2ad4936e40]\r\n"},"comment":{"url":"https://api.github.com/repos/apache/incubator-mxnet/issues/comments/329049498","html_url":"https://github.com/apache/incubator-mxnet/issues/5146#issuecomment-329049498","issue_url":"https://api.github.com/repos/apache/incubator-mxnet/issues/5146","id":329049498,"user":{"login":"stoneyang","id":1033186,"avatar_url":"https://avatars0.githubusercontent.com/u/1033186?v=4","gravatar_id":"","url":"https://api.github.com/users/stoneyang","html_url":"https://github.com/stoneyang","followers_url":"https://api.github.com/users/stoneyang/followers","following_url":"https://api.github.com/users/stoneyang/following{/other_user}","gists_url":"https://api.github.com/users/stoneyang/gists{/gist_id}","starred_url":"https://api.github.com/users/stoneyang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stoneyang/subscriptions","organizations_url":"https://api.github.com/users/stoneyang/orgs","repos_url":"https://api.github.com/users/stoneyang/repos","events_url":"https://api.github.com/users/stoneyang/events{/privacy}","received_events_url":"https://api.github.com/users/stoneyang/received_events","type":"User","site_admin":false},"created_at":"2017-09-13T03:35:22Z","updated_at":"2017-09-13T03:35:22Z","author_association":"NONE","body":"Closed due to inactivity."}}
{"actor":{"display_login":"stoneyang"}}