{"action":"created","issue":{"url":"https://api.github.com/repos/googlevr/gvr-android-sdk/issues/84","repository_url":"https://api.github.com/repos/googlevr/gvr-android-sdk","labels_url":"https://api.github.com/repos/googlevr/gvr-android-sdk/issues/84/labels{/name}","comments_url":"https://api.github.com/repos/googlevr/gvr-android-sdk/issues/84/comments","events_url":"https://api.github.com/repos/googlevr/gvr-android-sdk/issues/84/events","html_url":"https://github.com/googlevr/gvr-android-sdk/issues/84","id":153895782,"number":84,"title":"onCardboardTrigger getting called in infinite loop (race)","user":{"login":"maneetsingh","id":6556952,"avatar_url":"https://avatars.githubusercontent.com/u/6556952?v=3","gravatar_id":"","url":"https://api.github.com/users/maneetsingh","html_url":"https://github.com/maneetsingh","followers_url":"https://api.github.com/users/maneetsingh/followers","following_url":"https://api.github.com/users/maneetsingh/following{/other_user}","gists_url":"https://api.github.com/users/maneetsingh/gists{/gist_id}","starred_url":"https://api.github.com/users/maneetsingh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maneetsingh/subscriptions","organizations_url":"https://api.github.com/users/maneetsingh/orgs","repos_url":"https://api.github.com/users/maneetsingh/repos","events_url":"https://api.github.com/users/maneetsingh/events{/privacy}","received_events_url":"https://api.github.com/users/maneetsingh/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2016-05-09T23:56:16Z","updated_at":"2016-05-19T23:39:28Z","closed_at":null,"body":"I have defined an Activity that extends CardboardActivity and overrides onCardboardTrigger method to perform certain action on receiving touch events.\r\n\r\nIssue is if I touch my phone screen too early as my Activity is getting initialized, there is certain race condition in CardboardActivity that is kicking in, resulting in onCardboardTrigger() method getting called in a loop. Most likely, this is due to some piece of code in CardboardActivity, responsible for calling onCardboardTrigger() made an assumption that it would not called *so-early*.\r\n\r\nI am using latest Cardboard SDK for Android v0.7.0 and I see this issue. It's not very frequent to hit this race, but while using my phone, I hit on this race every now and then. Just printed a log in onCardboardTrigger() method and found out it's not due to race in the application but CardboardView since I see that log getting displayed in a loop due to onCardboardTrigger() getting called repeatly.\r\n\r\nCould someone from Google Cardboard team please look into this? Thanks for your help."},"comment":{"url":"https://api.github.com/repos/googlevr/gvr-android-sdk/issues/comments/220481148","html_url":"https://github.com/googlevr/gvr-android-sdk/issues/84#issuecomment-220481148","issue_url":"https://api.github.com/repos/googlevr/gvr-android-sdk/issues/84","id":220481148,"user":{"login":"jdduke","id":479117,"avatar_url":"https://avatars.githubusercontent.com/u/479117?v=3","gravatar_id":"","url":"https://api.github.com/users/jdduke","html_url":"https://github.com/jdduke","followers_url":"https://api.github.com/users/jdduke/followers","following_url":"https://api.github.com/users/jdduke/following{/other_user}","gists_url":"https://api.github.com/users/jdduke/gists{/gist_id}","starred_url":"https://api.github.com/users/jdduke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jdduke/subscriptions","organizations_url":"https://api.github.com/users/jdduke/orgs","repos_url":"https://api.github.com/users/jdduke/repos","events_url":"https://api.github.com/users/jdduke/events{/privacy}","received_events_url":"https://api.github.com/users/jdduke/received_events","type":"User","site_admin":false},"created_at":"2016-05-19T23:39:28Z","updated_at":"2016-05-19T23:39:28Z","body":"Thanks. Another bit that might be helpful is if you could log the stack trace in your onCardboardTrigger() call and post it here, e.g., android.util.Log.w(\"onCardboardTrigger\", Log.getStackTraceString(new Exception()));\r\n\r\nAs that could spam the logcat if called repeatedly, you could also just throw an exception..."}}
{"actor":{"display_login":"jdduke"}}