{"action":"created","issue":{"url":"https://api.github.com/repos/odlgroup/odl/issues/162","labels_url":"https://api.github.com/repos/odlgroup/odl/issues/162/labels{/name}","comments_url":"https://api.github.com/repos/odlgroup/odl/issues/162/comments","events_url":"https://api.github.com/repos/odlgroup/odl/issues/162/events","html_url":"https://github.com/odlgroup/odl/pull/162","id":122259885,"number":162,"title":"Pybind11","user":{"login":"adler-j","id":2202312,"avatar_url":"https://avatars.githubusercontent.com/u/2202312?v=3","gravatar_id":"","url":"https://api.github.com/users/adler-j","html_url":"https://github.com/adler-j","followers_url":"https://api.github.com/users/adler-j/followers","following_url":"https://api.github.com/users/adler-j/following{/other_user}","gists_url":"https://api.github.com/users/adler-j/gists{/gist_id}","starred_url":"https://api.github.com/users/adler-j/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adler-j/subscriptions","organizations_url":"https://api.github.com/users/adler-j/orgs","repos_url":"https://api.github.com/users/adler-j/repos","events_url":"https://api.github.com/users/adler-j/events{/privacy}","received_events_url":"https://api.github.com/users/adler-j/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":30,"created_at":"2015-12-15T12:14:07Z","updated_at":"2015-12-22T22:29:19Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/odlgroup/odl/pulls/162","html_url":"https://github.com/odlgroup/odl/pull/162","diff_url":"https://github.com/odlgroup/odl/pull/162.diff","patch_url":"https://github.com/odlgroup/odl/pull/162.patch"},"body":"Example of how pybind 11 would work. Most changes are in the odlpp library (also has a branch). Removed test for case that shouldnt fail (`test_getslice_index_error`).\r\n\r\nThe main issue with pybind11 that i see is that the developer intends to support VS2015 and up, but we need VS2013 support for now, at least until CUDA works with VS2015. Currently this works, but I'll see if we can get VS2013 support into pybind before we proceeed."},"comment":{"url":"https://api.github.com/repos/odlgroup/odl/issues/comments/166751474","html_url":"https://github.com/odlgroup/odl/pull/162#issuecomment-166751474","issue_url":"https://api.github.com/repos/odlgroup/odl/issues/162","id":166751474,"user":{"login":"kohr-h","id":5030250,"avatar_url":"https://avatars.githubusercontent.com/u/5030250?v=3","gravatar_id":"","url":"https://api.github.com/users/kohr-h","html_url":"https://github.com/kohr-h","followers_url":"https://api.github.com/users/kohr-h/followers","following_url":"https://api.github.com/users/kohr-h/following{/other_user}","gists_url":"https://api.github.com/users/kohr-h/gists{/gist_id}","starred_url":"https://api.github.com/users/kohr-h/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kohr-h/subscriptions","organizations_url":"https://api.github.com/users/kohr-h/orgs","repos_url":"https://api.github.com/users/kohr-h/repos","events_url":"https://api.github.com/users/kohr-h/events{/privacy}","received_events_url":"https://api.github.com/users/kohr-h/received_events","type":"User","site_admin":false},"created_at":"2015-12-22T22:29:19Z","updated_at":"2015-12-22T22:29:19Z","body":"Getting the following error:\r\n```\r\ncuda_test.py ....*** Error in `/home/hkohr/.virtualenvs/odl-py3.4/bin/python3.4': double free or corruption (fasttop): 0x0000000003374630 ***\r\n======= Backtrace: =========\r\n/lib64/libc.so.6(+0x77a17)[0x7f3dc6e1ba17]\r\n/lib64/libc.so.6(+0x7d897)[0x7f3dc6e21897]\r\n/lib64/libc.so.6(+0x7e0fb)[0x7f3dc6e220fb]\r\n/home/hkohr/.virtualenvs/odl-py3.4/lib64/python3.4/site-packages/odlpp/odlpp_cuda.so(_ZN8pybind116bufferD1Ev+0x59)[0x7f3dc04499b1]\r\n/home/hkohr/.virtualenvs/odl-py3.4/lib64/python3.4/site-packages/odlpp/odlpp_cuda.so(_ZN8pybind115arrayD1Ev+0x38)[0x7f3dc044e894]\r\n/home/hkohr/.virtualenvs/odl-py3.4/lib64/python3.4/site-packages/odlpp/odlpp_cuda.so(_ZZN8pybind1112cpp_functionC4INS_5arrayEIR14CudaVectorImplIfENS_5sliceEEINS_4nameENS_7siblingENS_9is_methodEEEEPFT_DpT0_EDpOT1_ENKUlPNS0_14function_entryEP7_objectSL_SL_E_clESJ_SL_SL_SL_+0xe3)[0x7f3dc04ca0bd]\r\n/home/hkohr/.virtualenvs/odl-py3.4/lib64/python3.4/site-packages/odlpp/odlpp_cuda.so(_ZZN8pybind1112cpp_functionC4INS_5arrayEJR14CudaVectorImplIfENS_5sliceEEJNS_4nameENS_7siblingENS_9is_methodEEEEPFT_DpT0_EDpOT1_ENUlPNS0_14function_entryEP7_objectSL_SL_E_4_FUNESJ_SL_SL_SL_+0x58)[0x7f3dc04ca374]\r\n/home/hkohr/.virtualenvs/odl-py3.4/lib64/python3.4/site-packages/odlpp/odlpp_cuda.so(_ZN8pybind1112cpp_function10dispatcherEP7_objectS2_S2_+0x1b1)[0x7f3dc044beb2]\r\n/usr/lib64/libpython3.4.so.1.0(PyEval_EvalFrameEx+0x66dd)[0x7f3dc7487b9d]\r\n/usr/lib64/libpython3.4.so.1.0(PyEval_EvalCodeEx+0x85e)[0x7f3dc748997e]\r\n/usr/lib64/libpython3.4.so.1.0(+0x8ca83)[0x7f3dc73fda83]\r\n/usr/lib64/libpython3.4.so.1.0(PyObject_Call+0x68)[0x7f3dc73d5f28]\r\n/usr/lib64/libpython3.4.so.1.0(PyEval_EvalFrameEx+0xdca)[0x7f3dc748228a]\r\n/usr/lib64/libpython3.4.so.1.0(PyEval_EvalCodeEx+0x85e)[0x7f3dc748997e]\r\n/usr/lib64/libpython3.4.so.1.0(+0x8c9a6)[0x7f3dc73fd9a6]\r\n/usr/lib64/libpython3.4.so.1.0(PyObject_Call+0x68)[0x7f3dc73d5f28]\r\n/usr/lib64/libpython3.4.so.1.0(PyEval_EvalFrameEx+0xdca)[0x7f3dc748228a]\r\n/usr/lib64/libpython3.4.so.1.0(PyEval_EvalCodeEx+0x85e)[0x7f3dc748997e]\r\n/usr/lib64/libpython3.4.so.1.0(PyEval_EvalFrameEx+0x5904)[0x7f3dc7486dc4]\r\n/usr/lib64/libpython3.4.so.1.0(PyEval_EvalCodeEx+0x85e)[0x7f3dc748997e]\r\n/usr/lib64/libpython3.4.so.1.0(PyEval_EvalFrameEx+0x5904)[0x7f3dc7486dc4]\r\n/usr/lib64/libpython3.4.so.1.0(PyEval_EvalFrameEx+0x7820)[0x7f3dc7488ce0]\r\n/usr/lib64/libpython3.4.so.1.0(PyEval_EvalCodeEx+0x85e)[0x7f3dc748997e]\r\n/usr/lib64/libpython3.4.so.1.0(+0x8ca83)[0x7f3dc73fda83]\r\n/usr/lib64/libpython3.4.so.1.0(PyObject_Call+0x68)[0x7f3dc73d5f28]\r\n/usr/lib64/libpython3.4.so.1.0(+0x7917d)[0x7f3dc73ea17d]\r\n/usr/lib64/libpython3.4.so.1.0(PyObject_Call+0x68)[0x7f3dc73d5f28]\r\n/usr/lib64/libpython3.4.so.1.0(+0xbae20)[0x7f3dc742be20]\r\n/usr/lib64/libpython3.4.so.1.0(PyObject_Call+0x68)[0x7f3dc73d5f28]\r\n/usr/lib64/libpython3.4.so.1.0(PyEval_EvalFrameEx+0x2296)[0x7f3dc7483756]\r\n/usr/lib64/libpython3.4.so.1.0(PyEval_EvalFrameEx+0x7820)[0x7f3dc7488ce0]\r\n/usr/lib64/libpython3.4.so.1.0(PyEval_EvalCodeEx+0x85e)[0x7f3dc748997e]\r\n/usr/lib64/libpython3.4.so.1.0(+0x8c9a6)[0x7f3dc73fd9a6]\r\n/usr/lib64/libpython3.4.so.1.0(PyObject_Call+0x68)[0x7f3dc73d5f28]\r\n/usr/lib64/libpython3.4.so.1.0(PyEval_EvalFrameEx+0xdca)[0x7f3dc748228a]\r\n/usr/lib64/libpython3.4.so.1.0(PyEval_EvalCodeEx+0x85e)[0x7f3dc748997e]\r\n/usr/lib64/libpython3.4.so.1.0(PyEval_EvalFrameEx+0x5904)[0x7f3dc7486dc4]\r\n/usr/lib64/libpython3.4.so.1.0(PyEval_EvalCodeEx+0x85e)[0x7f3dc748997e]\r\n/usr/lib64/libpython3.4.so.1.0(+0x8c9a6)[0x7f3dc73fd9a6]\r\n/usr/lib64/libpython3.4.so.1.0(PyObject_Call+0x68)[0x7f3dc73d5f28]\r\n/usr/lib64/libpython3.4.so.1.0(+0x7917d)[0x7f3dc73ea17d]\r\n/usr/lib64/libpython3.4.so.1.0(PyObject_Call+0x68)[0x7f3dc73d5f28]\r\n/usr/lib64/libpython3.4.so.1.0(+0xbaaf0)[0x7f3dc742baf0]\r\n/usr/lib64/libpython3.4.so.1.0(+0xb86c6)[0x7f3dc74296c6]\r\n/usr/lib64/libpython3.4.so.1.0(PyObject_Call+0x68)[0x7f3dc73d5f28]\r\n/usr/lib64/libpython3.4.so.1.0(PyEval_EvalFrameEx+0x2296)[0x7f3dc7483756]\r\n/usr/lib64/libpython3.4.so.1.0(PyEval_EvalFrameEx+0x7820)[0x7f3dc7488ce0]\r\n/usr/lib64/libpython3.4.so.1.0(PyEval_EvalCodeEx+0x85e)[0x7f3dc748997e]\r\n/usr/lib64/libpython3.4.so.1.0(PyEval_EvalFrameEx+0x5904)[0x7f3dc7486dc4]\r\n/usr/lib64/libpython3.4.so.1.0(PyEval_EvalCodeEx+0x85e)[0x7f3dc748997e]\r\n/usr/lib64/libpython3.4.so.1.0(PyEval_EvalFrameEx+0x5904)[0x7f3dc7486dc4]\r\n/usr/lib64/libpython3.4.so.1.0(PyEval_EvalFrameEx+0x7820)[0x7f3dc7488ce0]\r\n/usr/lib64/libpython3.4.so.1.0(PyEval_EvalCodeEx+0x85e)[0x7f3dc748997e]\r\n/usr/lib64/libpython3.4.so.1.0(+0x8ca83)[0x7f3dc73fda83]\r\n/usr/lib64/libpython3.4.so.1.0(PyObject_Call+0x68)[0x7f3dc73d5f28]\r\n/usr/lib64/libpython3.4.so.1.0(+0x7917d)[0x7f3dc73ea17d]\r\n/usr/lib64/libpython3.4.so.1.0(PyObject_Call+0x68)[0x7f3dc73d5f28]\r\n/usr/lib64/libpython3.4.so.1.0(+0xbae20)[0x7f3dc742be20]\r\n/usr/lib64/libpython3.4.so.1.0(PyObject_Call+0x68)[0x7f3dc73d5f28]\r\n/usr/lib64/libpython3.4.so.1.0(PyEval_EvalFrameEx+0xdca)[0x7f3dc748228a]\r\n/usr/lib64/libpython3.4.so.1.0(PyEval_EvalCodeEx+0x85e)[0x7f3dc748997e]\r\n/usr/lib64/libpython3.4.so.1.0(PyEval_EvalFrameEx+0x5904)[0x7f3dc7486dc4]\r\n/usr/lib64/libpython3.4.so.1.0(PyEval_EvalCodeEx+0x85e)[0x7f3dc748997e]\r\n======= Memory map: ========\r\n...\r\n```\r\nDeleted all old installations before and cleaned build environment. I'll check if all references to submodules are correct."}}