{"action":"opened","issue":{"url":"https://api.github.com/repos/Sonarr/Sonarr/issues/1514","repository_url":"https://api.github.com/repos/Sonarr/Sonarr","labels_url":"https://api.github.com/repos/Sonarr/Sonarr/issues/1514/labels{/name}","comments_url":"https://api.github.com/repos/Sonarr/Sonarr/issues/1514/comments","events_url":"https://api.github.com/repos/Sonarr/Sonarr/issues/1514/events","html_url":"https://github.com/Sonarr/Sonarr/issues/1514","id":184169272,"number":1514,"title":"Backbone.History.start called with undefined root","user":{"login":"putty182","id":1588854,"avatar_url":"https://avatars.githubusercontent.com/u/1588854?v=3","gravatar_id":"","url":"https://api.github.com/users/putty182","html_url":"https://github.com/putty182","followers_url":"https://api.github.com/users/putty182/followers","following_url":"https://api.github.com/users/putty182/following{/other_user}","gists_url":"https://api.github.com/users/putty182/gists{/gist_id}","starred_url":"https://api.github.com/users/putty182/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/putty182/subscriptions","organizations_url":"https://api.github.com/users/putty182/orgs","repos_url":"https://api.github.com/users/putty182/repos","events_url":"https://api.github.com/users/putty182/events{/privacy}","received_events_url":"https://api.github.com/users/putty182/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-10-20T08:47:39Z","updated_at":"2016-10-20T08:47:39Z","closed_at":null,"body":"I've had this happen a few times now where Sonarr just hangs on the loading screen.  Looks like Backbone chokes while initialising using a undefined `root` when calling `Backbone.History.start`\r\n\r\nIncognito mode, seperate user profiles or clearing all browser history (not cookies/cache; occasionally works if I just remove Sonarr items from history) all seem to workaround the issue.\r\n\r\nBrowser: Chrome (Mac OS X; latest 2~3 releases)\r\nCustom Sonarr URL Base:  /path/sonarr\r\nForwarding proxy:  NGINX (works fine)\r\n\r\nStack trace:\r\n````\r\nTypeError: Cannot read property 'replace' of undefined\r\n    at getFragment (https://hostingprovider.com/path/sonarr/vendor.js?h=2FmIv+aUyiq+NMR9XjuFmQ:11999:32)\r\n    at start (https://hostingprovider.com/path/sonarr/vendor.js?h=2FmIv+aUyiq+NMR9XjuFmQ:12021:37)\r\n    at .<anonymous> (https://hostingprovider.com/path/sonarr/main.js?h=kzFWjrsLYaCKG7STfiFfAw:43:23)\r\n    at Object.<anonymous> (https://hostingprovider.com/path/sonarr/vendor.js?h=2FmIv+aUyiq+NMR9XjuFmQ:17583:17)\r\n    at fire (https://hostingprovider.com/path/sonarr/vendor.js?h=2FmIv+aUyiq+NMR9XjuFmQ:3308:43)\r\n    at Object.fireWith [as resolveWith] (https://hostingprovider.com/path/sonarr/vendor.js?h=2FmIv+aUyiq+NMR9XjuFmQ:3420:26)\r\n    at Object.deferred.(anonymous function) [as resolve] (https://hostingprovider.com/path/sonarr/vendor.js?h=2FmIv+aUyiq+NMR9XjuFmQ:3510:47)\r\n    at run (https://hostingprovider.com/path/sonarr/vendor.js?h=2FmIv+aUyiq+NMR9XjuFmQ:17591:21)\r\n    at start (https://hostingprovider.com/path/sonarr/vendor.js?h=2FmIv+aUyiq+NMR9XjuFmQ:18966:26)\r\n    at Object.<anonymous> (https://hostingprovider.com/path/sonarr/main.js?h=kzFWjrsLYaCKG7STfiFfAw:62:6)\r\n````\r\n\r\nSource-mapped stack trace:\r\n````\r\nUncaught TypeError: Cannot read property 'replace' of undefined\r\n    getFragment @ backbone.js:1351\r\n    start @ backbone.js:1373\r\n    (anonymous function) @ main.js:39\r\n    (anonymous function) @ backbone.marionette.js:687\r\n    fire @ jquery.js:3148\r\n    fireWith @ jquery.js:3260\r\n    deferred.(anonymous function) @ jquery.js:3350\r\n    run @ backbone.marionette.js:695\r\n    start @ backbone.marionette.js:2070\r\n    (anonymous function) @ main.js:58\r\n    __webpack_require__ @ bootstrap 7085204…:50\r\n    webpackJsonpCallback @ bootstrap 7085204…:21\r\n    (anonymous function) @ main.js?h=kzFWjrsLYaCKG7STfiFfAw:1\r\n````\r\n\r\nDebugging with a breakpoint around [src/UI/main.js:38-46](https://github.com/Sonarr/Sonarr/blob/v2.0.0.4326/src/UI/main.js#L38)\r\n````javascript\r\napp.addInitializer(function() {\r\n    Backbone.history.start({\r\n        pushState : true,\r\n        root      : serverStatusModel.get('urlBase') // <-- undefined when broken;  \"/path/sonarr\" when working\r\n    });\r\n    RouteBinder.bind();\r\n    AppLayout.navbarRegion.show(new NavbarLayout());\r\n    $('body').addClass('started');\r\n});\r\n````"}}
{"actor":{"display_login":"putty182"}}