{"action":"created","issue":{"url":"https://api.github.com/repos/Starcounter/Starcounter/issues/3325","labels_url":"https://api.github.com/repos/Starcounter/Starcounter/issues/3325/labels{/name}","comments_url":"https://api.github.com/repos/Starcounter/Starcounter/issues/3325/comments","events_url":"https://api.github.com/repos/Starcounter/Starcounter/issues/3325/events","html_url":"https://github.com/Starcounter/Starcounter/issues/3325","id":130317421,"number":3325,"title":"pnext: Starting running database hangs forever","user":{"login":"k-rus","id":1726044,"avatar_url":"https://avatars.githubusercontent.com/u/1726044?v=3","gravatar_id":"","url":"https://api.github.com/users/k-rus","html_url":"https://github.com/k-rus","followers_url":"https://api.github.com/users/k-rus/followers","following_url":"https://api.github.com/users/k-rus/following{/other_user}","gists_url":"https://api.github.com/users/k-rus/gists{/gist_id}","starred_url":"https://api.github.com/users/k-rus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/k-rus/subscriptions","organizations_url":"https://api.github.com/users/k-rus/orgs","repos_url":"https://api.github.com/users/k-rus/repos","events_url":"https://api.github.com/users/k-rus/events{/privacy}","received_events_url":"https://api.github.com/users/k-rus/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Starcounter/Starcounter/labels/bug","name":"bug","color":"e11d21"},{"url":"https://api.github.com/repos/Starcounter/Starcounter/labels/Code%20host","name":"Code host","color":"009800"}],"state":"open","locked":false,"assignee":{"login":"per-samuelsson","id":2902045,"avatar_url":"https://avatars.githubusercontent.com/u/2902045?v=3","gravatar_id":"","url":"https://api.github.com/users/per-samuelsson","html_url":"https://github.com/per-samuelsson","followers_url":"https://api.github.com/users/per-samuelsson/followers","following_url":"https://api.github.com/users/per-samuelsson/following{/other_user}","gists_url":"https://api.github.com/users/per-samuelsson/gists{/gist_id}","starred_url":"https://api.github.com/users/per-samuelsson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/per-samuelsson/subscriptions","organizations_url":"https://api.github.com/users/per-samuelsson/orgs","repos_url":"https://api.github.com/users/per-samuelsson/repos","events_url":"https://api.github.com/users/per-samuelsson/events{/privacy}","received_events_url":"https://api.github.com/users/per-samuelsson/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/Starcounter/Starcounter/milestones/59","html_url":"https://github.com/Starcounter/Starcounter/milestones/pnext","labels_url":"https://api.github.com/repos/Starcounter/Starcounter/milestones/59/labels","id":1449205,"number":59,"title":"pnext","description":"","creator":{"login":"dan31","id":7162535,"avatar_url":"https://avatars.githubusercontent.com/u/7162535?v=3","gravatar_id":"","url":"https://api.github.com/users/dan31","html_url":"https://github.com/dan31","followers_url":"https://api.github.com/users/dan31/followers","following_url":"https://api.github.com/users/dan31/following{/other_user}","gists_url":"https://api.github.com/users/dan31/gists{/gist_id}","starred_url":"https://api.github.com/users/dan31/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dan31/subscriptions","organizations_url":"https://api.github.com/users/dan31/orgs","repos_url":"https://api.github.com/users/dan31/repos","events_url":"https://api.github.com/users/dan31/events{/privacy}","received_events_url":"https://api.github.com/users/dan31/received_events","type":"User","site_admin":false},"open_issues":32,"closed_issues":36,"state":"open","created_at":"2015-12-08T04:55:49Z","updated_at":"2016-02-01T22:31:13Z","due_on":"2015-12-18T08:00:00Z","closed_at":null},"comments":13,"created_at":"2016-02-01T10:10:23Z","updated_at":"2016-02-02T07:08:54Z","closed_at":null,"body":"Steps how I got this problem:\r\n\r\n1. I started an app with `SelectOnNull2362_test.bat`, which does `star --database=SelectOnNull2362Db SelectOnNull2362.cs`\r\n2. The app fails with an assertion. So I attached to it.\r\n2. After I understood the problem I stopped debugging in VS.\r\n3. `star` was still running in the terminal, so I terminated it with `Ctrl-Break`\r\n4. Then I attached to a process `sccode` from VS\r\n5. After this I called `staradmin start db`\r\n6. This one was hanging forever on `Starting default (starting database ...)`\r\n"},"comment":{"url":"https://api.github.com/repos/Starcounter/Starcounter/issues/comments/178415010","html_url":"https://github.com/Starcounter/Starcounter/issues/3325#issuecomment-178415010","issue_url":"https://api.github.com/repos/Starcounter/Starcounter/issues/3325","id":178415010,"user":{"login":"k-rus","id":1726044,"avatar_url":"https://avatars.githubusercontent.com/u/1726044?v=3","gravatar_id":"","url":"https://api.github.com/users/k-rus","html_url":"https://github.com/k-rus","followers_url":"https://api.github.com/users/k-rus/followers","following_url":"https://api.github.com/users/k-rus/following{/other_user}","gists_url":"https://api.github.com/users/k-rus/gists{/gist_id}","starred_url":"https://api.github.com/users/k-rus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/k-rus/subscriptions","organizations_url":"https://api.github.com/users/k-rus/orgs","repos_url":"https://api.github.com/users/k-rus/repos","events_url":"https://api.github.com/users/k-rus/events{/privacy}","received_events_url":"https://api.github.com/users/k-rus/received_events","type":"User","site_admin":false},"created_at":"2016-02-02T07:08:54Z","updated_at":"2016-02-02T07:08:54Z","body":"Thank you for investigating! It seems that it is kind of bug in system assertions.\r\n\r\n> Personally, I don't particularly like asserts, since the default behavior is to put up this funny dialog box, and it is bad in server environments. I've expressed this feeling several time in the past, but it seems i'm in a minority. For me, server side tracing/debugging and modal windows is just not a great mix, so I guess I have to live with it.\r\n> \r\n> I don't know what I can do about this one really. My advice would be to factor out the default trace listener from the host completely, and we would not have cases like this. I saw that the implementation we have now actually tries a workaround when executing on the build server; I guess that one is trying to get around the fact that asserts are kind of bad on the server side (since it's often unassisted; who's to press some button there).\r\n\r\nAssert pop-ups on the build server is bad. I was brining this question many times. There is also an open issue about this. \r\nPop-ups assert windows are nice locally, since they allow to go into the code directly and see unexpected values, but not in the server environment. IMHO it is good to have similar abilities as `Debug.Assert`, which I use a lot of assertions in Debug build only, and `Trace.Assert`, which I use a lot in tests.\r\n\r\nRemoving assertions from the host will not help, since the above case is due to an assertion in a test app. So our customer might use assertions in similar way and then they will face the same issue.\r\n\r\n> One thing could of course be to put a timeout on tooling, such as staradmin start db, and have that one fail after some time if there's no answer. I could take it on me to go through our tools to implement that, but I'm not sure how high a prio it would be. It's probably not on top of our list.\r\n\r\nThe priority is very low. I guess timeout will be a solution."}}