{"action":"created","issue":{"url":"https://api.github.com/repos/ACRA/acra/issues/443","repository_url":"https://api.github.com/repos/ACRA/acra","labels_url":"https://api.github.com/repos/ACRA/acra/issues/443/labels{/name}","comments_url":"https://api.github.com/repos/ACRA/acra/issues/443/comments","events_url":"https://api.github.com/repos/ACRA/acra/issues/443/events","html_url":"https://github.com/ACRA/acra/issues/443","id":151309068,"number":443,"title":"Crash on first start after install cannot be reported","user":{"login":"str4d","id":4993799,"avatar_url":"https://avatars.githubusercontent.com/u/4993799?v=3","gravatar_id":"","url":"https://api.github.com/users/str4d","html_url":"https://github.com/str4d","followers_url":"https://api.github.com/users/str4d/followers","following_url":"https://api.github.com/users/str4d/following{/other_user}","gists_url":"https://api.github.com/users/str4d/gists{/gist_id}","starred_url":"https://api.github.com/users/str4d/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/str4d/subscriptions","organizations_url":"https://api.github.com/users/str4d/orgs","repos_url":"https://api.github.com/users/str4d/repos","events_url":"https://api.github.com/users/str4d/events{/privacy}","received_events_url":"https://api.github.com/users/str4d/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":10,"created_at":"2016-04-27T06:29:55Z","updated_at":"2016-05-07T22:01:48Z","closed_at":"2016-05-07T22:01:48Z","body":"If a crash happens on first start after install, this happens:\r\n\r\n- App starts\r\n  - ACRA is initialised in the app process\r\n  - ACRA does first-start setup, such as migrating old unsent reports\r\n- App crashes at some point\r\n  - ACRA writes crash report to the unapproved directory\r\n  - ACRA starts `BaseCrashReportDialog` in a new process\r\n- `BaseCrashReportDialog` starts\r\n  - ACRA is initialised in the new process\r\n  - ACRA does first-start setup, such as migrating old unsent reports\r\n- `BaseCrashReportDialog` fails to open the crash report\r\n\r\nThis bug only occurs if the app crashes during its first start after install; after a single destroy-create cycle, crash reports exist when the error process attempts to open them.\r\n\r\nI found this bug while [implementing ACRA support in Briar](https://code.briarproject.org/akwizgran/briar/merge_requests/140)."},"comment":{"url":"https://api.github.com/repos/ACRA/acra/issues/comments/217671243","html_url":"https://github.com/ACRA/acra/issues/443#issuecomment-217671243","issue_url":"https://api.github.com/repos/ACRA/acra/issues/443","id":217671243,"user":{"login":"william-ferguson-au","id":670599,"avatar_url":"https://avatars.githubusercontent.com/u/670599?v=3","gravatar_id":"","url":"https://api.github.com/users/william-ferguson-au","html_url":"https://github.com/william-ferguson-au","followers_url":"https://api.github.com/users/william-ferguson-au/followers","following_url":"https://api.github.com/users/william-ferguson-au/following{/other_user}","gists_url":"https://api.github.com/users/william-ferguson-au/gists{/gist_id}","starred_url":"https://api.github.com/users/william-ferguson-au/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/william-ferguson-au/subscriptions","organizations_url":"https://api.github.com/users/william-ferguson-au/orgs","repos_url":"https://api.github.com/users/william-ferguson-au/repos","events_url":"https://api.github.com/users/william-ferguson-au/events{/privacy}","received_events_url":"https://api.github.com/users/william-ferguson-au/received_events","type":"User","site_admin":false},"created_at":"2016-05-07T22:01:48Z","updated_at":"2016-05-07T22:01:48Z","body":"Closing this issue as it is really not an ACRA issue.\r\n\r\nTheming of the ReportDialog class is possible already: Use a helper instead of AppCompatActivity. http://developer.android.com/reference/android/support/v7/app/AppCompatDelegate.html\r\n\r\nThis is definetly the better way to solve this problem"}}