{"action":"created","issue":{"url":"https://api.github.com/repos/arvidn/libtorrent/issues/572","repository_url":"https://api.github.com/repos/arvidn/libtorrent","labels_url":"https://api.github.com/repos/arvidn/libtorrent/issues/572/labels{/name}","comments_url":"https://api.github.com/repos/arvidn/libtorrent/issues/572/comments","events_url":"https://api.github.com/repos/arvidn/libtorrent/issues/572/events","html_url":"https://github.com/arvidn/libtorrent/issues/572","id":144951408,"number":572,"title":"Assertion failed on piece_priorities might lead to failed boost assertion, aborting running program","user":{"login":"ardhipoetra","id":2739025,"avatar_url":"https://avatars.githubusercontent.com/u/2739025?v=3","gravatar_id":"","url":"https://api.github.com/users/ardhipoetra","html_url":"https://github.com/ardhipoetra","followers_url":"https://api.github.com/users/ardhipoetra/followers","following_url":"https://api.github.com/users/ardhipoetra/following{/other_user}","gists_url":"https://api.github.com/users/ardhipoetra/gists{/gist_id}","starred_url":"https://api.github.com/users/ardhipoetra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ardhipoetra/subscriptions","organizations_url":"https://api.github.com/users/ardhipoetra/orgs","repos_url":"https://api.github.com/users/ardhipoetra/repos","events_url":"https://api.github.com/users/ardhipoetra/events{/privacy}","received_events_url":"https://api.github.com/users/ardhipoetra/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/arvidn/libtorrent/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-03-31T16:33:48Z","updated_at":"2016-04-03T13:26:17Z","closed_at":null,"body":"Howdy guys, I got a failed assertion like this (it's on asserts.log)\r\n\r\n```\r\nassertion failed. Please file a bugreport at https://github.com/arvidn/libtorrent/issues\r\nPlease include the following information:\r\n\r\nversion: 1.0.9.0\r\nca54dc0\r\n\r\nfile: 'src/torrent.cpp'\r\nline: 4107\r\nfunction: void libtorrent::torrent::piece_priorities(std::vector<int>*) const\r\nexpression: m_picker.get()\r\n\r\n\r\nstack:\r\n1: assert_fail(char const*, int, char const*, char const*, char const*, int)\r\n2:\r\n3:\r\n4:\r\n5:\r\n6:\r\n7:\r\n8:\r\n9:\r\n10:\r\n11:\r\n12:\r\n13:\r\n14:\r\n15:\r\n16: boost::asio::detail::task_io_service::do_run_one(boost::asio::detail::scoped_lock<boost::asio::detail::posix_mutex>&, boost::asio::detail::task_io_service_thread_info&, boost::system::error_code const&)\r\n17: boost::asio::detail::task_io_service::run(boost::system::error_code&)\r\n18: boost::asio::io_service::run(boost::system::error_code&)\r\n19:\r\n20:\r\n21:\r\n22:\r\n23:\r\n24: boost_asio_detail_posix_thread_function\r\n25:\r\n26: clone\r\n```\r\n\r\nIn the same time, my program got aborted and quit prematurely. The output was : \r\n```\r\npython2.7: /usr/include/boost/smart_ptr/scoped_ptr.hpp:99: T* boost::scoped_ptr<T>::operator->() const [with T = libtorrent::piece_picker]: Assertion `px != 0' failed.\r\nAborted\r\n```\r\n\r\nI'm using python binding with libtorrent 1.0.9.0. I'm using boost 1.54.\r\n\r\nCompiled libtorrent using `bjam` : `bjam -j 4 --debug-configuration boost=system link=shared dht=logging full-stats=on statistics=on asserts=production invariant-checks=off debug-symbols=on\r\n`\r\n\r\nI always failed to build RC_1_1, that's why I still used this version. Is this already fixed in the new release?"},"comment":{"url":"https://api.github.com/repos/arvidn/libtorrent/issues/comments/204975504","html_url":"https://github.com/arvidn/libtorrent/issues/572#issuecomment-204975504","issue_url":"https://api.github.com/repos/arvidn/libtorrent/issues/572","id":204975504,"user":{"login":"ardhipoetra","id":2739025,"avatar_url":"https://avatars.githubusercontent.com/u/2739025?v=3","gravatar_id":"","url":"https://api.github.com/users/ardhipoetra","html_url":"https://github.com/ardhipoetra","followers_url":"https://api.github.com/users/ardhipoetra/followers","following_url":"https://api.github.com/users/ardhipoetra/following{/other_user}","gists_url":"https://api.github.com/users/ardhipoetra/gists{/gist_id}","starred_url":"https://api.github.com/users/ardhipoetra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ardhipoetra/subscriptions","organizations_url":"https://api.github.com/users/ardhipoetra/orgs","repos_url":"https://api.github.com/users/ardhipoetra/repos","events_url":"https://api.github.com/users/ardhipoetra/events{/privacy}","received_events_url":"https://api.github.com/users/ardhipoetra/received_events","type":"User","site_admin":false},"created_at":"2016-04-03T13:26:17Z","updated_at":"2016-04-03T13:26:17Z","body":"As it's part **very** huge project, I have to put it hold now. It's related to other issue #582. \r\n\r\nUnfortunately, I can't reproduce that error in small code. But in my project, it's still producing error."}}