{"action":"created","issue":{"url":"https://api.github.com/repos/pwittchen/prefser/issues/93","repository_url":"https://api.github.com/repos/pwittchen/prefser","labels_url":"https://api.github.com/repos/pwittchen/prefser/issues/93/labels{/name}","comments_url":"https://api.github.com/repos/pwittchen/prefser/issues/93/comments","events_url":"https://api.github.com/repos/pwittchen/prefser/issues/93/events","html_url":"https://github.com/pwittchen/prefser/issues/93","id":154818315,"number":93,"title":"Infinite loop when storing LinearLayout","user":{"login":"luchfilip","id":5247619,"avatar_url":"https://avatars.githubusercontent.com/u/5247619?v=3","gravatar_id":"","url":"https://api.github.com/users/luchfilip","html_url":"https://github.com/luchfilip","followers_url":"https://api.github.com/users/luchfilip/followers","following_url":"https://api.github.com/users/luchfilip/following{/other_user}","gists_url":"https://api.github.com/users/luchfilip/gists{/gist_id}","starred_url":"https://api.github.com/users/luchfilip/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/luchfilip/subscriptions","organizations_url":"https://api.github.com/users/luchfilip/orgs","repos_url":"https://api.github.com/users/luchfilip/repos","events_url":"https://api.github.com/users/luchfilip/events{/privacy}","received_events_url":"https://api.github.com/users/luchfilip/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-05-13T23:23:04Z","updated_at":"2016-05-13T23:28:02Z","closed_at":null,"body":"While I know the types of data Prefser can store, I've tried to store a `LinearLayout` data type. The app hangs and does an infinite loop inside `Gson.java` on line 358:\r\n\r\n    for (TypeAdapterFactory factory : factories) {\r\n        TypeAdapter<T> candidate = factory.create(this, type);\r\n        if (candidate != null) {\r\n          call.setDelegate(candidate);\r\n          typeTokenCache.put(type, candidate);\r\n          return candidate;\r\n        }\r\n      }\r\n\r\nAlso the app crashes on storing `View`.\r\n\r\nModel: Nexus 5, android 6.0.1\r\n"},"comment":{"url":"https://api.github.com/repos/pwittchen/prefser/issues/comments/219182846","html_url":"https://github.com/pwittchen/prefser/issues/93#issuecomment-219182846","issue_url":"https://api.github.com/repos/pwittchen/prefser/issues/93","id":219182846,"user":{"login":"luchfilip","id":5247619,"avatar_url":"https://avatars.githubusercontent.com/u/5247619?v=3","gravatar_id":"","url":"https://api.github.com/users/luchfilip","html_url":"https://github.com/luchfilip","followers_url":"https://api.github.com/users/luchfilip/followers","following_url":"https://api.github.com/users/luchfilip/following{/other_user}","gists_url":"https://api.github.com/users/luchfilip/gists{/gist_id}","starred_url":"https://api.github.com/users/luchfilip/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/luchfilip/subscriptions","organizations_url":"https://api.github.com/users/luchfilip/orgs","repos_url":"https://api.github.com/users/luchfilip/repos","events_url":"https://api.github.com/users/luchfilip/events{/privacy}","received_events_url":"https://api.github.com/users/luchfilip/received_events","type":"User","site_admin":false},"created_at":"2016-05-13T23:28:02Z","updated_at":"2016-05-13T23:28:02Z","body":"I had an array of objects that I use, and in order to test a little feature I've put the view inside the object while not considering that this object is used by prefser. Then when debugging I found where exactly this loop happens."}}