{"action":"closed","issue":{"url":"https://api.github.com/repos/picotorrent/picotorrent/issues/106","labels_url":"https://api.github.com/repos/picotorrent/picotorrent/issues/106/labels{/name}","comments_url":"https://api.github.com/repos/picotorrent/picotorrent/issues/106/comments","events_url":"https://api.github.com/repos/picotorrent/picotorrent/issues/106/events","html_url":"https://github.com/picotorrent/picotorrent/issues/106","id":130554908,"number":106,"title":"Adding a torrent with ~255 files or more crashes picotorrent.","user":{"login":"zp","id":170573,"avatar_url":"https://avatars.githubusercontent.com/u/170573?v=3","gravatar_id":"","url":"https://api.github.com/users/zp","html_url":"https://github.com/zp","followers_url":"https://api.github.com/users/zp/followers","following_url":"https://api.github.com/users/zp/following{/other_user}","gists_url":"https://api.github.com/users/zp/gists{/gist_id}","starred_url":"https://api.github.com/users/zp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zp/subscriptions","organizations_url":"https://api.github.com/users/zp/orgs","repos_url":"https://api.github.com/users/zp/repos","events_url":"https://api.github.com/users/zp/events{/privacy}","received_events_url":"https://api.github.com/users/zp/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/picotorrent/picotorrent/labels/bug","name":"bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-02-02T02:52:23Z","updated_at":"2016-02-02T08:14:52Z","closed_at":"2016-02-02T08:14:52Z","body":"version: 0.5 x64 portable\r\n\r\nJust attempted to add a torrent with >255 files and picotorrent crashed.\r\n\r\nDid some testing and it appears to be around 255, I added a torrent with 254 files and it didn't crash, but when I attempted a torrent with 256 files it crashed.\r\n\r\n````\r\nINFO - 20:46:38.369 - picotorrent::core::session::load - Loading session\r\nINFO - 20:46:38.482 - picotorrent::core::session::load_state - Session state loaded\r\nINFO - 20:46:38.482 - picotorrent::core::session::load_torrents - Loading 0 torrent(s)\r\nFATAL - 20:46:41.460 - picotorrent::logging::log::on_unhandled_exception - Unhandled exception occured\r\nat \"picotorrent::core::add_request::file_priority\" (line 36)\r\nat \"picotorrent::core::add_request::file_priority\" (line 36)\r\nat \"picotorrent::app::controllers::add_torrent_controller::show_torrent\" (line 249)\r\nat \"picotorrent::app::controllers::add_torrent_controller::on_dialog_init\" (line 147)\r\nat \"picotorrent::ui::dialogs::add_torrent_dialog::on_init_dialog\" (line 170)\r\nat \"picotorrent::ui::dialogs::dialog_base::dlg_proc\" (line 90)\r\nat \"picotorrent::ui::dialogs::dialog_base::dlg_proc_proxy\" (line 112)\r\nat \"IsDialogMessageW\" \r\nat \"IsDialogMessageW\" \r\nat \"IsDialogMessageW\" \r\nat \"DispatchMessageW\"\r\n````"}}