{"action":"created","issue":{"url":"https://api.github.com/repos/fluentsprings/ExpressMapper/issues/101","repository_url":"https://api.github.com/repos/fluentsprings/ExpressMapper","labels_url":"https://api.github.com/repos/fluentsprings/ExpressMapper/issues/101/labels{/name}","comments_url":"https://api.github.com/repos/fluentsprings/ExpressMapper/issues/101/comments","events_url":"https://api.github.com/repos/fluentsprings/ExpressMapper/issues/101/events","html_url":"https://github.com/fluentsprings/ExpressMapper/issues/101","id":160684046,"number":101,"title":"Mapper.Compile IndexOutOfRangeException on byte[] to byte[] mapping","user":{"login":"pabloordonez","id":19977695,"avatar_url":"https://avatars.githubusercontent.com/u/19977695?v=3","gravatar_id":"","url":"https://api.github.com/users/pabloordonez","html_url":"https://github.com/pabloordonez","followers_url":"https://api.github.com/users/pabloordonez/followers","following_url":"https://api.github.com/users/pabloordonez/following{/other_user}","gists_url":"https://api.github.com/users/pabloordonez/gists{/gist_id}","starred_url":"https://api.github.com/users/pabloordonez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pabloordonez/subscriptions","organizations_url":"https://api.github.com/users/pabloordonez/orgs","repos_url":"https://api.github.com/users/pabloordonez/repos","events_url":"https://api.github.com/users/pabloordonez/events{/privacy}","received_events_url":"https://api.github.com/users/pabloordonez/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/fluentsprings/ExpressMapper/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":{"login":"anisimovyuriy","id":3758138,"avatar_url":"https://avatars.githubusercontent.com/u/3758138?v=3","gravatar_id":"","url":"https://api.github.com/users/anisimovyuriy","html_url":"https://github.com/anisimovyuriy","followers_url":"https://api.github.com/users/anisimovyuriy/followers","following_url":"https://api.github.com/users/anisimovyuriy/following{/other_user}","gists_url":"https://api.github.com/users/anisimovyuriy/gists{/gist_id}","starred_url":"https://api.github.com/users/anisimovyuriy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anisimovyuriy/subscriptions","organizations_url":"https://api.github.com/users/anisimovyuriy/orgs","repos_url":"https://api.github.com/users/anisimovyuriy/repos","events_url":"https://api.github.com/users/anisimovyuriy/events{/privacy}","received_events_url":"https://api.github.com/users/anisimovyuriy/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/fluentsprings/ExpressMapper/milestones/5","html_url":"https://github.com/fluentsprings/ExpressMapper/milestones/2.0","labels_url":"https://api.github.com/repos/fluentsprings/ExpressMapper/milestones/5/labels","id":1275347,"number":5,"title":"2.0","description":"Major release","creator":{"login":"anisimovyuriy","id":3758138,"avatar_url":"https://avatars.githubusercontent.com/u/3758138?v=3","gravatar_id":"","url":"https://api.github.com/users/anisimovyuriy","html_url":"https://github.com/anisimovyuriy","followers_url":"https://api.github.com/users/anisimovyuriy/followers","following_url":"https://api.github.com/users/anisimovyuriy/following{/other_user}","gists_url":"https://api.github.com/users/anisimovyuriy/gists{/gist_id}","starred_url":"https://api.github.com/users/anisimovyuriy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anisimovyuriy/subscriptions","organizations_url":"https://api.github.com/users/anisimovyuriy/orgs","repos_url":"https://api.github.com/users/anisimovyuriy/repos","events_url":"https://api.github.com/users/anisimovyuriy/events{/privacy}","received_events_url":"https://api.github.com/users/anisimovyuriy/received_events","type":"User","site_admin":false},"open_issues":26,"closed_issues":7,"state":"open","created_at":"2015-08-27T05:27:52Z","updated_at":"2016-06-16T16:11:33Z","due_on":"2016-05-30T07:00:00Z","closed_at":null},"comments":2,"created_at":"2016-06-16T15:02:03Z","updated_at":"2016-06-16T17:19:14Z","closed_at":null,"body":"On Xamarin.Android and and Xamarin.IOS distributions, when compiling mappings with byte[] <-> byte[] mappings, the Mapper.Compile method crashes trying to create the dynamic method. Don't know if it's a xamarin CLR implementation issue, or something in the dynamic method code is not fully standard.\r\nAs a palliative measure we're using function mapping for byte arrays instead of member mapping. \r\n\r\n\r\n**Exception String**\r\nExpressMapper.ExpressmapperException: Error error occured trying to compile mapping for: source ApplicationModules.Security.Interfaces.Companies.ICompanyConfiguration, destination Application.UI.Mobile.Domain.Security.Companies.Entities.CompanyConfiguration. See the inner exception for details. ---> System.InvalidOperationException: \r\n  at (wrapper managed-to-native) System.Reflection.Emit.DynamicMethod:create_dynamic_method (System.Reflection.Emit.DynamicMethod,System.Reflection.Emit.DynamicMethod)\r\n  at System.Reflection.Emit.DynamicMethod.CreateDynMethod () [0x000c5] in /Users/builder/data/lanes/1196/3e934261/source/mono/mcs/class/corlib/System.Reflection.Emit/DynamicMethod.cs:160 \r\n  at System.Reflection.Emit.DynamicMethod.CreateDelegate (System.Type delegateType, System.Object target) [0x00017] in /Users/builder/data/lanes/1196/3e934261/source/mono/mcs/class/corlib/System.Reflection.Emit/DynamicMethod.cs:186 \r\n  at System.Linq.Expressions.Compiler.LambdaCompiler.CreateDelegate () [0x00000] in /Users/builder/data/lanes/1196/3e934261/source/mono/mcs/class/dlr/Runtime/Microsoft.Scripting.Core/Compiler/LambdaCompiler.cs:302 \r\n  at System.Linq.Expressions.Compiler.LambdaCompiler.Compile (System.Linq.Expressions.LambdaExpression lambda, System.Runtime.CompilerServices.DebugInfoGenerator debugInfoGenerator) [0x0001d] in /Users/builder/data/lanes/1196/3e934261/source/mono/mcs/class/dlr/Runtime/Microsoft.Scripting.Core/Compiler/LambdaCompiler.cs:214 \r\n  at System.Linq.Expressions.Expression`1[TDelegate].Compile () [0x00000] in /Users/builder/data/lanes/1196/3e934261/source/mono/mcs/class/dlr/Runtime/Microsoft.Scripting.Core/Ast/LambdaExpression.cs:188 \r\n  at ExpressMapper.SourceTypeMapper`2[T,TN].CompileInternal () [0x0026a] in C:\\SourceCode\\ExpressMapper\\ExpressMapper NET40\\SourceTypeMapper.cs:84 \r\n  at ExpressMapper.TypeMapperBase`2[T,TN].Compile (CompilationTypes compilationType, Boolean forceByDemand) [0x0004a] in C:\\SourceCode\\ExpressMapper\\ExpressMapper NET40\\TypeMapperBase.cs:111 \r\n  --- End of inner exception stack trace ---\r\n  at ExpressMapper.TypeMapperBase`2[T,TN].Compile (CompilationTypes compilationType, Boolean forceByDemand) [0x00053] in C:\\SourceCode\\ExpressMapper\\ExpressMapper NET40\\TypeMapperBase.cs:115 \r\n  at ExpressMapper.MappingServiceBase.Compile (CompilationTypes compilationType) [0x0001b] in C:\\SourceCode\\ExpressMapper\\ExpressMapper NET40\\MappingServiceBase.cs:38 \r\n  at ExpressMapper.MappingServiceProvider.Compile () [0x00025] in C:\\SourceCode\\ExpressMapper\\ExpressMapper NET40\\MappingServiceProvider.cs:125 \r\n  at ExpressMapper.Mapper.Compile () [0x00000] in C:\\SourceCode\\ExpressMapper\\ExpressMapper NET40\\Mapper.cs:18 \r\n  at Application.UI.Mobile.Shared.ApplicationMappings.RegisterMappings () [0x00098] in C:\\XamarinMigration\\.NET\\src\\UI\\Mobile\\Shared\\Application.UI.Mobile.Shared\\ApplicationMappings.cs:52\r\n  at Application.UI.Mobile.Shared.Application..ctor () [0x00008] in C:\\XamarinMigration\\.NET\\src\\UI\\Mobile\\Shared\\Application.UI.Mobile.Shared\\Application.cs:33 \r\n  at Application.UI.Mobile.Droid.MainActivity.OnCreate (Android.OS.Bundle bundle) [0x000a6] in C:\\XamarinMigration\\.NET\\src\\UI\\Mobile\\Android\\Application.UI.Mobile.Droid\\MainActivity.cs:90 \r\n  at Android.Support.V4.App.FragmentActivity.n_OnCreate_Landroid_os_Bundle_ (IntPtr jnienv, IntPtr native__this, IntPtr native_savedInstanceState) [0x00011] in <filename unknown>:0 \r\n  at (wrapper dynamic-method) System.Object:4778b6da-a4bc-4b3e-8adb-48b8ee0435b5 (intptr,intptr,intptr)\r\n\r\n**Exception Message**\r\nError error occured trying to compile mapping for: source ApplicationModules.Security.Interfaces.Companies.ICompanyConfiguration, destination Application.UI.Mobile.Domain.Security.Companies.Entities.CompanyConfiguration. See the inner exception for details.\r\n\r\n**Exception Source**\r\nExpressMapper\r\n\r\n**StackTrace**\r\n  at ExpressMapper.TypeMapperBase`2[T,TN].Compile (CompilationTypes compilationType, Boolean forceByDemand) [0x00053] in C:\\SourceCode\\ExpressMapper\\ExpressMapper NET40\\TypeMapperBase.cs:115 \r\n  at ExpressMapper.MappingServiceBase.Compile (CompilationTypes compilationType) [0x0001b] in C:\\SourceCode\\ExpressMapper\\ExpressMapper NET40\\MappingServiceBase.cs:38 \r\n  at ExpressMapper.MappingServiceProvider.Compile () [0x00025] in C:\\SourceCode\\ExpressMapper\\ExpressMapper NET40\\MappingServiceProvider.cs:125 \r\n  at ExpressMapper.Mapper.Compile () [0x00000] in C:\\SourceCode\\ExpressMapper\\ExpressMapper NET40\\Mapper.cs:18 \r\n  at Application.UI.Mobile.Shared.ApplicationMappings.RegisterMappings () [0x00098] in C:\\XamarinMigration\\.NET\\src\\UI\\Mobile\\Shared\\Application.UI.Mobile.Shared\\ApplicationMappings.cs:52\r\n  at Application.UI.Mobile.Shared.Application..ctor () [0x00008] in C:\\XamarinMigration\\.NET\\src\\UI\\Mobile\\Shared\\Application.UI.Mobile.Shared\\Application.cs:33 \r\n  at Application.UI.Mobile.Droid.MainActivity.OnCreate (Android.OS.Bundle bundle) [0x000a6] in C:\\XamarinMigration\\.NET\\src\\UI\\Mobile\\Android\\Application.UI.Mobile.Droid\\MainActivity.cs:90 \r\n  at Android.Support.V4.App.FragmentActivity.n_OnCreate_Landroid_os_Bundle_ (IntPtr jnienv, IntPtr native__this, IntPtr native_savedInstanceState) [0x00011] in <filename unknown>:0 \r\n  at (wrapper dynamic-method) System.Object:4778b6da-a4bc-4b3e-8adb-48b8ee0435b5 (intptr,intptr,intptr)"},"comment":{"url":"https://api.github.com/repos/fluentsprings/ExpressMapper/issues/comments/226552859","html_url":"https://github.com/fluentsprings/ExpressMapper/issues/101#issuecomment-226552859","issue_url":"https://api.github.com/repos/fluentsprings/ExpressMapper/issues/101","id":226552859,"user":{"login":"pabloordonez","id":19977695,"avatar_url":"https://avatars.githubusercontent.com/u/19977695?v=3","gravatar_id":"","url":"https://api.github.com/users/pabloordonez","html_url":"https://github.com/pabloordonez","followers_url":"https://api.github.com/users/pabloordonez/followers","following_url":"https://api.github.com/users/pabloordonez/following{/other_user}","gists_url":"https://api.github.com/users/pabloordonez/gists{/gist_id}","starred_url":"https://api.github.com/users/pabloordonez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pabloordonez/subscriptions","organizations_url":"https://api.github.com/users/pabloordonez/orgs","repos_url":"https://api.github.com/users/pabloordonez/repos","events_url":"https://api.github.com/users/pabloordonez/events{/privacy}","received_events_url":"https://api.github.com/users/pabloordonez/received_events","type":"User","site_admin":false},"created_at":"2016-06-16T17:19:14Z","updated_at":"2016-06-16T17:19:14Z","body":"Yuriy, thanks for all your effort! Really appreciated!\r\n\r\nKind regards, \r\n"}}
{"actor":{"display_login":"pabloordonez"}}