{"action":"created","issue":{"url":"https://api.github.com/repos/openfoodfacts/openfoodfacts-androidapp/issues/1129","repository_url":"https://api.github.com/repos/openfoodfacts/openfoodfacts-androidapp","labels_url":"https://api.github.com/repos/openfoodfacts/openfoodfacts-androidapp/issues/1129/labels{/name}","comments_url":"https://api.github.com/repos/openfoodfacts/openfoodfacts-androidapp/issues/1129/comments","events_url":"https://api.github.com/repos/openfoodfacts/openfoodfacts-androidapp/issues/1129/events","html_url":"https://github.com/openfoodfacts/openfoodfacts-androidapp/issues/1129","id":302435661,"number":1129,"title":"App crashes on launching offlineEditFragment when it contains a single item.","user":{"login":"Shubham2320","id":25099208,"avatar_url":"https://avatars1.githubusercontent.com/u/25099208?v=4","gravatar_id":"","url":"https://api.github.com/users/Shubham2320","html_url":"https://github.com/Shubham2320","followers_url":"https://api.github.com/users/Shubham2320/followers","following_url":"https://api.github.com/users/Shubham2320/following{/other_user}","gists_url":"https://api.github.com/users/Shubham2320/gists{/gist_id}","starred_url":"https://api.github.com/users/Shubham2320/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Shubham2320/subscriptions","organizations_url":"https://api.github.com/users/Shubham2320/orgs","repos_url":"https://api.github.com/users/Shubham2320/repos","events_url":"https://api.github.com/users/Shubham2320/events{/privacy}","received_events_url":"https://api.github.com/users/Shubham2320/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-03-05T19:46:09Z","updated_at":"2018-03-05T20:58:40Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"**Summary:** \r\n\r\nApp crashes on launching offlineEditFragment when it contains a single item.\r\n\r\n**Steps to reproduce:** \r\n\r\nHow can we reproduce the issue?\r\n\r\n**Add system logs:**\r\n\r\nE/AndroidRuntime: FATAL EXCEPTION: main\r\n                                                   Process: openfoodfacts.github.scrachx.openfood, PID: 10307\r\n                                                   java.lang.IllegalStateException: Circular dependencies cannot exist in RelativeLayout\r\n                                                       at android.widget.RelativeLayout$DependencyGraph.getSortedViews(RelativeLayout.java:1727)\r\n                                                       at android.widget.RelativeLayout.sortChildren(RelativeLayout.java:383)\r\n                                                       at android.widget.RelativeLayout.onMeasure(RelativeLayout.java:390)\r\n                                                       at android.view.View.measure(View.java:18827)\r\n                                                       at android.widget.ListView.setupChild(ListView.java:1958)\r\n                                                       at android.widget.ListView.makeAndAddView(ListView.java:1879)\r\n                                                       at android.widget.ListView.fillDown(ListView.java:702)\r\n                                                       at android.widget.ListView.fillFromTop(ListView.java:763)\r\n                                                       at android.widget.ListView.layoutChildren(ListView.java:1685)\r\n                                                       at android.widget.AbsListView.onLayout(AbsListView.java:2148)\r\n                                                       at android.view.View.layout(View.java:16669)\r\n                                                       at android.view.ViewGroup.layout(ViewGroup.java:5440)\r\n                                                       at android.widget.LinearLayout.setChildFrame(LinearLayout.java:1743)\r\n                                                       at android.widget.LinearLayout.layoutVertical(LinearLayout.java:1586)\r\n                                                       at android.widget.LinearLayout.onLayout(LinearLayout.java:1495)\r\n                                                       at android.view.View.layout(View.java:16669)\r\n                                                       at android.view.ViewGroup.layout(ViewGroup.java:5440)\r\n                                                       at android.support.constraint.ConstraintLayout.onLayout(ConstraintLayout.java:1197)\r\n                                                       at android.view.View.layout(View.java:16669)\r\n                                                       at android.view.ViewGroup.layout(ViewGroup.java:5440)\r\n                                                       at android.widget.FrameLayout.layoutChildren(FrameLayout.java:336)\r\n                                                       at android.widget.FrameLayout.onLayout(FrameLayout.java:273)\r\n                                                       at android.view.View.layout(View.java:16669)\r\n                                                       at android.view.ViewGroup.layout(ViewGroup.java:5440)\r\n                                                       at android.widget.LinearLayout.setChildFrame(LinearLayout.java:1743)\r\n                                                       at android.widget.LinearLayout.layoutVertical(LinearLayout.java:1586)\r\n                                                       at android.widget.LinearLayout.onLayout(LinearLayout.java:1495)\r\n                                                       at android.view.View.layout(View.java:16669)\r\n                                                       at android.view.ViewGroup.layout(ViewGroup.java:5440)\r\n                                                       at android.support.v4.widget.DrawerLayout.onLayout(DrawerLayout.java:1172)\r\n                                                       at android.view.View.layout(View.java:16669)\r\n                                                       at android.view.ViewGroup.layout(ViewGroup.java:5440)\r\n                                                       at android.widget.FrameLayout.layoutChildren(FrameLayout.java:336)\r\n                                                       at android.widget.FrameLayout.onLayout(FrameLayout.java:273)\r\n                                                       at android.view.View.layout(View.java:16669)\r\n                                                       at android.view.ViewGroup.layout(ViewGroup.java:5440)\r\n                                                       at android.widget.LinearLayout.setChildFrame(LinearLayout.java:1743)\r\n                                                       at android.widget.LinearLayout.layoutVertical(LinearLayout.java:1586)\r\n                                                       at android.widget.LinearLayout.onLayout(LinearLayout.java:1495)\r\n                                                       at android.view.View.layout(View.java:16669)\r\n                                                       at android.view.ViewGroup.layout(ViewGroup.java:5440)\r\n                                                       at android.widget.FrameLayout.layoutChildren(FrameLayout.java:336)\r\n                                                       at android.widget.FrameLayout.onLayout(FrameLayout.java:273)\r\n                                                       at android.view.View.layout(View.java:16669)\r\n                                                       at android.view.ViewGroup.layout(ViewGroup.java:5440)\r\n                                                       at android.widget.LinearLayout.setChildFrame(LinearLayout.java:1743)\r\n                                                       at android.widget.LinearLayout.layoutVertical(LinearLayout.java:1586)\r\n                                                       at android.widget.LinearLayout.onLayout(LinearLayout.java:1495)\r\n                                                       at android.view.View.layout(View.java:16669)\r\n                                                       at android.view.ViewGroup.layout(ViewGroup.java:5440)\r\n                                                       at android.widget.FrameLayout.layoutChildren(FrameLayout.java:336)\r\n                                                       at android.widget.FrameLayout.onLayout(FrameLayout.java:273)\r\n                                                       at com.android.internal.policy.PhoneWindow$DecorView.onLayout(PhoneWindow.java:2678)\r\n                                                       at android.view.View.layout(View.java:16669)\r\n                                                       at android.view.ViewGroup.layout(ViewGroup.java:5440)\r\n                                                       at android.view.ViewRootImpl.performLayout(ViewRootImpl.java:2207)\r\n                                                       at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:1963)\r\n                                                       at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1139)\r\n                                                       at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:6064)\r\n                                                       at android.view.Choreographer$CallbackRecord.run(Choreographer.java:860)\r\n                                                       at android.view.Choreographer.doCallbacks(Choreographer.java:672)\r\n                                                       at android.view.Choreographer.doFrame(Choreographer.java:608)\r\n                                                   \tat android.view.Choreographer$FrameDisplayEventReceiver.run(C\r\n\r\n**Expected behaviour:** \r\n\r\nThere should be the list of items waiting to be sent online.\r\n\r\n**Observed behaviour:** \r\n\r\nApp crashes.\r\n\r\n**Device and Android version:** \r\nAndroid 6.0"},"comment":{"url":"https://api.github.com/repos/openfoodfacts/openfoodfacts-androidapp/issues/comments/370563144","html_url":"https://github.com/openfoodfacts/openfoodfacts-androidapp/issues/1129#issuecomment-370563144","issue_url":"https://api.github.com/repos/openfoodfacts/openfoodfacts-androidapp/issues/1129","id":370563144,"user":{"login":"Shubham2320","id":25099208,"avatar_url":"https://avatars1.githubusercontent.com/u/25099208?v=4","gravatar_id":"","url":"https://api.github.com/users/Shubham2320","html_url":"https://github.com/Shubham2320","followers_url":"https://api.github.com/users/Shubham2320/followers","following_url":"https://api.github.com/users/Shubham2320/following{/other_user}","gists_url":"https://api.github.com/users/Shubham2320/gists{/gist_id}","starred_url":"https://api.github.com/users/Shubham2320/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Shubham2320/subscriptions","organizations_url":"https://api.github.com/users/Shubham2320/orgs","repos_url":"https://api.github.com/users/Shubham2320/repos","events_url":"https://api.github.com/users/Shubham2320/events{/privacy}","received_events_url":"https://api.github.com/users/Shubham2320/received_events","type":"User","site_admin":false},"created_at":"2018-03-05T20:58:40Z","updated_at":"2018-03-05T20:58:40Z","author_association":"CONTRIBUTOR","body":"I've figured it out, it is happening because of circular chaining of views inside relativeLayout of save_list_item.xml and going to a send PR asap :)."}}
{"actor":{"display_login":"Shubham2320"}}