{"action":"created","issue":{"url":"https://api.github.com/repos/antmicro/Migrant/issues/111","labels_url":"https://api.github.com/repos/antmicro/Migrant/issues/111/labels{/name}","comments_url":"https://api.github.com/repos/antmicro/Migrant/issues/111/comments","events_url":"https://api.github.com/repos/antmicro/Migrant/issues/111/events","html_url":"https://github.com/antmicro/Migrant/issues/111","id":111193810,"number":111,"title":"StackOverFlowException when serializing a graph","user":{"login":"ab-tools","id":1347603,"avatar_url":"https://avatars.githubusercontent.com/u/1347603?v=3","gravatar_id":"","url":"https://api.github.com/users/ab-tools","html_url":"https://github.com/ab-tools","followers_url":"https://api.github.com/users/ab-tools/followers","following_url":"https://api.github.com/users/ab-tools/following{/other_user}","gists_url":"https://api.github.com/users/ab-tools/gists{/gist_id}","starred_url":"https://api.github.com/users/ab-tools/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ab-tools/subscriptions","organizations_url":"https://api.github.com/users/ab-tools/orgs","repos_url":"https://api.github.com/users/ab-tools/repos","events_url":"https://api.github.com/users/ab-tools/events{/privacy}","received_events_url":"https://api.github.com/users/ab-tools/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-10-13T14:37:36Z","updated_at":"2015-10-21T08:18:42Z","closed_at":null,"body":"I'm trying to migrate from protobuf-net to Migrant as I constantly have problems with protobuf-net when trying to use it with graph structures. Although protobuf-net states to support \"object by reference\" since version 2, this just seems not to work correctly.\r\n\r\nI did some test with Migrant, but unfortunately I also have a problem with that.\r\n\r\nNot sure if I'm just doing something wrong or if that's a bug. Therefore I created an example project to reproduce the problems I have:\r\n\r\nStackOverFlowException when serializing a graph - reproduce with example project sent via e-mail as following:\r\n- start project.\r\n- click on button \"Load Data With Protobuf\" to get the example data into memory.\r\n- click on button \"Save Data Wtih Migrant\" to store it again.\r\n=> this will result in a StackOverFlowException and the reason is property \"Airways\" in object \"Waypoint\".\r\n=> Why this is a problem?\r\nIf everything is saved as reference it should work smoothly or did I miss something?\r\n\r\nIf you add the attribute \"[Antmicro.Migrant.Transient]\" to the property \"Airways\" in object \"Waypoint\" Migrant can serialize the database without problems, but why this is needed?\r\n\r\nI did not include the example project in this post here, but send it to the e-mail address of the first author “Konrad Kruczyński” mentioned on the GitHub page, as I do need to include quite a lot data with it to be able to reproduce the problem. Please don’t share this data publically."},"comment":{"url":"https://api.github.com/repos/antmicro/Migrant/issues/comments/149812504","html_url":"https://github.com/antmicro/Migrant/issues/111#issuecomment-149812504","issue_url":"https://api.github.com/repos/antmicro/Migrant/issues/111","id":149812504,"user":{"login":"ab-tools","id":1347603,"avatar_url":"https://avatars.githubusercontent.com/u/1347603?v=3","gravatar_id":"","url":"https://api.github.com/users/ab-tools","html_url":"https://github.com/ab-tools","followers_url":"https://api.github.com/users/ab-tools/followers","following_url":"https://api.github.com/users/ab-tools/following{/other_user}","gists_url":"https://api.github.com/users/ab-tools/gists{/gist_id}","starred_url":"https://api.github.com/users/ab-tools/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ab-tools/subscriptions","organizations_url":"https://api.github.com/users/ab-tools/orgs","repos_url":"https://api.github.com/users/ab-tools/repos","events_url":"https://api.github.com/users/ab-tools/events{/privacy}","received_events_url":"https://api.github.com/users/ab-tools/received_events","type":"User","site_admin":false},"created_at":"2015-10-21T08:18:42Z","updated_at":"2015-10-21T08:18:42Z","body":"Hello Mateusz,\r\n\r\ndid you find out something about this problem?\r\nI would really like to get rid of protobuf. ;-)\r\n\r\nBest regards\r\nAndreas"}}