{"action":"created","issue":{"url":"https://api.github.com/repos/dotnet/corefx/issues/10838","repository_url":"https://api.github.com/repos/dotnet/corefx","labels_url":"https://api.github.com/repos/dotnet/corefx/issues/10838/labels{/name}","comments_url":"https://api.github.com/repos/dotnet/corefx/issues/10838/comments","events_url":"https://api.github.com/repos/dotnet/corefx/issues/10838/events","html_url":"https://github.com/dotnet/corefx/issues/10838","id":171351409,"number":10838,"title":"Tests under \"DataContractJsonSerializerTests\" fail with \"System.TypeInitializationException\"","user":{"login":"dotnet-mc-bot","id":19915927,"avatar_url":"https://avatars.githubusercontent.com/u/19915927?v=3","gravatar_id":"","url":"https://api.github.com/users/dotnet-mc-bot","html_url":"https://github.com/dotnet-mc-bot","followers_url":"https://api.github.com/users/dotnet-mc-bot/followers","following_url":"https://api.github.com/users/dotnet-mc-bot/following{/other_user}","gists_url":"https://api.github.com/users/dotnet-mc-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/dotnet-mc-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dotnet-mc-bot/subscriptions","organizations_url":"https://api.github.com/users/dotnet-mc-bot/orgs","repos_url":"https://api.github.com/users/dotnet-mc-bot/repos","events_url":"https://api.github.com/users/dotnet-mc-bot/events{/privacy}","received_events_url":"https://api.github.com/users/dotnet-mc-bot/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/dotnet/corefx/labels/area-Serialization","name":"area-Serialization","color":"d4c5f9"},{"url":"https://api.github.com/repos/dotnet/corefx/labels/os-windows-uwp","name":"os-windows-uwp","color":"fef2c0"}],"state":"open","locked":false,"assignee":{"login":"shmao","id":12262109,"avatar_url":"https://avatars.githubusercontent.com/u/12262109?v=3","gravatar_id":"","url":"https://api.github.com/users/shmao","html_url":"https://github.com/shmao","followers_url":"https://api.github.com/users/shmao/followers","following_url":"https://api.github.com/users/shmao/following{/other_user}","gists_url":"https://api.github.com/users/shmao/gists{/gist_id}","starred_url":"https://api.github.com/users/shmao/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shmao/subscriptions","organizations_url":"https://api.github.com/users/shmao/orgs","repos_url":"https://api.github.com/users/shmao/repos","events_url":"https://api.github.com/users/shmao/events{/privacy}","received_events_url":"https://api.github.com/users/shmao/received_events","type":"User","site_admin":false},"assignees":[{"login":"shmao","id":12262109,"avatar_url":"https://avatars.githubusercontent.com/u/12262109?v=3","gravatar_id":"","url":"https://api.github.com/users/shmao","html_url":"https://github.com/shmao","followers_url":"https://api.github.com/users/shmao/followers","following_url":"https://api.github.com/users/shmao/following{/other_user}","gists_url":"https://api.github.com/users/shmao/gists{/gist_id}","starred_url":"https://api.github.com/users/shmao/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shmao/subscriptions","organizations_url":"https://api.github.com/users/shmao/orgs","repos_url":"https://api.github.com/users/shmao/repos","events_url":"https://api.github.com/users/shmao/events{/privacy}","received_events_url":"https://api.github.com/users/shmao/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/dotnet/corefx/milestones/4","html_url":"https://github.com/dotnet/corefx/milestones/1.2.0","labels_url":"https://api.github.com/repos/dotnet/corefx/milestones/4/labels","id":1248719,"number":4,"title":"1.2.0","description":".NET Core 1.2 Placeholder.  https://github.com/dotnet/core/blob/master/roadmap.md","creator":{"login":"joshfree","id":1302850,"avatar_url":"https://avatars.githubusercontent.com/u/1302850?v=3","gravatar_id":"","url":"https://api.github.com/users/joshfree","html_url":"https://github.com/joshfree","followers_url":"https://api.github.com/users/joshfree/followers","following_url":"https://api.github.com/users/joshfree/following{/other_user}","gists_url":"https://api.github.com/users/joshfree/gists{/gist_id}","starred_url":"https://api.github.com/users/joshfree/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joshfree/subscriptions","organizations_url":"https://api.github.com/users/joshfree/orgs","repos_url":"https://api.github.com/users/joshfree/repos","events_url":"https://api.github.com/users/joshfree/events{/privacy}","received_events_url":"https://api.github.com/users/joshfree/received_events","type":"User","site_admin":false},"open_issues":669,"closed_issues":1080,"state":"open","created_at":"2015-08-10T18:04:00Z","updated_at":"2016-09-17T08:53:45Z","due_on":"2017-04-30T07:00:00Z","closed_at":null},"comments":12,"created_at":"2016-08-16T08:22:58Z","updated_at":"2016-09-18T01:20:12Z","closed_at":null,"body":"Opened on behalf of @jiangzeng\n\nThe test `DataContractJsonSerializerTests/DCJS_ClassWithDatetimeOffsetTypeProperty` has failed.\n\n\n    System.TypeInitializationException : The type initializer for 'System.Runtime.Serialization.XmlFormatReaderGenerator' threw an exception.\\r\n    ---- System.InvalidOperationException : The API 'System.Runtime.Serialization.FormatterServices.GetUninitializedObject(System.Type)' cannot be used on the current platform. See http://go.microsoft.com/fwlink/?LinkId=248273 for more information.\n\nStack Trace:\n\n       at System.Runtime.Serialization.XmlFormatReaderGenerator.UnsafeGetUninitializedObject(Type type) in D:\\A\\_work\\2\\s\\src\\System.Private.DataContractSerialization\\src\\System\\Runtime\\Serialization\\XmlFormatReaderGenerator.cs:line 929\n       at ReadTypeWithDateTimeOffsetTypePropertyFromJson(XmlReaderDelegator , XmlObjectSerializerReadContextComplexJson , XmlDictionaryString , XmlDictionaryString[] )\n       at System.Runtime.Serialization.Json.JsonClassDataContract.ReadJsonValueCore(XmlReaderDelegator jsonReader, XmlObjectSerializerReadContextComplexJson context) in D:\\A\\_work\\2\\s\\src\\System.Private.DataContractSerialization\\src\\System\\Runtime\\Serialization\\Json\\JsonClassDataContract.cs:line 138\n       at System.Runtime.Serialization.Json.JsonDataContract.ReadJsonValue(XmlReaderDelegator jsonReader, XmlObjectSerializerReadContextComplexJson context) in D:\\A\\_work\\2\\s\\src\\System.Private.DataContractSerialization\\src\\System\\Runtime\\Serialization\\Json\\JsonDataContract.cs:line 101\n       at System.Runtime.Serialization.Json.DataContractJsonSerializerImpl.ReadJsonValue(DataContract contract, XmlReaderDelegator reader, XmlObjectSerializerReadContextComplexJson context) in D:\\A\\_work\\2\\s\\src\\System.Private.DataContractSerialization\\src\\System\\Runtime\\Serialization\\Json\\DataContractJsonSerializer.cs:line 718\n       at System.Runtime.Serialization.Json.XmlObjectSerializerReadContextComplexJson.ReadDataContractValue(DataContract dataContract, XmlReaderDelegator reader) in D:\\A\\_work\\2\\s\\src\\System.Private.DataContractSerialization\\src\\System\\Runtime\\Serialization\\Json\\XmlObjectSerializerReadContextComplexJson.cs:line 54\n       at System.Runtime.Serialization.XmlObjectSerializerReadContext.InternalDeserialize(XmlReaderDelegator reader, String name, String ns, DataContract& dataContract) in D:\\A\\_work\\2\\s\\src\\System.Private.DataContractSerialization\\src\\System\\Runtime\\Serialization\\XmlObjectSerializerReadContext.cs:line 189\n       at System.Runtime.Serialization.XmlObjectSerializerReadContext.InternalDeserialize(XmlReaderDelegator xmlReader, Type declaredType, DataContract dataContract, String name, String ns) in D:\\A\\_work\\2\\s\\src\\System.Private.DataContractSerialization\\src\\System\\Runtime\\Serialization\\XmlObjectSerializerReadContext.cs:line 126\n       at System.Runtime.Serialization.XmlObjectSerializerReadContextComplex.InternalDeserialize(XmlReaderDelegator xmlReader, Type declaredType, DataContract dataContract, String name, String ns) in D:\\A\\_work\\2\\s\\src\\System.Private.DataContractSerialization\\src\\System\\Runtime\\Serialization\\XmlObjectSerializerReadContextComplex.cs:line 72\n       at System.Runtime.Serialization.Json.DataContractJsonSerializerImpl.InternalReadObject(XmlReaderDelegator xmlReader, Boolean verifyObjectName) in D:\\A\\_work\\2\\s\\src\\System.Private.DataContractSerialization\\src\\System\\Runtime\\Serialization\\Json\\DataContractJsonSerializer.cs:line 777\n       at System.Runtime.Serialization.XmlObjectSerializer.InternalReadObject(XmlReaderDelegator reader, Boolean verifyObjectName, DataContractResolver dataContractResolver) in D:\\A\\_work\\2\\s\\src\\System.Private.DataContractSerialization\\src\\System\\Runtime\\Serialization\\XmlObjectSerializer.cs:line 261\n       at System.Runtime.Serialization.XmlObjectSerializer.ReadObjectHandleExceptions(XmlReaderDelegator reader, Boolean verifyObjectName, DataContractResolver dataContractResolver) in D:\\A\\_work\\2\\s\\src\\System.Private.DataContractSerialization\\src\\System\\Runtime\\Serialization\\XmlObjectSerializer.cs:line 280\n       at System.Runtime.Serialization.XmlObjectSerializer.ReadObjectHandleExceptions(XmlReaderDelegator reader, Boolean verifyObjectName) in D:\\A\\_work\\2\\s\\src\\System.Private.DataContractSerialization\\src\\System\\Runtime\\Serialization\\XmlObjectSerializer.cs:line 272\n       at System.Runtime.Serialization.Json.DataContractJsonSerializerImpl.ReadObject(XmlDictionaryReader reader) in D:\\A\\_work\\2\\s\\src\\System.Private.DataContractSerialization\\src\\System\\Runtime\\Serialization\\Json\\DataContractJsonSerializer.cs:line 600\n       at System.Runtime.Serialization.Json.DataContractJsonSerializerImpl.ReadObject(Stream stream) in D:\\A\\_work\\2\\s\\src\\System.Private.DataContractSerialization\\src\\System\\Runtime\\Serialization\\Json\\DataContractJsonSerializer.cs:line 585\n       at System.Runtime.Serialization.Json.DataContractJsonSerializer.ReadObject(Stream stream) in D:\\A\\_work\\2\\s\\src\\System.Private.DataContractSerialization\\src\\System\\Runtime\\Serialization\\Json\\DataContractJsonSerializer.cs:line 161\n       at DataContractJsonSerializerTests.SerializeAndDeserialize[T](T value, String baseline, DataContractJsonSerializerSettings settings, Func`1 serializerFactory, Boolean skipStringCompare) in D:\\A\\_work\\2\\s\\src\\System.Runtime.Serialization.Json\\tests\\DataContractJsonSerializer.cs:line 2217\n       at DataContractJsonSerializerTests.DCJS_ClassWithDatetimeOffsetTypeProperty() in D:\\A\\_work\\2\\s\\src\\System.Runtime.Serialization.Json\\tests\\DataContractJsonSerializer.cs:line 1335\n    ----- Inner Stack Trace -----\n       at System.Delegate.CreateDelegateInternal(RuntimeType rtType, RuntimeMethodInfo rtMethod, Object firstArgument, DelegateBindingFlags flags, StackCrawlMark& stackMark)\n       at System.Reflection.RuntimeMethodInfo.CreateDelegateInternal(Type delegateType, Object firstArgument, DelegateBindingFlags bindingFlags, StackCrawlMark& stackMark)\n       at System.Reflection.RuntimeMethodInfo.CreateDelegate(Type delegateType)\n       at System.Runtime.Serialization.XmlFormatReaderGenerator..cctor() in D:\\A\\_work\\2\\s\\src\\System.Private.DataContractSerialization\\src\\System\\Runtime\\Serialization\\XmlFormatReaderGenerator.cs:line 34\n\n\nFailing configurations:\n\n- Windows.10.Amd64\n - AnyCPU-Debug\n - AnyCPU-Release\n\nlink:\nhttps://mc.dot.net/#/product/netcore/master/source/official~2Fcorefx~2Fmaster/type/test~2Ffunctional~2Fuwp~2F/build/20160816.02/workItem/System.Runtime.Serialization.Json.Tests/analysis/xunit/DataContractJsonSerializerTests~2FDCJS_ClassWithDatetimeOffsetTypeProperty\n\nSame issue for the following tests:\nDCJS_ClassWithDatetimeOffsetTypeProperty \nDCJS_CollectionInterfaceGetOnlyCollection \nDCJS_ContainsLinkedList \nDCJS_DCClassWithEnumAndStruct \nDCJS_DataContractAttribute \nDCJS_DataContractWithDotInName \nDCJS_DataContractWithMinusSignInName \nDCJS_DataContractWithOperatorsInName \nDCJS_DataContractWithOtherSymbolsInName \nDCJS_DataMemberAttribute \nDCJS_DataMemberNames \nDCJS_EnumerableInterfaceGetOnlyCollection \nDCJS_GenericTypeWithPrivateSetter \nDCJS_IgnoreDataMemberAttribute \nDCJS_InternalTypeSerialization \nDCJS_KeyValuePair \nDCJS_KeyValuePairOfStringObject \nDCJS_PrivateTypeSerialization \nDCJS_Queue \nDCJS_Stack \nDCJS_SuspensionManager \nDCJS_TypeWithEmitDefaultValueFalse \nDCJS_TypeWithInternalDefaultConstructor \nDCJS_TypeWithKnownTypeAttributeAndInterfaceMember \nDCJS_TypeWithKnownTypeAttributeAndListOfInterfaceMember"},"comment":{"url":"https://api.github.com/repos/dotnet/corefx/issues/comments/247817931","html_url":"https://github.com/dotnet/corefx/issues/10838#issuecomment-247817931","issue_url":"https://api.github.com/repos/dotnet/corefx/issues/10838","id":247817931,"user":{"login":"jiangzeng","id":20982381,"avatar_url":"https://avatars.githubusercontent.com/u/20982381?v=3","gravatar_id":"","url":"https://api.github.com/users/jiangzeng","html_url":"https://github.com/jiangzeng","followers_url":"https://api.github.com/users/jiangzeng/followers","following_url":"https://api.github.com/users/jiangzeng/following{/other_user}","gists_url":"https://api.github.com/users/jiangzeng/gists{/gist_id}","starred_url":"https://api.github.com/users/jiangzeng/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jiangzeng/subscriptions","organizations_url":"https://api.github.com/users/jiangzeng/orgs","repos_url":"https://api.github.com/users/jiangzeng/repos","events_url":"https://api.github.com/users/jiangzeng/events{/privacy}","received_events_url":"https://api.github.com/users/jiangzeng/received_events","type":"User","site_admin":false},"created_at":"2016-09-18T01:20:12Z","updated_at":"2016-09-18T01:20:12Z","body":"@karelz Can you help to re-assign this issue as I'm not sure who would fix the test setup?"}}
{"actor":{"display_login":"jiangzeng"}}